Garlic importation in Indonesia is frequently carried out to meet the high domestic market demand. To reduce dependency on imports, the development of local garlic production is crucial. This study aims to determine the optimal solar radiation for garlic growth using the Long Short-Term Memory (LSTM) algorithm. This algorithm was selected due to its ability to analyze time-series data and predict long-term patterns. The LSTM model was trained with the Adam optimizer, using a configuration of 1000 epochs, a batch size of 6, and a dropout rate of 2.0 to prevent overfitting. The model evaluation results show an indicating good accuracy with a RMSE of 0.1020, a Mean Squared Error (MSE) of 0.0104, and a correlation coefficient of 0.740, although it still has limitations in capturing extreme data fluctuations. The study found that in Magelang Regency especially in the sub-districts of Windusari, Grabag, Ngablak, Pakis, Dukun, Kaliangkrik, and Kajoran have optimal solar radiation for garlic cultivation between March and May, with a radiation range of 380 W/m² to 440 W/m². These findings provide valuable guidance for farmers in determining the optimal planting period, potentially enhancing local garlic production and reducing import dependency.
Copyrights © 2024