SlideShare uma empresa Scribd logo
1 de 27
Baixar para ler offline
Smart Manufacturing 4.0
RISHABH GARG
BITS - PILANI I GOA
IIT Delhi - AIA
Fault Detection of
Smart Lathe Machine
Using Python
Rishabh Garg
BITS - PILANI
K.K. Birla Goa Campus
IIT Delhi - AIA Foundation For Smart Manufacturing
.………………
Best Project Award
Samarth Udyog 4.0
Indian Institute of
Technology Delhi
Department of Heavy Industry
Ministry of HI & PE
Automation Industry
Association
A Government of India
Initiative Hosting Institute Government of India Industry Partner
1
3
A
U
G
U
S
T
2
0
2
1
Fault Detection of Smart Lathe
Machine using Python
Rishabh Garg
BITS - PILANI | GOA
IITD-AIA Foundation For Smart Manufacturing
Challenge
RISHABH GARG | BITS
Project Background
Problem Statement
 Machines having large investments in capital also
deploy high skilled labor for active operation and
periodic maintenance. The challenge for companies is to
protect this investment by ensuring high availability.
 Unpreceded breakdowns in machinery and lack of
skilled labor becomes a major challenge for
manufacturing industries. Customer orders get delayed
and company loses money
 Solution: Deploy Machine Learning models and Real
time dashboards and Predictive maintenance that
constantly monitor the health of the machine and the
associated tools.
RISHABH GARG | BITS
Project Background
Physical Equipment on which it is implemented
 No specific hardware required, apart from a
regular PC.
 GPUs can be used for faster training and results.
 OS: Ubuntu – 18.04 LTS and Google
Collaboratory (with GPUs)
Unique challenge
Development of accurate model despite high bias and
limited dataset.
RISHABH GARG | BITS
LOREM IPSUM DOLOR SIT AMET,
CONSECTETUER ADIPISCING ELIT. 12
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Maecenas porttitor congue massa. Fusce posuere, magna
sed pulvinar ultricies, purus lectus malesuada libero, sit
amet commodo magna eros quis urna.
7
Solution
RISHABH GARG | BITS
Objective
 Predict the instantaneous RMS value of vibrations
of a Smart Lathe Machine using the traditional
input parameters
 Use the prediction for classification of the
machine state into Normal and Faulty behavior.
Objective
 Display the prediction results through Streamlit
Web App.
 Implement the API endpoints using Flask.
 Deployment to Heroku using Docker containers.
RISHABH GARG | BITS
Methodology
Exploration of data
 Data extraction from CSV files, Data preparation
and filtering
 Representation of data and its analysis (kurtosis,
skewness etc. for appropriate model selection)
Machine Learning Model Development
Developed some sample machine learning models for
checking accuracy and other metrics like sensitivity
or positivity rate. Research was done on the models
for hyper-parameter tuning etc.
RISHABH GARG | BITS
Methodology
Flask
Model was packed and API implementation was done
using Flask
Deployment through Docker containers
Streamlit
Necessary pathways for connection with dashboard
using Streamlit
Deployment to Heroku was done using CLI
RISHABH GARG | BITS
Implementation
Data Extraction
 Dataset provided from the FSM Lab consisted of
raw data which was directly taken from the DAC
device connected to the accelerometer.
 For machine learning models to be built, first the
required input parameters were identified.
 RMS value of vibration was the best output
parameter for predicting the machine state.
RISHABH GARG | BITS
Implementation
Preparation of raw data
 Using Python OS library, the vibration data stored in
CSV files was aggregated and summarized in an Excel
file.
 60 One-Minute Experiments used as the training data for
the linear regression model.
 Redundant columns such as Dates, Timestamps, Serial
numbers, Status etc. were removed and only numeric
columns were retained.
 RMS buffer values and Actual RMS values were used as
output variables.
RISHABH GARG | BITS
Implementation
Preparation of raw data
 One-Minute experiments were used to predict the
initial level of vibrations.
 Full run experiments were used to determine the
slope of RMS values with time.
 RMS value were compared against the value
provided by the line at a given time for
classification.
RISHABH GARG | BITS
Implementation
Preparation of raw data
 Note: The data was very biased due to low occurrences
of failure in the Lathe machine. This affected the
accuracy of the model in the later stages.
RISHABH GARG | BITS
Implementation
Training the model
 Cubic SVM and Linear Regression models were
compared for performance using MAE (Mean Absolute
Error), RMSE (Root Mean Squared Error) metrics.
 Linear Regression model was chosen out of the two due
to higher dimensionality of data.
 The threshold value of RMS vibration came out to be
around 372.86 for the classifier model.
 Logistic Regression was used to implement the classifier
layer of model.
 The predicted / actual RMS values were fed into the
classifier for prediction of the machine state.
RISHABH GARG | BITS
Implementation
Testing the model
 After training both the models, the test dataset, generated
using
 Scikit learn library was fed the model and the predictions
were stored.
 The models were also
evaluated based on a few
metrics from the scikit
learn library like MAE,
R2, RMSE (for
regression) and F1 score
(for classification).
RISHABH GARG | BITS
Implementation
Deployment
 Heroku was used for the deployment of the final
deliverable product which was connected to a Git
repository for storage of the codebase.
 A Docker file, Procfile and requirements.txt file
was required for the appropriate stack selection by
Heroku.
 Streamlit was used for creation of the deployed
frontend webapp and Flask was used to make the
required API calls.
RISHABH GARG | BITS
Implementation
Deployment
RISHABH GARG | BITS
20
Attainments
RISHABH GARG | BITS
Innovations
 Real time monitoring of the input parameters,
instantaneous and accurate prediction of RMS values
of vibration data along with display of associated
metrics was the biggest industrial level achievement of
this product.
 One can also
select multiple
models for
prediction in
the web app
along with
intuitive
visualization.
RISHABH GARG | BITS
Innovations
 This model, despite the associated bias, provides
decent predictions due to proper choice of degree of
SVR (here, behaves like Linear regressor). Tunable
parameters have been added as sidebars in the webapp
for customized accuracy as per the use case.
RISHABH GARG | BITS
Outcome
Final deliverable product
The following applications and repositories were made
on the completion of the internship project for
addressing the problem statement:
 The app was deployed to Heroku as a frontend
webapp: https://streamlitappml.herokuapp.com/
 Source code for the Base models, Docker files and
Flask: https://github.com/rishabhgargdps/IITD_ML
RISHABH GARG | BITS
Outcome
Final deliverable product
Source code for the Front end application:
https://github.com/rishabhgargdps/IITD_streamlit
Heroku app for customized models:
https://streamlitml.herokuapp.com/
Heroku flask app that contains the API, and Docker
containers: https://svmml2.herokuapp.com/
The codebase of the project was stored in Git Version
control systems (here, GitHub).
RISHABH GARG | BITS
Scalability
 This model can be used for prediction of RUL of any
modern / traditional machine / tools if we can
identify the most relevant input and output
parameters pertaining to the quality of the product
and the life of the machine.
 The vibration data can be collected from the
accelerometer attached to the tool holder which can
be sent to the cloud for data storage using the
Ethernet. There it can be processed and used for
automated prediction.
 Additional parameters like temperature, humidity of
environment can be added for even better
predictions. Thermo-hygrometers (DHT-11) can be
used in the rooms for temperature and humidity
monitoring.
RISHABH GARG | BITS
Scalability
 One can also adjust the model for false positives /
negatives as per need in the case of legacy
hardware / biological equipment manufacturing.
 The operator can be alerted using a web monitor
service (e.g. Distil web monitor) running on the
web app through an alarm sound, email
notification etc.
 Pre-trained neural nets or decision trees in a
random forest can be used if we cannot acquire a
large dataset and a similar use case has already
been solved for a large dataset.
RISHABH GARG | BITS
Thank you !

Mais conteúdo relacionado

Mais procurados

Predicting model for prices of used cars
Predicting model for prices of used carsPredicting model for prices of used cars
Predicting model for prices of used carsHARPREETSINGH1862
 
Machine Learning Project
Machine Learning ProjectMachine Learning Project
Machine Learning ProjectAbhishek Singh
 
A Simple Introduction to Neural Information Retrieval
A Simple Introduction to Neural Information RetrievalA Simple Introduction to Neural Information Retrieval
A Simple Introduction to Neural Information RetrievalBhaskar Mitra
 
Prediction of Used Car Prices using Machine Learning Techniques
Prediction of Used Car Prices using Machine Learning TechniquesPrediction of Used Car Prices using Machine Learning Techniques
Prediction of Used Car Prices using Machine Learning TechniquesIRJET Journal
 
Adversarial Attacks and Defense
Adversarial Attacks and DefenseAdversarial Attacks and Defense
Adversarial Attacks and DefenseKishor Datta Gupta
 
RFID and its applications
RFID and its applicationsRFID and its applications
RFID and its applicationsNaveen Kumar
 
Credit Card Fraud Detection Using Unsupervised Machine Learning Algorithms
Credit Card Fraud Detection Using Unsupervised Machine Learning AlgorithmsCredit Card Fraud Detection Using Unsupervised Machine Learning Algorithms
Credit Card Fraud Detection Using Unsupervised Machine Learning AlgorithmsHariteja Bodepudi
 
Nimesh thakor
Nimesh thakorNimesh thakor
Nimesh thakornn7046
 
Deep Learning Explained
Deep Learning ExplainedDeep Learning Explained
Deep Learning ExplainedMelanie Swan
 
Project report on IR based vehicle with automatic braking and driver awakenin...
Project report on IR based vehicle with automatic braking and driver awakenin...Project report on IR based vehicle with automatic braking and driver awakenin...
Project report on IR based vehicle with automatic braking and driver awakenin...Neeraj Khatri
 
Prediction of Car Price using Linear Regression
Prediction of Car Price using Linear RegressionPrediction of Car Price using Linear Regression
Prediction of Car Price using Linear Regressionijtsrd
 
Rfid based attendance system
Rfid based attendance systemRfid based attendance system
Rfid based attendance systemA Jay Vardhan
 
Predictive Maintenance Using Recurrent Neural Networks
Predictive Maintenance Using Recurrent Neural NetworksPredictive Maintenance Using Recurrent Neural Networks
Predictive Maintenance Using Recurrent Neural NetworksJustin Brandenburg
 
Test Automation failure analysis
Test Automation failure analysisTest Automation failure analysis
Test Automation failure analysisPrashant Chaudhary
 
Seminar on Advanced Driver Assistance Systems (ADAS).pptx
Seminar on Advanced Driver Assistance Systems (ADAS).pptxSeminar on Advanced Driver Assistance Systems (ADAS).pptx
Seminar on Advanced Driver Assistance Systems (ADAS).pptxMohit Nayal
 

Mais procurados (20)

Examples of Ontology Applications
Examples of Ontology ApplicationsExamples of Ontology Applications
Examples of Ontology Applications
 
Predicting model for prices of used cars
Predicting model for prices of used carsPredicting model for prices of used cars
Predicting model for prices of used cars
 
Machine Learning Project
Machine Learning ProjectMachine Learning Project
Machine Learning Project
 
A Simple Introduction to Neural Information Retrieval
A Simple Introduction to Neural Information RetrievalA Simple Introduction to Neural Information Retrieval
A Simple Introduction to Neural Information Retrieval
 
Prediction of Used Car Prices using Machine Learning Techniques
Prediction of Used Car Prices using Machine Learning TechniquesPrediction of Used Car Prices using Machine Learning Techniques
Prediction of Used Car Prices using Machine Learning Techniques
 
Adversarial Attacks and Defense
Adversarial Attacks and DefenseAdversarial Attacks and Defense
Adversarial Attacks and Defense
 
RFID and its applications
RFID and its applicationsRFID and its applications
RFID and its applications
 
Credit Card Fraud Detection Using Unsupervised Machine Learning Algorithms
Credit Card Fraud Detection Using Unsupervised Machine Learning AlgorithmsCredit Card Fraud Detection Using Unsupervised Machine Learning Algorithms
Credit Card Fraud Detection Using Unsupervised Machine Learning Algorithms
 
Advanced Driver Assistance System using FPGA
Advanced Driver Assistance System using FPGAAdvanced Driver Assistance System using FPGA
Advanced Driver Assistance System using FPGA
 
Nimesh thakor
Nimesh thakorNimesh thakor
Nimesh thakor
 
Deep Learning Explained
Deep Learning ExplainedDeep Learning Explained
Deep Learning Explained
 
Project report on IR based vehicle with automatic braking and driver awakenin...
Project report on IR based vehicle with automatic braking and driver awakenin...Project report on IR based vehicle with automatic braking and driver awakenin...
Project report on IR based vehicle with automatic braking and driver awakenin...
 
Prediction of Car Price using Linear Regression
Prediction of Car Price using Linear RegressionPrediction of Car Price using Linear Regression
Prediction of Car Price using Linear Regression
 
Rfid based attendance system
Rfid based attendance systemRfid based attendance system
Rfid based attendance system
 
Predictive Maintenance Using Recurrent Neural Networks
Predictive Maintenance Using Recurrent Neural NetworksPredictive Maintenance Using Recurrent Neural Networks
Predictive Maintenance Using Recurrent Neural Networks
 
Inverted index
Inverted indexInverted index
Inverted index
 
Asset Tracking System
Asset Tracking SystemAsset Tracking System
Asset Tracking System
 
Test Automation failure analysis
Test Automation failure analysisTest Automation failure analysis
Test Automation failure analysis
 
Seminar on Advanced Driver Assistance Systems (ADAS).pptx
Seminar on Advanced Driver Assistance Systems (ADAS).pptxSeminar on Advanced Driver Assistance Systems (ADAS).pptx
Seminar on Advanced Driver Assistance Systems (ADAS).pptx
 
Smart shopping cart (using RFID)
Smart shopping cart (using RFID)Smart shopping cart (using RFID)
Smart shopping cart (using RFID)
 

Semelhante a Fault Detection using Python

"The Suitcase" Project Cloud QTR meeting presentation @ Disney/ABC
"The Suitcase"  Project Cloud QTR meeting presentation @ Disney/ABC"The Suitcase"  Project Cloud QTR meeting presentation @ Disney/ABC
"The Suitcase" Project Cloud QTR meeting presentation @ Disney/ABCETCenter
 
Machine Intelligence for Design Automation
Machine Intelligence for Design AutomationMachine Intelligence for Design Automation
Machine Intelligence for Design Automations.rohit
 
QCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic PlatformQCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic PlatformDeepak Chandramouli
 
November 2013 HUG: Real-time analytics with in-memory grid
November 2013 HUG: Real-time analytics with in-memory gridNovember 2013 HUG: Real-time analytics with in-memory grid
November 2013 HUG: Real-time analytics with in-memory gridYahoo Developer Network
 
Using AWS IoT for Industrial Applications - AWS Online Tech Talks
Using AWS IoT for Industrial Applications - AWS Online Tech TalksUsing AWS IoT for Industrial Applications - AWS Online Tech Talks
Using AWS IoT for Industrial Applications - AWS Online Tech TalksAmazon Web Services
 
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...Amazon Web Services
 
VTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksille
VTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksilleVTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksille
VTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksilleDIH²
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Amazon Web Services
 
Automated Low Level Requirements Testing for DO-178C
Automated Low Level Requirements Testing for DO-178CAutomated Low Level Requirements Testing for DO-178C
Automated Low Level Requirements Testing for DO-178CQA Systems
 
Design and Development of Multipurpose Automatic Material Handling Robot with...
Design and Development of Multipurpose Automatic Material Handling Robot with...Design and Development of Multipurpose Automatic Material Handling Robot with...
Design and Development of Multipurpose Automatic Material Handling Robot with...IRJET Journal
 
Preventative Maintenance of Robots in Automotive Industry
Preventative Maintenance of Robots in Automotive IndustryPreventative Maintenance of Robots in Automotive Industry
Preventative Maintenance of Robots in Automotive IndustryDataWorks Summit/Hadoop Summit
 
AI Expo - AI Revolution in Silicon Valley
AI Expo - AI Revolution in Silicon ValleyAI Expo - AI Revolution in Silicon Valley
AI Expo - AI Revolution in Silicon ValleyAvkash Chauhan
 
Predicting medical tests results using Driverless AI
Predicting medical tests results using Driverless AIPredicting medical tests results using Driverless AI
Predicting medical tests results using Driverless AIAlexander Gedranovich
 
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...IRJET Journal
 
Doctor ZedGe @InsideTrack Rome #sitROME
Doctor ZedGe @InsideTrack Rome #sitROMEDoctor ZedGe @InsideTrack Rome #sitROME
Doctor ZedGe @InsideTrack Rome #sitROMEsergio.ferrari
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Luis Cabrera
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Luis Cabrera
 
ABAP Test Cockpit in action with Doctor ZedGe and abap2xlsx
ABAP Test Cockpit in action with Doctor ZedGe and abap2xlsxABAP Test Cockpit in action with Doctor ZedGe and abap2xlsx
ABAP Test Cockpit in action with Doctor ZedGe and abap2xlsxAlessandro Lavazzi
 
Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...
Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...
Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...Big Data Value Association
 

Semelhante a Fault Detection using Python (20)

"The Suitcase" Project Cloud QTR meeting presentation @ Disney/ABC
"The Suitcase"  Project Cloud QTR meeting presentation @ Disney/ABC"The Suitcase"  Project Cloud QTR meeting presentation @ Disney/ABC
"The Suitcase" Project Cloud QTR meeting presentation @ Disney/ABC
 
Machine Intelligence for Design Automation
Machine Intelligence for Design AutomationMachine Intelligence for Design Automation
Machine Intelligence for Design Automation
 
Presentation
PresentationPresentation
Presentation
 
QCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic PlatformQCon 2018 | Gimel | PayPal's Analytic Platform
QCon 2018 | Gimel | PayPal's Analytic Platform
 
November 2013 HUG: Real-time analytics with in-memory grid
November 2013 HUG: Real-time analytics with in-memory gridNovember 2013 HUG: Real-time analytics with in-memory grid
November 2013 HUG: Real-time analytics with in-memory grid
 
Using AWS IoT for Industrial Applications - AWS Online Tech Talks
Using AWS IoT for Industrial Applications - AWS Online Tech TalksUsing AWS IoT for Industrial Applications - AWS Online Tech Talks
Using AWS IoT for Industrial Applications - AWS Online Tech Talks
 
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
Operationalizing Your Analysis with AWS IoT Analytics (IOT358-R1) - AWS re:In...
 
VTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksille
VTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksilleVTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksille
VTT RobotDay 5.9. Harri Kuusela: DIH² ja L4MS hankkeiden tuki yrityksille
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
 
Automated Low Level Requirements Testing for DO-178C
Automated Low Level Requirements Testing for DO-178CAutomated Low Level Requirements Testing for DO-178C
Automated Low Level Requirements Testing for DO-178C
 
Design and Development of Multipurpose Automatic Material Handling Robot with...
Design and Development of Multipurpose Automatic Material Handling Robot with...Design and Development of Multipurpose Automatic Material Handling Robot with...
Design and Development of Multipurpose Automatic Material Handling Robot with...
 
Preventative Maintenance of Robots in Automotive Industry
Preventative Maintenance of Robots in Automotive IndustryPreventative Maintenance of Robots in Automotive Industry
Preventative Maintenance of Robots in Automotive Industry
 
AI Expo - AI Revolution in Silicon Valley
AI Expo - AI Revolution in Silicon ValleyAI Expo - AI Revolution in Silicon Valley
AI Expo - AI Revolution in Silicon Valley
 
Predicting medical tests results using Driverless AI
Predicting medical tests results using Driverless AIPredicting medical tests results using Driverless AI
Predicting medical tests results using Driverless AI
 
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
IRJET- A Review- FPGA based Architectures for Image Capturing Consequently Pr...
 
Doctor ZedGe @InsideTrack Rome #sitROME
Doctor ZedGe @InsideTrack Rome #sitROMEDoctor ZedGe @InsideTrack Rome #sitROME
Doctor ZedGe @InsideTrack Rome #sitROME
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...
 
Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...Engineering plant facilities 17 artificial intelligence algorithms & proc...
Engineering plant facilities 17 artificial intelligence algorithms & proc...
 
ABAP Test Cockpit in action with Doctor ZedGe and abap2xlsx
ABAP Test Cockpit in action with Doctor ZedGe and abap2xlsxABAP Test Cockpit in action with Doctor ZedGe and abap2xlsx
ABAP Test Cockpit in action with Doctor ZedGe and abap2xlsx
 
Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...
Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...
Virtual BenchLearning - I-BiDaaS - Industrial-Driven Big Data as a Self-Servi...
 

Mais de Rishabh Garg

Stocks : Technical Analysis
Stocks : Technical AnalysisStocks : Technical Analysis
Stocks : Technical AnalysisRishabh Garg
 
International Conference | Artificial Intelligence & Machine Learning
International Conference | Artificial Intelligence & Machine LearningInternational Conference | Artificial Intelligence & Machine Learning
International Conference | Artificial Intelligence & Machine LearningRishabh Garg
 
Python Library using impedance processing
Python Library using impedance processingPython Library using impedance processing
Python Library using impedance processingRishabh Garg
 
Documentation and Deployment through Python Libraries
Documentation and Deployment through Python LibrariesDocumentation and Deployment through Python Libraries
Documentation and Deployment through Python LibrariesRishabh Garg
 
International Webinar - Global ID Through Blockchain
International Webinar - Global ID Through BlockchainInternational Webinar - Global ID Through Blockchain
International Webinar - Global ID Through BlockchainRishabh Garg
 
International Talk on Technical Analysis
International Talk on Technical AnalysisInternational Talk on Technical Analysis
International Talk on Technical AnalysisRishabh Garg
 
Machine Learning Applications
Machine Learning ApplicationsMachine Learning Applications
Machine Learning ApplicationsRishabh Garg
 
NAAC : Assessment & Accreditation
NAAC : Assessment & AccreditationNAAC : Assessment & Accreditation
NAAC : Assessment & AccreditationRishabh Garg
 
NAAC : Accreditation Process
NAAC : Accreditation ProcessNAAC : Accreditation Process
NAAC : Accreditation ProcessRishabh Garg
 
Multi purpose ID : A Digital Identity to 134 Crore Indians
Multi purpose ID : A Digital Identity to 134 Crore IndiansMulti purpose ID : A Digital Identity to 134 Crore Indians
Multi purpose ID : A Digital Identity to 134 Crore IndiansRishabh Garg
 
Techno Smart Card : Digital ID for Every Indian
Techno Smart Card : Digital ID for Every IndianTechno Smart Card : Digital ID for Every Indian
Techno Smart Card : Digital ID for Every IndianRishabh Garg
 

Mais de Rishabh Garg (14)

Stocks : Technical Analysis
Stocks : Technical AnalysisStocks : Technical Analysis
Stocks : Technical Analysis
 
International Conference | Artificial Intelligence & Machine Learning
International Conference | Artificial Intelligence & Machine LearningInternational Conference | Artificial Intelligence & Machine Learning
International Conference | Artificial Intelligence & Machine Learning
 
Biosensors
BiosensorsBiosensors
Biosensors
 
Python Library using impedance processing
Python Library using impedance processingPython Library using impedance processing
Python Library using impedance processing
 
Documentation and Deployment through Python Libraries
Documentation and Deployment through Python LibrariesDocumentation and Deployment through Python Libraries
Documentation and Deployment through Python Libraries
 
International Webinar - Global ID Through Blockchain
International Webinar - Global ID Through BlockchainInternational Webinar - Global ID Through Blockchain
International Webinar - Global ID Through Blockchain
 
International Talk on Technical Analysis
International Talk on Technical AnalysisInternational Talk on Technical Analysis
International Talk on Technical Analysis
 
Machine Learning Applications
Machine Learning ApplicationsMachine Learning Applications
Machine Learning Applications
 
NAAC : Assessment & Accreditation
NAAC : Assessment & AccreditationNAAC : Assessment & Accreditation
NAAC : Assessment & Accreditation
 
NAAC : Accreditation Process
NAAC : Accreditation ProcessNAAC : Accreditation Process
NAAC : Accreditation Process
 
Gene cloning
Gene cloningGene cloning
Gene cloning
 
Cancer
Cancer Cancer
Cancer
 
Multi purpose ID : A Digital Identity to 134 Crore Indians
Multi purpose ID : A Digital Identity to 134 Crore IndiansMulti purpose ID : A Digital Identity to 134 Crore Indians
Multi purpose ID : A Digital Identity to 134 Crore Indians
 
Techno Smart Card : Digital ID for Every Indian
Techno Smart Card : Digital ID for Every IndianTechno Smart Card : Digital ID for Every Indian
Techno Smart Card : Digital ID for Every Indian
 

Último

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfFIDO Alliance
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024Stephen Perrenod
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaCzechDreamin
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsLeah Henrickson
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxNeo4j
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessUXDXConf
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Patrick Viafore
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 

Último (20)

Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptxBT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
BT & Neo4j _ How Knowledge Graphs help BT deliver Digital Transformation.pptx
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024Extensible Python: Robustness through Addition - PyCon 2024
Extensible Python: Robustness through Addition - PyCon 2024
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 

Fault Detection using Python

  • 1. Smart Manufacturing 4.0 RISHABH GARG BITS - PILANI I GOA IIT Delhi - AIA
  • 2. Fault Detection of Smart Lathe Machine Using Python Rishabh Garg BITS - PILANI K.K. Birla Goa Campus IIT Delhi - AIA Foundation For Smart Manufacturing .……………… Best Project Award Samarth Udyog 4.0 Indian Institute of Technology Delhi Department of Heavy Industry Ministry of HI & PE Automation Industry Association A Government of India Initiative Hosting Institute Government of India Industry Partner 1 3 A U G U S T 2 0 2 1
  • 3. Fault Detection of Smart Lathe Machine using Python Rishabh Garg BITS - PILANI | GOA IITD-AIA Foundation For Smart Manufacturing
  • 5. Project Background Problem Statement  Machines having large investments in capital also deploy high skilled labor for active operation and periodic maintenance. The challenge for companies is to protect this investment by ensuring high availability.  Unpreceded breakdowns in machinery and lack of skilled labor becomes a major challenge for manufacturing industries. Customer orders get delayed and company loses money  Solution: Deploy Machine Learning models and Real time dashboards and Predictive maintenance that constantly monitor the health of the machine and the associated tools. RISHABH GARG | BITS
  • 6. Project Background Physical Equipment on which it is implemented  No specific hardware required, apart from a regular PC.  GPUs can be used for faster training and results.  OS: Ubuntu – 18.04 LTS and Google Collaboratory (with GPUs) Unique challenge Development of accurate model despite high bias and limited dataset. RISHABH GARG | BITS
  • 7. LOREM IPSUM DOLOR SIT AMET, CONSECTETUER ADIPISCING ELIT. 12 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas porttitor congue massa. Fusce posuere, magna sed pulvinar ultricies, purus lectus malesuada libero, sit amet commodo magna eros quis urna. 7 Solution RISHABH GARG | BITS
  • 8. Objective  Predict the instantaneous RMS value of vibrations of a Smart Lathe Machine using the traditional input parameters  Use the prediction for classification of the machine state into Normal and Faulty behavior.
  • 9. Objective  Display the prediction results through Streamlit Web App.  Implement the API endpoints using Flask.  Deployment to Heroku using Docker containers. RISHABH GARG | BITS
  • 10. Methodology Exploration of data  Data extraction from CSV files, Data preparation and filtering  Representation of data and its analysis (kurtosis, skewness etc. for appropriate model selection) Machine Learning Model Development Developed some sample machine learning models for checking accuracy and other metrics like sensitivity or positivity rate. Research was done on the models for hyper-parameter tuning etc. RISHABH GARG | BITS
  • 11. Methodology Flask Model was packed and API implementation was done using Flask Deployment through Docker containers Streamlit Necessary pathways for connection with dashboard using Streamlit Deployment to Heroku was done using CLI RISHABH GARG | BITS
  • 12. Implementation Data Extraction  Dataset provided from the FSM Lab consisted of raw data which was directly taken from the DAC device connected to the accelerometer.  For machine learning models to be built, first the required input parameters were identified.  RMS value of vibration was the best output parameter for predicting the machine state. RISHABH GARG | BITS
  • 13. Implementation Preparation of raw data  Using Python OS library, the vibration data stored in CSV files was aggregated and summarized in an Excel file.  60 One-Minute Experiments used as the training data for the linear regression model.  Redundant columns such as Dates, Timestamps, Serial numbers, Status etc. were removed and only numeric columns were retained.  RMS buffer values and Actual RMS values were used as output variables. RISHABH GARG | BITS
  • 14. Implementation Preparation of raw data  One-Minute experiments were used to predict the initial level of vibrations.  Full run experiments were used to determine the slope of RMS values with time.  RMS value were compared against the value provided by the line at a given time for classification. RISHABH GARG | BITS
  • 15. Implementation Preparation of raw data  Note: The data was very biased due to low occurrences of failure in the Lathe machine. This affected the accuracy of the model in the later stages. RISHABH GARG | BITS
  • 16. Implementation Training the model  Cubic SVM and Linear Regression models were compared for performance using MAE (Mean Absolute Error), RMSE (Root Mean Squared Error) metrics.  Linear Regression model was chosen out of the two due to higher dimensionality of data.  The threshold value of RMS vibration came out to be around 372.86 for the classifier model.  Logistic Regression was used to implement the classifier layer of model.  The predicted / actual RMS values were fed into the classifier for prediction of the machine state. RISHABH GARG | BITS
  • 17. Implementation Testing the model  After training both the models, the test dataset, generated using  Scikit learn library was fed the model and the predictions were stored.  The models were also evaluated based on a few metrics from the scikit learn library like MAE, R2, RMSE (for regression) and F1 score (for classification). RISHABH GARG | BITS
  • 18. Implementation Deployment  Heroku was used for the deployment of the final deliverable product which was connected to a Git repository for storage of the codebase.  A Docker file, Procfile and requirements.txt file was required for the appropriate stack selection by Heroku.  Streamlit was used for creation of the deployed frontend webapp and Flask was used to make the required API calls. RISHABH GARG | BITS
  • 21. Innovations  Real time monitoring of the input parameters, instantaneous and accurate prediction of RMS values of vibration data along with display of associated metrics was the biggest industrial level achievement of this product.  One can also select multiple models for prediction in the web app along with intuitive visualization. RISHABH GARG | BITS
  • 22. Innovations  This model, despite the associated bias, provides decent predictions due to proper choice of degree of SVR (here, behaves like Linear regressor). Tunable parameters have been added as sidebars in the webapp for customized accuracy as per the use case. RISHABH GARG | BITS
  • 23. Outcome Final deliverable product The following applications and repositories were made on the completion of the internship project for addressing the problem statement:  The app was deployed to Heroku as a frontend webapp: https://streamlitappml.herokuapp.com/  Source code for the Base models, Docker files and Flask: https://github.com/rishabhgargdps/IITD_ML RISHABH GARG | BITS
  • 24. Outcome Final deliverable product Source code for the Front end application: https://github.com/rishabhgargdps/IITD_streamlit Heroku app for customized models: https://streamlitml.herokuapp.com/ Heroku flask app that contains the API, and Docker containers: https://svmml2.herokuapp.com/ The codebase of the project was stored in Git Version control systems (here, GitHub). RISHABH GARG | BITS
  • 25. Scalability  This model can be used for prediction of RUL of any modern / traditional machine / tools if we can identify the most relevant input and output parameters pertaining to the quality of the product and the life of the machine.  The vibration data can be collected from the accelerometer attached to the tool holder which can be sent to the cloud for data storage using the Ethernet. There it can be processed and used for automated prediction.  Additional parameters like temperature, humidity of environment can be added for even better predictions. Thermo-hygrometers (DHT-11) can be used in the rooms for temperature and humidity monitoring. RISHABH GARG | BITS
  • 26. Scalability  One can also adjust the model for false positives / negatives as per need in the case of legacy hardware / biological equipment manufacturing.  The operator can be alerted using a web monitor service (e.g. Distil web monitor) running on the web app through an alarm sound, email notification etc.  Pre-trained neural nets or decision trees in a random forest can be used if we cannot acquire a large dataset and a similar use case has already been solved for a large dataset. RISHABH GARG | BITS