Main Article Content

Abstract

Deep learning classification network in one case, has different classification capabilities than the network in another. The classification method of deep learning using CNN has specific hyperparameters that can be adjusted to have good performance. These hyperparameters include the number of convolutional layers, the number of neurons in the convolutional and fully connected layers, kernel size, and activation functions. Deep Learning uses experimental principles in finding the best hyperparameter in various cases. The model architecture can be determined by choosing a different design. This research uses pork and beef images as the data for classification using CNN. The abstract textures of beef and pork may make it difficult for the CNN classification model to distinguish between them. Hence, 32 combinations of five hyperparameters were compared. It was found that these hyperparameters affect the model's performance. The best model has obtained 98,7% accuracy that uses 20 neurons both layers of the convolution was, kernel size of 5 × 5, ReLU activation function, and two fully connected layers with dropout 0.7 as a method of overfitting prevention. A significant difference also occurs in the application of the activation function, in which ReLU has a better performance than tanh function to increase the model's prediction.

Keywords

Classification Deep Learning CNN Model Hyperparameter

Article Details

How to Cite
-, S., Anwar Fitrianto, & Bagus Sartono. (2025). Hyperparameter Optimization of an Image Classification Model for Beef and Pork Using Convolutional Neural Networks. EKSAKTA: Journal of Sciences and Data Analysis, 6(2). https://doi.org/10.20885/EKSAKTA.vol6.iss2.art6

References

  1. H. H. Aghdam, E. J Heravi, Convolutional Neural Network. A Guide to Convolutional Neural Network (a practical application to traffic-sign detection and classification), Spain: Springer, 2017, pp.106-118.
  2. SH. Chon, “Hyper-parameter optimization of a convolutional neural network,” M.S. thesis, Department of Operations Research, Air Force Institute of Technology, Nigeria, 2019.
  3. S. Neha, M. Vibhor, Anju, An analysis of convolutional neural networks for image classification, Procedia Comput Science, 2018, pp.337–384.
  4. NM. Aszemi, D. Durai, Hyperparameter optimization in convolutional neural network using genetic algorithms, International Journal of Advanced Computer Science and Applications, vol.10, no.7, pp. 269–278, 2019.
  5. M.S. Junayed, A.J. Afsana, T.A. Syeda, N. Nafis, K. Asif, A. Sami, and S. Bharanidharan, AcneNet - A Deep CNN Based Classification Approach for Acne Classes, 12th International Conference on Information & Communication Technology, and System, 2019, pp. 203-208.
  6. K. Nanditha, K. Nagamani, Understanding and Visualization of Different Feature Extraction Processes in Glaucoma Detection. Journal of Phys.: Conf. Ser. 2327 012023, 2022.
  7. M. Alaslani, L. Elrefaei, Convolutional neural network based feature extraction for iris recognition, International Journal of Computer Science & Information Technology, Vol., No.2, 2018, pp. 65-78.
  8. A. Aghaebrahimian and M. Cieliebak, Hyperparameter tuning for deep learning in natural language processing, Proceedings of the 4th edition of the Swiss Text Analytics Conference, Vol. 2458, 2019.
  9. M. Sadeghi et al., PERSIANN-CNN: Precipitation estimation from remotely sensed information using artificial neural networks–convolutional neural networks, Journal Hydrometeorol., vol. 20, no. 12, pp. 2273–2289, 2019.
  10. C. Nwankpa, W. Ijomah, A. Gachagan, S. Marshall, Activation functions: comparison of trends in practice and research for deep learning, https://arxiv.org/pdf/2010.07359.pdf, (Accessed Jan. 11, 2021).
  11. P. Ramachandran, B. Zoph, Q.V. Le, Searching for activation functions. arXiv preprint, https://arxiv.org/pdf/1710.05941.pdf, (Accessed Jan. 11, 2021).
  12. Ying, An overview of overfitting and its solutions. Journal of Physics. 1168(2). 022022, 2019.
No Related Submission Found