SPIRAL Binding Report (2) - 1
SPIRAL Binding Report (2) - 1
A Project Report
submitted in the partial fulfillment of the requirements for the award of the degree of
NAME Enrollment ID
Faculty of Engineering
Assam 781026
May, 2024
1
Assam down town University
Faculty of Engineering
CERTIFICATE OF APPROVAL
This is to certify that the project report entitled “Ceramic Tiles Defect Detection System” is
hereby approved as a creditable study of the project and has been submitted by Chintu
Kalita bearing Enrollment No. ADTU/2020-24/BCS/021, Amandip Singh bearing Enrollment
No. ADTU/2020-24/BCS/026, and Vivek Kalita bearing Enrollment No.
ADTU/202024/BCS/036 is in satisfactory manner to warrant its acceptance as a
prerequisite to the degree of Bachelor of Technology in Computer Science and
Engineering under Assam downtown University for which it has been submitted.
It is understood that by this approval, the undersigned do not necessarily endorse any
conclusion drawn or opinion expression therein, but approve the report for the purpose for
which it is submitted.
2
Assam Down Town University
Faculty of Engineering
3
Assam down town University
Faculty of Engineering
This is to certify that the project report entitled “Ceramic Tiles Defect Detection System ” is
hereby approved as a creditable study of the project and has been submitted by Chintu Kalita
bearing Enrollment No. ADTU/202024/BCS/021, Amandip Singh bearing Enrollment No.
ADTU/2020-24/BCS/026, and Vivek Kalita bearing Enrollment No. ADTU/202024/BCS/036 is
in satisfactory manner to warrant it’s acceptance as prerequisite to the degree of Bachelor of
Technology in Computer Science And Engineering under Assam down town University is a
bonafide project work carried out by them under my supervision and guidance found to be
satisfactory.
I recommend the thesis for consideration for the award of the degree of Bachelor of Technology in
Computer Science and Engineering under Assam downtown University.
This is to certify that the project report entitled “Ceramic Tiles Defect Detection System ” is
hereby approved as a creditable study of the project and has been submitted by Chintu Kalita
bearing Enrollment No. ADTU/202024/BCS/021, Amandip Singh bearing Enrollment No.
ADTU/2020-24/BCS/026, and Vivek Kalita bearing Enrollment No. ADTU/202024/BCS/036 is
in satisfactory manner to warrant it’s acceptance as prerequisite to the degree of Bachelor of
Technology in Computer Science And Engineering under Assam Downtown University is a
bonafide project work carried out by them under the supervision and guidance of Dr. Aniruddha
Deka, Associate Professor, has been examined by me and found to be satisfactory.
I recommend the thesis for consideration for the award of the degree of Bachelor of Technology in
Computer Science and Engineering under Assam down town University.
Date:
5
Assam down town University
Faculty of Engineering
DECLARATION
The Project Report entitled “Ceramic Tiles Defect Detection” is a record of Bonafide work
of “ Chintu Kalita bearing Roll No. ADTU/2020-24/BCS/021, Amandip Singh bearing
Roll No. ADTU/2020-24/BCS/026, Vivek Kalita bearing Roll No.
ADTU/2020-24/BCS/036,” submitted in partial fulfillment for the award of Bachelor of
Technology in Computer Science and Engineering in the Faculty of Engineering in
Assam downtown University.
The results embodied in this report have not been copied from any other
departments/University/Institute.
Amandip Singh
Vivek Kalita
6
ACKNOWLEDGEMENT
Foremost, we express our sincere gratitude to our project Guide, Dr. Anirudha Deka. Sir’s
invaluable guidance, encouragement, and expertise were instrumental in shaping the
direction of this research and keeping us on track. His willingness to dedicate time to
answer our questions and address our challenges was pivotal for our research.
We would also like to extend our thanks to the Department of CSE under Faculty of
Engineering, Assam down town University. Their assistance in providing access to essential
equipment and resources was crucial in conducting experiments and collecting data. Their
technical support proved to be invaluable throughout the project.
Finally, we would like to express our appreciation to the administration of Assam down
town University as well as the teaching and non-teaching staff of the department of CSE for
their unwavering encouragement and support throughout this journey.
Chintu Kalita
ADTU/2020-24/BCS/021
Amandip Singh
ADTU/2020-24/BCS/026
Vivek Kalita
ADTU/2020-24/BCS/036
7
INDEX
● Certificate of Approval………………………….….2
● Certificate from Guide……………………………...3
● Certificate from external examiner………………....4
● Declaration……………………………………….…5
● Acknowledgment……………………………….…..6
● Index………………………………………………...7
● Abstract……………………………………………..9
1. Introduction………………………………….………………………………………..10
1.1. Motivation…………………………….………..11
1.2. Scope…………………………………..………...11
1.3. Problem Statement.………………….….12
1.4. Objective…………………………………………12
1.5. Benefits of proposed system………12
2. Literature Review………………………………………………………………………14
2.1. Trend Analysis………………………………………….18
2.2. Key Findings……………………………………………..18
2.3. Survey on Existing System……………………..19
8
4.4. Sample Source code………………..….....37
4.5. Process Flow Diagram…………………….39
4.6. Results……………………………………………….40
9
Abstract
The high-volume ceramic tile industry grapples with the inefficiency and subjectivity
inherent in manual quality control. Traditional methods rely on human inspectors to
identify defects like cracks, holes, edge defects and color variations on each individual tile.
This process is not only time-consuming but also prone to errors due to fatigue and the
reliance on experience-based judgment. In actual production, the difficulty in extracting
texture ceramic tile features and the small size of defects lead to low detection accuracy
and inefficiency. To address these limitations, this paper proposes utilizing digital image
processing (DIP) techniques and for training the model we used YOLO (YOLOv5 and
YOLOv8l model). The model has been trained for 50 epochs, resulting in a final validation
on the weights saved as best.pt This YOLOv8 model, utilizing a Tesla T4 GPU, comprises
268 layers with a total of 68,126,457 parameters and operates at 257.4 GFLOPs (Giga
Floating-point Operation Per Second). For the problem of complex background and small
defect size in the dataset, we improve the model in turn. We are further conducting a
comprehensive review to enhance and classify existing defects.
10
Chapter 1
Introduction
Defect detection or anomaly detection in industrial processes is an important
procedure. Currently, manual and visual inspections performed by experts are expensive
due to the high cost of human labor during working hours, the possibility of material
waste, and the degraded quality of shipped products. In contrast, the use of machine
learning algorithms for automatic defect detection reduces labor consumption. In recent
years, automatic defect detection has played a critical role in the industry’s inspection
process. Current non-destructive testing methods for ceramic tiles mainly include
ultrasonic testing, machine vision inspection, and X-rays. However, this method is costly
and inefficient, which is not suitable for the needs of tile inspection in the industry.
Hanzaei et al. proposed an automatic image processing system. The defect edge detection
is performed by using statistical methods for the defect statistics of different diameters.
However, their system requires a high radius size for defects, and when the radius size is
too large or too small, the detection error reaches over 35%.
To address the limitations of existing methods, in this study, ceramic tiles with
different backgrounds are used as research objects, and YOLOv5 is used as the base deep
learning model combined with digital image processing techniques. Our system aims to
improve efficiency, and achieve consistent quality control and maintain cost effectiveness.
Inspired by the research paper "MACAW-YOLO: An Efficient Detection Model for
Ceramic Tile Surface Defects" by Yu et al. (2023) [1], we leverage the YOLO framework's
real-time detection capabilities for this application. This project adopts a similar
approach, utilizing digital image processing for pre-processing the tile images and a
YOLO model trained on a comprehensive defect dataset for real-time detection and
classification of defects on ceramic tiles.
This project aims to develop an automated system for detecting and classifying
common defects in ceramic tiles during the manufacturing process. The system leverages
Digital Image Processing (DIP) techniques and a deep learning model trained with the
YOLO algorithm to achieve this goal.
The system will classify three primary defect types: pinholes, lines, and edge defects.
The system will accurately identify the location of each classified defect on the tile
surface.
Images of ceramic tiles will be captured using an appropriate industrial camera setup
followed by applying Digital Image Processing (DIP) techniques to pre-process these
images, which may include, noise reduction to minimized any unwanted random
11
variations in the captured image, contrast enhancement to improve the visibility of
different features in the image, image filtering to refine the image quality and lastly
feature extraction like edges, lines, holes etc.
Next, we trained a deep learning model using the YOLO (You Only Look Once)
algorithm for object detection. This involves dataset preparation by using a labeled
dataset of ceramic tile images, which includes examples of pinholes, lines, and edge
defects .The model is trained to recognize and classify these defects, and consequently
the model detects the objects along with bounding boxes.
Future consideration of our research will be upon expanding defect classification to
include additional types and integrating the system into the production line for real-time
defect detection and sorting.
This project offers a promising approach for enhancing ceramic tile quality control
through automated defect detection and classification.
1.1. Motivation
The ceramic tile industry faces significant challenges in maintaining consistent product
quality due to the limitations of manual visual inspection. Here's a compelling case for
implementing an automated defect detection system:
This project focuses on detecting and classifying three primary defect types:
pinholes, lines, and edge defects. The system will be designed to analyze pre-processed
digital images captured from a controlled industrial camera setup. The initial
development will target offline defect detection, analyzing captured images individually.
12
Future iterations may explore real-time integration within the production line. The
system will be designed
to analyze pre-processed digital images captured from a controlled industrial camera
setup. This setup ensures consistent image quality and lighting conditions, which are
crucial for accurate defect detection. As the project progresses, the system may be
expanded to detect and classify additional defect types, further enhancing its utility.
1.4 Objectives
I. Develop a deep learning model using the YOLO algorithm. This model will be
trained on a comprehensive dataset of labeled ceramic tile images containing
examples of pinholes, lines, and edge defects.
II. Achieve a high level of accuracy in both defect classification (identifying the type
of defect) and localization (precise bounding box generation around the defect).
III. Design a user-friendly interface for system operation, allowing for easy image
input and defect visualization.
IV. Evaluate the system's performance through rigorous testing with a diverse set of
ceramic tile images.
13
III. Process Optimization: Real-time defect identification allows for adjustments in the
manufacturing process to prevent recurring defects. This streamlines production
and reduces waste.
IV. Increased Efficiency and Throughput: Faster production lines lead to higher
output and potentially lower production costs.
V. Enhanced Product Quality: Consistent defect detection translates to a
higher-quality product, potentially commanding premium pricing and
strengthening brand reputation.
VI. Reduced Environmental Impact: Minimized waste due to early defect detection
lowers the industry's environmental footprint.
14
Chapter 2
Literature Review
The ceramic tile industry has witnessed a growing trend towards implementing
automated defect detection systems to address limitations associated with manual
inspection. This literature review explores existing research in this field, highlighting key
findings and identifying potential areas for further exploration.
● Matlab based automated surface defect detection system for ceramic tiles using
image processing (Pantech Solutions, 2018) : This paper explores the use of image
processing techniques like noise reduction, contrast enhancement, and filtering
alongside a deep learning model for ceramic tile defect detection. This approach
emphasizes the importance of image pre-processing in preparing data for deep
learning analysis.
● Automatic Surface Defect Detection for Ceramic Tiles Using Digital Image
Processing: A Literature Review (Journal of Mechatronics and Automation, 2017) :
This review paper provides a comprehensive overview of various image processing
techniques used for ceramic tile defect detection. It highlights the ongoing
exploration of different edge detection methods, such as Canny edge detection, for
defect identification
● Uddin, M. S., Arafat, M. F., Haque, M. R., & Islam, S. M. (2019). "Automated Defect
Detection of Ceramic Tiles Using Image Processing Techniques." : Uddin et al.
(2019) present a study on automated defect detection in ceramic tiles utilizing
15
various image processing techniques. The authors focus on leveraging edge
detection, thresholding, and morphological operations to identify surface defects
accurately. Their proposed method aims to reduce the subjective nature of manual
inspection and improve consistency in defect detection. The system demonstrated
promising results, with high detection accuracy for common defects such as cracks,
chips, and stains. This research contributes to the field by providing a cost-effective
and efficient solution for quality control in ceramic tile manufacturing.
● Pasadas, M., Peña, F., & Bandera, J. P. (2018). "A Novel Approach to Automatic Defect
Detection in Ceramic Tiles Using Convolutional Neural Networks." : Pasadas, Peña,
and Bandera (2018) explore the application of convolutional neural networks
(CNNs) for the automatic detection of defects in ceramic tiles. Their approach
involves training a CNN on a dataset of tile images, where the network learns to
distinguish between defective and non-defective tiles. The study highlights the
advantages of using deep learning techniques, such as their ability to learn complex
patterns and features from raw image data without extensive pre-processing. The
results indicate that the CNN-based system outperforms traditional image
processing methods, achieving higher accuracy and robustness in detecting various
types of defects, thus marking a significant advancement in automated quality
inspection.
● Correa, D. S., Lima, K. M. G., & Silva, S. H. M. (2020). "A Computer Vision System for
Automatic Detection of Defects in Ceramic Tiles." :Correa, Lima, and Silva (2020)
introduce a computer vision system specifically designed for the automatic
detection of defects in ceramic tiles. The system employs a combination of image
enhancement techniques, feature extraction, and machine learning algorithms to
identify and classify defects. The authors discuss the implementation of texture
analysis and pattern recognition methods to improve detection accuracy. Their
experiments show that the system is capable of identifying a wide range of defects,
including both surface and structural anomalies. This study underscores the
potential of integrating advanced computer vision techniques into the
manufacturing process to enhance quality control and reduce human error.
● Cai, J., Liu, Y., & Shen, X. (2021). "Deep Learning-Based Ceramic Tile Surface Defect
Detection with Improved Accuracy.":In their 2021 paper, Cai, Liu, and Shen
investigate the application of deep learning models for detecting surface defects on
ceramic tiles. The authors propose an enhanced deep learning architecture that
incorporates various pre-processing steps and data augmentation techniques to
improve model performance. By training the model on a large and diverse dataset,
they achieve notable improvements in detection accuracy and generalization. The
study demonstrates that deep learning, particularly convolutional neural networks,
can effectively address the challenges of defect detection, offering a robust solution
that adapts to different types of surface imperfections. This work highlights the
importance of advanced machine learning techniques in modern quality inspection
systems.
16
● Yuan, Y., Huang, J., & Zhang, Y. (2022). "Enhanced Defect Detection Method for
Ceramic Tiles Based on Hybrid Features and Support Vector Machine." :Yuan,
Huang, and Zhang (2022) propose an enhanced method for detecting defects in
ceramic tiles by combining hybrid feature extraction techniques with support
vector machine (SVM) classifiers. Their approach involves extracting a
comprehensive set of features from tile images, including texture, color, and shape
descriptors, to capture various defect characteristics. The use of SVMs allows for
effective classification of defects based on these hybrid features. The experimental
results demonstrate that this method achieves high detection accuracy and is
capable of identifying multiple defect types. The study provides valuable insights
into the integration of hybrid feature extraction and machine learning algorithms
for improving defect detection in industrial applications.
17
advanced
techniques is
lacking.
18
2020 A Computer Vision Pattern Combines image May struggle with
System for Recognition Letters enhancement, highly complex or
Automatic feature extraction, novel defect types.
Detection of and machine
Defects in Ceramic learning for defect
Tiles - Correa, D. identification.
S., Lima, K. M. G., &
Silva, S. H. M.
2.1Trend Analysis
Below is the trend analysis in the domain of automated ceremic tiles defect detection and
classification in the last four years starting 2019 till 2023
These findings underscore the significant progress made in automating ceramic tile defect
detection. Our project can contribute to this advancement by focusing on specific defect
types (pinholes, lines, and edge defects) and exploring the YOLO algorithm for potentially
faster real-time processing capabilities.
The field of automated ceramic tile defect detection has seen growing research
interest due to the limitations of manual inspection. The existing systems and research,
highlighting the gap our project aims to address are as follows:
To overcome the limitations discussed in existing system we focus on the following key
points to improve the accuracy of our systems.
20
I. Focus on YOLO Algorithm: We aim to utilize the YOLO algorithm for defect
detection. YOLO offers advantages in real-time processing compared to other deep
learning approaches, making it suitable for potential future integration within the
production line.
II. Specific Defect Classification: Existing research often focuses on broader defect
categories. Our project targets three specific and prevalent defect types (pinholes,
lines, and edge defects) to provide more granular information for quality control.
III. Addressing Data Challenges: The success of deep learning models heavily relies
on the quality and size of training data. We will address this by potentially:
● Curating a diverse dataset encompassing various defect variations.
● Employing data augmentation techniques to artificially expand the dataset for
robust model training.
By incorporating these elements, our project aims to contribute a more efficient and
targeted solution for automated ceramic tile defect detection, paving the way for real-time
quality control within the industry.
Chapter 3
System Analysis and Design
System analysis and design involves a systematic approach to understanding and creating an
information system that meets specific requirements. In our proposed ceramic tiles defect
detection system, we applied both digital image processing techniques and the YOLO (You
Only Look Once) algorithm to develop an effective model for identifying defects. The system
processes images of ceramic tiles, using digital image processing to enhance and prepare the
images for analysis. YOLO, a powerful real-time object detection framework, is then employed
to train the model on a dataset that includes various types of defects such as holes, edge
defects, and line defects. This combination of image processing and advanced machine
learning allows for accurate and efficient detection of imperfections in ceramic tiles, ensuring
high-quality standards in manufacturing.
21
multiple features like confidence setting, detect a particular class etc. For classification we
have introduced the following steps:
22
to learn the features that differentiate defective and non-defective images. Once trained, the
model can be used to detect defects in new, unseen images. The model will identify
potential defects (bounding boxes) and assign a probability score for being defective. A
threshold can be set to classify the defect based on this score.
Once implemented this system should ideally achieve high accuracy and must reliably
detect and classify defects with minimal false positives or negatives. Further it will offer
real-time processing for optimal production line integration. Lastly the system should be
adaptable to handle variations in tile design, color, and lighting conditions.
By developing such a system, we can significantly enhance the ceramic tile industry's
efficiency, product quality, and environmental sustainability.
23
I. Data Dependency- Collecting and annotating large datasets can be
time-consuming and expensive. Poor quality or insufficient data can
lead to a model that fails to detect defects accurately.
II. Complexity in Setup may require hiring specialized personnel or
investing in training for existing staff, increasing the initial setup cost.
III. Computational Requirements can lead to higher costs for hardware
and may require significant investment in GPUs or cloud computing
services.
IV. Maintenance and updates for continuous monitoring and updating
the model can add to the operational costs and require ongoing
technical support.
The process begins with image acquisition and preparation, which is crucial for ensuring
that the images used for analysis are of high quality. This initial step involves adjusting the
lighting to ensure even illumination across the tile surface, as well as applying noise
reduction techniques to remove any unwanted artifacts that could interfere with defect
detection. Once the images are prepared, they are evaluated to identify specific features
such as edges, lines, and holes, which may indicate faults in the tiles.
Following the identification of these features, segmentation is applied to divide the image
into distinct regions. This segmentation process helps isolate areas of interest, making it
easier to focus on potential defects. The features of these segmented areas are then
extracted and analyzed for classification purposes. By examining attributes such as shape,
size, and texture, the system can categorize the tiles based on the presence or absence of
defects.
After feature extraction, the tiles are classified as either defective or non-defective.
Defective tiles are further classified into specific types of flaws, such as line defects, edge
defects, or holes. This detailed classification helps in identifying the nature of the defect and
determining the appropriate corrective actions. For tiles classified as non-defective, a
24
comparison is made against a reference image to ensure they meet the established quality
standards. This step verifies that non-defective tiles conform to the required specifications
before they proceed further in the production process.
Overall, this automated defect detection system significantly enhances the quality control
process in the ceramic tile production industry. By integrating digital image processing and
advanced algorithms like YOLO, the system ensures high accuracy and efficiency in
identifying and categorizing defects, thereby reducing the reliance on manual inspection
and improving the overall consistency and quality of the final products.
25
3.3 Gantt Chart
This Gantt chart outlines the timeline and phases of a project focused on developing and
implementing a YOLO model for defect detection in tiles. The project spans six months,
from December to May, and includes the following key tasks:
26
Duration: 2 months
5. Implementation (May)
Description: The final phase involves deploying the trained YOLO model into the production
environment. This includes converting the model to ONNX format, setting up the inference
pipeline, and integrating the model into the existing systems or platforms. The goal is to
ensure smooth and efficient real-world application of the model.
Duration: 1 month
27
Chapter 4
Implementation and Result discussion
b) Hole - Holes in ceramic tiles, also known as pinholes, are defects that appear as
small craters or voids on the surface. These holes can occur due to trapped air
bubbles during the manufacturing process or uneven drying that causes pockets
of moisture to escape during firing. Pinholes can affect the water resistance and
structural integrity of the tile, so they are generally considered defects.
28
c) Line - Thin, sharp imperfections mar the tile's edge, Like cracks or scratches, a
straight, etched divide. These lines detract from the smooth, flawless design, A
flaw in the surface, a reason to decline.
2. Annotation
We label the preprocessed image using bounding boxes at roboflow.com
29
3.Training
For training the model we used YOLO. YOLO (You Only Look Once) is a state-of-the-art,
real-time object detection system that predicts bounding boxes and class probabilities
directly from full images in a single evaluation. The model has been trained for 50 epochs,
resulting in a final validation on the weights saved as best.pt This YOLOv8 model, utilizing a
Tesla T4 GPU, comprises 268 layers with a total of 68,126,457 parameters and operates at
257.4 GFLOPs
30
4.Performance Evaluation
I. The performance of the YOLOv5 and YOLOv8 object detection models is evaluated
using several key metrics: precision , recall, mAP50 and mAP50-95, across different
model sizes. Accuracy measures the precision of the findings, indicating the
proportion of true positive results among all findings. Recall evaluates the model's
ability to detect real objects, reflecting the proportion of true positives among all
ground truth objects. The mAP50 metric evaluates the average mean accuracy at an
IoU threshold of 0.50, providing insight into the model's accuracy in identifying
objects with a moderate degree of overlap. The mAP50-95 index extends this
assessment to multiple IoU thresholds from 0.50 to 0.95, providing a more rigorous
and comprehensive measure of model performance. In comparison, YOLOv8 shows
superior performance on all metrics.The YOLOv8 model achieved a precision of 73
and a recall of 60, surpassing the 60.8 precision and 55 recall of the small YOLOv5
model. For extremely large samples, YOLOv8 performs significantly better than
YOLOv5, with precision of 81 and recall of 70.4 , compared to 73 and 68 respectively
for YOLOv5. Additionally, YOLOv8's extra-large model achieves an mAP50 score of 65,
which is significantly higher than YOLOv5's 52 for the same size.The mAP50-95 index
highlights YOLOv8's improvements, with the extra large version scoring 49 points,
compared to YOLOv5's 30 points. Overall, YOLOv8 shows significant improvement in
object detection performance, especially with the extremely large model, achieving
the highest scores for all evaluated parameters. This shows that YOLOv8 provides
more accurate and comprehensive detection than YOLOv5.
In each graph, the bars for YOLOv5 are in blue, while the bars for YOLOv8 are in
orange. This visualization helps in comparing the performance improvements or
differences between the two versions of the YOLO model for different size categories
31
zxd
II. The below graph is an F1-confidence curve, which shows the relationship between
confidence levels and F1 scores for different defect classes: edge-chipping, hole, line,
and the combined performance for all classes. Each curve represents how the F1 score
changes as the confidence threshold varies. The green line (line defect) has a sharp
peak, suggesting optimal performance at a specific confidence level but poor
performance elsewhere. The combined (blue) curve shows the overall model
performance, peaking at an F1 score of 0.48 at a confidence level of 0.233
32
III. This graph is a Precision-Recall curve, illustrating the trade-off between precision and
recall for different defect classes: edge-chipping, hole, line, and the combined
performance for all classes. Precision (y-axis) measures the accuracy of the positive
predictions, while recall (x-axis) measures the ability to capture all actual positives.
The curves show how these metrics change with different thresholds. The brown line
(hole) demonstrates high precision across a broad range of recall values, indicating
consistent performance. The green line (line) has low precision and recall, suggesting
poor performance. The blue line represents the combined performance for all classes,
achieving a mean average precision (mAP) of 0.445 at a recall threshold of 0.5,
indicating moderate overall effectiveness.
33
34
IV. This graph is a Recall-Confidence curve, showing how recall varies with different
confidence levels for various defect classes: edge-chipping, hole, line, and the
combined performance for all classes. Recall (y-axis) measures the ability to identify
all actual positive instances, while confidence (x-axis) represents the threshold for
classifying a prediction as positive. The brown line (hole) maintains high recall across
most confidence levels, indicating effective detection. The green line (line) quickly
drops, reflecting poor recall as confidence increases. The blue line shows the overall
recall for all classes, starting at a recall of 0.74 at a confidence level of 0, and gradually
decreasing as confidence increases, indicating a trade-off between high recall and
higher confidence thresholds.
35
V. This composite graph displays various visualizations related to the analysis of defect
instances in a dataset.
The top left bar chart indicates the frequency of three types of
defects—edge-chipping, hole, and line—with edge-chipping being the most common
and line the least.
The top right heatmap shows a density plot where the intensity of red signifies
higher concentrations of defects at the center, implying a central clustering.
The bottom left heatmap illustrates the distribution of defects across a normalized
coordinate system, suggesting a relatively even spread with a slight concentration
towards the center.
The bottom right scatter plot represents the distribution of defects in terms of their
width and height, indicating that defects with smaller dimensions are more frequent,
particularly those with a width and height of less than 0.4
36
5.Testing
6.Deployment
For Deployment we used the streamlit package to make the web app and deploy the
model in it.
37
model's performance on a validation set, generating metrics and
visualizations to understand how well the model detects tiles.
III. Visual Studio Code (VS Code) for Code Development: We used VS Code
for writing and debugging our Python scripts. This includes developing
the training script, model evaluation script, and the deployment code
for our web application.VS code provides directory to arrange all the
scripts and other required files together
IV. Python for Model Implementation: Python is the primary language we
used to implement and train our YOLOv8 model. This includes using
libraries like Ultralytics for the YOLO model, as well as other libraries
for data handling (like pandas and numpy), and image processing (like
OpenCV or PIL). And for Web Application as well we used Python to
develop the web application with Stream Lit, which serves the trained
model and allows users to upload images and get tile detection results.
V. Ultralytics YOLOv8 Framework: We used the Ultralytics YOLO library to
leverage pre-built implementations of YOLOv8, making it easier to train
and deploy your model. This includes defining the model architecture,
training it on your dataset, and exporting the trained model for
deployment.We used the ultralytics directory to load the weights of our
trained model and used the ultralytics packages to load the model in
the web environment
38
Fig (c): Prototype Model in Software development
39
4.4.SAMPLE CODE
40
41
4.5. Process Flow Diagram
The process flow diagram outlines the stages of developing an image-based machine learning
system. It begins with Image capture, where raw images are collected. These images undergo
Data Annotation, where relevant features are labeled. The annotated images are used in Data
Preprocessing to prepare them for analysis, resulting in preprocessed Images. These images
are then fed into an interface for user interaction. Simultaneously, the annotated images are
used for Model Training to build and refine the machine learning model. Finally, the trained
model is moved to Deployment for real-world application.
42
4.6. Results:
The system have a user friendly interface where for the offline defect detection there is drag
and drop feature where the user is supposed to upload the image of tile(s) to check for
either defective or non defective features. The system produces the output based on the
training model and labels the respective defects in the uploaded image along with the
confidence associated with it.Further more the user can set the confidence meter to
prioritize either higher accuracy or higher sensitivity to defects.
43
Chapter 5
Conclusion and Future Scope
In conclusion, our Ceramic Tiles Defect Detection System project is a significant step
forward in addressing a crucial challenge in the ceramic tiles industry, which was valued
at USD 283.57 billion in 2022 as reported in the Global Ceramic Tiles Industry Report
2023-32. The industry faces an average loss of 3% due to defects, translating to a
substantial economic impact of approximately USD 8.51 billion annually. This
underscores the urgent need for effective and efficient defect detection solutions in the
production process.
Our project has focused on the development and evaluation of an automated defect
detection system, which aims to reduce these losses by identifying defects early in the
manufacturing process. Through detailed analysis and integration of advanced image
processing and machine learning techniques, our system demonstrates promising results
in enhancing the accuracy and speed of defect detection, thereby contributing to higher
quality standards and reduced waste.
In the course of our study, we have reviewed existing defect detection methods to identify
areas for further enhancement. Our findings indicate that while current technologies
offer a solid foundation, there is considerable potential for improvement in terms of
detection accuracy and the range of defect types that can be identified. This has guided
our research direction, and our system incorporates several innovative features aimed at
addressing these gaps.
Looking ahead, our future work will involve extensive research on additional types of
defect classification and detection. By expanding the scope of our system to cover a
broader spectrum of defects, we aim to develop a more comprehensive solution that can
be adapted to various production environments and tile types. Additionally, we plan to
integrate more sophisticated machine learning algorithms and explore real-time
processing capabilities to further enhance the system's performance.
In summary, the successful implementation of our Ceramic Tiles Defect Detection System
has the potential to significantly reduce the economic losses due to defective products in
the ceramic tiles industry. Our ongoing research and development efforts will ensure that
our system evolves to meet the growing demands of the industry, ultimately contributing
to improved production efficiency, reduced waste, and higher product quality. This
44
project not only addresses a critical industry need but also sets the stage for future
innovations in automated defect detection technologies.
Future Scope of our project work will encompass the development of the image
acquisition hardware or integration with existing production line machinery. While the
initial focus is on offline defect detection, real-time integration is under consideration for
our future work.
45
Chapter 6
REFERENCES
[1]Zhu, R., et al. (2023). A Machine Learning Method for Detection of Surface Defects on
Ceramic Tiles Using Convolutional Neural Networks. Sensors.
[2]Zhang, Y., et al. (2022). Ceramic Tile Surface Defect Detection Based on Deep Learning.
Procedia Computer Science.
[3]Boovaneswari, S., et al. (2020). Detection of Defects in Ceramic Tiles Using Deep
Neural Network in Artificial Intelligence. International Conference on Research and
Innovation in Information Systems.
[4]Zareei, M., et al. (2018). Improved Canny Edge Detector in Ceramic Tiles Defect
Detection. International Journal of Engineering and Technology.
[5]Vasilic, M., et al. (2019). The Edge Detecting Methods in Ceramic Tiles Defect
Detection. Journal of the Balkan Tribological Association.
Certainly! Here are five references related to ceramic tiles defect detection systems:
[6] Uddin, M. S., Arafat, M. F., Haque, M. R., & Islam, S. M. (2019). "Automated Defect
Detection of Ceramic Tiles Using Image Processing Techniques." *International Journal of
Computer Applications*, 178(44),
[7] M., Peña, F., & Bandera, J. P. (2018). "A Novel Approach to Automatic Defect Detection
in Ceramic Tiles Using Convolutional Neural Networks." *Journal of Manufacturing
Systems*, 47,
[8] Correa, D. S., Lima, K. M. G., & Silva, S. H. M. (2020). "A Computer Vision System for
Automatic Detection of Defects in Ceramic Tiles." *Pattern Recognition Letters*, 133
46