Skip to content

dawit2123/Market-Anomaly-Detection

Repository files navigation

📊 Market Anomaliy Detector and AI-Powered Investment Strategy Analyzer

🌟 Project Vision

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


🛠 Technologies Used


🚀 How It Works

The project workflow consists of several key steps designed to deliver a comprehensive and actionable investment strategy:

  1. 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.
  2. 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.
  3. 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.
  4. Interactive AI Chat
    Users can ask questions about the report in an integrated chat. The Gemini model ensures accurate and report-specific answers.

  5. Downloadable Strategy Results
    The system provides a downloadable file containing the calculated strategy results for offline reference.

Demo

Demo

Analaysis and strategy

Strategy Insights

Bot interaction for explanation

User Interaction Overview


🏗 Getting Started

Want to try the project locally? Here’s how you can set it up:

  1. Clone the repository:
    git clone https://github.com/dawit2123/Market-Anomaly-Detection.git

🏗 Getting Started

Ready to dive in? Follow these steps to set up and run the project on your local machine:

  1. Install the necessary libraries:
    pip install tensorflow keras numpy matplotlib
  2. Clone or download the project as a zip file.
  3. Open the Jupyter notebook or script.
  4. To train a model, open the Market_Anomaly_Detection.ipynb file, upload the FinancialMarketData.csv file, and run each cell sequentially.
  5. 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.
  6. Generate the API key from Gemini and NGROK and insert them in the .env and secret key.
  7. Run the cells in sequence to preprocess data, build the model, and execute training.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published