Purpose: This paper aims to investigate and compare the performance of LSTM Neural Network and Support Vector Machines (SVM) in predicting the USD exchange rate using three different training data scenarios: 45%, 55%, and 75%. The study employs a dataset from the Indonesian Central Bureau of Statistics (BPS) for the period of January 1 to June 30, 2021, encompassing attributes USD Selling Rate.Methods: The methods involve implementing LSTM and SVM algorithms within the Python programming language using Google Colaboratory. Three distinct training data scenarios are explored to evaluate the models' robustness. Performance metrics, including Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R-squared, are employed for evaluation.Result: Results reveal that LSTM demonstrates superior prediction accuracy compared to SVM across all scenarios, even though it incurs a longer training time. Notably, in the 75% training data scenario, LSTM achieves an MAE of 49.52, RMSE of 63.08, and R-squared of 0.37906, outperforming SVM with MAE of 138.33, RMSE of 161.58, and R-squared of 0.34277.Novelty: This study innovatively compares LSTM Neural Network and Support Vector Machines (SVM) for USD exchange rate prediction across different training scenarios (45%, 55%, and 75%). Unlike previous research focusing on individual models, this study systematically evaluates both methods, highlighting the nuanced balance between prediction accuracy and training time. The findings offer novel insights into LSTM and SVM applicability in currency forecasting, providing valuable guidance for researchers and practitioners in model selection based on specific predictive task requirements.
Read full abstract