Đề tài: Ứng dụng trí tuệ nhân tạo trong dự đoán giá vàng và phân tích biến động thị trường Việt Nam Title (EN): Applied Artificial Intelligence to Gold Price Forecasting and Market Volatility in Vietnam Tổ chức: Đại học Tôn Đức Thắng (TDTU) — Nghiên cứu Khoa học Sinh viên Năm học: 2025-2026 License: MIT
Xây dựng hệ thống dự báo giá vàng SJC (Việt Nam) bằng AI/ML, tích hợp dữ liệu đa nguồn (giá vàng quốc tế, USD Index, dầu, lãi suất, sentiment tin tức), so sánh hệ thống các mô hình từ baseline cổ điển đến SOTA 2024-2026 (foundation models zero-shot), và cung cấp dashboard trực quan cho nhà đầu tư.
Target proposal: MAPE 4-5% trên test out-of-sample.
Xem ARCHITECTURE.md để biết chi tiết.
NCKH/
├── data/
│ ├── raw/ # CSV gốc, immutable
│ ├── interim/ # merged + ffill
│ ├── processed/ # features V2 + splits
│ └── external/ # news, sentiment cache
├── src/
│ ├── data/ # fetch, refresh, schema
│ ├── features/ # technical, macro, sentiment, calendar
│ ├── models/ # classical, ml, dl, foundation, ensemble
│ ├── training/ # cv (walk-forward), tune (optuna), trainer
│ ├── evaluation/ # metrics, stat_tests (DM, Friedman), conformal
│ ├── xai/ # SHAP, attention, TimeSHAP
│ ├── utils/ # logging, seeds, io
│ └── legacy/ # FROZEN — code gốc trước refactor
├── notebooks/ # 00..99 — EDA → models → ensemble → reproduce
├── tests/ # pytest, no-leakage gates
├── configs/ # YAML configs (no hardcoded constants)
├── app/ # streamlit + fastapi
├── reports/ # figures, leaderboard, paper (TDTU + IEEE)
└── scripts/ # bash helpers
git clone https://github.com/twangnhat-05/NGHIENCUUKHOAHOC.git
cd NGHIENCUUKHOAHOC
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r requirements.txt
python -m src.data.refresh --start-year 2018 --end-date today
python -m src.features.build
python -m src.models.classical # AutoARIMA, Prophet, ETS
python -m src.models.ml --model xgboost --tune
streamlit run app/streamlit_app.py
Mở notebooks/99_reproduce_all.ipynb.
| Tier | Models |
|---|---|
| 0 — Trivial | Naive, Seasonal Naive, Drift, SMA |
| 1 — Classical | AutoARIMA, AutoETS, Theta, Prophet, NeuralProphet |
| 2 — ML | Ridge, SVR, RF, XGBoost, LightGBM, CatBoost, Stacking |
| 3 — Deep Learning | LSTM, GRU, TCN, N-HiTS, PatchTST, iTransformer, TFT, TimeMixer, TSMixer |
| 4 — Foundation (zero-shot) | Chronos-Bolt, TTM (IBM), TimesFM, Lag-Llama, Moirai-MoE |
| 5 — Ensemble | Inverse-RMSE weighted, Stacking, Conformal calibration |
| Nguồn | Frequency | Range | Source |
|---|---|---|---|
| Giá vàng SJC mua/bán | Daily | 2018+ | webgia.com (scrape) |
| Gold Futures (GC=F) | Daily | 2018+ | yfinance |
| USD Index (DXY) | Daily | 2018+ | yfinance + FRED |
| VN-Index | Daily | 2018+ | vnstock (VCI) |
| Oil WTI (CL=F) | Daily | 2018+ | yfinance |
| FED funds rate | Monthly | 2018+ | FRED |
| USD/VND | Daily | 2018+ | yfinance (VND=X) |
| News sentiment | Daily | 2020+ | CafeF + PhoBERT (W2) |
pip install -r requirements-dev.txt
pre-commit install
# Lint + format
ruff check src/ tests/
black src/ tests/
# Tests
pytest -v
pytest -m no_leakage # critical anti-leakage gates
pytest --cov=src --cov-report=html
Xem reports/paper/ieee_en/bib.bib.
Nếu sử dụng code này, vui lòng cite (xem CITATION.cff):
@misc{wangnhat2026goldforecast,
author = {WangNhat},
title = {Vietnamese Gold Price Forecasting with Foundation Models and Conformal Prediction},
year = {2026},
url = {https://github.com/twangnhat-05/NGHIENCUUKHOAHOC}
}
Python
83.7%
TeX
8.0%
CSS
5.8%
Đề tài: Ứng dụng trí tuệ nhân tạo trong dự đoán giá vàng và phân tích biến động thị trường Việt Nam Title (EN): Applied Artificial Intelligence to Gold Price Forecasting and Market Volatility in Vietnam Tổ chức: Đại học Tôn Đức Thắng (TDTU) — Nghiên cứu Khoa học Sinh viên Năm học: 2025-2026 License: MIT
Xây dựng hệ thống dự báo giá vàng SJC (Việt Nam) bằng AI/ML, tích hợp dữ liệu đa nguồn (giá vàng quốc tế, USD Index, dầu, lãi suất, sentiment tin tức), so sánh hệ thống các mô hình từ baseline cổ điển đến SOTA 2024-2026 (foundation models zero-shot), và cung cấp dashboard trực quan cho nhà đầu tư.
Target proposal: MAPE 4-5% trên test out-of-sample.
Xem ARCHITECTURE.md để biết chi tiết.
NCKH/
├── data/
│ ├── raw/ # CSV gốc, immutable
│ ├── interim/ # merged + ffill
│ ├── processed/ # features V2 + splits
│ └── external/ # news, sentiment cache
├── src/
│ ├── data/ # fetch, refresh, schema
│ ├── features/ # technical, macro, sentiment, calendar
│ ├── models/ # classical, ml, dl, foundation, ensemble
│ ├── training/ # cv (walk-forward), tune (optuna), trainer
│ ├── evaluation/ # metrics, stat_tests (DM, Friedman), conformal
│ ├── xai/ # SHAP, attention, TimeSHAP
│ ├── utils/ # logging, seeds, io
│ └── legacy/ # FROZEN — code gốc trước refactor
├── notebooks/ # 00..99 — EDA → models → ensemble → reproduce
├── tests/ # pytest, no-leakage gates
├── configs/ # YAML configs (no hardcoded constants)
├── app/ # streamlit + fastapi
├── reports/ # figures, leaderboard, paper (TDTU + IEEE)
└── scripts/ # bash helpers
git clone https://github.com/twangnhat-05/NGHIENCUUKHOAHOC.git
cd NGHIENCUUKHOAHOC
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -r requirements.txt
python -m src.data.refresh --start-year 2018 --end-date today
python -m src.features.build
python -m src.models.classical # AutoARIMA, Prophet, ETS
python -m src.models.ml --model xgboost --tune
streamlit run app/streamlit_app.py
Mở notebooks/99_reproduce_all.ipynb.
| Tier | Models |
|---|---|
| 0 — Trivial | Naive, Seasonal Naive, Drift, SMA |
| 1 — Classical | AutoARIMA, AutoETS, Theta, Prophet, NeuralProphet |
| 2 — ML | Ridge, SVR, RF, XGBoost, LightGBM, CatBoost, Stacking |
| 3 — Deep Learning | LSTM, GRU, TCN, N-HiTS, PatchTST, iTransformer, TFT, TimeMixer, TSMixer |
| 4 — Foundation (zero-shot) | Chronos-Bolt, TTM (IBM), TimesFM, Lag-Llama, Moirai-MoE |
| 5 — Ensemble | Inverse-RMSE weighted, Stacking, Conformal calibration |
| Nguồn | Frequency | Range | Source |
|---|---|---|---|
| Giá vàng SJC mua/bán | Daily | 2018+ | webgia.com (scrape) |
| Gold Futures (GC=F) | Daily | 2018+ | yfinance |
| USD Index (DXY) | Daily | 2018+ | yfinance + FRED |
| VN-Index | Daily | 2018+ | vnstock (VCI) |
| Oil WTI (CL=F) | Daily | 2018+ | yfinance |
| FED funds rate | Monthly | 2018+ | FRED |
| USD/VND | Daily | 2018+ | yfinance (VND=X) |
| News sentiment | Daily | 2020+ | CafeF + PhoBERT (W2) |
pip install -r requirements-dev.txt
pre-commit install
# Lint + format
ruff check src/ tests/
black src/ tests/
# Tests
pytest -v
pytest -m no_leakage # critical anti-leakage gates
pytest --cov=src --cov-report=html
Xem reports/paper/ieee_en/bib.bib.
Nếu sử dụng code này, vui lòng cite (xem CITATION.cff):
@misc{wangnhat2026goldforecast,
author = {WangNhat},
title = {Vietnamese Gold Price Forecasting with Foundation Models and Conformal Prediction},
year = {2026},
url = {https://github.com/twangnhat-05/NGHIENCUUKHOAHOC}
}
Python
83.7%
TeX
8.0%
CSS
5.8%