Submitted:
17 September 2024
Posted:
19 September 2024
You are already at the latest version
Abstract

Keywords:
1. Introduction
2. Background
3. Materials and Methods
3.1. Image Acquisition
3.2. Data Analysis
3.3. Deep Learning Techniques
3.3.1. FCNN
3.3.2. CNN-FCNN Pipeline
3.4. Sustainability Analysis
3.4.1. Hyper-Parameter Search
4. Experimental Results
- Accuracy provides the total percentage of correct predictions and it is useful in scenarios where the data are balanced, as our data are.
- Precision measures the proportion of instances correctly classified as positive out of those that are predicted to be positive. Precision helps to minimize the number of false positives.
- Recall quantifies the number of positive class predictions with respect to all positive instances in the dataset.
- F-Measure provides a single score that balances both precision and recall in one single metric.
4.1. FCNN Results
4.2. CNN Model
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| IARC | International Agency for Research on Cancer |
| HSI | Hyperspectral imaging |
| DL | Deep Learning |
| FCNN | Full Connected Neural Network |
| CNN | Convolutional Neural Network |
| ML | Machine Learning |
| VNIR | Visible & Near Infrared |
| SWIR | Short-wave infrared |
| SVM | Support vector machines |
| UV | Ultraviolet |
| VIS | Visible infrared |
| NIR | Near infrared |
| UFC | Colony-forming unit |
| ROI | Region of Interest |
| CWT | Complex Morlet wavelet |
| AI | Artificial Intelligence |
| CPU | Central processing unit |
| GPU | Graphic processing unit |
| ReLU | rectified linear unit |
| AUC | Area under the curve |
| ROC | Receiver Operating Characteristic |
| CO2 | Carbon dioxide |
| KWh | KiloWatt per hour |
| RAM | Random Access Memory |
References
- International Agency for Research on Cancer (IARC).. Agents Classified by the IARC Monographs. https://publications.iarc.fr/123, 2014. Online. (accessed on 26 May 2024).
- Kowalska, A.; Walkiewicz, K.; Kozieł, P.; Muc-Wierzgoń, M. Aflatoxins: characteristics and impact on human health. Advances in Hygiene and Experimental Medicine 2017, 71, 315–327. [Google Scholar] [CrossRef] [PubMed]
- Arastehfar, A.; Carvalho, A.; Houbraken, J.; Lombardi, L.; Garcia-Rubio, R.; Jenks, J.; Rivero-Menendez, O.; Aljohani, R.; Jacobsen, I.; Berman, J.; others. Aspergillus fumigatus and aspergillosis: From basics to clinics. Studies in mycology 2021, 100, 100115–100115. [Google Scholar] [CrossRef] [PubMed]
- Garcia-Giraldo, A.M.; Mora, B.L.; Loaiza-Castaño, J.M.; Cedano, J.A.; Rosso, F. Invasive fungal infection by Aspergillus flavus in immunocompetent hosts: A case series and literature review. Medical Mycology Case Reports 2019, 23, 12–15. [Google Scholar] [CrossRef] [PubMed]
- Ministerio de Agricultura. Encuesta sobre Superficies y Rendimientos de Cultivos. https://www.mapa.gob.es/es/estadistica/temas/estadisticas-agrarias/agricultura/esyrce/default.aspx, note=Online Last access: 08/06/2024, Year=2023.
- FAO. FAO statistics. https://www.fao.org/faostat/es/#data/QCL, 2023. Last access: 08/01/2024.
- Jafari, M.; López-Corrales, M.; Galván, A.; Galván, A.; Hosomi, e.a. Orchard establishment and management.; In: Sarkhosh, A., Yavari, A., Ferguson, L. (Eds.), 2022; pp. 184–230. [Google Scholar] [CrossRef]
- Galván, A.; Serradilla, M.; Córdoba, M.; Domínguez, G.; Galán, A.; López-Corrales, M. Implementation of super high-density systems and suspended harvesting meshes for dried fig production: Effects on agronomic behaviour and fruit quality. Scientia Horticulturae 2021, 281, 109918. [Google Scholar] [CrossRef]
- Abdolahipour, M.; Kamgar-Haghighi, A.A.; Sepaskhah, A.R.; Zand-Parsa, S.; Honar, T.; Razzaghi, F. Time and amount of supplemental irrigation at different distances from tree trunks influence on morphological characteristics and physiological responses of rainfed fig trees under drought conditions. Scientia Horticulturae 2019, 253, 241–254. [Google Scholar] [CrossRef]
- García, L.; Parra, L.; Jimenez, J.M.; Lloret, J.; Lorenz, P. IoT-Based Smart Irrigation Systems: An Overview on the Recent Trends on Sensors and IoT Systems for Irrigation in Precision Agriculture. Sensors 2020, 20. [Google Scholar] [CrossRef]
- Abdolahipour, M.; Kamgar-Haghighi, A.; Sepaskhah, A.; Dalir, N.; Shabani, A.; Honar, T.; Jafari, M.; others. Supplemental irrigation and pruning influence on growth characteristics and yield of rainfed fig trees under drought conditions. Fruits 2019, 74, 282–293. [Google Scholar] [CrossRef]
- Khozaie, M.; Sepaskhah, A.; others. Economic analysis of the optimal level of supplemental irrigation for rain-fed figs. Iran Agricultural Research 2018, 37, 17–26. [Google Scholar]
- Galván, A.I.; Rodríguez, A.; Martín, A.; Serradilla, M.; Martínez-Dorado, A.; Córdoba, M. Effect of Temperature During Drying and Storage of Dried Figs on Growth, Gene Expression and Aflatoxin Production. Toxins 2021, 13, 134. [Google Scholar] [CrossRef]
- Galván, A.I.; Hernández, A.; de Guía Córdoba, M.; Martín, A.; Serradilla, M.J.; López-Corrales, M.; Rodríguez, A. Control of toxigenic Aspergillus spp. in dried figs by volatile organic compounds (VOCs) from antagonistic yeasts. International Journal of Food Microbiology 2022, 376, 109772. [Google Scholar] [CrossRef]
- Tejero, P.; Martín, A.; Rodríguez, A.; Galván, A.I.; Ruiz-Moyano, S.; Hernández, A. In Vitro Biological Control of Aspergillus flavus by Hanseniaspora opuntiae L479 and Hanseniaspora uvarum L793, Producers of Antifungal Volatile Organic Compounds. Toxins 2021, 13. [Google Scholar] [CrossRef] [PubMed]
- Özer, K.B. 19 Mycotoxins in Fig. In Advances in Fig Research and Sustainable Production; 2022; p. 318. [Google Scholar]
- ElMasry, G.; Sun, D.W. Principles of hyperspectral imaging technology. In Hyperspectral imaging for food quality analysis and control; Elsevier, 2010; pp. 3–43.
- Signoroni, A.; Savardi, M.; Baronio, A.; Benini, S. Deep learning meets hyperspectral image analysis: A multidisciplinary review. Journal of imaging 2019, 5, 52. [Google Scholar] [CrossRef] [PubMed]
- Khan, A.; Vibhute, A.D.; Mali, S.; Patil, C.H. A systematic review on hyperspectral imaging technology with a machine and deep learning methodology for agricultural applications. Ecological Informatics 2022, 69, 101678. [Google Scholar] [CrossRef]
- Radoglou-Grammatikis, P.; Sarigiannidis, P.; Lagkas, T.; Moscholios, I. A compilation of UAV applications for precision agriculture. Computer Networks 2020, 172, 107148. [Google Scholar] [CrossRef]
- Cisternas, I.; Velásquez, I.; Caro, A.; Rodríguez, A. Systematic literature review of implementations of precision agriculture. Computers and Electronics in Agriculture 2020, 176, 105626. [Google Scholar] [CrossRef]
- Liu, W.; Shao, X.F.; Wu, C.H.; Qiao, P. A systematic literature review on applications of information and communication technologies and blockchain technologies for precision agriculture development. Journal of Cleaner Production 2021, 298, 126763. [Google Scholar] [CrossRef]
- Rivera, G.; Porras, R.; Florencia, R.; Sánchez-Solís, J.P. LiDAR applications in precision agriculture for cultivating crops: A review of recent advances. Computers and Electronics in Agriculture 2023, 207, 107737. [Google Scholar] [CrossRef]
- Peyghambari, S.; Zhang, Y. Hyperspectral remote sensing in lithological mapping, mineral exploration, and environmental geology: an updated review. Journal of Applied Remote Sensing 2021, 15, 031501–031501. [Google Scholar] [CrossRef]
- Jia, J.; Wang, Y.; Chen, J.; Guo, R.; Shu, R.; Wang, J. Status and application of advanced airborne hyperspectral imaging technology: A review. Infrared Physics & Technology 2020, 104, 103115. [Google Scholar]
- ul Rehman, A.; Qureshi, S.A. A review of the medical hyperspectral imaging systems and unmixing algorithms’ in biological tissues. Photodiagnosis and Photodynamic Therapy 2021, 33, 102165. [Google Scholar] [CrossRef]
- Lu, Y.; Saeys, W.; Kim, M.; Peng, Y.; Lu, R. Hyperspectral imaging technology for quality and safety evaluation of horticultural products: A review and celebration of the past 20-year progress. Postharvest Biology and Technology 2020, 170, 111318. [Google Scholar] [CrossRef]
- Wang, B.; Sun, J.; Xia, L.; Liu, J.; Wang, Z.; Li, P.; Guo, Y.; Sun, X. The applications of hyperspectral imaging technology for agricultural products quality analysis: A review. Food Reviews International 2023, 39, 1043–1062. [Google Scholar] [CrossRef]
- Sahoo, R.N.; Ray, S.S.; Manjunath, K.R. Hyperspectral remote sensing of agriculture. Current Science 2015, 108, 848–859. [Google Scholar]
- Jia, B.; Wang, W.; Ni, X.; Lawrence, K.C.; Zhuang, H.; Yoon, S.C.; Gao, Z. Essential processing methods of hyperspectral images of agricultural and food products. Chemometrics and Intelligent Laboratory Systems 2020, 198, 103936. [Google Scholar] [CrossRef]
- Ferentinos, K.P. Deep learning models for plant disease detection and diagnosis. Computers and Electronics in Agriculture 2018, 145, 311–318. [Google Scholar] [CrossRef]
- Feng, Y.Z.; Sun, D.W. Application of hyperspectral imaging in food safety inspection and control: a review. Critical reviews in food science and nutrition 2012, 52, 1039–1058. [Google Scholar] [CrossRef]
- Wang, C.; Liu, B.; Liu, L.; Zhu, Y.; Hou, J.; Liu, P.; Li, X. A review of deep learning used in the hyperspectral image analysis for agriculture. Artificial Intelligence Review 2021, 54, 5205–5253. [Google Scholar] [CrossRef]
- Wieme, J.; Mollazade, K.; Malounas, I.; Zude-Sasse, M.; Zhao, M.; Gowen, A.; Argyropoulos, D.; Fountas, S.; Van Beek, J. Application of hyperspectral imaging systems and artificial intelligence for quality assessment of fruit, vegetables and mushrooms: A review. biosystems engineering 2022, 222, 156–176. [Google Scholar] [CrossRef]
- Barbedo, J.G.A. A review on the combination of deep learning techniques with proximal hyperspectral images in agriculture. Computers and Electronics in Agriculture 2023, 210, 107920. [Google Scholar] [CrossRef]
- Zhou, L.; Zhang, C.; Liu, F.; Qiu, Z.; He, Y. Application of deep learning in food: a review. Comprehensive reviews in food science and food safety 2019, 18, 1793–1811. [Google Scholar] [CrossRef]
- Wang, X.; Bouzembrak, Y.; Lansink, A.O.; van der Fels-Klerx, H. Application of machine learning to the monitoring and prediction of food safety: A review. Comprehensive Reviews in Food Science and Food Safety 2022, 21, 416–434. [Google Scholar] [CrossRef] [PubMed]
- Kumar, A.; Pathak, H.; Bhadauria, S.; Sudan, J. Aflatoxin contamination in food crops: causes, detection, and management: a review. Food Production, Processing and Nutrition 2021, 3, 1–9. [Google Scholar] [CrossRef]
- Siedliska, A.; Baranowski, P.; Zubik, M.; Mazurek, W.; Sosnowska, B. Detection of fungal infections in strawberry fruit by VNIR/SWIR hyperspectral imaging. Postharvest Biology and Technology 2018, 139, 115–126. [Google Scholar] [CrossRef]
- Femenias, A.; Gatius, F.; Ramos, A.J.; Teixido-Orries, I.; Marín, S. Hyperspectral imaging for the classification of individual cereal kernels according to fungal and mycotoxins contamination: A review. Food Research International 2022, 155, 111102. [Google Scholar] [CrossRef]
- Han, Z.; Gao, J. Pixel-level aflatoxin detecting based on deep learning and hyperspectral imaging. Computers and Electronics in Agriculture 2019, 164, 104888. [Google Scholar] [CrossRef]
- Gao, J.; Zhao, L.; Li, J.; Deng, L.; Ni, J.; Han, Z. Aflatoxin rapid detection based on hyperspectral with 1D-convolution neural network in the pixel level. Food Chemistry 2021, 360, 129968. [Google Scholar] [CrossRef]
- Ma, J.; Guan, Y.; Xing, F.; Eltzov, E.; Wang, Y.; Li, X.; Tai, B. Accurate and non-destructive monitoring of mold contamination in foodstuffs based on whole-cell biosensor array coupling with machine-learning prediction models. Journal of Hazardous Materials 2023, 449, 131030. [Google Scholar] [CrossRef]
- Kim, Y.K.; Baek, I.; Lee, K.M.; Kim, G.; Kim, S.; Kim, S.Y.; Chan, D.; Herrman, T.J.; Kim, N.; Kim, M.S. Rapid Detection of Single-and Co-Contaminant Aflatoxins and Fumonisins in Ground Maize Using Hyperspectral Imaging Techniques. Toxins 2023, 15, 472. [Google Scholar] [CrossRef]
- Kılıç, C.; İnner, B. A novel method for non-invasive detection of aflatoxin contaminated dried figs with deep transfer learning approach. Ecological Informatics 2022, 70, 101728. [Google Scholar] [CrossRef]
- Kılıç, C.; Özer, H.; İnner, B. Real-time detection of aflatoxin-contaminated dried figs using lights of different wavelengths by feature extraction with deep learning. Food Control 2024, 156, 110150. [Google Scholar] [CrossRef]
- Antoine, J.P.; Carrette, P.; Murenzi, R.; Piette, B. Image analysis with two-dimensional continuous wavelet transform. Signal processing 1993, 31, 241–272. [Google Scholar] [CrossRef]
- et al, L.; et al. Project, C. (2024). Codecarbon: Track and reduce your carbon emissions., 2019. Last access: 08/07/2024.
- Bouza, L.; Bugeau, A.; Lannelongue, L. How to estimate carbon footprint when training deep learning models? A guide and review. Environmental Research Communications 2023, 5, 115014. [Google Scholar] [CrossRef] [PubMed]
| 1 | |
| 2 | Pywt library - pywavelets documentation for Morlet Wavelet ("morl") |










| FCNN | ||
|---|---|---|
| Hyperparameter | Values | Description |
| Activation function | relu, elu, selu | Activation function in the hidden layers |
| Hidden layers | 2-7 | Number of hidden layers in the network |
| Neurons/hidden layer | 64-4096 (in step of 32) | Number of neurons in each hidden layer |
| Dropout | 0.0-0.3 (in step of 0.1) | Dropout for each hidden layer |
| DNN | ||
| Hyperparameter | Values | Description |
| Activation function | relu, elu, selu | Activation function in the hidden layers |
| Hidden layers | 1-4 | Number of hidden layers in the network |
| Neurons/hidden layer | 64-1024 (in step of 32) | Number of neurons in each hidden layer |
| Pooling layer | Max pooling, Average pooling | Type of pooling layer |
| DL Model | GPU | Processor | RAM | Operating system |
|---|---|---|---|---|
| FCNN | GeForce RTX 2080 Super | Intel Core i9-9900K | 16GB | Windows 11 |
| CNN | A100-PCIE-40GB 108 cores | Intel Xeon Silver 4310 | 500 GB | Linux-5.15.0-97 |
| Layer | Output format | Training settings |
|---|---|---|
| Layer 1 (Dense) | 672 | |
| Layer 2 (Dense) | ||
| Dropout layer | - | - |
| Layer 4 (Dense) | ||
| Dropout layer | - | - |
| Layer 6 (Dense) | ||
| Dropout layer | - | - |
| Layer 8 (Dense) | ||
| Dropout layer | - | - |
| Layer 10 (Dense) | 4 | |
| Total | - | |
| Total | - |
| Predicted class | |||||
|---|---|---|---|---|---|
| Class 0 | Class 1 | Class 2 | Class 3 | ||
| Real class | Class 0 | 56,933 | 1,545 | 2,585 | 1,403 |
| Class 1 | 9,271 | 52,593 | 2,280 | 1,456 | |
| Class 2 | 11,031 | 1,866 | 54,294 | 2,158 | |
| Class 1 | 8,807 | 1,312 | 2,251 | 56,275 | |
| Class 0 | Class 1 | Class 2 | Class 3 | |
|---|---|---|---|---|
| Precision | 0.66 | 0.92 | 0.88 | 0.92 |
| Recall | 0.91 | 0.8 | 0.78 | 0.82 |
| F1-Measure | 0.77 | 0.86 | 0.83 | 0.87 |
| Metric | Value |
|---|---|
| Duration (h) | 0.70 |
| Emissions () | 0.038 |
| Emissions rate () | 0.054 |
| Energy consumption (KWh) | 0.20 |
| Layer | Output format | Training settings |
|---|---|---|
| Layer 1 (Convolutional) | 90 x 448 x 40 | 400 |
| Pooling layer | 45 x 224 x 40 | - |
| Layer 2 (Convolutional) | 45 x 224 x 40 | 14,440 |
| Flatten layer | 403,200 | - |
| Layer 3 (Dense) | 256 | |
| Layer 4 (Dense) | 128 | |
| Layer 5 (Dense) | 512 | |
| Layer 6 (Dense) | 4 | |
| Layer 7 (Dense) | 256 | |
| Total | - |
| Predicted class | |||||
|---|---|---|---|---|---|
| Class 0 | Class 1 | Class 2 | Class 3 | ||
| Real class | Class 0 | 50,759 | 4,477 | 4,237 | 2,993 |
| Class 1 | 5,497 | 51,757 | 4,920 | 3,426 | |
| Class 2 | 7,091 | 6,501 | 50,437 | 5,320 | |
| Class 1 | 5,220 | 5,115 | 6,198 | 52,112 | |
| Class 0 | Class 1 | Class 2 | Class 3 | |
|---|---|---|---|---|
| Precision | 0.74 | 0.76 | 0.77 | 0.82 |
| Recall | 0.81 | 0.79 | 0.73 | 0.76 |
| F1-Measure | 0.77 | 0.78 | 0.75 | 0.79 |
| Metric | Value |
|---|---|
| Duration (h) | 55.37 |
| Emissions () | 3.44 |
| Emissions rate () | 0.0623 |
| Energy consumption(KWh) | 17.75 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).