Submitted:
23 October 2024
Posted:
25 October 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Dataset
2.2. Splitting the Data for Training and Testing
2.3. Preprocessing
2.3.1. KNN Imputer
2.3.2. Z-Score Normalization
2.3.3. One Hot Encoding
2.4. Models
2.5. Hyperparameter Tuning
2.6. Feature Importance
3. Evaluation Metrics
3.1. Classification
3.1.1. Accuracy
3.1.2. Precision
3.1.3. Recall
3.1.4. F1-Score
3.2. Regression
3.2.1. MSE
3.2.2. RMSE
3.2.3. MAE
3.2.4. MdAE
3.2.5. R²
4. Results
4.1. Model Metrics
4.2. Exogenous Variables Influences


5. Conclusions
Supplementary Materials
Author Contributions
Funding
Conflicts of Interest
References
- da Silva, e. Souza, G.; Gomes, E.G.; de Andrade Alves, E.R.; Gasques, J.G. Technological progress in the Brazilian agriculture. Socio-Economic Planning Sciences 2020, 72. [Google Scholar] [CrossRef]
- Clott, C.; Hartman, B.C.; Ogard, E.; Gatto, A. Container repositioning and agricultural commodities: Shipping soybeans by container from US hinterland to overseas markets. Research in Transportation Business and Management 2015, 14, 56–65. [Google Scholar] [CrossRef]
- Morais, G.R.; Calil, Y.C.D.; de Oliveira, G.F.; Saldanha, R.R.; Maia, C.A. A Sustainable Location Model of Transshipment Terminals Applied to the Expansion Strategies of the Soybean Intermodal Transport Network in the State of Mato Grosso, Brazil. Sustainability (Switzerland) 2023, 15. [Google Scholar] [CrossRef]
- Kamrud, G.; Wilson, W.W.; Bullock, D.W. Logistics competition between the U.S. and Brazil for soybean shipments to China: An optimized Monte Carlo simulation approach. Journal of Commodity Markets 2023, 31. [Google Scholar] [CrossRef]
- Wanke, P.; Fleury, P.F. Transporte de Cargas no Brasil: Estudo exploratório das principais variáveis relacionadas aos diferentes modais e às suas estruturas de custos; 2006; pp. 409–464.
- Filassi, M.; Marsola, K.B.; Oliveira, A.L.R. Armazenagem de grãos no Brasil: Um gargalo logístico a ser superado. 58º Congresso SOBER - Sociedade Brasileira de Economia, Administração e Sociologia Rural, 2020.
- Isler, C.A.; Asaff, Y.; Marinov, M. Designing a Geo-Strategic Railway Freight Network in Brazil Using GIS. Sustainability 2021, 13, 85. [Google Scholar] [CrossRef]
- Friend, D.J.; da, S. Lima, R. Impact of transportation policies on competitiveness of Brazilian and U.S. soybeans: From field to port. Transportation Research Record. [CrossRef]
- Eurostat. Eurostat Statistics Explained, 2024.
- CIA. Central Intelligence Agency, 2021. https://www.cia.gov/the-world-factbook/.
- OECD. The Organisation for Economic Co-operation and Development, 2024. https://www.oecd.org/en/data/indicators/freight-transport.html.
- CNT. Boletim Unificado - Setembro 2024, 2024.
- Brasil. Observatório Nacional de Transportes e Logística, 2024.
- Savić, B.; Petrović, M.; Vasiljević, Z. The impact of transportation costs on economic performances in crop production. Economics of Agriculture 2020, 67, 683–697. [Google Scholar] [CrossRef]
- Adisa, O.M.; Botai, J.O.; Adeola, A.M.; Hassen, A.; Botai, C.M.; Darkey, D.; Tesfamariam, E. Application of artificial neural network for predicting maize production in South Africa. Sustainability (Switzerland) 2019, 11. [Google Scholar] [CrossRef]
- Benos, L.; Tagarakis, A.C.; Dolias, G.; Berruto, R.; Kateris, D.; Bochtis, D. Machine learning in agriculture: A comprehensive updated review, 2021. [CrossRef]
- Haider, S.A.; Naqvi, S.R.; Akram, T.; Umar, G.A.; Shahzad, A.; Sial, M.R.; Khaliq, S.; Kamran, M. LSTM neural network based forecasting model for wheat production in Pakistan. Agronomy 2019, 9. [Google Scholar] [CrossRef]
- Mahesh, P.; Soundrapandiyan, R. Yield prediction for crops by gradient-based algorithms. PLoS ONE 2024, 19. [Google Scholar] [CrossRef]
- Sun, C.; Pei, M.; Cao, B.; Chang, S.; Si, H. A Study on Agricultural Commodity Price Prediction Model Based on Secondary Decomposition and Long Short-Term Memory Network. Agriculture (Switzerland) 2024, 14. [Google Scholar] [CrossRef]
- Ghutake, I.; Verma, R.; Chaudhari, R.; Amarsinh, V. An intelligent Crop Price Prediction using suitable Machine Learning Algorithm. ITM Web of Conferences 2021, 40, 03040. [Google Scholar] [CrossRef]
- Kurumatani, K. Time series forecasting of agricultural product prices based on recurrent neural networks and its evaluation method. SN Applied Sciences 2020, 2. [Google Scholar] [CrossRef]
- Araújo, S.O.; Peres, R.S.; Ramalho, J.C.; Lidon, F.; Barata, J. Machine Learning Applications in Agriculture: Current Trends, Challenges, and Future Perspectives, 2023. [CrossRef]
- Macarringue, A.M.J.S.; de Oliveira, A.L.R.; Dias, C.T.D.S.; Marsola, K.B. Multidimensionality of agricultural grain road freight price: a multiple linear regression model approach by variable selection. Ciencia Rural 2024, 54. [Google Scholar] [CrossRef]
- Sarker, I.H. Machine Learning: Algorithms, Real-World Applications and Research Directions, 2021. [CrossRef]
- Mohanty, M.K.; Thakurta, P.K.G.; Kar, S. Agricultural commodity price prediction model: a machine learning framework. Neural Computing and Applications 2023, 35, 15109–15128. [Google Scholar] [CrossRef]
- Kulkarni, P.; Gala, I.; Nargundkar, A. , Freight Cost Prediction Using Machine Learning Algorithms; Springer, 2023. [CrossRef]
- Tsolaki, K.; Vafeiadis, T.; Nizamis, A.; Ioannidis, D.; Tzovaras, D. Utilizing machine learning on freight transportation and logistics applications: A review, 2023. [CrossRef]
- Moreira, C.E.S.; de Oliveira, A.L.R.; de Medeiros Oliveira, S.R.; Yamakami, A. Identification of freight patterns via association rules: The case of agricultural grains. Bulgarian Journal of Agricultural Science 2017, 23, 887–893. [Google Scholar]
- de Oliveira, A.L.R.; Filassi, M.; Lopes, B.F.R.; Marsola, K.B.; Leda, A.; Oliveira, R.D.; Fernanda, B.; Lopes, R. Logistical transportation routes optimization for Brazilian soybean : an application of the origin-destination matrix. Ciência Rural 2021, 51. [Google Scholar] [CrossRef]
- Kengpol, A.; Tuammee, S.; Tuominen, M. The development of a framework for route selection in multimodal transportation; Vol. 25, 2014; pp. 581–610. [CrossRef]
- Márquez, L.; Cantillo, V. Evaluating strategic freight transport corridors including external costs. Transportation Planning and Technology 2013, 36, 529–546. [Google Scholar] [CrossRef]
- Péra, T.G.; Bartholomeu, D.B.; Su, C.T.; Filho, J.V.C. Evaluation of green transport corridors of Brazilian soybean exports to China. Brazilian Journal of Operations & Production Management 2019, 16, 398–412. [Google Scholar] [CrossRef]
- Melo, I.C.; Junior, P.N.A.; Perico, A.E.; Guzman, M.G.S.; do Nascimento Rebelatto, D.A. Benchmarking freight transportation corridors and routes with data envelopment analysis (DEA). Benchmarking 2018, 25, 713–742. [Google Scholar] [CrossRef]
- de Oliveira Melo Cicolin, L.; de Oliveira, A.R. Avaliação de desempenho do processo logístico de exportação do milho brasileiro: uma aplicação da análise envoltória de dados – DEA. Journal of Transport Literature 2016, 10, 30–34. [Google Scholar] [CrossRef]
- Filippi, A.C.G.; Guarnieri, P. Novas formas de organização rural: os Condomínios de Armazéns Rurais. Revista de Economia e Sociologia Rural 2019, 57, 270–287. [Google Scholar] [CrossRef]
- Teixeira, M.M.A.; Losekann, L.D.; Rodrigues, N. Mercado de frete rodoviário e transmissão assimétrica de preço do diesel no Brasil. Revista Brasileira de Energia 2020, 26, 29–38. [Google Scholar] [CrossRef]
- Wetzstein, B.; Florax, R.; Foster, K.; Binkley, J. Transportation costs: Mississippi River barge rates. Journal of Commodity Markets 2021, 21, 100123. [Google Scholar] [CrossRef]
- Asai, G.; Piacenti, C.A.; Gurgel, A.C. Impactos no Comportamento do Frete: Uma Aplicação de Equilíbrio Geral Computável para os Produtos Agropecuários do Brasil. Internext 2020, 15, 17–33. [Google Scholar] [CrossRef]
- Sonaglio, C.M.; Zamberlam, C.O.; Filho, R.B. Variações cambiais e os efeitos sobre exportações brasileiras de soja e carnes 1, 2011.
- Watanabe, S. Tree-structured parzen estimator: Understanding its algorithm components and their roles for better empirical performance. arXiv preprint 2023, arXiv:2304.11127. [Google Scholar]
- Kreter, A.C.; de Castro Junior, J.S.R.; Associado, J.S.P. Impactos Iniciais da greve dos caminhoneiros no Setor Agropecuário, 2018.
- Martins, R.S.; Lobo, D.S.; Araújo, P. Sazonalidade nos fretes e preferências dos embarcadores no mercado de transporte de granéis agrícolas. Revista de Economia e Administração 2005. [Google Scholar] [CrossRef]
- USDA. Oilseeds: World Markets and Trade, 2024.
- COMEXSTAT. COMEXSTAT, 2024.
- Delai, A.P.D.; Araujo, J.B.; Reis, J.G.M.; da Silva, L.F. Armazenagem e ganhos logísticos: uma análise comparativa para comercialização da soja em Mato Grosso do Sul. Revista em Agronegócio e Meio Ambiente 2015, 10, 395–414. [Google Scholar] [CrossRef]
- de Lima, D.P.; Fioriolli, J.C.; Padula, A.D.; Pumi, G. The impact of Chinese imports of soybean on port infrastructure in Brazil: A study based on the concept of the “ Bullwhip Effect”. Journal of Commodity Markets 2017, 9, 55–79. [Google Scholar] [CrossRef]
- Filippi, A.C.G.; Figueiredo, R.S. Associação da relação entre os preços de fretes de soja e óleo diesel no período de 2015 a 2018. Revista ENIAC Pequisa 2019, 8, 254–269. [Google Scholar] [CrossRef]
- ABIOVE. ABIOVE, 2024.
- Ghalayini, L. Modeling and forecasting spot oil price. Eurasian Business Review 2017, 7, 355–373. [Google Scholar] [CrossRef]
- Drachal, K. Some Novel Bayesian Model Combination Schemes : An Application to Commodities Prices. Sustainability (Switzerland) 2018, 10, 1–27. [Google Scholar] [CrossRef]
- Guo, Y.; Tang, D.; Tang, W.; Yang, S.; Tang, Q.; Feng, Y.; Zhang, F. Agricultural Price Prediction Based on Combined Forecasting Model under Spatial-Temporal Influencing Factors. Sustainability 2022, 14, 2–18. [Google Scholar] [CrossRef]



| Groups | Variables | Motivations | References |
|---|---|---|---|
| Freight | Freight Price, Distance, Origin, Destination, Month and Year | Evaluate the relationship between the distance traveled and the cost of road freight transportation | Kengpol et al. (2014); Márquez and Cantillo (2013) |
| Region | Origin State, Destination State, Origin Municipality and Destination Municipality | Analyze the impact of transport corridors on freight prices. | Péra et al. (2019) |
| Production | Municipal Planted Area, State Planted Area, Municipality Harvested Area, State Harvested Area, Municipality Production, State Production, Average State Yield and Municipality Yield, Municipality Production Value and Harvest Period | Assess how regional productivity levels, productive potential, and the seasonality of transport demand influence the pricing of transport freight. | Melo et al. (2018); de Oliveira Melo Cicolinand de Oliveira (2016) |
| Fuel | Maximum, Average and Minimum Price of Diesel, Maximum, Average and Minimum Price of Ethanol, Maximum, Average and Minimum Price of Gasoline | Examine how operational transport factors and fluctuations in diesel prices impact the overall cost of road freight transportation. | Filippi and Guarnieri (2019); Teixeira et al. (2020); Wetzstein et al. (2021) |
| Storage | State Storage Capacity at Origin and State Storage Capacity at Destination | Analyze how the capacity of grain storage facilities at both origin and destination points influences the pricing trends of freight transportation. | Melo et al. (2018); de Oliveira Melo Cicolin and de Oliveira (2016) |
| Commercialization | International Market (Chicago), International Market (Parity), National Market, Milling Capacity of Industries at Origin State, Milling Capacity of Industries at Destination State, Average Monthly Exchange Rate, Diesel Imports, Monthly Export Volume at Origin State and Yearly Export Volume at Origin State | Investigate how factors such as international and national market dynamics, milling capacities, exchange rates, diesel oil imports, and export volumes influence the freight pricing of agricultural products. | Asai et al. (2020); Sonaglio et al. (2011) |
| Model | Tuning Parameters | Values | Best Classification | Best Regression |
|---|---|---|---|---|
| KNN | K | [3, 500] | 14 | 13 |
| weights | uniform, distance | distance | distance | |
| metric | cityblock, cosine, euclidean | cityblock | cityblock | |
| Logistic Regression | C | [, ] | 2.11 10 3 | - |
| penalty | None, l1, l2 | l1 | - | |
| Passive Aggressive | C | , | 0.01 | 1.28 10-4 |
| tol | , | 4.32 10-5 | 2.85 10-4 | |
| loss | hinge (classification) | hinge | sqepsilon | |
| sqhinge (classification) | ||||
| epsilon (regression) | ||||
| sqepsilon (regression) | ||||
| Decision Tree | criterion | gini (classification) | gini | squared error |
| entropy(classification) | ||||
| log loss (classification) | ||||
| squared error(regression) | ||||
| max depth | [2, 10] | 9 | 7 | |
| min samples split | [2, 10] | 8 | 7 | |
| min samples leaf | [1, 4] | 3 | 2 | |
| Random Forest | n estimators | [50, 500] | 471 | 218 |
| criterion | gini (classification) | gini | squared error | |
| entropy(classification) | ||||
| log loss (classification) | ||||
| squared error(regression) | ||||
| max depth | [2, 10] | 10 | 10 | |
| min samples split | [2, 10] | 8 | 8 | |
| min samples leaf | [1, 4] | 1 | 3 | |
| Extra Trees | n estimators | [50, 500] | 183 | 207 |
| criterion | gini (classification) | entropy | squared error | |
| entropy(classification) | ||||
| log loss (classification) | ||||
| squared error(regression) | ||||
| max depth | [2, 10] | 10 | 10 | |
| min samples split | [2, 20] | 20 | 20 | |
| min samples leaf | [1, 20] | 12 | 1 | |
| max features | [0.5, 1.0] | 0.64 | 0.87 | |
| XGBoost | n estimators | [50, 500] | 321 | 263 |
| max depth | [2, 10] | 8 | 6 | |
| max leaves | [2, 5] | 0 | 0 | |
| learning rate | [0.01, 0.3] | 0.29 | 0.04 | |
| colsample bytree | [0.5, 1.0] | 0.92 | 0.64 | |
| lambda | [0.0, 10.0] | 2.12 | 5.92 | |
| alpha | [0.0, 10.0] | 1.81 | 7.25 | |
| gamma | [0.0, 10.0] | 1.83 | 5.16 | |
| LightGBM | n estimators | [50, 500] | 130 | 348 |
| max depth | [2, 10] | 9 | 6 | |
| max leaves | [2, 31] | 23 | 11 | |
| learning rate | [0.01, 0.3] | 0.23 | 0.17 | |
| colsample bytree | [0.5, 1.0] | 0.68 | 0.95 | |
| lambda | [0.0, 10.0] | 6.86 | 9.70 | |
| alpha | [0.0, 10.0] | 2.31 | 7.75 | |
| min child samples | [1, 10] | 7 | 10 | |
| min split gain | [0.0, 5.0] | 0.08 | 0.92 |
| Model | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| Decision Tree | ||||
| Extra Trees | ||||
| KNN | ||||
| LightGBM | ||||
| Logistic Regression | ||||
| Passive Aggressive | ||||
| Random Forest | ||||
| XGBoost |
| Model | MSE | RMSE | MAE | MdAE | R² |
|---|---|---|---|---|---|
| Decision Tree | |||||
| Extra Trees | |||||
| KNN | |||||
| LightGBM | |||||
| Passive Aggressive | |||||
| Random Forest | |||||
| XGBoost |
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/).