Skip to content

Ability to identify the controller erros from the equipment input energy data

Notifications You must be signed in to change notification settings

vigneshuw/machine_fault_identification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real-time fault identification system for a retrofitted ultra-precision CNC machine from equipment's power consumption data: A case study of an implementation

This repository contains the code corresponding to the study published in IJPEM-GT. For more details please visit MINLab and/or Smart Manufacturing at UW-Madison

The real-time inference system developed from this study can be seen here

DOI Link:-

Abstract

Ability to detect faults in manufacturing machines have become crucial in the era of Smart Manufacturing to enable cost savings from erratic downtimes, in an effort towards Green Manufacturing. The power consumption data provides myriad of information that would facilitate condition monitoring of manufacturing machines. In this work, we retrofit an ultra-precision CNC machine using an inexpensive power meter. The data collected from the power meter were streamed in real-time to Amazon Web Services (AWS) servers using industry standard Message Query Telemetry Transport (MQTT) protocol. The error identification study was carried out in two-folds, we first identify if the error has occurred followed by classifying the type of controller error. The study also develops anomaly detection models to identify normal operating condition of the machine from the anomalous error states. Anomaly detection was particularly favorable for manufacturing machines as it requires data only from the normal operating conditions of the machine. The developed models performed with macro F1-Score of 0.9971 $\pm$ 0.0012 and 0.9974 $\pm$ 0.0018 for binary and multiclass classification respectively. The anomaly detection models were able to identify the anomalous data instances with an average accuracy of 95%. A feature importance study was then carried out to identify the most valuable feature for error identification. Finally, the trained models were containerized and hosted at AWS. The overarching goal of this project was to develop a complete inexpensive ML pipeline that would enable industries to detect operation anomalies in manufacturing machines just from the energy consumption data of the machine.

Directory Information

  1. anomaly_detection -> Model development for the anomaly detection studies.
  2. aws-sagemaker -> Scripts that help in hosting the developed models at the AWS.
  3. figures -> Plots created from the analysis performed.
  4. lib -> Libraries used for data processing, feature extraction, model development, and model evaluation, for both supervised and unsupervised learning.
  5. results -> Results from model evaluation and the feature importance study conducted.
  6. testing -> Scripts to test the hosted models.

Running the script

Running the scripts in this repository is multiple parts

Model training

bash train_transfer_models.sh
  • Needs a DATA with model training data as csv files.
  • Following updates needs to be done to cater to your own data.
    • train_save_model.yml contains information on class association and best model parameters.
    • trained_models directory to save the trained models.
    • S3 bucket to upload the models if required.
  • Finally, the shell script copies the trained to the directory ./aws-sagemaker/container/trained_models/.
  • Both supervised and unsupervised models are trained.

Container creation

bash ./aws-sagemaker/container/build_and_push.sh <image_name>
  • Create a container with the trained models and flash endpoint and pushed it to AWS-ECR
  • Following updates needs to be done to cater to your own data.
    • Ensure to set the AWS credentials
    • Ensure to have appropriate permissions at the AWS

Sagemaker Deployment

  • Refer to the jupyter notebook deploy_serverless_endpoints.ipynb for more details on the process
    • The jupyter notebook can be found in ./aws-sagemaker

About

Ability to identify the controller erros from the equipment input energy data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published