This project aims to detect anomalies in daily stock prices using various anomaly detection techniques and machine learning algorithms. The system retrieves historical stock price data, preprocesses it, applies anomaly detection methods, and provides insights into detected anomalies.
- Data Retrieval: Retrieve historical stock price data using Alpha Vantage API.
- Preprocessing: Clean the data and scale features using standardization.
- Anomaly Detection:
- SVM (One-Class Support Vector Machine)
- Isolation Forest
- Local Outlier Factor
- Autoencoder
- LSTM (Long Short-Term Memory)
- KNN (K-Nearest Neighbors)
- Visualization: Visualize anomaly scores and reconstruction errors.
- Evaluation: Evaluate the performance of each anomaly detection method.
- Output: Generate CSV files containing daily stock prices and detected anomalies.
- Python 3.x
- Alpha Vantage API
- Pandas
- Matplotlib
- Scikit-learn
- Keras (with TensorFlow backend)
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request on GitHub.