This project focuses on detecting unknown objects in live videos at WasteAnt plants to identify potential hazards. The aim is to use computer vision and machine learning techniques to detect anomalies in waste processing to enhance the safety and efficiency of waste management.
- Source: WasteAnt datasets
- Data Type: Videos of waste falling into WasteAnt plants
- Focus: Analyzing object velocities (optical flow) and detecting patterns via the LSTM (Long Short-Term Memory) classifier.
- Optical Flow: Used to estimate the motion of objects between consecutive video frames.
- Visualization: Techniques such as HSV (Hue Saturation Value) and drawing arrows were explored to visualize optical flow and detect motion patterns.
- Cluttered Environment: The highly cluttered and dynamic environment made object detection difficult due to occlusions, motion blur, and image distortions.
- Illumination: Variations in illumination affected anomaly detection.
- Perspective: Camera angles impacted the detection of anomalies.
- Sparse or Dense Environment: The dense environment required a robust model to handle fast-moving and cluttered objects.
- Cleaning: Rescaling images and extracting Region of Interest (ROI).
- Optical Flow Calculation: Used the Gunnar Farneback method to estimate motion between frames.
- Sequence Creation: Created sequences of past and future velocities for training the LSTM model.
- Threshold Identification: Established thresholds for detecting anomalies based on velocity patterns.
- LSTM Model: Used for capturing temporal information and detecting anomalies in motion patterns.
- Training: Various models and parameters were tested to achieve the best performance.
- Basic LSTM Model: Initial model with single LSTM and Dense layers.
- TimeDistributed Layer: Improved accuracy but not consistent.
- Stacked LSTM Layers: Provided better accuracy and robustness.
- Model Performance:
- Train Accuracy: 0.842
- Test Accuracy: 0.636
- Dummy Accuracy: 0.618 and 0.513 for different test videos.
The final model used a stacked LSTM architecture, which provided the best balance of accuracy and robustness for detecting anomalies in waste processing.
- Feature Extraction: Explore collecting patterns of waste features from images and comparing them to detect anomalies.
- Enhance Robustness: Improve the model's ability to handle various types of waste and different environmental conditions.
- Integrate Real-Time Deployment: Develop a system for real-time anomaly detection in WasteAnt plants.
- Expand Dataset: Gather more data to improve model training and testing.
This project aims to develop a robust and efficient anomaly detection system to optimize logistic processes in waste management, ensuring safety and improving operational efficiency.