Semantic Segmentation of Coffee Crops with PlanetScope Images: A Comparative Analysis of Spectral Band Combinations for U-Net Architecture
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Area and Images Used
2.2. Model Development
2.2.1. Labeling
2.2.2. Data Preprocessing
2.2.3. Modeling
2.2.4. Evaluation Metrics
2.2.5. Spectral Separability Analysis
3. Results
3.1. Developed Model
3.2. Spectral Separability Results
3.3. Analysis of Prediction Patterns Between Classes
3.4. Comparative Analysis of Segmentation Masks
4. Discussion
4.1. Superior Performance of Visible Bands in Coffee Segmentation
4.2. Impact of Resolution and Discrepancy Between F1-Score and IoU
4.3. Limitations and Future Work
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Spence, C.; Carvalho, F.M. The Coffee Drinking Experience: Product Extrinsic (Atmospheric) Influences on Taste and Choice. Food Qual. Prefer. 2020, 80, 103802. [Google Scholar] [CrossRef] [Scilit]
- FAO. Global Coffee Market and Recent Price Developments; FAO: Rome, Italy, 2025. [Google Scholar]
- DaMatta, F.M.; Rahn, E.; Läderach, P.; Ghini, R.; Ramalho, J.C. Why Could the Coffee Crop Endure Climate Change and Global Warming to a Greater Extent than Previously Estimated? Clim. Change 2019, 152, 167–178. [Google Scholar] [CrossRef] [Scilit]
- ICO. Coffee Development Report; ICO: London, UK, 2023. [Google Scholar]
- Bolaños, J.; Corrales, J.C.; Campo, L.V. Feasibility of Early Yield Prediction per Coffee Tree Based on Multispectral Aerial Imagery: Case of Arabica Coffee Crops in Cauca-Colombia. Remote Sens. 2023, 15, 282. [Google Scholar] [CrossRef] [Scilit]
- Jabed, M.A.; Azmi Murad, M.A. Crop Yield Prediction in Agriculture: A Comprehensive Review of Machine Learning and Deep Learning Approaches, with Insights for Future Research and Sustainability. Heliyon 2024, 10, e40836. [Google Scholar] [CrossRef] [Scilit]
- Kouadio, L.; Byrareddy, V.M.; Sawadogo, A.; Newlands, N.K. Probabilistic Yield Forecasting of Robusta Coffee at the Farm Scale Using Agroclimatic and Remote Sensing Derived Indices. Agric. For. Meteorol. 2021, 306, 108449. [Google Scholar] [CrossRef] [Scilit]
- Hunt, D.A.; Tabor, K.; Hewson, J.H.; Wood, M.A.; Reymondin, L.; Koenig, K.; Schmitt-Harsh, M.; Follett, F. Review of Remote Sensing Methods to Map Coffee Production Systems. Remote Sens. 2020, 12, 2041. [Google Scholar] [CrossRef] [Scilit]
- Nogueira Martins, R.; de Assis de Carvalho Pinto, F.; Marçal de Queiroz, D.; Sárvio Magalhães Valente, D.; Tadeu Fim Rosas, J.; Fagundes Portes, M.; Sânzio Aguiar Cerqueira, E. Digital Mapping of Coffee Ripeness Using UAV-Based Multispectral Imagery. Comput. Electron. Agric. 2023, 204, 107499. [Google Scholar] [CrossRef] [Scilit]
- Martínez-Verduzco, G.C.; Galeana-Pizaña, J.M.; Cruz-Bello, G.M. Coupling Community Mapping and Supervised Classification to Discriminate Shade Coffee from Natural Vegetation. Appl. Geogr. 2012, 34, 1–9. [Google Scholar] [CrossRef] [Scilit]
- Moreira, M.A.; Barros, M.A.; Rudorff, B.F.T. Geotechnologies in Coffee Crop Mapping at Municipality Scale. Soc. Nat. 2008, 20, 101–110. [Google Scholar] [CrossRef] [Scilit]
- Bourgoin, C.; Oszwald, J.; Bourgoin, J.; Gond, V.; Blanc, L.; Dessard, H.; Van Phan, T.; Sist, P.; Läderach, P.; Reymondin, L. Assessing the Ecological Vulnerability of Forest Landscape to Agricultural Frontier Expansion in the Central Highlands of Vietnam. Int. J. Appl. Earth Obs. Geoinf. 2020, 84, 101958. [Google Scholar] [CrossRef] [Scilit]
- Pereira, F.V.; Orlando, V.S.W.; Martins, G.D.; Vieira, B.S.; Nascimento, E.S.; Marra, A.B.; de Lourdes Bueno Trindade Galo, M. Estimating Coffee Crop Parameters through Multispectral Imaging and Machine Learning Algorithms. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2024, X-3–2024, 317–323. [Google Scholar] [CrossRef] [Scilit]
- Maskell, G.; Chemura, A.; Nguyen, H.; Gornott, C.; Mondal, P. Integration of Sentinel Optical and Radar Data for Mapping Smallholder Coffee Production Systems in Vietnam. Remote Sens. Environ. 2021, 266, 112709. [Google Scholar] [CrossRef] [Scilit]
- Oviedo, A.D.; Pencue-Fierro, E.L.; Muñoz, J.F.; Solano-Correa, Y.T. Coffee Trees Segmentation in UAV-Acquired Images Using Deep Learning. In Proceedings of the 2024 18th National Meeting on Optics and the 9th Andean and Caribbean Conference on Optics and Its Applications, ENO-CANCOA 2024—Conference Proceedings, Cartagena, Colombia, 12–14 June 2024. [Google Scholar] [CrossRef] [Scilit]
- Arriola-Valverde, S.; Rimolo-Donadio, R.; Villagra-Mendoza, K.; Chacón-Rodriguez, A.; García-Ramirez, R.; Somarriba-Chavez, E. A Comparative Study of Deep Learning Frameworks Applied to Coffee Plant Detection from Close-Range UAS-RGB Imagery in Costa Rica. Remote Sens. 2024, 16, 4617. [Google Scholar] [CrossRef] [Scilit]
- Le, Q.T.; Dang, K.B.; Giang, T.L.; Tong, T.H.A.; Nguyen, V.G.; Nguyen, T.D.L.; Yasir, M. Deep Learning Model Development for Detecting Coffee Tree Changes Based on Sentinel-2 Imagery in Vietnam. IEEE Access 2022, 10, 109097–109107. [Google Scholar] [CrossRef] [Scilit]
- de Carvalho Alves, M.; Sanches, L.; Silva de Menezes, F.; Trindade, L.R.S.L.C. Multisensor Analysis for Environmental Targets Identification in the Region of Funil Dam, State of Minas Gerais, Brazil. Appl. Geomat. 2023, 15, 807–827. [Google Scholar] [CrossRef] [Scilit]
- Schmitt-Harsh, M. Landscape Change in Guatemala: Driving Forces of Forest and Coffee Agroforest Expansion and Contraction from 1990 to 2010. Appl. Geogr. 2013, 40, 40–50. [Google Scholar] [CrossRef] [Scilit]
- Wang, H.; Hu, C.; Zhang, R.; Qian, W. SegForest: A Segmentation Model for Remote Sensing Images. Forests 2023, 14, 1509. [Google Scholar] [CrossRef] [Scilit]
- Chang, Z.; Li, H.; Chen, D.; Liu, Y.; Zou, C.; Chen, J.; Han, W.; Liu, S.; Zhang, N. Crop Type Identification Using High-Resolution Remote Sensing Images Based on an Improved DeepLabV3+ Network. Remote Sens. 2023, 15, 5088. [Google Scholar] [CrossRef] [Scilit]
- Zangana, H.M.; Li, S.; Wani, S. Diffusion Models for Agricultural Imaging: A Systematic Review of Methods, Applications and Future Prospects. Impact Agric. 2025, 1, 1–11. [Google Scholar] [CrossRef] [Scilit]
- Kebede, G.; Mudereri, B.T.; Mutanga, O.; Landmann, T.; Odindi, J.; Motisi, N.; Pinard, F.; Tonnang, H.E.Z.; Abdel-Rahman, E.M. Mapping Robusta Coffee (Coffea canephora) Cropping Systems in Uganda: A Two-Step Pixel and Sub-Pixel Based Approach with Sentinel-2 Data. PLoS ONE 2026, 21, e0338803. [Google Scholar] [CrossRef] [Scilit]
- Parreiras, T.C.; Santos, C.d.O.; Bolfe, É.L.; Sano, E.E.; Leandro, V.B.S.; Bayma, G.; da Silva, L.A.P.; Furuya, D.E.G.; Romani, L.A.S.; Morton, D. Dense Time Series of Harmonized Landsat Sentinel-2 and Ensemble Machine Learning to Map Coffee Production Stages. Remote Sens. 2025, 17, 3168. [Google Scholar] [CrossRef] [Scilit]
- Ayhan, B.; Kwan, C.; Budavari, B.; Kwan, L.; Lu, Y.; Perez, D.; Li, J.; Skarlatos, D.; Vlachos, M. Vegetation Detection Using Deep Learning and Conventional Methods. Remote Sens. 2020, 12, 2502. [Google Scholar] [CrossRef] [Scilit]
- Gonthina, N.; Narasimha Prasad, L.V. An Enhanced Convolutional Neural Network Architecture for Semantic Segmentation in High-Resolution Remote Sensing Images. Discov. Comput. 2025, 28, 91. [Google Scholar] [CrossRef] [Scilit]
- Luo, Z.; Pan, J.; Hu, Y.; Deng, L.; Li, Y.; Qi, C.; Wang, X. RS-Dseg: Semantic Segmentation of High-Resolution Remote Sensing Images Based on a Diffusion Model Component with Unsupervised Pretraining. Sci. Rep. 2024, 14, 18609. [Google Scholar] [CrossRef] [Scilit]
- Song, W.; He, H.; Dai, J.; Jia, G. Spatially Adaptive Interaction Network for Semantic Segmentation of High-Resolution Remote Sensing Images. Sci. Rep. 2025, 15, 15337. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, X.; Han, L.; Han, L.; Zhu, L. How Well Do Deep Learning-Based Methods for Land Cover Classification and Object Detection Perform on High Resolution Remote Sensing Imagery? Remote Sens. 2020, 12, 417. [Google Scholar] [CrossRef] [Scilit]
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2015; Volume 9351, pp. 234–241. [Google Scholar] [CrossRef] [Scilit]
- Altan, O.; Huang, M.; Xiao, C.; Chen, N.; Li, R.; Dimitrovski, I.; Spasev, V.; Loshkovska, S.; Kitanovski, I. U-Net Ensemble for Enhanced Semantic Segmentation in Remote Sensing Imagery. Remote Sens. 2024, 16, 2077. [Google Scholar] [CrossRef] [Scilit]
- Ji, Z.; Xu, J.; Yan, L.; Ma, J.; Chen, B.; Zhang, Y.; Zhang, L.; Wang, P. Satellite Remote Sensing Images of Crown Segmentation and Forest Inventory Based on BlendMask. Forests 2024, 15, 1320. [Google Scholar] [CrossRef] [Scilit]
- Bhuiyan, M.A.E.; Witharana, C.; Liljedahl, A.K.; Jones, B.M.; Daanen, R.; Epstein, H.E.; Kent, K.; Griffin, C.G.; Agnew, A. Understanding the Effects of Optimal Combination of Spectral Bands on Deep Learning Model Predictions: A Case Study Based on Permafrost Tundra Landform Mapping Using High Resolution Multispectral Satellite Imagery. J. Imaging 2020, 6, 97. [Google Scholar] [CrossRef] [Scilit]
- Ding, B.; Tian, J.; Wang, Y.; Zeng, T. Land Cover Extraction in the Typical Black Soil Region of Northeast China Using High-Resolution Remote Sensing Imagery. Land 2023, 12, 1566. [Google Scholar] [CrossRef] [Scilit]
- Hatfield, J.L.; Prueger, J.H.; Sauer, T.J.; Dold, C.; O’brien, P.; Wacha, K. Applications of Vegetative Indices from Remote Sensing to Agriculture: Past and Future. Inventions 2019, 4, 71. [Google Scholar] [CrossRef] [Scilit]
- Jia, P.; Chen, C.; Zhang, D.; Sang, Y.; Zhang, L. Semantic Segmentation of Deep Learning Remote Sensing Images Based on Band Combination Principle: Application in Urban Planning and Land Use. Comput. Commun. 2024, 217, 97–106. [Google Scholar] [CrossRef] [Scilit]
- Roy, D.P.; Huang, H.; Houborg, R.; Martins, V.S. A Global Analysis of the Temporal Availability of PlanetScope High Spatial Resolution Multi-Spectral Imagery. Remote Sens. Environ. 2021, 264, 112586. [Google Scholar] [CrossRef] [Scilit]
- INPI. Ficha Técnica de Registro de Indicação Geográfica; Instituto Nacional da Propriedade Industrial: Rio de Janeiro, Brazil, 2020. [Google Scholar]
- QGIS Development Team. QGIS Geographic Information System; QGIS Development Team: Zürich, Switzerland, 2021. [Google Scholar]
- Karasiak, N.; Dejoux, J.F.; Monteil, C.; Sheeren, D. Spatial Dependence between Training and Test Sets: Another Pitfall of Classification Accuracy Assessment in Remote Sensing. Mach. Learn. 2021, 111, 2715–2740. [Google Scholar] [CrossRef] [Scilit]
- Griffith, D.A.; Chun, Y. Spatial Autocorrelation and Uncertainty Associated with Remotely-Sensed Data. Remote Sens. 2016, 8, 535. [Google Scholar] [CrossRef] [Scilit]
- Kattenborn, T.; Schiefer, F.; Frey, J.; Feilhauer, H.; Mahecha, M.D.; Dormann, C.F. Spatially Autocorrelated Training and Validation Samples Inflate Performance Assessment of Convolutional Neural Networks. ISPRS Open J. Photogramm. Remote Sens. 2022, 5, 100018. [Google Scholar] [CrossRef] [Scilit]
- Richards, J.; Jia, X. Remote Sensing Digital Image Analysis: An Introduction; Springer: Berlin/Heidelberg, Germany, 2006. [Google Scholar]
- Tong, X.Y.; Xia, G.S.; Zhu, X.X. Enabling Country-Scale Land Cover Mapping with Meter-Resolution Satellite Imagery. ISPRS J. Photogramm. Remote Sens. 2023, 196, 178–196. [Google Scholar] [CrossRef] [Scilit]





| Set | Scenes | Patches | Coffee Crops Pixels | Background Pixels | Total Pixels |
|---|---|---|---|---|---|
| Training | 1,2,4,5,6,7 | 316 | 4,580,165 | 16,129,211 | 20,709,376 |
| Test | 3 | 25 | 447,296 | 1,191,104 | 1,638,400 |
| Total | 1–7 | 341 | 5,027,461 | 17,320,315 | 22,347,776 |
| Band Combination | Accuracy | Precision | Recall | F1-Score | IoU |
|---|---|---|---|---|---|
| (B, G, R) | 0.8669 | 0.8670 | 0.8669 | 0.8668 | 0.7650 |
| (B, G, NIR) | 0.8039 | 0.8084 | 0.8039 | 0.8032 | 0.6714 |
| (B, R, NIR) | 0.8376 | 0.8377 | 0.8376 | 0.8375 | 0.7205 |
| (G, R, NIR) | 0.8309 | 0.8310 | 0.8309 | 0.8309 | 0.7108 |
| (B, G, R, NIR) | 0.8494 | 0.8495 | 0.8494 | 0.8493 | 0.7381 |
| Band Combination | Recall | Precision | F1-Score | IoU |
|---|---|---|---|---|
| (B, G, R) | 0.8769 | 0.8596 | 0.8682 | 0.7671 |
| (B, G, NIR) | 0.8637 | 0.7715 | 0.8150 | 0.6878 |
| (B, R, NIR) | 0.8475 | 0.8310 | 0.8392 | 0.7229 |
| (G, R, NIR) | 0.8239 | 0.8357 | 0.8297 | 0.7090 |
| (B, G, R, NIR) | 0.8384 | 0.8572 | 0.8477 | 0.7356 |
| Band Combination | Mean JM | Min JM | Max JM | Limiting Band |
|---|---|---|---|---|
| (B, G, R) | 0.419 | 0.391 | 0.444 | Red |
| (B, G, NIR) | 0.380 | 0.274 | 0.444 | NIR |
| (B, R, NIR) | 0.370 | 0.274 | 0.444 | NIR |
| (G, R, NIR) | 0.362 | 0.274 | 0.422 | NIR |
| (B, G, R, NIR) | 0.383 | 0.274 | 0.444 | NIR |
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. |
© 2026 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.
Share and Cite
Leite, D.H.; Valente, D.S.M.; Arruda, P.M.F.; Castro, G.D.M.d.; Queiroz, D.M.d.; Marin, D.B.; Tancredi, F.D. Semantic Segmentation of Coffee Crops with PlanetScope Images: A Comparative Analysis of Spectral Band Combinations for U-Net Architecture. AgriEngineering 2026, 8, 125. https://doi.org/10.3390/agriengineering8040125
Leite DH, Valente DSM, Arruda PMF, Castro GDMd, Queiroz DMd, Marin DB, Tancredi FD. Semantic Segmentation of Coffee Crops with PlanetScope Images: A Comparative Analysis of Spectral Band Combinations for U-Net Architecture. AgriEngineering. 2026; 8(4):125. https://doi.org/10.3390/agriengineering8040125
Chicago/Turabian StyleLeite, Daniel Henrique, Domingos Sárvio Magalhães Valente, Pedro Maya Ferreira Arruda, Gabriel Dumbá Monteiro de Castro, Daniel Marçal de Queiroz, Diego Bedin Marin, and Fábio Daniel Tancredi. 2026. "Semantic Segmentation of Coffee Crops with PlanetScope Images: A Comparative Analysis of Spectral Band Combinations for U-Net Architecture" AgriEngineering 8, no. 4: 125. https://doi.org/10.3390/agriengineering8040125
APA StyleLeite, D. H., Valente, D. S. M., Arruda, P. M. F., Castro, G. D. M. d., Queiroz, D. M. d., Marin, D. B., & Tancredi, F. D. (2026). Semantic Segmentation of Coffee Crops with PlanetScope Images: A Comparative Analysis of Spectral Band Combinations for U-Net Architecture. AgriEngineering, 8(4), 125. https://doi.org/10.3390/agriengineering8040125

