---
title: "Indonesia’s Gold Trends by AI"
url: "https://ridwaanhall.com/projects/indonesias-gold-trends-by-ai"
markdown: "https://ridwaanhall.com/projects/indonesias-gold-trends-by-ai.md"
summary: "LSTM neural networks that turn more than ten years of gold price data into forecasts for Indonesia."
---

# Indonesia’s Gold Trends by AI

> LSTM neural networks that turn more than ten years of gold price data into forecasts for Indonesia.

- Category: finance
- Status: Completed
- Started: April 23, 2025
- Built with: Python, NumPy, Matplotlib, PyTorch, Seaborn, Pandas
- Source: https://github.com/ridwaanhall/indonesia-gold-price-prediction

## About

### The problem

Gold buyers in Indonesia decide with no view of where prices might go next, and simple averages miss the longer patterns.

### The approach

I trained LSTM networks on more than ten years of Indonesian gold prices. The pipeline cleans the data, engineers features such as moving averages and volatility, and normalises it; the models include a standard LSTM and enhanced variants with attention and bidirectional layers, trained with dropout, early stopping and learning-rate scheduling.

- Next-day estimates, one-to-six-month forecasts and projections up to five years.
- Interactive plots, with predictions exportable to CSV.
- Validation-based model selection and loss visualisation.

### The result

One pipeline produces forecasts at every horizon, giving buyers and analysts a data-driven view of likely price direction.

## Features

- **LSTM Forecasting**: Standard and enhanced LSTM models, including attention and bidirectional variants.
- **Every Horizon**: From next-day estimates to five-year projections.
- **Exportable Results**: Interactive plots and predictions saved to CSV.

## Tags

Gold Price Prediction, Indonesia Gold Price Prediction, lstm

## Elsewhere

- This page for people: https://ridwaanhall.com/projects/indonesias-gold-trends-by-ai
- Index of every page as Markdown: [llms.txt](https://ridwaanhall.com/llms.txt)
