Jayant Midterm
Jayant Midterm
MID-TERM REPORT on
BACHELOR OF TECHNOLOGY
JAN-JUNE, 2025
SUBMITTED BY:
Table of Contents
1 Introduction 1
5 References 9
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
Chapter-1:Introduction
A facial expression is one or more motions or positions of the muscles beneath the skin of the face.
According to one set of controversial theories, these movements convey the emotional state of an
individual to observers. Facial expressions are a form of nonverbal communication. Facial expressions
are vital to social communication between humans. Facial expression classifiers generalizes the learned
features to recognize different expressions from unseen faces. With advancements in computer vision
and deep learning, it is now possible to detect human emotions from images in an improved way.
A Convolutional Neural Network (CNN) is a Deep Learning Algorithm which takes an image as the
input, assigning importance to various objects in the image so that it can differentiate it from others. The
preprocessing required in a CNN model is lower as compared to other classification models. We are
using CNN because it has an ability which automatically detects the important features without any
human supervision.
Emojis are essential to communicate emotion, something that words cannot portray. However, they do
not hold value in the academic world or in a context that demands an objective voice. Emojis are meant
to be fun, light-hearted, and convey a broad range of emotions efficiently and in a way that words
sometimes cannot. Emoji's or avatars are ways to indicate nonverbal cues. These cues have become an
essential part of online chatting, product review, brand emotion, and many more. It also leads to
increasing data science research dedicated to emoji-driven storytelling.
-1-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
A laptop or desktop computer equipped with at least an Intel Core i7 or AMD Ryzen 7 processor, 16
GB RAM, and a minimum of 500 GB SSD storage is recommended for local development and testing.
These specifications ensure smooth model training and faster data handling.
Access to a Graphics Processing Unit (GPU) is crucial for accelerating the training process of
Convolutional Neural Networks (CNNs), which are commonly used for image-based recognition tasks.
Suggested GPUs: NVIDIA GTX 1650 or above, RTX 2060/3060, or Tesla series.
At least 500 GB of available storage is needed to store image datasets (e.g., MNIST), preprocessed
images, model weights, and log files. SSD is preferred for faster read/write operations.
The project uses various software tools and libraries for data handling, model development,
visualization, and deployment.
Compatible with:
• Windows 10 or higher
• Linux (Ubuntu preferred for ML environments)
• macOS
Linux is recommended due to its better compatibility and support for open-source machine learning
tools.
-4-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
• TensorFlow & Keras: For designing and training Convolutional Neural Networks (CNNs) for
digit classification.
• scikit-learn: Used for preprocessing, splitting datasets, and calculating evaluation metrics like
accuracy or confusion matrix.
• numpy & pandas: Used for data manipulation, numerical computation, and array operations.
• Matplotlib & Seaborn: Used for Exploratory Data Analysis (EDA), visualizing digit samples,
loss and accuracy plots, and performance metrics.
• The project uses publicly available image datasets such as the FER2013 from Kaggle
• OpenCV and Pillow (PIL): These libraries are used for image resizing, grayscale conversion,
normalization, and augmentation. These steps ensure consistent input shape and improve model
generalization by simulating different handwriting styles.
-3-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
Guidance and mentorship from faculty advisors or project guides is essential. They provide technical
direction, monitor progress, and ensure that the project meets both academic and performance goals.
-4-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
4. Model Development
• Built an initial deep learning model using Keras/TensorFlow:
o Used multiple convolutional and pooling layers for feature extraction.
o Added dense layers for classification.
o Applied softmax activation in the output layer.
• Implemented model training and validation using training/validation split.
-5-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
5. Evaluation Metrics
• Measured performance using accuracy, precision, recall, and confusion matrix.
• Observed overfitting and tuned hyperparameters accordingly.
-6-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
3. Overfitting
• The initial model showed high accuracy on the training set but poor generalization on the
validation/test set, indicating overfitting.
• Required experimentation with dropout layers, data augmentation, and regularization techniques
to mitigate it.
-7-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
5. Emotion Ambiguity
• Certain facial expressions can represent multiple emotions, leading to ambiguity in
classification (e.g., Surprise vs. Fear).
7. Integration with UI
• Encountered challenges while integrating the backend emotion detection model with a live
interface (Tkinter/Flask/Streamlit), especially handling image inputs and real-time webcam
feed.
-8-
Chandigarh Engineering College, Jhanjeri, Mohali
(An Autonomous College)
Department of Computer Science and Engineering-Apex
Chapter-5: References
4. OpenCV Documentation.
https://opencv.org/
-9-