Skip to content

This repository contains a Image Classification Deep learning model build using Convolutional Neural Networks (CNN)

License

Notifications You must be signed in to change notification settings

Waseemkhan09/ImageClassification_DL_Model

Repository files navigation

😊😢 Image Classification: Happy vs Sad using CNN

This deep learning project uses a Convolutional Neural Network (CNN) to classify images of people based on facial expressions into two categories: Happy or Sad. The model is trained on a dataset of labeled images and built using TensorFlow and Keras in a Jupyter Notebook environment.


📝 Project Description

This project demonstrates how a CNN can be used for binary image classification by recognizing facial features that indicate emotional expressions. The model is trained on a small dataset of happy and sad facial images and achieves high accuracy using simple yet effective convolutional layers.

The purpose of this project is to:

  • Learn how to prepare and load image data using Keras
  • Build and train a CNN model from scratch
  • Evaluate its performance on unseen data
  • Predict whether a new image shows a happy or sad person

🖼️ Dataset

  • Located in the data/ folder
  • Consists of two subdirectories:
    • happy/: images labeled as happy
    • sad/: images labeled as sad

⚙️ Technologies & Tools Used

  • 💻 Python
  • 📚 TensorFlow & Keras
  • 📒 Jupyter Notebook
  • 🧪 NumPy, Matplotlib
  • 🧠 CNN (Convolutional Neural Networks)
  • 🗂️ OS, shutil (for file handling and dataset preparation)

🚀 How to Run

  1. Clone this repo:
    git clone https://github.com/Waseemkhan09/ImageCalssification_DL_Model.git
    cd ImageCalssification_DL_Model
  2. Install required dependencies:
    pip install tensorflow numpy matplotlib
  3. Run the Notebook

🔮 Features

Binary image classification using CNN Uses data generators for image preprocessing Trained and validated on labeled images Predicts emotion category of new/unseen images


🤝 Contribution

Feel free to fork the repo and submit pull requests if you’d like to add improvements or fixes.


🧑‍💻 Author

Waseem Khan GitHub: @Waseemkhan09


About

This repository contains a Image Classification Deep learning model build using Convolutional Neural Networks (CNN)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •