CropNet: Leveraging SegFormer for Efficient and Scalable Crop Mapping with Sentinel-2 Data

Main Article Content

Sathirada Phahurat
Pongthep Thongsang
Srilert Chotpantarat

Abstract

This research investigates a deep learning-based methodology for crop classification by integrating Sentinel-2 satellite imagery with SegFormer, a state-of-the-art transformer-based semantic segmentation model. The study focuses on five dominant land cover types: rice fields, sugarcane, cassava, para rubber, and pond areas within a part of Khu Mueang District, Buriram Province, Thailand. The main objectives are to develop an efficient classification method using Sentinel-2 satellite data and to evaluate the predictive performance of SegFormer in the agricultural field. Satellite images were acquired via Google Earth Engine (GEE) during the harvest season (Nov 2023–Jan 2024), complemented by ground truth data collected from field surveys and high-resolution drone imagery. Preprocessing steps included cloud filtering, image normalization, and manual pixel-level labeling in QGIS software. The dataset was divided into 512×512 pixel patches, resulting in 780 image–mask pairs allocated for training (480), validation (120), and testing (180). The SegFormer model was trained using Optuna to find the best hyperparameter settings. The model achieved 0.967 pixel-wise accuracy with a validation loss of 0.075 (cross-entropy) on the training and validation datasets, demonstrating strong learning performance during model development. It showed strong classification performance for para rubber and sugarcane. However, it faced challenges in distinguishing cassava, ponds, and bare soil due to class imbalance and spectral similarity.

Article Details

How to Cite
Phahurat , S., Thongsang , P. ., & Chotpantarat, S. (2026). CropNet: Leveraging SegFormer for Efficient and Scalable Crop Mapping with Sentinel-2 Data. Bulletin of Earth Sciences of Thailand, 17(2). retrieved from https://ph01.tci-thaijo.org/index.php/bestjournal/article/view/262477
Section
Research Articles

References

Abdi, A. M. (2019). Land cover and land use classification performance of machine learning algorithms in a boreal landscape using Sentinel-2 data. GIScience & Remote Sensing, 57(1), 1-20. https://doi.org/10.1080/15481603.2019.1650447

Akiba, T., Sano, S., Yanase, T., Ohta, T., Koyama, M., & Optuna. A next-generation hyperparameter optimization framework. arXiv preprint arXiv:1907.10902.

Food and Agriculture Organization of the United Nation. (2015). Climate change and food security: risks and responses. https://openknowledge.fao.org/server/api/core/bitstreams/a4fd8ac5-4582-4a66-91b0-55abf642a400/content

Land Development Department. (2021). Guidelines for appropriate agricultural promotion in Buriram Province: AGRI-MAP. https://www.ldd.go.th/agri-map/Data/NE/brm.pdf

Li, G., Han, W., Dong, Y., Zhai, X., Huang, S., Ma, W., Cui, X., & Wang, Y. (2023). Multi-Year Crop Type Mapping Using Sentinel-2 Imagery and Deep Semantic Segmentation Algorithm in the Hetao Irrigation District in China. Remote Sensing, 15(4). https://doi.org/10.3390/rs15040875

Ma, L., Liu, Y., Zhang, X., Ye, Y., Yin, G., & Johnson, B. A. (2019). Deep learning in remote sensing applications: A meta-analysis and review. ISPRS Journal of Photogrammetry and Remote Sensing, 152, 166-177. https://doi.org/10.1016/j.isprsjprs.2019.04.015

Meteorological Development Department. (2023). Climate of Buriram Province. http://climate.tmd.go.th/

National Statistical Office Thailand. (2021). Agricultural Census 2023. Retrieved 10 November 2023 from https://www.nso.go.th/nsoweb/main/summano/P7

Phumkokrux, N. (2021). Köppen-Geiger Climate System Classification and Forecasting in Thailand. Folia Geographica, 63(2), 110.

Ronneberger, O., Fischer, P., & Brox, T. (2015). U-net: Convolutional networks for biomedical image segmentation. Medical image computing and computer-assisted intervention–MICCAI 2015: 18th international conference, Munich, Germany, October 5-9, 2015, proceedings, part III 18,

Singh, G., Singh, S., Sethi, G., & Sood, V. (2022). Deep Learning in the Mapping of Agricultural Land Use Using Sentinel-2 Satellite Data. Geographies, 2(4), 691-700. https://doi.org/10.3390/geographies2040042

Song, W., Feng, A., Wang, G., Zhang, Q., Dai, W., Wei, X., Hu, Y., Amankwah, S. O. Y., Zhou, F., & Liu, Y. (2023). Bi-Objective Crop Mapping from Sentinel-2 Images Based on Multiple Deep Learning Networks. Remote Sensing, 15(13). https://doi.org/10.3390/rs15133417

United Nations. (2017). World population projected to reach 9.8 billion in 2050, and 11.2 billion in 2100. Retrieved 10 Dec 2023 from https://www.un.org/en/desa/world-population-projected-reach-98-billion-2050-and-112-billion-2100

Xie, E., Wang, W., Yu, Z., Anandkumar, A., Alvarez, J. M., & Luo, P. (2021). SegFormer: Simple and efficient design for semantic segmentation with transformers. Advances in neural information processing systems, 34, 12077-12090.

Zhao, W., Zhang, H., Yan, Y., Fu, Y., & Wang, H. (2018). A Semantic Segmentation Algorithm Using FCN with Combination of BSLIC. Applied Sciences, 8(4). https://doi.org/10.3390/app8040500