randomnameplease's picture
Upload 9 files
bbb083f verified
|
Raw History Blame Contribute Delete
4.95 kB

πŸ”¬ CompositeDefect AI - NDT Analysis System

A comprehensive machine learning-based web application for detecting and analyzing defects in composite materials using various Non-Destructive Testing (NDT) methods.

🎯 Features

Supported NDT Methods

  • Visual Testing (VT) - Surface defect detection
  • Ultrasonic Testing (UT) - Internal defect detection using sound waves
  • Magnetic Particle Testing (MPT) - Surface and near-surface defects
  • Radiographic Testing (RT) - X-ray based internal inspection
  • Liquid Penetrant Testing (LPT) - Surface-breaking defects
  • Eddy Current Testing (ECT) - Conductive material inspection
  • Thermal/Infrared Testing (IRT) - Heat-based defect detection
  • Microwave NDT - Dielectric material inspection
  • Vibration Analysis - Structural integrity assessment

Composite Materials Supported

  • Carbon Fibre Reinforced Polymer (CFRP)
  • Glass Fibre Reinforced Polymer (GFRP)
  • Aramid Fibre Reinforced Polymer (AFRP)
  • Hybrid Composites

Detectable Defect Types

  • Delamination - Layer separation in composites
  • Cracks - Structural fractures
  • Voids - Air pockets and porosity
  • Fibre Misalignment - Incorrect fibre orientation
  • Resin Rich Areas - Excess resin concentration
  • Resin Starved Areas - Insufficient resin coverage

πŸš€ Getting Started

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Installation

  1. Clone or download the project:
cd composite-defect-detector
  1. Install required dependencies:
pip install -r requirements.txt
  1. Run the Streamlit application:
streamlit run app.py
  1. Open your browser and navigate to:
http://localhost:8501

πŸ“– Usage Guide

1. Configure Analysis Parameters

  • Select the NDT Method used for inspection
  • Choose the Material Type being analyzed
  • Adjust Detection Sensitivity (0.1 - 1.0)
  • Set Confidence Threshold (0.5 - 0.95)
  • Select which Defect Types to detect

2. Upload NDT Images

  • Click "Browse files" to upload your NDT inspection images
  • Supported formats: JPG, JPEG, PNG, TIFF, BMP
  • Preview the uploaded image before analysis

3. Run AI Analysis

  • Click "Start AI Analysis" button
  • The system will preprocess the image based on NDT method
  • ML model will detect and classify defects
  • Results will be displayed in real-time

4. Review Results

  • Detection Results Tab: View detected defects with bounding boxes
  • Detailed Analysis Tab: See charts, statistics, and recommendations
  • History Tab: Access previous analyses

5. Export Reports

  • Download annotated images (PNG)
  • Export defect data (CSV)
  • Generate comprehensive JSON reports

🎨 Color Scheme

The application uses a modern dark theme with:

  • Primary Background: Black (#0a0a0a)
  • Secondary Background: Dark Grey (#141414, #1e1e1e)
  • Text: White (#ffffff) and Light Grey (#b0b0b0)
  • Accent Colors:
    • Blue (#3b82f6) - Primary actions
    • Purple (#8b5cf6) - Secondary accents
    • Cyan (#06b6d4) - Highlights

πŸ”§ Technical Details

ML Model Architecture

  • Image preprocessing based on NDT method type
  • Simulated deep learning defect detection
  • Multi-class classification for defect types
  • Confidence scoring and severity assessment

Key Libraries

  • Streamlit - Web application framework
  • OpenCV - Image processing
  • Pillow - Image manipulation
  • NumPy - Numerical computations
  • Plotly - Interactive visualizations
  • scikit-learn - Machine learning utilities
  • TensorFlow/Keras - Deep learning framework

πŸ“Š Analysis Outputs

Metrics Provided

  • Total defect count
  • Defect type distribution
  • Severity classification (Low/Medium/High/Critical)
  • Confidence scores
  • Defect area measurements (mmΒ²)
  • Position coordinates

Visualizations

  • Pie chart: Defect type distribution
  • Bar chart: Severity distribution
  • Histogram: Confidence score distribution
  • Annotated images with bounding boxes

Reports

  • Test information summary
  • Defect recommendations
  • Exportable CSV, JSON, and image formats

⚠️ Severity Levels

  • Critical (Red) - Immediate action required
  • High (Orange) - Attention required, schedule maintenance
  • Medium (Yellow) - Monitor and plan repair
  • Low (Green) - Acceptable, continue monitoring

πŸ”’ Safety Notes

This tool is designed to assist NDT professionals and engineers. Always:

  • Verify AI results with manual inspection
  • Follow industry standards for defect acceptance
  • Consult certified NDT professionals for critical decisions
  • Use as a supplementary tool, not a replacement for expert judgment

πŸ“ License

This project is for educational and research purposes.

🀝 Contributing

Contributions are welcome! Please feel free to submit issues and enhancement requests.


Developed with ❀️ for the NDT and Composites Community