Code Monkey home page Code Monkey logo

cracksegmentationdeeplearning's Introduction

Multi Scale Attention Based Efficient U-Net for Crack Segmentation

Abstract

Crack detection, classification, and characterization are key components of automatic structural health monitoring systems. Convolution based encoder-decoder deep learning architecture have played a significant role in developing crack segmentation models possessing limitations in capturing the global context of the image. To overcome the stated limitation, in the present study we propose a novel Multi-Scale Attention based Efficient U-Net which effectively tries to solve this limitation. The proposed method achieved an F1 Score of 0.775, an IoU of 0.663 and an accuracy of 97.3% on Crack500 dataset improving upon the current state-of-the-art models.


Train the model

python train.py --path_imgs "path_to_image_folder" --path_masks "path_to_mask_folder" --out_path "out_path_to_store_best_model_and_logs"

Evaluate Model

python evaluate.py --path_imgs "path_to_image_folder" --path_masks "path_to_mask_folder" --model_path "path_to_saved_model" --result_path "path_to_save_results_from_test" --plot_path "path_to_store_plots"

Model Architecture


Fig.1 - Main Architecture

Fig.2 - Multi Scale Attention

Dataset

Crack500 Dataset: This dataset includes 500 images of pavement cracks with a resolution of 2000 x 1500 pixels collected at Temple University campus using a smartphone by [1]. Each image is annotated on a pixel level. Images this large won’t fit on GPU memory; therefore, [1] patched each image into 16 smaller images. The final resolution of each image was 640x320, and the dataset has 1896 images in training set, 348 images in validation set, and 1124 images in testing set. The comparisons with state-of-the-art models were made on the results from the testing set


Results

Dataset Accuracy Precision Recall F1-Score IoU
Crack500 97.4 0.763 0.790 0.775 0.663

RGB Image      Ground Truth    Prediction (Model Output)

Fig 3: Result From model

Resouces


ToDo

  • Dockerise code

References

[1] F. Yang, L. Zhang, S. Yu, D. Prokhorov, X. Mei, and H. Ling, “Feature pyramid and hierarchical boosting network for pavement crack detection,” IEEE Transactions on Intelligent Transportation Systems, vol. 21, no. 4, pp. 1525–1535, 2020.

[2] Lyu, C., Hu, G. & Wang, D. Attention to fine-grained information: hierarchical multi-scale network for retinal vessel segmentation. Vis Comput 38, 345–355 (2022). https://doi.org/10.1007/s00371-020-02018-w

cracksegmentationdeeplearning's People

Contributors

mrfahrenhiet avatar

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.