726 Camera Ready
726 Camera Ready
3 4
S. Poonkodi M. Anand
Department of Computing Technology, School of computing Department of Computing Technology, School of computing
SRM Institute of Science and Technology SRM Institute of Science and Technology
Kattankulathur, Chennai, TamilNadu, Kattankulathur, Chennai, TamilNadu,
India – 603203 India – 603203
[email protected] [email protected]
3. METHODOLOGY
This study introduces SR-GAN, a deep learning-based image
super-resolution model using Generative Adversarial Networks
(GANs) to enhance low-resolution images. The model
comprises a generator and discriminator, with residual blocks
enabling the learning of complex mappings for significant
upscaling while preserving fine details. The generator focuses
on creating high-resolution images, while the discriminator
improves perceptual quality by distinguishing real from
generated images and providing feedback through adversarial
training. Trained on a curated coffee beans dataset, SR-GAN
optimizes loss functions to balance perceptual quality and
fidelity. Evaluation using metrics like PSNR and SSIM, along
with qualitative assessments, showed that SR-GAN
outperforms state-of-the-art methods in recovering textures and
producing visually appealing high-resolution images across classification steps.
diverse datasets. Figure 2. Coffee beans defects types a. Black b. Brown c.
Broken d. Non defective high-quality beans [19]
Table I. Results for models trained on low-resolution images Table II presents the results of models trained on high-
resolution images for different types of beans (Black bean,
Figure 7 and 8 displays the performance metrics of models Brown bean, Broken bean, and High-quality bean) across
trained on low-resolution images of brown beans and broken various epochs (10, 15, 20, 25, 30). The metrics used to
beans across various epochs (10, 15, 20, 25, 30, and the evaluate the model’s performance include Precision, Recall,
average). It shows four key metrics: Accuracy (purple), and F1 Score for each bean type. As the number of epochs
Precision (green), Recall (blue), and F1 Score (yellow). increases, test accuracy improves, peaking at 97.23% at 30
Accuracy starts around 60% at 10 epochs, improves steadily, epochs. The model performs particularly well on high-quality
and peaks at 30 epochs, similar to Precision and F1 Score. beans, reaching a Precision of 95.89, Recall of 96.99, and an
Precision shows a gradual improvement with the highest value F1 Score of 96.44 at 30 epochs, while the Black bean also
at 30 epochs, while Recall also improves, particularly between shows significant improvement, with an F1 Score of 75.8 at 30
20 and 30 epochs, before showing a slight dip. The F1 Score epochs. The Brown and Broken beans similarly show their
follows a similar trend to Precision, increasing as more epochs highest performance at 30 epochs, with F1 Scores of 78.64 and
are added. Overall, the average metrics indicate consistent 79.32, respectively. On average, the model performs best for
model performance, with 30 epochs delivering the best results high-quality beans, with consistently high metrics across all
across all parameters for the brown bean classification task, epochs, and shows overall improvements as the number of
highlighting the model’s increased accuracy and reliability epochs increases, demonstrating the effectiveness of training
with more training. on high-resolution images for bean classification tasks.
Figure 8. Results for models trained on low-resolution images Figure 9. Results for models trained on low-resolution images
of broken bean of high-quality beans
Figure 9 showcases the performance results of models trained Figure 10 illustrates the performance of models trained on
on low-resolution images of high-quality beans across different high-resolution images of black beans across different epochs
epochs (10, 15, 20, 25, 30, and the average). Four key metrics (10, 15, 20, 25, 30, and an average). Four key metrics are
are depicted: Accuracy (purple), Precision (green), Recall depicted: Accuracy (black), Precision (orange), Recall (gray),
(blue), and F1 Score (yellow). Across all epochs, the model and F1 Score (blue). As the number of epochs increases,
achieves consistently high performance, with Accuracy, accuracy shows a steady improvement, peaking at 30 epochs.
Precision, Recall, and F1 Score all ranging above 75%. The Precision, Recall, and F1 Score also increase with additional
metrics remain fairly stable, with minimal fluctuations, as the epochs, with a significant jump in all metrics around 20 epochs.
number of epochs increases. At 30 epochs, Accuracy and At 30 epochs, the model reaches its highest performance across
Recall peak near 90%, while Precision and F1 Score also show all metrics, with accuracy nearing 100%. The average values
strong performance, reaching similarly high values. The indicate consistent overall performance, with Precision and F1
average values across all metrics indicate that the model is Score closely aligned throughout. This figure highlights the
highly effective in classifying high-quality beans, achieving importance of longer training (30 epochs) in achieving optimal
robust and reliable results with only slight variations between results for black bean classification using high-resolution
the metrics, highlighting its stability and precision over images.
different epochs.
Figure 10. Results for models trained on high-resolution Figure 13 illustrates the performance of models trained on
images of black beans high-resolution images of high-quality beans across different
epochs, measuring metrics such as Accuracy, Precision, Recall,
and F1 Score. The model demonstrates consistently high
performance across all metrics, with values remaining
relatively stable as the number of training epochs increases.
Accuracy, Precision, Recall, and F1 Score all hover around
high values, indicating that the model effectively identifies
high-quality beans with minimal variation in performance. The
average performance across all epochs remains strong, showing
that the model performs well in identifying high-quality coffee
beans throughout the training process.