Machine Learning / Computer Vision · Research Island
Fabric Classification Using Deep Learning
A mobile app with a CNN that classifies textile patterns and fabric types from camera images.
01 · The problem
Identifying fabric types manually takes experience and time. Computer vision can test whether image patterns carry enough information to classify fabric into predefined categories.
02 · The goal
Train and evaluate a convolutional neural network to classify fabric images into the categories in the dataset — and use it from a mobile app.
03 · Development checklist
Trained a custom convolutional neural network in TensorFlow to classify textile patterns and detect fabric types from camera images, and implemented dataset preprocessing and image-augmentation pipelines to reduce overfitting for on-device inference.
- Identify the fabric classes and dataset.
- Inspect dataset quality and class distribution.
- Preprocess images for the model.
- Apply data augmentation.
- Split data into training, validation and test sets.
- Build a custom CNN architecture.
- Train the model in TensorFlow.
- Monitor training and validation performance.
- Evaluate the model on held-out data.
- Inspect incorrect predictions.
- Reduce overfitting with augmentation.
- Check for data leakage.
- Record reproducible evaluation results.
- Build a Flutter mobile app that classifies camera images.
04 · Technology stack
Python
Model development
TensorFlow
Machine-learning framework
CNN
Image-classification approach
Image preprocessing & augmentation
Standardise inputs and add variation
Flutter
Mobile interface for camera-image predictions
05 · How it works
Labelled fabric images are preprocessed and augmented, then used to train a custom CNN in TensorFlow. The CNN learns visual features from the images and predicts a fabric category; the Flutter app captures a camera image and runs it through the model on the device.
06 · The solution
Preprocessing standardises inputs and augmentation helps the model learn from variation in the training images. How useful the model is depends on the dataset, the class definitions, its test performance and how it handles images unlike the training set.
07 · Outcome
An image-classification project demonstrating a practical application of deep learning and computer vision on a mobile device.
08 · Challenges & learning
- A model can perform well on training data and still fail on unseen images — proper data splitting and evaluation are essential to know whether it learned useful visual patterns.
09 · Project status
Status: Academic project
10 · Proof
Interactive walkthrough — illustrative, built for this portfolio.
Image preprocessing
Preparing fabric images as model input.
Training
A convolutional neural network in TensorFlow.
Classification
Predicting the fabric class of an image.
Evaluation
Measuring how well the model performs.
Example input images and verified predictions / training results will appear here once they are added to this project's media. No sample predictions are shown until then.