Code Monkey home page Code Monkey logo

liconvformer-a-lightweight-fault-diagnosis-framework's Introduction

LiConvFormer: A lightweight fault diagnosis framework using separable multiscale convolution and broadcast self-attention

Our operating environment

  • Python 3.8
  • pytorch 1.10.1
  • numpy 1.22.0 (If you get an error when saving data, try lowering your numpy version!)
  • and other necessary libs

Datasets

Guide

  • This repository provides a lightweight fault diagnosis framework.
  • It includes the pre-processing for the data and the model proposed in the paper.
  • We have also integrated 7 baseline methods including 4 CNN methods and 3 fault diagnosis methods based on CNN-Transformer for comparison.
  • train_val_test.py is the train&val&test process of all methods.
  • You need to load the data in above Datasets link at first, and put them in the data folder. Then run in args_diagnosis.py
    Pay attention to that if you want to run the data pre-process, you need to load Case1, Case2 and Case3 in Datasets,
    and set --save_dataset (in args_diagnosis.py) to True; or you can just load the Save dataset, and set --save_dataset to False.
  • You can also choose the modules or adjust the parameters of the model to suit your needs.

Initial learning rate

  • Liconvformer: Case1--0.01; Case2--0.001; Case3--0.01
  • CLFormer: Case1--0.01; Case2--0.001; Case3--0.01
  • convoformer_v1_small: Case1--0.001; Case2--0.001; Case3--0.001
  • mcswint: Case1--0.001; Case2--0.001; Case3--0.01
  • MobileNet: Case1--0.01; Case2--0.001; Case3--0.001
  • MobileNetV2: Case1--0.01; Case2--0.001; Case3--0.001
  • ResNet18: Case1--0.001; Case2--0.001; Case3--0.001
  • MSResNet: Case1--0.001; Case2--0.001; Case3--0.001

Pakages

  • data needs loading the Datasets in above links
  • datasets contians the pre-processing process for the data
  • models contians 8 methods including the proposed method
  • utils contians train&val&test processes

Citation

If our work is useful to you, please cite the following paper, it is the greatest encouragement to our open source work, thank you very much!

@paper{
  title = {LiConvFormer: A lightweight fault diagnosis framework using separable multiscale convolution and broadcast self-attention},
  author = {Shen Yan, Haidong Shao, Jie Wang, Xinyu Zheng, Bin Liu},
  journal = {Expert Systems With Applications},
  volume = {237, Part A},
  pages = {121338},
  year = {2023},
  doi = {doi.org/10.1016/j.eswa.2023.121338},
  url = {https://www.sciencedirect.com/science/article/pii/S0957417423018407},
}

Contact

liconvformer-a-lightweight-fault-diagnosis-framework's People

Contributors

yanshen0210 avatar

Forkers

liu331904724

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.