Javascript must be enabled to continue!
Exploring Strategies for Optimizing Mobilenetv2 Performance in Classification Tasks Through Transfer Learning and Hyperparameter Tuning with A Local Dataset from Kigezi, Uganda.
View through CrossRef
Abstract
Background
Deep learning has proved to very vital in numerous applications in recent years. However, the development of a model may require access to datasets. Training models on datasets may impose numerous challenges in terms of computational constraints, making it inefficient for limited computational environments and in this study a local dataset from Kigezi Uganda will be used.
The study will also explore the strategies of optimizing the MobilenetV2 through transfer learning and hyper-tuning.
Main Objective:
This study explored the strategies for optimizing MobileNetV2 performance in performing classification tasks through transfer learning, data augmentation, and hyper parameter tuning with local data from Kigezi, Uganda. A total of 2,415 images is the dataset used and 9,660 images were obtained after data augmentation.
Methodology
The methodology used is experimentation using transfer learning and hyper-tuning of the model.
Results
The model layer freezing.
Freezing All Layers except Final Dense Layer: Training accuracy: 90%, Testing accuracy: 85%. The model was not flexible enough to adapt to the new dataset, Unfreezing Top 10 Layers: Training accuracy: 92%, Testing accuracy: 88%. Moderate improvement observed, but still underperforming. Unfreezing Top 20 Layers: Training accuracy: 95%, Testing accuracy: 91%. Significant improvement, suggesting that more layers need to be fine-tuned. Unfreezing Entire Network: Training accuracy: 98%, Testing accuracy: 96%. The model showed substantial improvement in learning task-specific features.
Hyper tuning the Learning Rate.
The optimal configuration was found by unfreezing the entire network, which allowed the model to fine-tune all layers, thus improving the model’s ability to generalize to the new dataset.
Learning Rate Tuning: Learning rate is one of the most crucial hyper parameters. An extensive grid search was performed over the following values: 0.1, 0.01, 0.001, 0.0001, and 0.00001, Batch Size Tuning: Different batch sizes (16, 32, 64, and 128) were tested to determine the most efficient size for gradient updates, Optimizer Selection: Various optimizers were tested, including SGD, RMSprop, and Adam. The Adam optimizer was selected for its adaptive learning rate capabilities.
Epochs and Early Stopping: The number of epochs was tuned along with early stopping criteria to prevent overfitting. Epochs were tested in the range of 10 to 100 with a patience of 5 for early stopping
The results of the learning rate 0.1: Training accuracy: 60%, Testing accuracy: 55%. The model was unable to converge 0.01: Training accuracy: 80%, Testing accuracy: 75%. Improved but still underperforming. 0.001: Training accuracy: 90%, Testing accuracy: 88%. Further improvement, but overfitting observed. 0.0001: Training accuracy: 99%, Testing accuracy: 98%. Optimal performance achieved.0.00001: Training accuracy: 95%, Testing accuracy: 92%. Learning was too slow.
Hyper-tuning using the batch-size:
16: Training accuracy: 97%, Testing accuracy: 94%. Good performance but higher computational cost32: Training accuracy: 99%, Testing accuracy: 98%. Optimal balance between performance and efficiency, 64: Training accuracy: 95%, Testing accuracy: 93%. Slightly reduced performance, 128: Training accuracy: 90%, Testing accuracy: 87%. The model struggled with larger batch sizes.
Hyper-tuning using by different optimizers
SGD: Training accuracy: 85%, Testing accuracy: 80%. Slower convergence. RMSprop: Training accuracy: 92%, Testing accuracy: 88%. Moderate performance. Adam: Training accuracy: 99%, Testing accuracy: 98%. Best performance due to adaptive learning rate.
The final customized model, after applying transfer learning and extensive hyper parameter tuning, achieved outstanding results: Training Accuracy: 99%Testing Accuracy: 98%,Training Loss: 0.02,Testing Loss: 0.04.
STMIK Indonesia Padang
Title: Exploring Strategies for Optimizing Mobilenetv2 Performance in Classification Tasks Through Transfer Learning and Hyperparameter Tuning with A Local Dataset from Kigezi, Uganda.
Description:
Abstract
Background
Deep learning has proved to very vital in numerous applications in recent years.
However, the development of a model may require access to datasets.
Training models on datasets may impose numerous challenges in terms of computational constraints, making it inefficient for limited computational environments and in this study a local dataset from Kigezi Uganda will be used.
The study will also explore the strategies of optimizing the MobilenetV2 through transfer learning and hyper-tuning.
Main Objective:
This study explored the strategies for optimizing MobileNetV2 performance in performing classification tasks through transfer learning, data augmentation, and hyper parameter tuning with local data from Kigezi, Uganda.
A total of 2,415 images is the dataset used and 9,660 images were obtained after data augmentation.
Methodology
The methodology used is experimentation using transfer learning and hyper-tuning of the model.
Results
The model layer freezing.
Freezing All Layers except Final Dense Layer: Training accuracy: 90%, Testing accuracy: 85%.
The model was not flexible enough to adapt to the new dataset, Unfreezing Top 10 Layers: Training accuracy: 92%, Testing accuracy: 88%.
Moderate improvement observed, but still underperforming.
Unfreezing Top 20 Layers: Training accuracy: 95%, Testing accuracy: 91%.
Significant improvement, suggesting that more layers need to be fine-tuned.
Unfreezing Entire Network: Training accuracy: 98%, Testing accuracy: 96%.
The model showed substantial improvement in learning task-specific features.
Hyper tuning the Learning Rate.
The optimal configuration was found by unfreezing the entire network, which allowed the model to fine-tune all layers, thus improving the model’s ability to generalize to the new dataset.
Learning Rate Tuning: Learning rate is one of the most crucial hyper parameters.
An extensive grid search was performed over the following values: 0.
1, 0.
01, 0.
001, 0.
0001, and 0.
00001, Batch Size Tuning: Different batch sizes (16, 32, 64, and 128) were tested to determine the most efficient size for gradient updates, Optimizer Selection: Various optimizers were tested, including SGD, RMSprop, and Adam.
The Adam optimizer was selected for its adaptive learning rate capabilities.
Epochs and Early Stopping: The number of epochs was tuned along with early stopping criteria to prevent overfitting.
Epochs were tested in the range of 10 to 100 with a patience of 5 for early stopping
The results of the learning rate 0.
1: Training accuracy: 60%, Testing accuracy: 55%.
The model was unable to converge 0.
01: Training accuracy: 80%, Testing accuracy: 75%.
Improved but still underperforming.
0.
001: Training accuracy: 90%, Testing accuracy: 88%.
Further improvement, but overfitting observed.
0.
0001: Training accuracy: 99%, Testing accuracy: 98%.
Optimal performance achieved.
00001: Training accuracy: 95%, Testing accuracy: 92%.
Learning was too slow.
Hyper-tuning using the batch-size:
16: Training accuracy: 97%, Testing accuracy: 94%.
Good performance but higher computational cost32: Training accuracy: 99%, Testing accuracy: 98%.
Optimal balance between performance and efficiency, 64: Training accuracy: 95%, Testing accuracy: 93%.
Slightly reduced performance, 128: Training accuracy: 90%, Testing accuracy: 87%.
The model struggled with larger batch sizes.
Hyper-tuning using by different optimizers
SGD: Training accuracy: 85%, Testing accuracy: 80%.
Slower convergence.
RMSprop: Training accuracy: 92%, Testing accuracy: 88%.
Moderate performance.
Adam: Training accuracy: 99%, Testing accuracy: 98%.
Best performance due to adaptive learning rate.
The final customized model, after applying transfer learning and extensive hyper parameter tuning, achieved outstanding results: Training Accuracy: 99%Testing Accuracy: 98%,Training Loss: 0.
02,Testing Loss: 0.
04.
Related Results
Tukutendereze: Contextualizing Salvation in Kigezi Sub-Region
Tukutendereze: Contextualizing Salvation in Kigezi Sub-Region
Purpose: The purpose of this study was to contextualize the concept of salvation among the Anglican Christians in the Kigezi Sub-region. It takes time to investigate whether the sa...
Electric field tuning characteristic of multiple optical parametric oscillator based on MgO:QPLN
Electric field tuning characteristic of multiple optical parametric oscillator based on MgO:QPLN
The quasi-phase matching optical parametric oscillator tuning methods, i.e. grating period tuning, temperature tuning, pumping wavelength tuning, and angle tuning are more simple a...
Selection of Injectable Drug Product Composition using Machine Learning Models (Preprint)
Selection of Injectable Drug Product Composition using Machine Learning Models (Preprint)
BACKGROUND
As of July 2020, a Web of Science search of “machine learning (ML)” nested within the search of “pharmacokinetics or pharmacodynamics” yielded over 100...
Frequency of Common Chromosomal Abnormalities in Patients with Idiopathic Acquired Aplastic Anemia
Frequency of Common Chromosomal Abnormalities in Patients with Idiopathic Acquired Aplastic Anemia
Objective: To determine the frequency of common chromosomal aberrations in local population idiopathic determine the frequency of common chromosomal aberrations in local population...
Enhanced performance of automatic tuning in isotope separation online systems through Bayesian optimization
Enhanced performance of automatic tuning in isotope separation online systems through Bayesian optimization
The Multi-purpose hYbrid Research Reactor for High-tech Applications (MYRRHA) is a subcritical nuclear reactor driven by a linear proton accelerator, currently under development at...
CREATING LEARNING MEDIA IN TEACHING ENGLISH AT SMP MUHAMMADIYAH 2 PAGELARAN ACADEMIC YEAR 2020/2021
CREATING LEARNING MEDIA IN TEACHING ENGLISH AT SMP MUHAMMADIYAH 2 PAGELARAN ACADEMIC YEAR 2020/2021
The pandemic Covid-19 currently demands teachers to be able to use technology in teaching and learning process. But in reality there are still many teachers who have not been able ...
Siamese Model-Based Face Verification Using CNN and MobileNetV2
Siamese Model-Based Face Verification Using CNN and MobileNetV2
Face verification plays an important role in computer vision, especially in mobile and embedded systems with limited computational capacity. This study proposes a face verification...
The Politics of Staying Poor in Uganda
The Politics of Staying Poor in Uganda
This paper explores how political actors, processes, debates and institutions influence the reduction and reproduction of chronic poverty in Uganda. Uganda provides a particularly ...

