2.4 Implementation Detail
In this project, TensorFlow was used for its efficiency
and flexibility in deep learning projects, specifically
for classifying chest X-ray images as Pneumonia or
Normal. Using TensorFlow's high-level Keras API
made it easier to build, train, and evaluate the neural
network model. An NVIDIA RTX 4080 GPU
accelerated the computation, significantly speeding
up training times, vital for model iterations and
experimentation.
The Adam optimizer, known for its adaptive
learning rate feature, was chosen with an initial
learning rate of 0.001. This choice is backed by the
optimizer's wide success in various deep learning
projects. A learning rate scheduler was also used to
adjust the learning rate based on the validation set's
performance, systematically lowering it to enhance
optimization when the classification accuracy
plateaued. The scheduler reduces the learning rate by
0.3 after every 2 epochs without accuracy
improvements, to a minimum level.
The model was meticulously designed to tackle
both denoising and classification, requiring dual loss
functions suitable for the binary classification task
and for assessing the quality of denoised images
against originals. Classification performance was
evaluated using accuracy as the key metric, while
denoising effectiveness was measured with Mean
Squared Error (MSE).
Training ran for 12 epochs with a batch size of 32,
balancing computational resources and update
frequency. This setup often leads to solid results in
various conditions. The training strategy aimed to
boost both the denoising and classification
capabilities of the model. It made changes to the
learning rate to steadily improve performance based
on important metrics.
3 RESULTS AND DISCUSSION
3.1 The Classification Performance
The performance graphs give an optimistic view
about how good the deep learning model performs in
detecting pneumonia from chest X-ray images over
10 epochs shown in Figure 2. Overall, the 'Model
Classification Accuracy' graph displays a rapid
increase in training accuracy, almost reaching
perfection by the second epoch. This quick learning
from the training data demonstrates a strong learning
capacity. A minor dip in accuracy afterward indicates
the model's adjustment to avoid overfitting, quickly
regaining high accuracy levels.
Validation accuracy, however, varies more. It
initially aligns with the training curve but peaks at
98.4%. The fluctuating accuracy in later epochs
points to the model's ongoing development in
applying its learning to new data, suggesting room for
model improvements for more consistent validation
performance.
The 'Model Loss' graph similarly indicates a fast
decrease in training loss, highlighting quick progress.
An initial increase in validation loss suggests early
challenges in generalization, yet the model's swift
adjustment implies an inherent adaptability.
These findings suggest a model that can
accurately detecting pneumonia, with potential for
further refinement. The variability in validation
outcomes suggests areas for improvement, such as
data augmentation, regularization, and
hyperparameter tuning, to enhance its ability to
generalize.
3.2 The Denoising Performance
The denoising results shown in Figure 3 presented in
the images reflect the model's capability to clean up
Figure 2: Model Classification Accuracy and Model Loss during the training process (Photo/Picture credit: Original)