Deep Convolutional Neural Network for Multi-Class Flower Image Classification Using the Flowers Recognition Dataset

Main Article Content

Nadila Arsyifa
Cut Nadia
Arif Arrafi
Nurmala

Abstract

Automatic flower species identification plays a crucial role in agriculture, horticulture, and biodiversity conservation, as manual identification is time-consuming and susceptible to errors caused by high intra-class variability and inter-class visual similarity. This study proposes a Convolutional Neural Network (CNN)-based approach for classifying three flower species—sunflower, daisy, and tulip—using the publicly available Flowers Recognition dataset from Kaggle, comprising 2,481 images. The dataset was divided into training (70%), validation (15%), and testing (15%) subsets. The preprocessing pipeline included image resizing to 224 × 224 pixels, pixel value normalization to the range of 0–1, contrast enhancement, and data augmentation through random rotation (±20°), horizontal flipping, zooming, and shearing to improve model generalization. The proposed CNN architecture consists of four convolutional blocks with 32–256 filters, followed by max-pooling, batch normalization, a dropout layer (0.5), fully connected layers, and a Softmax output layer. The model was optimized using the Adam optimizer with categorical cross-entropy loss and trained for up to 50 epochs using Early Stopping and ReduceLROnPlateau callbacks. Experimental results demonstrate that the proposed model achieved a test accuracy of 90%, with 90% precision, 90% recall, and a 90% F1-score. The sunflower class exhibited the highest recall (93%), while most misclassifications occurred between the daisy and tulip classes due to their similar visual characteristics. Furthermore, the regularization strategy effectively mitigated overfitting, as indicated by the relatively small gap between training and validation accuracy (97% and 90%, respectively). These findings demonstrate the effectiveness of CNNs for automated flower image classification and highlight their potential for supporting intelligent flower recognition systems. Future work will focus on expanding the number of flower categories and integrating transfer learning techniques to further improve classification performance.

Downloads

Download data is not yet available.

Article Details

Section

Articles

How to Cite

Deep Convolutional Neural Network for Multi-Class Flower Image Classification Using the Flowers Recognition Dataset. (2026). Applied Artificial Intelligence and Engineering Journal, 1(1). https://aeij.org/index.php/journal/article/view/11

References

[1] C. Narvekar and M. Rao, “Flower classification using CNN and transfer learning in CNN- Agriculture Perspective,” in 2020 3rd International Conference on Intelligent Sustainable Systems (ICISS), IEEE, Dec. 2020, pp. 660–664. doi: 10.1109/ICISS49785.2020.9316030.

[2] A. V. Sai, M. S. V. Hitesh, V. C. Jadala, S. K. Pasupuleti, S. H. Raju, and M. Shameem, “Flower Identification and Classification applying CNN through Deep Learning Methodologies,” in 2022 International Mobile and Embedded Technology Conference (MECON), IEEE, Mar. 2022, pp. 173–180. doi: 10.1109/MECON53876.2022.9752231.

[3] P. Lin, D. Li, Z. Zou, Y. Chen, and S. Jiang, “Deep convolutional neural network for automatic discrimination between Fragaria × Ananassa flowers and other similar white wild flowers in fields,” Plant Methods, vol. 14, no. 1, pp. 1–12, 2018, doi: 10.1186/s13007-018-0332-5.

[4] B. R. Mete and T. Ensari, “Flower Classification with Deep CNN and Machine Learning Algorithms,” in 2019 3rd International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT), IEEE, Oct. 2019, pp. 1–5. doi: 10.1109/ISMSIT.2019.8932908.

[5] T. Abbas et al., “Deep Neural Networks for Automatic Flower Species Localization and Recognition,” Comput Intell Neurosci, vol. 2022, pp. 1–9, Apr. 2022, doi: 10.1155/2022/9359353.

[6] N. R. Gavai, Y. A. Jakhade, S. A. Tribhuvan, and R. Bhattad, “MobileNets for flower classification using TensorFlow,” in 2017 International Conference on Big Data, IoT and Data Science (BID), IEEE, Dec. 2017, pp. 154–158. doi: 10.1109/BID.2017.8336590.

[7] N. M. Lutimath, B. K. Byregowda, S. V. Seeri, R. V. Manjunath, J. R. Maria Navin, and P. N. Lutimath, “Flower Classification Using Enhanced MobileNetV2 Model for Industrial Application,” 2025, pp. 399–409. doi: 10.1007/978-981-96-2015-9_28.

[8] S. Labed, H. Touati, and R. Dif, “Plant Recognition Using Data Augmentation and Convolutional Neural Network,” 2023, pp. 192–204. doi: 10.1007/978-3-031-18516-8_14.

[9] J. Feng, Z. Wang, M. Zha, and X. Cao, “Flower Recognition Based on Transfer Learning and Adam Deep Learning Optimization Algorithm,” in Proceedings of the 2019 International Conference on Robotics, Intelligent Control and Artificial Intelligence, New York, NY, USA: ACM, Sep. 2019, pp. 598–604. doi: 10.1145/3366194.3366301.

[10] A. Mamaev, “Flowers Recognition,” Kaggle, Saint Petersburg, Russia.

[11] V. Ayumi, “Pengenalan Objek Bunga Berbasis Deep Learning Menggunakan Model Resnet50 dan MobileNet-v2,” JSAI (Journal Scientific and Applied Informatics), vol. 5, no. 3, pp. 188–193, Nov. 2022, doi: 10.36085/jsai.v5i3.3613.

[12] A. Mufidatuzzainiya and M. Faisal, “Penggunaan Teknik Transfer Learning pada Metode CNN untuk Pengenalan Tanaman Bunga,” JISKA (Jurnal Informatika Sunan Kalijaga), vol. 10, no. 2, pp. 195–206, 2025, doi: 10.14421/jiska.2025.10.2.195-206.

[13] A. M. Istiqomah, “Klasifikasi Citra Menggunakan Metode Convolutional Neural Network Arsitektur Inception V4 Berbasis Android Pada Dataset Flower Recognition Ainun Mardiyah Istiqamah,” Klasifikasi Citra Menggunakan Convolutional Neural Network Dengan Arsitektur Inception V4 Berbasis Android Pada Dataset Flower Recognition, pp. 13–20, 2020, [Online]. Available: http://repository.unhas.ac.id/id/eprint/804/%0Ahttp://repository.unhas.ac.id/id/eprint/804/2/H13116507_skripsi_ 1-2.pdf

[14] H. Hiary, H. Saadeh, M. Saadeh, and M. Yaqub, “Flower classification using deep convolutional neural networks,” IET Computer Vision, vol. 12, no. 6, pp. 855–862, Sep. 2018, doi: 10.1049/iet-cvi.2017.0155.

[15] A. Kutyrev and N. Andriyanov, “Apple Flower Recognition Using Convolutional Neural Networks with Transfer Learning and Data Augmentation Technique,” E3S Web of Conferences, vol. 493, p. 01006, Feb. 2024, doi: 10.1051/e3sconf/202449301006.

[16] Y. Wu, X. Qin, Y. Pan, and C. Yuan, “Convolution Neural Network based Transfer Learning for Classification of Flowers,” in 2018 IEEE 3rd International Conference on Signal and Image Processing (ICSIP), IEEE, Jul. 2018, pp. 562–566. doi: 10.1109/SIPROCESS.2018.8600536.

[17] E. Cengil and A. Cinar, “Multiple Classification of Flower Images Using Transfer Learning,” in 2019 International Artificial Intelligence and Data Processing Symposium (IDAP), IEEE, Sep. 2019, pp. 1–6. doi: 10.1109/IDAP.2019.8875953.

[18] N. Alipour, O. Tarkhaneh, M. Awrangjeb, and H. Tian, “Flower Image Classification Using Deep Convolutional Neural Network,” in 2021 7th International Conference on Web Research (ICWR), IEEE, May 2021, pp. 1–4. doi: 10.1109/ICWR51868.2021.9443129.

[19] C.-H. Ou, Y.-N. Hu, D.-J. Jiang, and P.-Y. Liao, “An Ensemble Voting Method of Pre-Trained Deep Learning Models for Orchid Recognition,” in 2023 IEEE International Systems Conference (SysCon), IEEE, Apr. 2023, pp. 1–5. doi: 10.1109/SysCon53073.2023.10131263.

[20] V. S. Dhaka et al., “A Survey of Deep Convolutional Neural Networks Applied for Prediction of Plant Leaf Diseases,” Sensors, vol. 21, no. 14, p. 4749, Jul. 2021, doi: 10.3390/s21144749.

[21] P. T. Jackson, A. Atapour-Abarghouei, S. Bonner, T. Breckon, and B. Obara, “Style Augmentation: Data Augmentation via Style Randomization,” 2018, [Online]. Available: http://arxiv.org/abs/1809.05375

[22] E. Ahmed, A. Darwish, and A. E. Hassanien, “Flowers Classification with Low Carbon Footprint Using Deep Learning Pretrained Models,” 2024, pp. 51–69. doi: 10.1007/978-3-031-63451-2_4.