Pilah AI: AI-based Automated Waste Sorting Solution

2 Month

Key Results

99.28% In organic Test

Pilah AI is a web application that uses computer vision to classify waste as organic or inorganic. Built as an end-to-end solution, it integrates image preprocessing, deep learning model training, and a user-friendly web interface. By enabling waste sorting through a camera or image upload, Pilah AI helps individuals contribute easily to recycling and environmental sustainability.

Main Features

Landing Page

Classification Page

  • Landing & Classification Pages: The landing page introduces Pilah AI with examples of organic (food scraps, dry leaves) and inorganic waste (plastic, cans, glass bottles). The classification page lets users upload images or use a camera, then shows prediction results with accuracy (e.g., “99.28% Inorganic”).
  • Smart Waste Classification: Automatically identifies waste as organic or inorganic using AI.
  • Flexible Image Input: Supports both live capture from the device camera and local uploads.
  • User-Friendly Interface: Clean, responsive design for desktop and mobile.
  • Result Visualization: Displays predictions with confidence levels.

Technologies

This project combines modern machine learning and web development technologies to deliver an intelligent and user-friendly waste classification system.

Machine Learning

  • Python
  • TensorFlow MobileNetV2
  • Scikit-learn
  • Pandas
  • Pillow

Backend

  • Keras Tuner
  • Image Data Generator
  • Flask with Flask-CORS

Frontend

  • HTML5
  • CSS3 with Tailwind CSS
  • JavaScript

Data Augmentation

To improve model robustness, we applied data augmentation techniques such as rotation, shifting, and zooming. This process generates variations of the original waste images, helping the AI learn to recognize objects under different conditions and reducing overfitting. The examples above show how augmented images complement the original dataset for better training performance.

Machine Learning Models

We carefully tested our AI model, and the outcomes show strong and consistent performance.

  • Architecture: The model is powered by a CNN using MobileNetV2 and fine-tuned with Keras Tuner, enabling efficient and accurate image recognition.
  • Generalization: The results on unseen test data demonstrate that the model can reliably distinguish between organic and inorganic waste, not just memorizing training samples.
  • Balanced Performance: Precision, Recall, and F1-score values indicate the model is equally good at identifying both classes, avoiding bias toward one type of waste.
  • Robustness: The confusion matrix confirms that misclassifications are minimal, highlighting the model’s stability and reliability in practical use.
ClassPrecisionRecallF1-scoreSupport
Inorganic0.960.960.96270
Organic0.960.960.96267
Accuracy0.96537
Macro avg0.960.960.96537
Weighted avg0.960.960.96537