Submitted by
Rachana C Nair
�
Vigilant Worker Protection and Efficiency Measure System
ARM AI Developer Challenge
AGENDA
ABSTRACT
PROBLEM STATEMENT
OBJECTIVE
METHODOLOGY
IMPLEMENTATION
DATASET DETAILS
BLOCK DIAGRAM
CIRCUIT DIAGRAM
THEORITICAL EXPLANATION
MATHEMATICAL EXPLANATION
OUTCOMES
RESULTS
REFERENCES
ABSTRACT
PROBLEM STATEMENT
The mining industry presents a challenging landscape where workers face hazardous conditions that endanger their safety and well-being. Conventional safety measures often fall short in providing real-time health monitoring and proactive hazard detection. Timely intervention to mitigate health risks is lacking, leading to workplace accidents, injuries, and even fatalities. This critical gap underscores the pressing need for an innovative solution that ensures continuous worker safety and well-being in such environments.
�
OBJECTIVE
IMPLEMENTATION
1. CNN-Based Model Deployment on STM32 Microcontroller Using TensorFlow Lite
This involves converting a trained CNN model to TensorFlow Lite format and then optimizing it for deployment on the STM32 microcontroller. Here are the steps:
Steps:
After training, convert the model to TensorFlow Lite format (.tflite) using the TensorFlow Lite Converter:
python
import tensorflow as tf # Load your trained model model = tf.keras.models.load_model('path_to_model') # Convert the model to TensorFlow Lite format converter = tf.lite.TFLiteConverter.from_keras_model(model) tflite_model = converter.convert() # Save the converted model with open('model.tflite', 'wb') as f: f.write(tflite_model)
cpp
#include "tensorflow/lite/micro/all_ops_resolver.h" #include "tensorflow/lite/micro/micro_interpreter.h" // Define the TFLite model buffer and interpreter const tflite::Model* model = ::tflite::GetModel(g_model_data); // g_model_data is the model buffer tflite::ops::micro::AllOpsResolver resolver; tflite::MicroInterpreter interpreter(model, resolver, tensor_arena, tensor_arena_size, &error_reporter); // Run inference interpreter.Invoke();
IMPLEMENTATION
2. Time-Series Algorithm for Predictive Health
This involves using time-series data (e.g., heart rate, temperature, or other physiological parameters) to predict workers' fitness for work.
Steps:
python
import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import LSTM, Dense # Assuming `X_train` is the time-series data and `y_train` is the target (fitness for work) model = Sequential() model.add(LSTM(64, activation='relu', input_shape=(X_train.shape[1], X_train.shape[2]))) model.add(Dense(1, activation='sigmoid')) # For binary classification (fit/unfit) model.compile(optimizer='adam', loss='binary_crossentropy', metrics=['accuracy']) model.fit(X_train, y_train, epochs=10, batch_size=32)
python
tflite_model = tf.lite.TFLiteConverter.from_keras_model(model).convert()
DATASET DETAILS
Source Link:
Acquisition Details:
Data Properties:
Body Temperature, Pulse and Spo2
Fig. 1. Monthly Average
Fig. 2. Heart Patient’s Data
BLOCK DIAGRAM
Fig. 3. Block Diagram
CIRCUIT DIAGRAM
Fig. 4. Model Diagram
Fig. 5. Connection Diagram
THEORITICAL EXPLANATION
CNN-Based Model Deployment on STM32 Microcontroller Using TensorFlow Lite
THEORITICAL EXPLANATION
Time-Series Algorithm for Predictive Health (Fitness for Work)
RESULTS
Fig. 6. UI Output
Fig. 7. UI Output
RESULTS
Fig. 6. UI Output
Fig. 7. UI Output
RESULTS
Fig. 8. Overall Setup
RESULTS
Fig. 9. Board Output
Fig. 10. Board Output - Features
Fig. 11. Wrist Band
Fig. 12,13. Wrist Band
REFERENCES
[1] C.J.Bohr, A.Kumar and G.P.Hancke, Smart helmet for detection of air quality and harzardous event detection in mining industry in IEEE International conference on industrial technology(ICIT) 14-17 march 2016 , PP: 2026 2031
[2] M. Noorin and K. Suma, "IoT based wearable device using WSN technology for miners," 2018 3rd IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology (RTEICT), Bangalore, India, 2018pp. 992-996, doi: 10.1109/RTEICT42901.2018.9012592
[3]Jagadeesh.R and Dr.R.Nagaraj, IoT based smart helmet for unsafe event detection for mining industry in International research journal of engineering and technology volume04: issued 01 jan 2017, PP: 1481491
[4] S. S. Patil and V. S. Bendre, "Coal Mine Safety Monitoring and Alerting System," 2022 International Conference on Smart Technologies and Systems for Next Generation Computing (ICSTSN), Pune, India, 2022, pp. 1-5, doi: 10.1109/ICSTSN53068.2022.9908737.
[5] S. S. Patil and V. S. Bendre, "Smart Coal Mine Safety & Monitoring System," 2022 International Conference on Smart Technologies and Systems for Next Generation Computing (ICSTSN), Pune, India, 2022, pp. 1-5, doi: 10.1109/ICSTSN53068.2022.9776791.
[6] A. K. Sahoo, S. K. Sahu, and S. K. Sahu, "IoT-Based Wearable Devices for Personal Safety and Accident Prevention Systems," 2022 2nd International Conference on Power Electronics & IoT Applications in Renewable Energy and its Control (PARC), Mathura, India, 2022, pp. 1-5, doi: 10.1109/PARC52418.2022.9726634.
[7] JARCCE ISSN (O) 2278-1021, ISSN (P) 2319-5940 International Journal of Advanced Research in Computer and Communication Engineering ISO 3297:2007 CertifiedImpact Factor 8.102Vol. 12, Issue 4, April 2023 DOI: 10.17148/IJARCCE.2023.12404 Internet of Things Based Coal Mine Safety Monitoring System T. Thilagavathi1, Dr. L. Arockiam2 Research Scholar, Department of Computer Science, St. Joseph’s College (Autonomous), Tiruchirappalli, Tamil Nadu, India1 Associate Professor, Department of Computer Science, St. Joseph’s College (Autonomous), Tiruchirappalli, Tamil Nadu, India2