Welcome to the AI-Powered Investment Strategy Analyzer! This innovative tool leverages advanced anomaly detection to help investors make informed, data-driven decisions. By analyzing financial data and generating detailed, actionable insights, the system empowers users to minimize losses and maximize returns. The project combines cutting-edge machine learning with user-friendly interaction, setting a new benchmark for investment strategy tools.
👉 Check out the live application here: Market Anomaly Detection
The project workflow consists of several key steps designed to deliver a comprehensive and actionable investment strategy:
-
Data Upload & Preprocessing
Users upload a.csv
file containing financial data. The system processes the dataset by:- Validating and cleaning the data.
- Normalizing features for better anomaly detection.
- Handling missing or inconsistent values.
-
Anomaly Detection & Analysis
The model identifies irregularities in financial performance using anomaly detection techniques. Key insights include:- Best Performance Period: The timeframe with the highest returns.
- Worst Performance Period: The timeframe with the lowest returns.
- Total Anomalies Detected: The number of irregularities found in the data.
-
Strategy Report Generation
A detailed report is generated, including metrics such as:- Final investment value.
- Strategy effectiveness score.
- Recommended next steps for investors.
Users can download this report in a user-friendly format for further analysis.
-
Interactive AI Chat
Users can ask questions about the report in an integrated chat. The Gemini model ensures accurate and report-specific answers. -
Downloadable Strategy Results
The system provides a downloadable file containing the calculated strategy results for offline reference.
Want to try the project locally? Here’s how you can set it up:
- Clone the repository:
git clone https://github.com/dawit2123/Market-Anomaly-Detection.git
Ready to dive in? Follow these steps to set up and run the project on your local machine:
- Install the necessary libraries:
pip install tensorflow keras numpy matplotlib
- Clone or download the project as a zip file.
- Open the Jupyter notebook or script.
- To train a model, open the Market_Anomaly_Detection.ipynb file, upload the FinancialMarketData.csv file, and run each cell sequentially.
- To use and run the model, open the Propose_investment_startegy.ipynb file and upload the anomaly_detection_model and the current_finance_data.csv.
- Generate the API key from Gemini and NGROK and insert them in the .env and secret key.
- Run the cells in sequence to preprocess data, build the model, and execute training.