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
Article Details
Copyright (c) 2025 Salsabila -

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).
References
- 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.
- SH. Chon, “Hyper-parameter optimization of a convolutional neural network,” M.S. thesis, Department of Operations Research, Air Force Institute of Technology, Nigeria, 2019.
- S. Neha, M. Vibhor, Anju, An analysis of convolutional neural networks for image classification, Procedia Comput Science, 2018, pp.337–384.
- 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.
- 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.
- K. Nanditha, K. Nagamani, Understanding and Visualization of Different Feature Extraction Processes in Glaucoma Detection. Journal of Phys.: Conf. Ser. 2327 012023, 2022.
- 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.
- 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.
- 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.
- 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).
- P. Ramachandran, B. Zoph, Q.V. Le, Searching for activation functions. arXiv preprint, https://arxiv.org/pdf/1710.05941.pdf, (Accessed Jan. 11, 2021).
- Ying, An overview of overfitting and its solutions. Journal of Physics. 1168(2). 022022, 2019.
References
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.
SH. Chon, “Hyper-parameter optimization of a convolutional neural network,” M.S. thesis, Department of Operations Research, Air Force Institute of Technology, Nigeria, 2019.
S. Neha, M. Vibhor, Anju, An analysis of convolutional neural networks for image classification, Procedia Comput Science, 2018, pp.337–384.
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.
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.
K. Nanditha, K. Nagamani, Understanding and Visualization of Different Feature Extraction Processes in Glaucoma Detection. Journal of Phys.: Conf. Ser. 2327 012023, 2022.
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.
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.
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.
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).
P. Ramachandran, B. Zoph, Q.V. Le, Searching for activation functions. arXiv preprint, https://arxiv.org/pdf/1710.05941.pdf, (Accessed Jan. 11, 2021).
Ying, An overview of overfitting and its solutions. Journal of Physics. 1168(2). 022022, 2019.