<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Medini Kumar Bora on Medium]]></title>
        <description><![CDATA[Stories by Medini Kumar Bora on Medium]]></description>
        <link>https://medium.com/@Medini_2020?source=rss-3848f8289fcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SyWu8XfKLExRi6bDyEv84A.jpeg</url>
            <title>Stories by Medini Kumar Bora on Medium</title>
            <link>https://medium.com/@Medini_2020?source=rss-3848f8289fcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:49:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Medini_2020/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Roles of Digital Twin in Autonomous Refinery Operations]]></title>
            <link>https://medium.com/@Medini_2020/roles-of-digital-twin-in-autonomous-refinery-operations-2f7023451eed?source=rss-3848f8289fcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f7023451eed</guid>
            <dc:creator><![CDATA[Medini Kumar Bora]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 05:09:42 GMT</pubDate>
            <atom:updated>2025-07-25T05:09:42.732Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Blueprint for Indian Refinery towards adoption of Industry 4.0.</h4><p>[Abstract only. Final version forthcoming<strong>]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DlRdqIQYQ-MdPONLG6YqXA.jpeg" /><figcaption><strong>Fig: Aim for Autonomous Operations by 2040.</strong></figcaption></figure><p>The Department of Public Enterprises (DPE) envisions transforming Central Public Sector Enterprises (CPSEs) through Industry 4.0 adoption across India to redefining India’s energy future and positioning India as a global innovation hub. Our research into <strong>‘World Energy Futures to 2050’</strong> reveals that energy systems are projected to become significantly more complex. This underscores the need for energy policies to prioritize diverse regional needs, recognizing that a ‘<strong>one-size-fits-all</strong>’ solution will not adequately address the energy trilemma of security, equity, and sustainability.</p><p>Aligned with “<strong>Viksit Bharat</strong>” vision, our team at Numaligarh Refinery Limited (NRL) developed a blueprint for refineries to adopt Industry 4.0 and support this shared goal.</p><blockquote><strong><em>1.</em></strong><em> </em><strong><em>Why Indian Refineries Must Aim for Autonomous Operations by 2040?</em></strong></blockquote><p>As the world’s third-largest oil consumer importing ~85% of crude oil, India’s energy sector faces urgent transformation needs:</p><p>· <strong>Safety and Risk Mitigation</strong>: Indian refineries, many aging, face persistent safety challenges. Autonomous systems reduce manual interventions in high-risk zones, leveraging AI and robotics to predict failures, minimize human exposure to hazardous environments, and achieve “almost no major flares” like global benchmarks ENEOS and Saudi Aramco.</p><p>· <strong>Economic Efficiency:</strong> Autonomous refineries optimize operations by processing lower-cost crudes with precision (potentially increasing margins by $1.50+/barrel), reducing unplanned downtime by 30%+ via predictive maintenance, and achieving 11%+ energy efficiency gains through real-time optimization.</p><p>· <strong>Global Competitiveness</strong>: Leading nations like the U.S., Japan, and Saudi Arabia already deploy AI-driven autonomous units. India must invest in open, modular architectures, leverage 5G and edge computing, and partner with global tech leaders to avoid falling behind.</p><blockquote><strong><em>2. Strategic Roadmap to Autonomous Refineries</em></strong></blockquote><p><strong>Phase 1 (2025–2030): Foundation Building</strong></p><p>· Deploy private 5G networks for ultra-low-latency connectivity.</p><p>· Establish pilot autonomous units in refineries.</p><p>· Launch immersive VR/AR training programs for workforce transition.</p><p>· Implement zero-trust cybersecurity architectures.</p><p><strong>Phase 2 (2030–2035): Orchestrated Autonomy</strong></p><p>· Deploy self-learning Advanced Process Control systems.</p><p>· Integrate autonomous inspection drones for hazardous tasks.</p><p>· Develop hybrid refineries combining renewable energy with autonomous control.</p><p><strong>Phase 3 (2035–2040): Full Autonomy</strong></p><p>· Implement generative AI for real-time decision-making.</p><p>· Establish remote operations centers reducing on-site personnel by 50%.</p><blockquote><strong><em>3. Roles of Digital Twins: The Game-Changer</em></strong></blockquote><p>Digital twins create real-time virtual replicas enabling:</p><p>· <strong>Design &amp; Simulation</strong>: Test processes and emergency scenarios before implementation.</p><p>· <strong>Predictive Maintenance</strong>: Monitor asset health and predict failures using IoT data.</p><p>· <strong>Operational Optimization</strong>: Track energy consumption and emissions in real-time.</p><p>· <strong>Safety Enhancement</strong>: Predict incidents and enable remote hazardous area operations.</p><p>· <strong>Workforce Transformation</strong>: Shift roles from manual tasks to strategic oversight.</p><blockquote><strong><em>4. Future Impact</em></strong></blockquote><p>Integrating emerging Industry 4.0 technologies in existing refineries will enhance <strong>safety</strong> by minimizing human exposure to hazardous environments through automation and predictive maintenance. It will boost <strong>operational efficiency</strong> by optimizing energy use and reducing downtime. <strong>Future-ready workforces</strong> will emerge through upskilling in AI, robotics, and data analytics, attracting tech-savvy talent. Finally, India can position itself as a hub for <strong>exporting digital solutions</strong>, leveraging its IT expertise to shape global energy standards.</p><h3>Thank you for your time.</h3><p>[<em>Final version coming soon</em>]</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f7023451eed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Personal Protective Equipment (PPE) Detection Using Deep Learning Techniques]]></title>
            <link>https://medium.com/@Medini_2020/personal-protective-equipment-ppe-detection-using-deep-learning-techniques-7e1ce8cc3d1e?source=rss-3848f8289fcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e1ce8cc3d1e</guid>
            <category><![CDATA[yolov5]]></category>
            <category><![CDATA[ppe-detection]]></category>
            <category><![CDATA[custom-dataset]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Medini Kumar Bora]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 03:15:14 GMT</pubDate>
            <atom:updated>2022-06-27T03:15:14.495Z</atom:updated>
            <content:encoded><![CDATA[<h4>Train YOLOv5 model on Custom Dataset</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*jxACIKbYtny3OqJkDrAbgg.gif" /><figcaption>Output of Custom YOLOv5 model</figcaption></figure><h3><strong>Table of contents:</strong></h3><blockquote>1. Introduction</blockquote><blockquote>2. Problem Description</blockquote><blockquote>3. Description of YOLOv5 model</blockquote><blockquote>4. Preparation of Custom dataset</blockquote><blockquote>5. Code for images downloader from internet</blockquote><blockquote>6. Performance metric</blockquote><blockquote>7. Setup for YOLOv5 model</blockquote><blockquote>8. Mount the google drive</blockquote><blockquote>9. Model Training</blockquote><blockquote>10. Inference</blockquote><blockquote>11. Load the custom model and detect images saved at different location</blockquote><blockquote>12. Building a Web App with Flask</blockquote><blockquote>13. Conclusion.</blockquote><h3><strong>1. Introduction:</strong></h3><p>In 2019, a report by Zion Market Research highlighted the tremendous potential of artificial intelligence (AI) and machine learning (ML) technologies in the construction industry. According to the report, <strong>“the global AI-in-construction market was valued at 312 million dollars in 2017 and is expected to reach 3.1 billion dollars by 2024, a compound annual growth rate of 38.14% between 2018 and 2024.”</strong></p><p>Personal safety in manufacturing/process plants and construction site is a matter of great concern for practitioners and researchers worldwide. Even after risk assessments have been conducted and adequate controls have been implemented, workers are still subject to safety hazards in construction work environments. The need for personal protective equipment (PPE) is important in this context. Therefore, it is utmost importance at construction site to adopt a robust system to provide a real-time vision-based safety system capable of detecting and recording potential safety violations, promoting compliance, and ultimately preventing accidents before they happen.</p><p>Developments in the field of computer vision and data analytics, especially using deep learning algorithms have the potential to address this challenge in construction site and manufacturing/process plants.</p><p>Here we will explore the application of Deep Learning Techniques to detect Personal Protective Equipment (PPE).</p><h3><strong>2. Problem Description:</strong></h3><p>Requirement of PPEs is varied across constructions site and manufacturing/process plants due to level of hazard present and different work environments. Thus, it is needed to develop a custom analytics tool as per companies’ requirement. Almost all companies are installed CCTV (Closed-circuit television) on their premises for surveillance purpose. Company can use CCTV footage to detect PPEs on real time to prevent accidents before they happen. In view of this, a deep learning algorithm, YOLOv5 model, will be applied to detect PPE on custom datasets.</p><p>This system may offer multiple benefits to construction site, learning factories and manufacturing organizations such as improved user safety, reduced insurance costs, and better detection and recording of safety violations.</p><h3><strong>3. Description of YOLOv5 model:</strong></h3><p>YOLO (You only look once) is an object detection algorithm that divides images into a grid system. Each cell in the grid is responsible for detecting objects within itself.</p><p>YOLO is one of the most famous object detection algorithms due to its speed and accuracy. So, YOLOv5 model will be used detect PPE in an image where person wears a helmet or not. For more details, please refer <a href="https://docs.ultralytics.com/">official documentation.</a></p><h4><strong>YOLO v5 — Model Architecture</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BSVCGgIjFwfIioxa2JRkg.png" /><figcaption><strong>Source: </strong><a href="https://www.researchgate.net/figure/The-network-architecture-of-Yolov5-It-consists-of-three-parts-1-Backbone-CSPDarknet_fig1_349299852"><strong>Google</strong></a></figcaption></figure><p>The YOLO family of models consists of three main architectural blocks i) Backbone, ii) Neck and iii) Head.</p><p>1. <strong>YOLOv5 Backbone:</strong> It employs CSPDarknet as the backbone for feature extraction from images consisting of cross-stage partial networks.</p><p>2. <strong>YOLOv5 Neck:</strong> It uses PANet to generate a feature pyramids network to perform aggregation on the features and pass it to Head for prediction.</p><p>3. <strong>YOLOv5 Head:</strong> Layers that generate predictions from the anchor boxes for object detection.</p><p>Apart from this YOLOv5 uses the below choices for training:-</p><p>1. <strong>Activation and Optimization:</strong> YOLOv5 uses leaky ReLU and sigmoid activation, and SGD and ADAM as optimizer options.</p><p>2. <strong>Loss Function:</strong> It uses Binary cross-entropy with logits loss.</p><h4>Different Types of YOLOv5</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*wgBYXieVV-_j4TWILyBd3w.png" /><figcaption>Source: <a href="https://pytorch.org/hub/ultralytics_yolov5/">pytorch</a></figcaption></figure><p>YOLOv5 has multiple varieties of pre-trained models as we can see above. The difference between them is the trade-off between the size of the model and inference time. The lightweight model version YOLOv5s is just 14MB but not very accurate. On the other side of the spectrum, we have YOLOv5x whose size is 168MB but is the most accurate version of its family.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NfgDlzLpoTEceyd0lpz3ZQ.png" /><figcaption>Source: <a href="https://pytorch.org/hub/ultralytics_yolov5/">pytorch</a></figcaption></figure><h3><strong>4. Preparation of Custom dataset:</strong></h3><p><strong>a) Collection of image data:</strong> Construction site’s images have been downloaded from internet by python image scraping technique.</p><p><strong>b) Preparation of image data:</strong> All downloaded images have been manually checked for relevance to the study and discard un-relevant images. All filtered images have been annotated by online tool <a href="https://www.makesense.ai/">MakeSense</a>. MakeSense is an open-source and free to use annotation tool under GPLv3 license. It does not require any advanced installations, just need a web browser to run it.</p><p><strong>c) Preparation image directories:</strong> Two numbers of directories have been created for training and validation purpose.</p><p><strong>d) Preparation image directories:</strong> Two numbers of directories have been created for training and validation purpose. 83 nos of Train and 13 nos of Valid images have been processed and stored at designated folders for training YOLOv5 model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*bKnOQq5zRi0w0OCguAaV1w.png" /><figcaption>Folder structure</figcaption></figure><h3>5. Code for images downloader from internet:</h3><h4>5. 1. Bing image downloader (used jupyter notebook):</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a95ef3ecc63936da64a5202a09b0ff2e/href">https://medium.com/media/a95ef3ecc63936da64a5202a09b0ff2e/href</a></iframe><h4>5.2. Google image downloader (used google colab):</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a01470d3b4b56e2cde7c66404c3c569b/href">https://medium.com/media/a01470d3b4b56e2cde7c66404c3c569b/href</a></iframe><p>Let’s see some sample train Images (total images: 82 nos):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ickCrgMamj0J9BSsQmuqIw.png" /><figcaption>Source: Google</figcaption></figure><p><strong>YOLO labeling format</strong></p><p>Most annotation platforms support export at YOLO labeling format, providing one annotations text file per image. Each text file contains one bounding-box (BBox) annotation for each of the objects in the image. The annotations are normalized to the image size, and lie within the range of 0 to 1. They are represented in the following format:</p><p>&lt; object-class-ID&gt; &lt;X center&gt; &lt;Y center&gt; &lt;Box width&gt; &lt;Box height&gt;</p><p>If there are five objects in an image, the content of the YOLO annotations text file might look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouxZMXKntHl7ci6sNXLfvA.png" /><figcaption>Output of MakeSense tool</figcaption></figure><h3>6. Performance metric:</h3><p>Precision, Recall, mAP@.5 &amp; 0.95 will be computed to verify the model performance.</p><p><strong>What is Precision?</strong></p><p>Precision is a metric that quantifies the number of correct positive predictions made.</p><p>It is calculated as the ratio of correctly predicted positive examples divided by the total number of positive examples that were predicted.</p><p>- Precision = TruePositives / (TruePositives + FalsePositives)</p><p>The result of Precision is a value between 0.0 (worst model) and 1.0 (best model).</p><p>Consider a dataset with a 1:10 minority to majority ratio, with 100 minority examples and 1,000 majority class examples.</p><p>A model makes predictions and predicts 110 examples as belonging to the minority class, 80 of which are correct, and 30 of which are incorrect.</p><p>The precision for this model is calculated as:</p><ul><li>Precision = TruePositives / (TruePositives + FalsePositives)</li><li>Precision = 80 / (80 + 30)</li><li>Precision = 80 / 110</li><li>Precision = 0.72</li></ul><p>This means our model is correct 72.2% times when it is trying to identify positive examples (minority class).</p><p><strong>What is Recall?</strong></p><p>Recall is a metric that quantifies the number of correct positive predictions made out of all positive predictions that could have been made.</p><p>Unlike precision that only comments on the correct positive predictions out of all positive predictions, recall provides an indication of missed positive predictions.</p><ul><li>Recall = TruePositives / (TruePositives + FalseNegatives)</li></ul><p>The result of Recall is a value between 0.0 (worst model) and 1.0 (best model).</p><p>Let’s make this calculation concrete with below example.</p><p>As in the previous section, consider a dataset with 1:10 minority to majority ratio, with 100 minority examples and 1,000 majority class examples.</p><p>A model makes predictions and predicts 80 of the positive class predictions correctly and 20 incorrectly. We can calculate the recall for this model as follows:</p><ul><li>Recall = TruePositives / (TruePositives + FalseNegatives)</li><li>Recall = 80 / (80 + 20)</li><li>Recall = 80 / 100</li><li>Recall = 0.8</li></ul><p>This means our model identified 80% of positive examples (minority class) correctly.</p><p><strong>What is mAP@.5 &amp; 0.95?</strong></p><p>AP (Average precision) is a popular metric in measuring the accuracy of object detectors like Faster R-CNN, SSD, etc. Average precision computes the average precision value for recall value over 0 to 1.</p><p>mAP@.5 means the mAP (mean average precision) with IoU (Intersection over union) = 0.5.</p><p>Mathematical formulae of mAP is given below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*TvdopI_8LKG5A9tyZD1HxQ.png" /><figcaption>Source: <a href="https://blog.paperspace.com/mean-average-precision/">https://blog.paperspace.com/mean-average-precision/</a></figcaption></figure><p>Precision and Recall curve for all 80 classes is given below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*TT8tMc7mMHhHlKggV3wtSA.png" /><figcaption>Source: <a href="https://github.com/ultralytics/yolov3/issues/898">https://github.com/ultralytics/yolov3/issues/898</a></figcaption></figure><p>For a single class 0, or person, the curve is given below. During testing it is evaluated the area under the curve as average precision, AP. The curve should ideally go from P=1, R=0 in the top left towards P=0, R=1 at the bottom right to capture the full AP (area under the curve). By varying threshold value (conf-thres) we can select <strong>a single point on the curve</strong> to run our model at. Depending on our application, we may prioritize precision over recall, or vice versa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*YAI-HX9CANE8xVzrm3-lfA.png" /><figcaption>Source: <a href="https://github.com/ultralytics/yolov3/issues/898">https://github.com/ultralytics/yolov3/issues/898</a></figcaption></figure><p><strong>IoU (Intersection over union):</strong></p><p>IoU measures the overlap between 2 boundaries. It is used to measure how much model predicted boundary overlaps with the ground truth (the real object boundary). In some datasets, it is predefined an IoU threshold (say 0.5) in classifying whether the prediction is a true positive or a false positive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nITWBQwcAS1rlTD6AH8RkQ.png" /><figcaption>source: <a href="https://jonathan-hui.medium.com/map-mean-average-precision-for-object-detection-45c121a31173)">https://jonathan-hui.medium.com/map-mean-average-precision-for-object-detection-45c121a31173</a></figcaption></figure><h3>7. Setup for YOLOv5 model:</h3><p>Google colab will be used for training the custom image dataset using YOLOv5 model.</p><p>Install dependencies and check PyTorch and GPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BAlJ9D5PDqB9Y8Qk5oqxLg.png" /><figcaption>Source: Google colab</figcaption></figure><h3>8. Mount the google drive:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t2KDX7XP9JSGleXS3cYm_A.png" /><figcaption>Source: Google colab</figcaption></figure><h3>9. Model Training:</h3><p>Download the ‘coco128.yaml’ file and modify the file’s name as ‘mkb_custom.yaml’ as per custom dataset. And train YOLOv5s model on the custom dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/1*c4TTbuNZBW4ey1nVwCX3Mg.png" /><figcaption>Location of ‘coco128.yaml’ file</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*RDAJmMoX7EsmHq5ZG3T3Mw.png" /><figcaption>Code to train YOLOv5s model on the custom dataset.</figcaption></figure><p>Let’s see ‘coco128.yaml’ file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s8Zist9IYbuPuntke5O3zw.png" /><figcaption>coco128.yaml file</figcaption></figure><p>Let’s see ‘mkb_custom.yaml’ file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*d36zc0jY74vc12dTE0_yVw.png" /><figcaption>mkb_custom.yaml file</figcaption></figure><p>Now, upload the ‘mkb_custom.yaml’ under ‘Data’ folder: and run the below code to train the model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*aJHxEl1KqtTQJVV0DtucrA.png" /><figcaption>Source: Google colab</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*BD2FN2Gp_Pd1s9ngOdXWdA.png" /><figcaption>Code to train YOLOv5s model on the custom dataset.</figcaption></figure><h3>Experiments to improve the model performance.</h3><p>YOLOv5 has about 25 hyperparameters used for various training settings to get a better model. It is highly recommended to use the default values, which are optimized for YOLOv5 COCO training from scratch. In this experiment, the custom YOLOv5 has trained with the default parameters except the epochs number. The value of different metrics of the custom model are tabulated with 3 different epochs number as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*1pO6m4Spp7xCON4SpsVsQA.png" /></figure><h3>Observations on Experiment and Training process:</h3><ol><li>The model has been trained on 10, 30 and 70 nos of epochs to improve its performance.</li><li>There is no significant improvement observed on the precision value of all class at 10 epochs and 70 epochs.</li><li>The recall value of all class has been improved from 0% at 10 epochs to 84.9% 70 epochs.</li><li>mAP@.5 = 0.214 {mAP@.5 means the mAP (mean average precision) with IoU (Intersection over union) =0.5}. The mAP@.5 of all class has been improved from 0.214 at 10 epochs to 0.916 at 70 epochs.</li><li>The mAP@.5: .95 of all class has been improved from 0.0568 at 10 epochs to 0.449 at 70 epochs.</li><li>The model trained on 70 epochs has been selected as final model for the custom dataset.</li><li>The final model with 70 epochs has been trained in 0.043 hours.</li><li>The best model weight has been saved under “runs/train/exp2/weights/best.pt”</li><li>The trained model has bee used to detect 13 nos valid images having 36 nos labels with 10 nos ‘Helmet’ labels and 26 nos ‘No Helmet’ labels.</li><li>Precision of the final model is 88.7%.</li><li>Recall of the final model is 84.9%.</li><li>mAP@.5 of the final model is 0.916.</li><li>mAP@.5: .95 of the final model is 0.449.</li></ol><h4>9.1. Load Tensorboard to display various metrics/graph:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*cSLc56OafBZJrFfZQzEBrA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jlvYI1z1WPCWBiInSHBhkA.png" /></figure><h4><strong>9.2. Plot the “results.png” of various metrics saved under ‘run’ folder:</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TwJteVtSODdc5OH2hHGu_g.png" /><figcaption>Source: Google colab</figcaption></figure><h3>10. Inference:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K2OoQzHrrgPSEX-PIwBNQQ.png" /></figure><p>10.1. Let’s load the below image and detect whether a person is wearing a Helmet or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1xqk9Z70dfQGRWMOf0ZC9w.png" /><figcaption>Image source: Google</figcaption></figure><p>Now apply the custom trained model to detect PPE at the test image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXGTnadJ0ttkOAz8gloJKw.png" /><figcaption>Source: Google colab</figcaption></figure><p><strong>Load the detected image by the model which saved to runs/detect/exp4:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITaYH-cXwg2PCzCdXMIfxA.png" /></figure><h3>11. Load the custom model and detect images saved at different location:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NtfLpHLF-BB031fJmwi5hA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n9HSUHtBgu6RmEg00uL0ww.png" /><figcaption>Output of the above code</figcaption></figure><h3><strong>12. Building a Web App with Flask:</strong></h3><p>A Web application (Web app) is created with Flask (Python web framework) to detect whether a person is wearing a “Helmet” or not through a browser interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BUE4bD8kl2Ne3JPVbu5jzw.gif" /><figcaption>Web app running on local machine</figcaption></figure><p>All the code is available at <a href="https://github.com/medinikb/Helmet-PPE-detection">GitHub link.</a></p><p><a href="https://github.com/medinikb/Helmet-PPE-detection">GitHub - medinikb/Helmet-PPE-detection: Personal Protective Equipment (PPE) Detection Using Deep Learning Techniques</a></p><h3>13. Conclusion:</h3><p>This study used deep learning-based computer vision algorithms in the automated detection of PPE on custom dataset.</p><p>Using YOLOv5, a state of art object detection algorithm, this study demonstrates how safety compliance can be automatically detected by using a trained model to custom dataset. This could be used to deploy similarly trained algorithms to process CCTV video/photos footage from manufacturing/process plants and construction sites, generating a dashboard for real-time monitoring.</p><p>The model developed in this study could be used in frameworks for regularly reporting non-compliance with safety regulations.</p><p>Following object detection Used Cases example:</p><ol><li>Safety helmet, vest and harness detection</li><li>Face-Mask Detection</li><li>Contact-less Attendance Monitoring</li><li>Worker loitering and crowd gathering analysis</li><li>Gloves and shoe detection</li><li>Proper Eye safety wear detection</li><li>Dress codes/Uniform Monitoring.</li></ol><p>This study has presented a cutting-edge deep learning-based computer vision algorithm with substantial implications and applications that opens up possibilities for incorporating machine intelligence that can automatically predict and monitor safety.</p><blockquote><strong>Reference:</strong></blockquote><blockquote>1. <a href="https://www.appliedaicourse.com/">https://www.appliedaicourse.com/</a></blockquote><blockquote>2. <a href="https://www.frontiersin.org/articles/10.3389/fbuil.2020.00136/full">https://www.frontiersin.org/articles/10.3389/fbuil.2020.00136/full</a></blockquote><blockquote>3. <a href="https://github.com/ultralytics/yolov5">https://github.com/ultralytics/yolov5</a></blockquote><blockquote>4. <a href="https://constructible.trimble.com/construction-industry/deep-learning-in-construction-whats-possible-now-and-in-the-future%20%0d5">https://constructible.trimble.com/construction-industry/deep-learning-in-construction-whats-possible-now-and-in-the-future</a></blockquote><blockquote><a href="https://constructible.trimble.com/construction-industry/deep-learning-in-construction-whats-possible-now-and-in-the-future%20%0d5">5</a>. <a href="https://towardsdatascience.com/the-practical-guide-for-object-detection-with-yolov5-algorithm-74c04aac4843">https://towardsdatascience.com/the-practical-guide-for-object-detection-with-yolov5-algorithm-74c04aac4843</a></blockquote><h3><strong>Thank you for your time.</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e1ce8cc3d1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predictive Maintenance using Machine Learning]]></title>
            <link>https://medium.com/@Medini_2020/predictive-maintenance-using-machine-learning-3d8b62d5df8e?source=rss-3848f8289fcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d8b62d5df8e</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[predictive-maintenance]]></category>
            <dc:creator><![CDATA[Medini Kumar Bora]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 03:05:09 GMT</pubDate>
            <atom:updated>2022-06-27T03:05:09.524Z</atom:updated>
            <content:encoded><![CDATA[<h4>A smart way to monitor Machine health.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6TgZTtg8BtezQCTgymxhpg.png" /><figcaption>Source: <a href="https://www.makeuseof.com/tag/13-windows-diagnostics-tools-check-pcs-health/">https://www.makeuseof.com/tag/13-windows-diagnostics-tools-check-pcs-health/</a></figcaption></figure><p><strong>Table of content:</strong></p><blockquote>1 Why Predictive Maintenance is important in Company?</blockquote><blockquote>2. How to build a Predictive Maintenance Model using Machine Learning Technique?</blockquote><blockquote>3. List of advantages, challenges and limitations of adapting AI/ML in Predictive Maintenance.</blockquote><blockquote>4. Conclusion.</blockquote><blockquote>5. References.</blockquote><h4><strong>Let’s get started.</strong></h4><h3><strong>1. Why Predictive Maintenance is important in Company?</strong></h3><p>Maintenance costs are a major part of the total operating costs of all manufacturing or production companies. Depending on the specific industry, maintenance costs can represent between 15 and 60 percent of the cost of goods produced.</p><p>Industrial and process plants typically employ two types of maintenance management: run-to-failure or preventive maintenance.</p><p><strong>Run-to-Failure Management:</strong> It is a <strong>reactive management</strong> technique that waits for machine or equipment failure before any maintenance action is taken; however, it is actually a “<strong>no maintenance</strong>” approach of management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*BtpdOpXe32flf4hGUrGg2A.png" /><figcaption>Source: Microsoft Azure</figcaption></figure><p><strong>Preventive Maintenance:</strong> Preventive maintenance (PM) is the regular and routine maintenance of equipment and assets in order to keep them running and prevent any costly unplanned downtime from unexpected equipment failure. Below figure illustrates an example of the statistical life of a machine-train. The mean-time-to-failure (MTTF) or bathtub curve indicates that a new machine has a high probability of failure because of installation problems during the first few weeks of operation. After this initial period, the probability of failure is relatively low for an extended period. After this normal machine life period, the probability of failure increases sharply with elapsed time. In preventive maintenance management, machine repairs or rebuilds are scheduled based on the MTTF statistic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*-e7OkURlAB9WZPo0NX8LiA.png" /><figcaption>Figure : Typical bathtub curve (Source: Wikipedia (<a href="https://en.wikipedia.org/wiki/Bathtub_curve">https://en.wikipedia.org/wiki/Bathtub_curve</a>))</figcaption></figure><p>As the preventive maintenance cannot eliminate failure of an equipment due to complexity of machines: in a system with many components working together and influencing each other’s lifetime, how can we find the right moment when maintenance should be performed so that components are not prematurely replaced but the whole system still stays functioning reliably? Providing an answer to this question is the aim of <strong>Predictive Maintenance</strong> <strong>(PdM)</strong>, where we seek to build predictive models based on observed data such as vibration, pressure, voltage, meta data of equipment etc. that quantify the risk of failure for a machine in any moment in time and use this information to improve scheduling of maintenance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*crLlgNLbhKPPR2SFMa4zOA.png" /><figcaption>Source: Microsoft Azure</figcaption></figure><p><strong>Predictive maintenance is not a substitut</strong>e for the more traditional maintenance management methods. It is, however, a valuable addition to a comprehensive, total plant maintenance program. Where traditional maintenance management programs rely on routine servicing of all machinery and fast response to unexpected failures, a predictive maintenance program schedules specific maintenance tasks as they are actually required by plant equipment. It cannot eliminate the continued need for either or both of the traditional maintenance programs (i.e., run-to-failure and preventive). Predictive maintenance can, however, reduce the number of unexpected failures and provide a more reliable scheduling tool for routine preventive maintenance tasks.</p><h3><strong>2) How to build a Predictive Maintenance Model using Machine Learning Technique?</strong></h3><p>The economic potential of deployment of Artificial Intelligence has been widely highlighted by policy makers, technologists, academics and civil society around the world. In India, the National Strategy on Artificial Intelligence (NSAI) released by NITI Aayog in 2018 highlights the potential of AI to solve social challenges faced by its citizens in areas such agriculture, health and education, in addition to the pure economic returns that are brought by this technology.</p><p>Now a days most of companies are adopting Industry 4.0 Technologies for numerous numbers of benefits. Companies that invest in Industry 4.0 solutions can increase efficiency, boost collaboration between departments, enable predictive and prescriptive analytics, and allow people including operators, managers, and executives to more fully leverage real-time data and intelligence to make better decisions while managing their day-to-day responsibilities.</p><p>Now let us build a “<strong>Predictive Maintenance Model using Machine Learning Technique</strong>”.</p><p>Generally, six (06) steps are followed for a Machine Learning /Data Science project:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wP-uAGDAt9th0_-o6B1m1w.png" /><figcaption>Source: Google</figcaption></figure><h4><strong>2.1 Problem Description:</strong></h4><p>The business problem for this example is about predicting problems caused by component failures such that the question “<em>What is the probability that a machine will fail in the near future (within 1 day or 7 days) due to a failure of a certain component?</em>” can be answered.</p><p>Based on the health of an equipment in the past, future point of failure can be predicted in Predictive Maintenance. Thus, replacement of parts can be scheduled just before the actual failure.</p><p>Traditionally, predictive maintenance is being done using rule based techniques. With the advent of connected sensors (IoT), data from equipment is continuously collected and fed to Machine Learning based systems to predict its future health.</p><p>In the following sections, we go through the steps of implementing such a model which are feature engineering, label construction, training and evaluation. First, we start by explaining the data sources in the next section.</p><h4><strong>2.2 Data Collection and Exploratory data analysis (EDA):</strong></h4><p>The dataset is available at <a href="https://www.kaggle.com/datasets/arnabbiswas1/microsoft-azure-predictive-maintenance"><strong>Kaggle</strong></a> .This dataset was available as a part of Azure AI Notebooks for Microsoft Predictive Maintenance.</p><p>There are <strong>5 nos.</strong> of following CSV files downloaded from Kaggle:</p><ul><li><strong>Telemetry Time Series Data (PdM_telemetry.csv).</strong></li><li><strong>Error (PdM_errors.csv).</strong></li><li><strong>Maintenance (PdM_maint.csv).</strong></li><li><strong>Failures (PdM_failures.csv).</strong></li><li><strong>Metadata of Machines (PdM_Machines.csv).</strong></li></ul><p><strong>2.2.1 Let’s us do the EDA of the Telemetry Time Series Data (PdM_telemetry.csv):</strong></p><p>Telemetry is the automated communication processes from multiple data sources. It consists of hourly average of voltage, rotation, pressure, vibration collected from 100 machines for the year 2015.</p><p>The descriptive statistic of the dataset is given below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*1I-JGLc8Dnpptv0cj0th3w.png" /></figure><p>There are 100 nos. of Machines’ data captured in this csv file.</p><p><strong>Duration of the data:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*u2Kx9NxZKntQhZGbDRuAlw.png" /></figure><p>Telemetry data is hourly distributed between 1st Jan 2015 to 1st Jan 2016.</p><p><strong>Let’s plot Vibration of Machine ID 55 for 2015:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5hcfoHXicVMag3SlJlyPw.png" /></figure><p><strong>Observation:</strong></p><ol><li>The Highest vibration is 70 (approx.) for machine ID=55 in 2015.</li><li>The Lowest vibration is 15 (approx.) for machine ID=55 in 2015.</li></ol><p><strong>As an example, below is a plot of voltage values for machine ID=1 for the first half of 2015.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*2M4PSHim1WZ1DDX5sYNq5g.png" /></figure><p><strong>Observation:</strong></p><ol><li>The Highest voltage is 240 (approx.) for machine ID=1 during the period.</li><li>The Lowest voltage is 120 for machine ID=1 during the period.</li></ol><p><strong>Let’s plot the distribution of voltage across various months:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*RAiwXuMN-6dUP5XkSu6GNw.png" /></figure><p><strong>Observation:</strong></p><ol><li>It shows the voltage across Machines are not varying over month.</li><li>We can ignore the entry for 2016 since we have only one day data in 2016.</li></ol><p><strong>Let’s plot the distribution of Voltage across Machines:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*StwzFnoV4h0DX_WEU6egFw.png" /></figure><p><strong>Observation:</strong> The distribution of ‘volt’ looks like a normal distribution. However statistical test is to be carried out to verify the type of distribution.</p><p><strong>Let’s do statistical test (Anderson-Darling Test) for checking whether the ‘volt’ feature follows normal distribution or not</strong></p><p>H0 (null hypothesis) = The data set is drawn from a Normal/Gaussian distribution.<br> Significance level (alpha) to interpret the p-value = 5%</p><ul><li>p &lt;= alpha: reject H0, not normal.</li><li>p &gt; alpha: fail to reject H0, normal.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fp94OaPttKGhiqKh_CH_Tw.png" /><figcaption>Output of Anderson-Darling Test (Python)</figcaption></figure><p>From Anderson-Darling Test, we can conclude that ‘volt’ data is not following Normal/Gaussian distribution.</p><p><strong>Let’s plot QQ (Quantile Quantile) plot to verify distribution ‘volt’ feature are normal or not:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*kKNoJJcfbLiU1CkJLfovKA.png" /></figure><p>From the QQ plot, we can conclude that ‘volt’ data is not following Normal/Gaussian distribution.</p><p><strong>Let’s verify it by plotting histogram of other parameters:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*rgMXQKv1po5n5zztrRN-Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*mFce3uIG1KA5P_nyqzaCVw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Um23qWVePQ3vaSO_iwK6-A.png" /></figure><p><strong>Observation:</strong> The distribution of Vibration, rotation and pressure look like a normal distribution. However, after performed <strong>Anderson-Darling Test, </strong>it was observed that ‘rotate’, ‘pressure’ and ‘vibration’ data are not following Normal/Gaussian distribution.</p><p><strong>Let’s plot QQ plot to verify distribution ‘[‘rotate’, ‘pressure’, ‘vibration’]’ feature are normal or not:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*V_Cax1HCNqI2gY36pa1HAw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*bg4P4IU7yexaX90ntovxKw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*lcuCz0L1ooXh5VeCjKw7CA.png" /></figure><p><strong>Observation:</strong> From the above QQ plot, we can conclude that ‘rotate’, ‘pressure’ and ‘vibration’ data are not following Normal/Gaussian distribution.</p><h3><strong>2.2.2 Let’s us do the EDA of the Errors Dataset (PdM_errors.csv):</strong></h3><p>These are errors encountered by the machines while in operating condition. Since these errors don’t shut down the machines, these are not considered as failures. The error date and times are rounded to the closest hour since the telemetry data is collected at an hourly rate.</p><p>The histogram of errors is displayed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*EzF-lpMUMfyV4KnHakoG2Q.png" /></figure><p><strong>Observation:</strong></p><ol><li>Type 1 &amp; 2 errors are most frequent which is more than double the numbers of error-5.</li><li>Root cause analysis should be carried out to reduce the Type 1 &amp; 2 errors to reduce the maintenance time and cost.</li></ol><p><strong>Let’s check “How does the Machine to type of error distribution looks like?” :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PgGEFJfp5RpAwnMOUOX2Hg.png" /></figure><p><strong>Observation:</strong></p><ol><li>Machine ID-22 is the highest numbers of errors (around 60 nos) encountered where error-4 occurred around 15 times (highest as compared with other errors). The lowest error-5 occurred around 9 times.</li><li>Machine ID-77 is the lowest numbers of errors (around 20 nos) encountered where error-1 occurred around 10 times (highest as compared with other errors). The lowest error-5 occurred around 1 time.</li></ol><p><strong>Plot number of errors across Machines over days:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lncHNB-E31H27CE-ImUzzw.png" /></figure><p><strong>Observation:</strong></p><ol><li>The Highest number of errors (less than 25) are encountered across days.</li><li>In 2016 and 2015, one (1) number of error is encountered on a particular day.</li></ol><p><strong>Let’s plot the distribution of the number of errors per day across Machine:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*-uEYn8_FyuEgyin0Co6Egw.png" /></figure><p><strong>Observation:</strong> Around average 12 nos. errors are encountered per day across 100 nos. Machine.</p><h3><strong>2.2.3 Let’s us do the EDA of the Maintenance (PdM_maint.csv):</strong></h3><p>If a component of a machine is replaced, that is captured as a record in this dataset. Components are replaced under two situations:</p><ul><li>During the regular scheduled visit, the technician replaced it (Proactive Maintenance).</li><li>A component breaks down and then the technician does an unscheduled maintenance to replace the component (Reactive Maintenance). This is considered as a failure and corresponding data is captured under Failures. Maintenance data has both 2014 and 2015 records. This data is rounded to the closest hour since the telemetry data is collected at an hourly rate.</li></ul><p><strong>Histogram of replaced components:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*_UA5AjB11Ye1Odn78f7o1A.png" /></figure><p><strong>Observation:</strong> Four types of components are replaced almost in the same numbers (around 800 times each).</p><p><strong>Let’s plot number of maintenance records across months:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UqjoAMYoX5Rlx2MR1j5ADw.png" /></figure><p><strong>Observation:</strong></p><ol><li>Maintenance records are available from June’2014 to January’2016.</li><li>Number of components replaced in the year 2015 are considerably higher compared to the 2014.</li><li>In 2015, number of maintenance records are the highest in May and July month.</li><li>We can ignore the data for 2016 (since we have only one day’s data).</li></ol><p><strong>Let’s plot the number of Maintenance Records Across Machines:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*erHGll0C9MBMu4eFMtd1Yg.png" /></figure><p><strong>Observation:</strong></p><ol><li>Machine ID-66, 68 &amp; 70 are the highest number of Maintenance Records machines.</li><li>Machine ID-53 is the lowest number of Maintenance Record machine.</li></ol><p><strong>Let’s us plot the number of Maintenance Issues raised per day:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_o8jl6Abf2VmnkW7vOgg9Q.png" /></figure><p><strong>Observation:</strong> There is a drastic difference between the number of maintenance records in 2014 vs 2015.</p><h3><strong>2.2.4 Let’s us do the EDA of the Machines (PdM_Machines.csv):</strong></h3><p>This data set includes some information about the machines: model type and age (years in service).</p><p>Histogram of Metadata of Machines is displayed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*n15C4CaRejO8vkWZ927xcA.png" /></figure><p><strong>Observation:</strong></p><ol><li>For machine age having 2.5 years, numbers of model-3 and model-4 have the highest.</li><li>For machine age having around 10 years, numbers of model-2 and model-4 have the highest.</li><li>For machine age having around 20 years, numbers of model-1 is the less quantity as compare to other models. Quantity of Model-2, model-3 and model-4 are almost same.</li></ol><p><strong>Plotting Number of Errors across Machine Age:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*qL8cuqCC4gkIzyCgZmUwYw.png" /></figure><p><strong>Plotting Age vs Number of Maintenance Records:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*ZZgp011PRlpbG5QNM6D4VA.png" /></figure><p><strong>Plotting Age vs Number of Failure Records:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*lqByLr3HouzK1p_V7t_0gA.png" /></figure><p><strong>Observation:</strong> From the above three plots, it appears only Number of Failures is slightly correlated with Age. Let’s verify it with a correlation value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*X0uKlch1NJFmCdic1-fRhg.png" /></figure><p><strong>Observation:</strong> From the above correlation values, it is observed that nos. of failure is correlated with machine age and nos. of errors.</p><h3><strong>2.2.5 Let’s us do the EDA of Failures (PdM_failures.csv):</strong></h3><p>Each record represents replacement of a component due to failure. This data is a subset of Maintenance data. This data is rounded to the closest hour since the telemetry data is collected at an hourly rate.</p><p>Histogram of component failure is show below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*yMw74bfv4H8kD8XzfCRSzA.png" /></figure><p><strong>Observation:</strong> The most failures happen due to component-2. And number of failures of component-2 is more than double the failure of component-3. So, it is better to find the root cause of this failure to minimize the equipment failure cases.</p><h3>2.2.6 Let’s plot t-SNE:</h3><p>t-Distributed Stochastic Neighbor Embedding (t-SNE) is an unsupervised, non-linear technique primarily used for data exploration and visualizing high-dimensional data. In simpler terms, t-SNE gives us a feel or intuition of how the data is arranged in a high-dimensional space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*WsI5YShFT_Icaf7EawMrkQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*GiJo3nbdGawzPpJwV8CJ2A.png" /></figure><p><strong>Observation on t-SNE plot:</strong></p><ol><li>With different perplexity and numbers of iteration, t-SNE plot are almost stable.</li><li>From the above t-SNE plot, it is observed that failure due to different components are almost separated in different clusters, so ML may be applied to predict the component failure of machine.</li></ol><h3><strong>2.2.7 Overall Summary of EDA:</strong></h3><p>All the specific observations are mentioned above under each plot and findings. Overall summary of EDA is stated below:</p><p>1. There are 5 numbers of CSV files are downloaded from Kaggle.</p><p>2. Performed statistical test (Anderson-Darling Test and QQ plot) on Telemetry Time Series Data set, it is observed that the distribution of ‘volt’, ‘rotate’,’ pressure’ and ‘vibration’ are not following Normal/Gaussian distribution in spite of looks like normal distribution.</p><p>3. Average 12 numbers (approx.) of errors are encountered per day across 100 numbers Machine.</p><p>4. There are total 3286 numbers of maintenance records available in Maintenance data set. The data set have 04 (four) types of components mentioned and those are replaced almost in the same numbers (around 800 times each).</p><p>5. The highest number of Maintenance Records are found in Machine ID-66, 68 &amp; 70. Machine ID-53 is the lowest number of Maintenance Record machine.</p><p>6. The age of Machines is distributed between 0 to 20 years. The median age is 12.5 years (approx.). Around 75% of machines age is less than 16 years and around 25% of machines age is less than 7 years.</p><p>7. After computing correlation values, it is observed that nos. of failure are correlated with machine age and nos. of errors.</p><p>8. There are total 761 numbers of failures are stated in the Failures data set. The most failures happened due to component-2. And number of failures of component-2 is more than double the failure of component-3. So, it is better to find the root cause of this failure to minimize the equipment failure cases in future.</p><p>9. From the t-SNE plot, it is observed that failure due to different components are almost separated in different clusters, so Machine Learning (ML) may be applied to predict the component failure of machine before it occurs.</p><h4>End of EDA……………</h4><h3><strong>2.3 First cut approach to the problem:</strong></h3><p><strong>Objective of this step to predict the failure of machines’ components (comp1, comp2 etc.) based on available data without performing feature engineering and hyper-parameter tuning of model.<br> Steps to be followed:</strong></p><ol><li>Load all the data sets.</li><li>Perform one hot encoding for categorical attributes.</li><li>Merger all the data sets after step no-2.</li><li>Split the data sets into train, cross validation and test set.</li><li>Apply Xgboost classifier and random forest classifier on train data set.</li><li>As the dataset is highly imbalance, so Precision, Recall and Confusion matrix will be computed to validate the performance of models.</li></ol><p>All the above listed tasks have been completed and shared in GitHub repository (link shared below).</p><h3><strong>Performance metric:</strong></h3><p>Precision, Recall and Confusion will be computed to verify the model performance.</p><p><strong>What is Precision?</strong></p><p>Precision is a metric that quantifies the number of correct positive predictions made.</p><p>It is calculated as the ratio of correctly predicted positive examples divided by the total number of positive examples that were predicted.</p><ul><li>Precision = TruePositives / (TruePositives + FalsePositives)</li></ul><p>The result of Precision is a value between 0.0 (worst model) and 1.0 (best model).</p><p><strong>What is Recall?</strong></p><p>Recall is a metric that quantifies the number of correct positive predictions made out of all positive predictions that could have been made.</p><p>Unlike precision that only comments on the correct positive predictions out of all positive predictions, recall provides an indication of missed positive predictions.</p><ul><li>Recall = TruePositives / (TruePositives + FalseNegatives)</li></ul><p>The result of Recall is a value between 0.0 (worst model) and 1.0 (best model).</p><p>Let’s make this calculation concrete with below example.</p><p>As in the previous section, consider a dataset with 1:10 minority to majority ratio, with 100 minority examples and 1,000 majority class examples.</p><p>A model makes predictions and predicts 80 of the positive class predictions correctly and 20 incorrectly. We can calculate the recall for this model as follows:</p><ul><li>Recall = TruePositives / (TruePositives + FalseNegatives)</li><li>Recall = 80 / (80 + 20)</li><li>Recall = 80 / 100</li><li>Recall = 0.8</li></ul><p>This means our model identified 80% of positive examples (minority class) correctly.</p><h3>What is a Confusion Matrix?</h3><p>A confusion matrix is a summary of prediction results on a classification problem.</p><p>The number of correct and incorrect predictions are summarized with count values and broken down by each class. This is the key to the confusion matrix.</p><p>For a binary classification problem, we would have a 2 x 2 matrix as shown below with 4 values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*5LWV0d2vlXJB6MtmVRyWzg.png" /></figure><p>Where,</p><p>TP = True Positive, TN = True Negative, FP = False Positive and FN = False Negative.</p><p><strong>Performance metric of “Xgboost Classifier” and Random Forest Classifier” model is given below:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*op5qGae_23CcTaWJaWavRA.png" /></figure><p><strong>Observations on First cut approach:</strong></p><p>1. The Recall value of Xgboost and Random Forest model are satisfactory without performing the feature engineering and hyper-parameter tuning.</p><p>2. During EDA process, it is observed that this problem can be modeled as time series problem.</p><p>3. To increase the performance of the ML models, it is better to perform time series feature engineering technique and do hyper-parameter tuning in the next step.</p><h4>End of First cut approach …………</h4><h3><strong>2.4 Feature Engineering</strong> <strong>(Part-1):</strong></h3><p>During EDA of the data sets it is observed that data sets are having time-stamps.<br> So, we need to create new features relevant to time series analysis for our predictive model. The first step in predictive model is feature engineering which requires bringing the different data sources together to create features that best describe a machine’s health condition at a given point in time. In the next sections, several feature engineering methods will be used to create features based on the properties/attributes/features of each data source.</p><h4>2.4.1 Lag Features from Telemetry data</h4><p>Lag features are the classical way that time series forecasting problems are transformed into supervised learning problems.</p><p>Telemetry data comes with time-stamps which makes it suitable for calculating lagging features. A common method is to pick a window size for the lag features to be created and compute rolling aggregate measures such as mean, standard deviation, minimum, maximum, etc. to represent the short term history of the telemetry over the lag window. In the following, we will create only <strong>2 nos features ‘min and max’ of the telemetry data </strong>over the last 3 hours lag window will be calculated for every 3 hours with pandas’s function “resample”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*bqNFXqftFsCwKsNa98FKeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*_wYPm0J8HdZM9HmAhvUcNA.png" /></figure><p><strong>2.4.2</strong> <strong>Lag Features from Errors dataset:</strong></p><p>Like telemetry data, errors data set comes with timestamps. An important difference is that the error IDs are categorical values and should not be averaged over time intervals like the telemetry measurements. Instead, we count the number of errors of each type in a lagging window. We begin by reformatting the error data to have one entry per machine per time at which at least one error occurred:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*_SC-8imEHnXkBdZB_LKCxA.png" /></figure><p>Now, we will add feature ‘datetime’ and ‘machineID’ from telemetry data set and add blank entries for all other hourly timepoints (since no errors occurred at those times):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/949/1*ryO7oR3OWpROmKw-_fNkfw.png" /></figure><p><strong>Finally, we can compute the total number of errors of each type over the last 24 hours, for timepoints taken every 3 hours:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njQQ0OiDYfwftWyNK8RQKw.png" /></figure><h4>2.4.3 Count nos. of Days Since Last Replacement of component from Maintenance data:</h4><p>A crucial data set in this example is the maintenance records which contain the information of component replacement records. Possible features from this data set can be, for example, the number of replacements of each component in the last 3 months to incorporate the frequency of replacements.</p><p>The Descriptive Statistic of the numbers of days since last component replacement for each component type as features is given below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*KTpgQyGcmegUTnsTId2ajg.png" /></figure><h4>2.4.4 Machine Features:</h4><p>The machine features can be used without further modification. These include descriptive information about the type of each machine and its age (number of years in service). If the age information had been recorded as a “first use date” for each machine, a transformation would have been necessary to turn those into a numeric value indicating the years in service.</p><h4>2.4.5 Label (output) Construction:</h4><p>When using multi-class classification for predicting failure due to a problem, labelling is done by taking a time window prior to the failure of an asset and labelling the feature records that fall into that window as “about to fail due to a problem” while labelling all other records as “normal”.</p><p><strong>Our aim is to predict whether a machine will fail in the next 24 hours due to a certain component failure (component 1, 2, 3, or 4) or not</strong><em>.</em> Below, a categorical failure feature is created to serve as the label. All records within a 24 hours window before a failure of component 1 have failure=comp1, and so on for components 2, 3, and 4; all records not within 24 hours of a component failure have failure=none.</p><h4>2.4.6 Modelling:</h4><p>After the feature engineering and labelling steps, below, modelling process is being described.</p><h4>Training, Validation and Testing stage:</h4><p>When working with time-stamped data as in this example, record partitioning into training, validation, and test sets should be performed carefully to prevent overestimating the performance of the models.</p><p>To obtain an accurate assessment of a predictive model’s performance, it is recommended to train on older records and validating/testing using newer records.</p><p>Following steps performed before model training process:</p><ul><li>All the featured dataset has been saved in “preprocessed.csv” for ease of analysis.</li><li>Splited the “preprocessed.csv” with Sklearn “train_test_split” function with “shuffle=False”</li></ul><h4>Apply model XGBClassifier:</h4><p>After training the XGBClassifier model, following performance metric evaluated on Test Data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*0LkdStpJr0O1ZgzIMhTgAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*TPUmoq4r82Wq5tj1bwrTzA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*0NuUjPlDAq5yGksarhUhcA.png" /></figure><p>Following table is prepared based on the performance of “Xgboost” model in earlier First Cut approach step and after Feature Engineering (part-1):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KGLsa77NtbrmfasnIPWIgQ.png" /></figure><h3>Observation:</h3><p>We are more concerned about the miss-classified data points/even predicted by our predictive model, so we will monitor the ‘Recall’ metric of the computed model. If recall value of comp1 is 0.80, this means our model identified 80% of comp1 failure correctly. From the above table, it is observed recall value of all the failure components has increased a lot after creating new features (without performing hyper-parameter tuning).</p><h3><strong>2.5</strong> <strong>Feature Engineering</strong> <strong>(Part-2):</strong></h3><p>In this section, we will create the following additional features over the last 3 hours lag window to improve the model performance for telemetry features:</p><ul><li>Minimum values.</li><li>Maximum values.</li><li>Mean values.</li><li>Standard deviation.</li></ul><p><strong>For capturing a longer-term effect, 24 hours lag features will be calculated as below:</strong></p><ul><li>Minimum values.</li><li>Maximum values.</li><li>Mean values.</li><li>Standard deviation.</li></ul><p><strong>Now, the above new columns of the feature datasets will be merged to create the final features set from telemetry.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EICL5ou5ngms5vYNoST86Q.png" /></figure><p>The Descriptive Statistic of the final dataset after performing FE is displayed below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*11dcTNeGvv-b7dknSp55JQ.png" /></figure><p>Following table is prepared based on the performance of “Xgboost” model in earlier First Cut approach step, Feature Engineering (part-1) and Feature Engineering (part-2):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNq2HDboTNLqGG1wF8jcEw.png" /></figure><h4>Observation:</h4><p>From the above table, it is observed recall value of all the failure components has increased a lot after creating new features (without performing hyper-parameter tuning). This predictive model can predict the failure due to comp2 and comp3 perfectly. However, this model can predict around 98% correctly for comp2 and comp3.</p><h4>End of FE………</h4><h3><strong>2.6 Model Training:</strong></h3><p><strong>2.6.1 Linear Support Vector Classification (LinearSVC) with Randomized search on hyper parameters tuning.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*tCLi7KUFLBhkoSz9ShQsxQ.png" /></figure><p>Best parameter of LinearSVC model after above hypermeter tuning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*WdvQZd3k6yyUfFfiej8kTw.png" /></figure><p><strong>Only showing the Recall Matrix:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*dTSJ7G6qUAdXr34I57QA2w.png" /></figure><p><strong>2.6.2 Extra Trees Classifier with Randomized search on hyper parameters tuning.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*8l-cvXiH9VCG-2NWaagDIg.png" /></figure><p>Best parameter of Extra Trees Classifier model after above hypermeter tuning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*M1BhKOd5u_6Ljau4_P9oOQ.png" /></figure><p><strong>Only showing the Recall Matrix:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*MEyGXORNw8F8MveK7t_MyQ.png" /></figure><h4>2.6.3 Apply StackingClassifier with the above tuned models after Randomized search on hyper parameters tuning.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*OPBjIFcucWwLOCikiNY9-g.png" /></figure><p><strong>Only showing the Recall Matrix:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIigHIJmRQaKpBB8fLoDWQ.png" /></figure><h4>2.6.4 Apply model Random Forest Classifier with Randomized search on hyper parameters tuning.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*7fz1B4Si1BlDZudA9eLDxA.png" /></figure><p>Best parameter of Random Forest Classifier model after above hypermeter tuning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZwXGn1CXgMNRXF_vLGsWPw.png" /></figure><p><strong>Only showing the Recall Matrix:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*sLhVerJgkAbcu9O_LiWWUQ.png" /></figure><h4>2.6.5 XgBoost Classification with best hyper parameters using Random Search:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0SCGFYem3bp6pbJa7l3SBg.png" /></figure><p>Best parameter of XgBoost model after above hypermeter tuning:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ne0pLelSyYQHgCbUaC-hbA.png" /></figure><p><strong>Only showing the Recall Matrix:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6mAAZNTF_-gCbbC8kUEKHw.png" /></figure><h3>2.7 Model Evaluation and Comparison:</h3><p>In predictive maintenance, machine failures are usually rare occurrences in the lifetime of the assets compared to normal operation. This causes an imbalance in the label distribution which usually causes poor performance as algorithms tend to classify majority class examples better at the expense of minority class examples as the total misclassification error is much improved when majority class is labelled correctly. This causes low recall rates although accuracy can be high and becomes a larger problem when the cost of false alarms to the business is very high.</p><p>In predictive maintenance, we are often most concerned with how many of the actual failures were predicted by the model, i.e. the model’s recall. (Recall becomes more important as the consequences of false negatives — true failures that the model did not predict — exceed the consequences of false positives, viz. false prediction of impending failure.) Below, we compare the recall rates for each failure type for the above models. For example, if recall rates for all components failure as well as no failure are all above 96%, it means the model is able to capture above 96% of the failures correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-m4CQdnOVFEb5gJ-rOQug.png" /></figure><h4>Observation:</h4><p>From the above comparison table, the last model “<strong>XgBoost with best hyper parameters tuning</strong>” will be a good model for prediction of component failure in advance (next 24 hours). This model can predict the failure due to comp2 and comp3 and state of ‘none’ perfectly. However, this model can predict the failure around 97% correctly for comp1 and comp4.</p><h4>End of Model Training………</h4><h3><strong>2.8 Building a Web App with Streamlit</strong></h3><p>A Web application (Web app) is created with Streamlit (no front‑end experience required) to predict a machine’s health whether a machine will fail in the next 24 hours due to a certain component failure (component 1, 2, 3, or 4) or not through a browser interface. And the same Web app is deployed in Streamlit Cloud.</p><p>Link to open the <a href="https://share.streamlit.io/medinikb/streamlit_cloud/main/app.py"><strong>Web app.</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P8iy7Cm7JuRAC7mFUmXsxQ.gif" /><figcaption>Web app running on Streamlit Cloud</figcaption></figure><p>All the code is available at <a href="https://github.com/medinikb/Predictive-Maintenance-using-ML">GitHub link.</a></p><p><a href="https://github.com/medinikb/Predictive-Maintenance-using-ML">GitHub - medinikb/Predictive-Maintenance-using-ML: Predictive Maintenance using Machine Learning</a></p><blockquote><strong>3. List of advantages, challenges and limitations of adapting AI/ML in Predictive Maintenance.</strong></blockquote><p>List of significant advantages of adapting AI/ML in Predictive Maintenance (PdM) in companies.</p><ul><li><strong>Improving operating equipment’s reliability and reducing maintenance expenses: </strong>AI/ML solutions provide smart tools that are used for estimating the potential breakdowns before occurring. This feature allows companies to prepare an effective plan for maintenance work and prioritize their focus on critical equipment, based on a high possibility of failure. As a result, companies can reduce maintenance expenses where unnecessary work can be eliminated by prioritizing planned maintenance based on a failure forecast.</li><li><strong>Improving efficiency of operating equipment: </strong>AI/ML solutions maximize the utilization of operating equipment and enhance the operating unit productivity through ensuring more reliable and flexible operation. Data modelling gives a deep indication for several parts of operating equipment, which helps companies in maintaining the production performance and establishes a mechanism in improving the operating equipment lifespan.</li><li><strong>Reducing environmental impact: </strong>AI/ML solutions can reduce the environmental impact associated with leak detection including oil and gas companies. Adapting such solutions help companies to detect the potential leaks in petrochemical pipelines before occurring.</li><li><strong>Leverage past and continuous data.</strong></li></ul><p>List of various challenges and limitations during adaption of AI/ML in Predictive Maintenance in companies.</p><p>If predictive maintenance is so great, why isn’t everyone doing it? Well, for one, there needs to be a relevant and feasible use case. Predictive maintenance is also much harder than either of the two other simpler maintenance strategies mentioned earlier. Many of these difficulties can be traced back to the data to work with. A lot of times is consumed in “big data” processing. Big data is usually characterized by various “v’s”, including volume, variety, velocity, veracity, and value.</p><p><strong>Volume: </strong>Each piece of equipment might have dozens of sensors, each of which is constantly monitoring the machine over its lifetime. A single Boeing jet, for instance, generates as much as 10 terabytes of data during 30 minutes of flight time. Effectively processing and analyzing the sheer amount of data can quickly become a daunting task.</p><p><strong>Variety: </strong>Sensors might be recording data in different formats or at different time scales. This is just for one piece of equipment. It is quite common task to deal with different models or different types of machines in a larger plant.</p><p><strong>Velocity: </strong>Data may be generated quickly, leading to problems of how it can be extracted signals or aggregate these readings over time and analyze this data in real time.</p><p><strong>Veracity: </strong>Data can often be of dubious quality, and some data may be missing. Sensor data is often noisy, and sensors themselves can easily become defective.</p><p><strong>Value: </strong>There may (or may not!) be useful information in the data that can be extracted to help inform decision making. This is what AI/ML Engineers want to uncover!</p><p>Beyond these big data challenges, there might be some additional challenges. AI/ML Engineers may be dealing with data of high dimensionality with complex correlations between variables. Reasoning in these high dimensional spaces is difficult and uncovering these correlations can be next to impossible for a human. This is where machine learning can help.</p><blockquote><strong>If a company is adopting Industry 4.0 Technologies, then what are the factors to be considered to use AI/ML in Predictive Maintenance and what are the data to be maintained/required for analysis.</strong></blockquote><p><strong>Gathering Data: </strong>Like in most AI/ML projects, it is required to have enough historical data to help us understand previous failures.</p><p>Ideally, both data scientists/ML Engineers and domain experts involved in the data collection process to ensure that the data gathered is suitable for the model to be built.</p><p>Depending on the characteristics of the system/machine and on the data available, it becomes possible to answer these key questions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rv80AyqfTkJbGNXNhdmzLg.png" /><figcaption>Source: <a href="https://towardsdatascience.com/how-to-implement-machine-learning-for-predictive-maintenance-4633cdbe4860">https://towardsdatascience.com/how-to-implement-machine-learning-for-predictive-maintenance-4633cdbe4860</a></figcaption></figure><p>By adding multiple types of data to the models: images, audio or video, on top of existing sensor data, for an enhanced dataset that powers a comprehensive predictive model.</p><h4><strong>PdM process and technologies to drive PdM is shown in below Figure :</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*n91v5PzqJvTeJiIxlJx5Wg.png" /><figcaption><strong>Source: Sustainability 2020, 12, 8211; doi:10.3390/su12198211</strong></figcaption></figure><h3>4. Conclusion:</h3><p>In this blog, the steps of implementing a predictive maintenance model is provided using an example scenario where the goal is to predict failures due to certain components of a machine within 24-hour. Typical steps of predictive maintenance such as feature engineering, labelling, training and evaluation are explained using the example data sets. Here, it is also listed the major advantage, limitation of list of various challenges during adaption of AI/ML in Predictive Maintenance in companies. Predictive models using machine learning technique may be built both using Python packages and cloud computing services provided by Amazon Web Service (AWS), Google Cloud Platform (GCP), Microsoft Azure etc. for numerous number of benefits.</p><h3><strong>5. References:</strong></h3><ol><li><a href="https://www.appliedaicourse.com/">https://www.appliedaicourse.com/</a></li></ol><p>2. <a href="https://www.kaggle.com/datasets/arnabbiswas1/microsoft-azure-predictive-maintenance">https://www.kaggle.com/datasets/arnabbiswas1/microsoft-azure-predictive-maintenance</a></p><p>3.<a href="https://github.com/vikasgupta1812/Machine_Learning/blob/master/Predictive%20Maintenance%20Modelling%20Guide%20Python%20Notebook.ipynb">https://github.com/vikasgupta1812/Machine_Learning/blob/master/Predictive%20Maintenance%20Modelling%20Guide%20Python%20Notebook.ipynb</a></p><p>4. Book: AN INTRODUCTION TO PREDICTIVE MAINTENANCE (R. Keith Mobley)</p><p>5. Research paper : “A Survey of Predictive Maintenance: Systems, Purposes and Approaches” (https://arxiv.org/pdf/1912.07383.pdf )</p><p>6. <a href="https://medium.com/bigdatarepublic/machine-learning-for-predictive-maintenance-where-to-start-">https://medium.com/bigdatarepublic/machine-learning-for-predictive-maintenance-where-to-start-</a> 5f3b7586acfb</p><p>7. <a href="https://www.arcweb.com/blog/machine-learning-adaption-predictive-maintenance-applications">https://www.arcweb.com/blog/machine-learning-adaption-predictive-maintenance-applications</a></p><p>8. <a href="https://datatonic.com/insights/machine-learning-predictive-maintenance/">https://datatonic.com/insights/machine-learning-predictive-maintenance/</a></p><p>9. <a href="https://medium.com/swlh/machine-learning-for-equipment-failure-prediction-and-predictivemaintenance-">https://medium.com/swlh/machine-learning-for-equipment-failure-prediction-and-predictivemaintenance-</a> pm-e72b1ce42da1</p><p>10. c) <a href="https://medium.com/codex/predictive-maintenance-in-industry-4-0-applications-and-advantages-">https://medium.com/codex/predictive-maintenance-in-industry-4-0-applications-and-advantages-</a> 72bd7383823e</p><p>11. <a href="https://machinelearningmastery.com/basic-feature-engineering-time-series-data-python/">https://machinelearningmastery.com/basic-feature-engineering-time-series-data-python/</a></p><p>12. <a href="https://stackoverflow.com/questions/45370666/what-are-pandas-expanding-window-functions">https://stackoverflow.com/questions/45370666/what-are-pandas-expanding-window-functions</a></p><p>13. <a href="https://towardsdatascience.com/using-the-pandas-resample-function-a231144194c4">https://towardsdatascience.com/using-the-pandas-resample-function-a231144194c4</a></p><h3>Thank you for your time.</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d8b62d5df8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>