This project tackles the Mixed Pixel Problem in thermal imaging, enhancing precision agriculture through artificial intelligence. The aim is to detect mixed pixels in thermal images, quantify their proportion, and improve early disease detection in crops.
- Mixed Pixel Detection Algorithm: Autoencoder-based deep learning framework.
- Custom Dataset: Includes labeled thermal images of healthy and diseased crops.
- Performance Metrics:
- Mixed Pixel Percentage (MPP):
5.58%
- SSIM:
0.8905
- MSE:
0.0028
- Mixed Pixel Percentage (MPP):
- Scalable Design: Adapts to diverse crops and environments.
- Data Preprocessing:
- Augment dataset size through transformations.
- Resize and normalize images for uniformity.
- Deep Learning Model:
- CNN-Based Autoencoder for unsupervised learning.
- Mixed pixel identification via reconstruction errors.
- Validation:
- Tested across varying environmental conditions.
- Evaluated using MPP, SSIM, and MSE.
- Input: High-resolution thermal images.
- Preprocessing: Data augmentation, normalization, resizing.
- Model: CNN-based Autoencoder for pixel-level analysis.
- Output: Visual representation and quantitative metrics of mixed pixels.
- Visual Detection: Successfully identified and highlighted mixed pixels.
- Quantitative Metrics: Achieved robust and scalable performance metrics:
- MPP: 5.58%
- SSIM: 0.8905
- MSE: 0.0028
- Robustness: Strong generalization under diverse conditions.
Combining AI and thermal imaging offers a scalable, cost-effective solution for precision agriculture.
- High-resolution thermal images captured under controlled conditions.
- Metadata includes plant type, disease, and environmental settings.
- Mixed Pixel Percentage (MPP): Measures pixel ambiguity.
- SSIM: Evaluates image reconstruction quality.
- MSE: Measures reconstruction error.
- Simulated various environmental conditions.
- Added synthetic noise to test algorithm resilience.
Metrics | Values |
---|---|
Mixed Pixel Percentage | 5.58% |
SSIM | 0.8905 |
MSE | 0.0028 |
Metrics | Values |
---|---|
Mixed Pixel Percentage | 5.53% |
SSIM | 0.8339 |
MSE | 0.0028 |
- Dataset limited to specific plant types.
- High-resolution thermal cameras required.
- Computational demands for real-time applications.
- Complex model interpretability for non-experts.
- Expanded Dataset: Include diverse crops, diseases, and environments.
- Algorithm Optimization: Develop lightweight models for edge devices.
- Advanced Segmentation: Leverage transformers or graph-based models.
- Real-World Validation: Conduct large-scale field trials.
- User-Friendly Interfaces: Create tools accessible to non-technical users.
- Clone the repository:
git clone https://github.com/sarangs1621/Detection-of-Mixed-Pixels-in-Thermal-Image.git
- Navigate to the directory:
cd mixed-pixel-detection
- Install dependencies:
pip install -r requirements.txt
- Run the model:
python Thermal.ipynb
|-- dataset/
| |-- images/
| |-- labels.csv
|-- models/
| |-- autoencoder.py
|-- results/
| |-- output_images/
|-- Thermal.ipynb
|-- README.md
|-- requirements.txt
- Python 3.8+
- TensorFlow 2.x
- NumPy
- Matplotlib
- scikit-learn
- OpenCV
- Dataset and pretrained models available on Google Drive
To install all dependencies, run:
pip install -r requirements.txt
- Jones, H. G., & Sirault, X. R. R. (2014). Scaling of Thermal Images at Different Spatial Resolutions: The Mixed Pixel Problem. Agronomy, 4(3), 380โ396. [DOI: 10.3390/agronomy4030380]
- Santos, L., et al. (2020). Analyzing the Effect of Spectral Interference of Mixed Pixels. IEEE JSTARS. [DOI: 10.1109/JSTARS.2020.3045712]
- Bovolo, F., et al. (2010). Subpixel Image Classification Based on SVM. IEEE Transactions on Image Processing. [DOI: 10.1109/TIP.2010.2051632]
Feel free to submit issues and pull requests to enhance the project. For queries, reach out through the Issues section of this repository.