I made a pharma monitoring system which sets boundary to the temperature limit
and senses the change in temperature and alert by means of Email and buzzer.
When the medicines are developed they are too sensitive to temperature so the temperature is need to be maintained within limits which is difficult task until noting to monitor it but with pharma monitor we get a update regularly which prevents any harm to the medicines by giving an email alert as an when limit exceeds the value of temperature or someone opens at 24*7.
when LM35 sensor that senses the temperature of its environment and based on it's value it generates an analog output voltage. This analog voltage produced by the LM35 is then given as input to the Bolt A0 pin. The Bolt then converts the analog value into a 10 bit digital value that varies from 0-1023. This digital data is sent to the cloud via Bolt device.
1.Code for boundariesThe cloud processes data by the help of code and sends response to the user
The algorithm works as following -
- Fetch the latest sensor value from the Bolt device.
- Check if the sensor value is in the range specified in our min and max values.
- If it is not in range, send the Email and buzzer alerts.
- Wait for 10 seconds.
- Repeat from step 1.
Polynomial Visualizer is a popular data analytics/ML algorithm which helps fit a non-linear curve to a given data-set. The trend can be then used to understand where other data points might lie.
The Visualizer aims to help you decide whether Polynomial Visualizer is the right way to go for their ML system, and in case the model works for the data, the Visualizer helps to find the best possible parameters to use with the Visualizer model.
It uses formula for polynomial regression given as:
and predict future data.
3.Code for Anomaly detectionIt basically works to detect any sudden change in the sensor value when someone opens the door of fridge the temperature suddenly changes and this anomaly when detected the alert message sent via Email to the user.
we calculate the Z score (Zn) for the data and use it to calculate the upper and lower threshold bounds required to check if a new data point is normal or anomalous. by formula
where Mn is taken as mean Vi is variance and Zn as Z-score.
All repeats again and again with an gap of 10 sec and continuously monitors the system 24*7.
Thank you!
Comments