10-14-2024
TomStock
SAS Employee
Member since
08-01-2018
- 6 Posts
- 4 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by TomStock
Subject Views Posted 954 10-09-2024 02:59 AM 1443 06-28-2024 11:54 AM 6450 01-19-2023 09:08 AM 1927 08-16-2018 03:22 AM 1995 08-14-2018 05:33 AM 2083 08-13-2018 10:50 AM -
Activity Feed for TomStock
- Posted Re: SAS Demo | Chemical Stability Monitoring with PCA and Change Detection on SAS Communities Library. 10-09-2024 02:59 AM
- Posted SAS Demo | Chemical Stability Monitoring with PCA and Change Detection on SAS Communities Library. 06-28-2024 11:54 AM
- Liked Proc lifereg : scoring for krishmar1. 10-11-2023 11:25 AM
- Liked Re: Proc lifereg : scoring for econ_stat_modeler007. 10-11-2023 11:25 AM
- Liked Understanding SAS: The Different Processing Engines for StephenFoerster. 01-19-2023 01:15 PM
- Posted Re: Calling Intelligent Decisioning from ESP on SAS Communities Library. 01-19-2023 09:08 AM
- Liked VA Report Example: Using D3js in your Report for XavierBizoux. 10-31-2018 06:25 AM
- Posted Re: The evolution of terror attacks in Europe on SAS Visual Analytics Gallery. 08-16-2018 03:22 AM
- Posted Re: The evolution of terror attacks in Europe on SAS Visual Analytics Gallery. 08-14-2018 05:33 AM
- Posted The evolution of terror attacks in Europe on SAS Visual Analytics Gallery. 08-13-2018 10:50 AM
-
Posts I Liked
Subject Likes Author Latest Post 2 2 3 6 -
My Library Contributions
10-09-2024
02:59 AM
Indeed, let me know how this works out for you, and if you have questions, please shout!!
Cheers
Tom.
... View more
06-28-2024
11:54 AM
1 Like
With SAS ESP you can use unsupervised models to detect changes in real time in the conditions of a chemical process.
The approach of using PCA and Change Detection (CD) enables to monitor the complex relationships of a high dimensional data stream (meaning with a lot of sensors) by reducing the dimension of the data stream into a principal component that contains most of the variance and monitoring that principal component through a change detection algorithm called the Kullback-Leibler (KL) divergence. In the image below, you can see how approachable it is to design an SAS ESP project that contains the PCA and the CD algorithm.
In the video I demonstrate how to configure SAS Event Stream Processing to execute this analysis on the Tennessee Eastman Process.
While PCA is usually part of the usual toolkit of data scientists, combining it with the KL divergence is very practical because it compares histograms of the distribution of the value of the principal component. In the figure below, you can see the angle of the first Principal Component which is generated by the moving window PCA in SAS ESP on the first 500 observations (the reference period) and then on the whole dataset 1500 observations (with a fault occuring around the 600th observation). While it is very easy to interpret the graphics due to the important drop in the PCA absolute angle, it is important to note that the change in value is very small and impossible to estimate a-priori.
When using the change detection algorithm, SAS ESP constructs a uniform histogram on a reference period (the first 500observations) and compares the distribution of that histogram with the whole period. In the implementation, we use a shorter reference period in order to ensure that only the normal process is represented in the histogram. For illustration purpose, I created this visual comparing 4 bins on the absolute angle of the first principal component. You will notice that rapidly after the reference period, most of the observations are in the 4th bin. The change detection algorithm will capture this change.
When you don't have prior knowledge of the expected values of the sensors or of the PCA, the KL divergence offers a standard metric that can be known and decided a-priori by the user. It is not easy to choose the optimal decision boundary of the KL divergence. When the number of bins is fixed to a small number and because the reference distribution is always a uniform distribution, you can visualize how much deviation is acceptable.
In the example below, if you don't want to detect a change smaller than the one the left, but you want to detect a change similar or larger than the one on the right, you can set the threshold for the KL value between 0.0537 and 0.5402.
You can play with different distributions and bin numbers to choose the optimal boundary for your use case. I have included the sas code that enable to calculate the KL divergence value and create the graphs above.
Tom.
For more information about kullback-leibler divergence : https://blogs.sas.com/content/iml/2020/05/26/kullback-leibler-divergence-discrete.html
... View more
01-19-2023
09:08 AM
Feel free to check this gitlab entry : https://gitlab.sas.com/IOT/tutorials/ESP-tutorials/how-to-use-the-esp-rest-subscriber-adapter-1
It includes calling SAS ID MAS
reach out to me if you don't have access
... View more
08-16-2018
03:22 AM
The word cloud does not change, I thought it would be good to keep in mind the greater picture (the history) when zooming into a year selection. Do you think it should?
... View more
08-14-2018
05:33 AM
Yes, this is just a screenshot of the report. I don't think there is a possibility to share the live version as it sits on our local servers here in Belgium.
... View more
08-13-2018
10:50 AM
3 Likes
This SAS Visual Analytics report allows users to better understand the evolution of the terrorist threats in Europe.
Don't jump to conclusions... only an in-depth analysis will allow to understand the facts.
At the bottom right, one will notice the general decrease in the 2000's of attacks and casualties. However a dramatic surge occurred in 2015's. This can be mainly attributed to events at the Russian borders and to a lesser extent to the events in France.
Although historically, UK and Spain have been heavy targets of terrorism as seen at the top right, these countries have seen a significant improvement to their situation.
Machine learning and artificial intelligence allow law enforcement organizations to protect citizens more effectively. Intelligence-led systems allow us to understand these paradigm shifts and adapt to emerging threat faster.
... View more
Labels: