An open API service indexing awesome lists of open source software.

https://github.com/puureya2/machine-learning-tensorflow

Year 2, Principles of Artificial Intelligence ISB42403, Final Project, TensorFlow-Keras CNN Model Training, Machine Learning
https://github.com/puureya2/machine-learning-tensorflow

cnn-model keras matplotlib python tensorflow

Last synced: about 2 months ago
JSON representation

Year 2, Principles of Artificial Intelligence ISB42403, Final Project, TensorFlow-Keras CNN Model Training, Machine Learning

Awesome Lists containing this project

README

          

# ๐ŸŒพ Crops Sorter Model

A machine learning pipeline for detecting crop health patterns using **Convolutional Neural Networks (CNNs)**. The system is trained on 10,000+ labeled agricultural images to predict crop conditions with high accuracy, and includes analytics and visualizations of model performance.

---

## ๐Ÿง  Core Features

- ๐Ÿค– Trained 3 custom CNN architectures using **TensorFlow** and **Keras**
- ๐Ÿ“Š Achieved **90.07% accuracy** on validation data
- ๐Ÿ“ˆ Designed analytics scripts to evaluate 4 key model metrics:
- Accuracy
- Precision
- Recall
- Loss
- ๐ŸŒ Visualized predictions using **Matplotlib** with bar graphs and cluster charts

---

## ๐Ÿ› ๏ธ Tech Stack

| Purpose | Technology |
|-------------------------|--------------------|
| Model Training | TensorFlow, Keras |
| Data Preprocessing | Scikit-learn |
| Data Visualization | Matplotlib |
| Language | Python |

---

## ๐Ÿงช Training Overview

- Dataset: >10,000 images across various crop-health categories
- Preprocessing: Normalization, augmentation, and one-hot encoding
- CNN Variants:
- ResNet-inspired shallow net
- Custom-built 6-layer CNN
- Lightweight MobileNetv2 baseline
- Evaluation: Accuracy calculated via validation split (90.07%)

---

## ๐Ÿ“Š Visualizations

Using `matplotlib`, the following charts were generated:
- **Bar graphs** comparing model performance
- **Cluster plots** to group prediction categories
- Accuracy/Loss trends over training epochs

---

## ๐Ÿ“ Files

- `train_model.py` โ€” Model architecture and training loop
- `evaluate.py` โ€” Script to calculate and compare model metrics
- `visualize.py` โ€” Generates performance graphs
- `README.md` โ€” Project documentation

---

## ๐Ÿง  Future Improvements

- Integrate early stopping and learning rate schedulers
- Expand dataset with underrepresented crops
- Deploy trained model to a web/mobile interface for farmer use

---

## ๐Ÿ“… Timeline

**January โ€“ February 2025**
Created as a solo AI-agriculture capstone to explore the intersection of deep learning and food security.

---

## ๐Ÿ“ฌ Contact

**Kevin Chifamba**
๐Ÿ“ง kevinnanashe@gmail.com
๐Ÿ”— [LinkedIn](https://www.linkedin.com/in/yourprofile) โ€ข [GitHub](https://github.com/your-username)

---