Fuzzy-Expert-System-Stock-BSE

๐Ÿ“ˆ Fuzzy Expert System for Stock Portfolio Selection ๐Ÿค–


๐ŸŒLive Demo

https://fuzzy-expert-system-stock-bse-jrvxwcszcx8mkawrk4rs5l.streamlit.app/


๐ŸŽฏ Key Features


โš™๏ธ How It Works

๐ŸŒ Global Applicability ๐ŸŒŽ

As the outcome of this model found to be satisfactory โœ…, this can be implemented for any stock exchanges around the world ๐ŸŒ but the selection of critical factors may vary over different stock exchanges. This fuzzy expert system model can be used to rank any set of alternatives based on the factors influencing them.


๐Ÿ”ฎ Future Enhancements & Research Directions


๐Ÿ“Š Dynamic Stock Portfolio Selection & Optimization System

๐Ÿš€ Powered by Dempster-Shafer Fuzzy Expert System (DS-FES) & Ant Colony Optimization (ACO)


๐Ÿ“ Project Overview

This repository contains an industry-grade Decision Support System (DSS) for automated stock ranking and portfolio optimization within the Bombay Stock Exchange (BSE). By replacing traditional, subjective expert consensus methods (like the Fuzzy Delphi Method) with data-driven Grey Relational Analysis (GRA), this system processes a decade-long financial dataset dynamically to identify high-return, low-risk investment configurations under real-world market uncertainties.


๐Ÿ› ๏ธ System Architecture & Framework

The application architecture is divided into four main soft computing pipelines:

  1. Feature Selection (GRA Framework): Evaluates multi-dimensional financial parameters (such as Diluted EPS, Profit Margin, Price-to-Book Value, and Debt-to-Equity Ratio) to filter out information redundancies using a correlation mask.
  2. Fuzzification Module: Maps crisp normalized corporate indicators to linguistic categories (Low, Standard, High) utilizing statistical percentile bounds through custom Trapezoidal Membership Functions.
  3. Automated Synthesis Engine (DS Theory): Automatically generates a comprehensive base of 81 rules using Dempster-Shafer Rule of Combination, eliminating manual rule-writing bottlenecks.
  4. Portfolio Optimizer (Continuous ACO Solver): Maximizes the Modified Sharpe Ratio against downside semi-variance variations using an interactive Ant Colony Heuristic to output perfect capital weight proportions.

๐Ÿ“‘ Core Application Features & Tab Structures

โšก Tab 1: Real-Time Simulation Panel

๐Ÿ“ˆ Tab 2: Predictive Success Analytics


๐Ÿš€ How to Run the Workspace

๐Ÿ”ง 1. Prerequisites Setup

Ensure you have Python installed on your local workstation environment, then run the terminal installation command: ```bash pip install -r requirements.txt

๐Ÿš€ Usage

To use this system, provide stock data corresponding to the factors listed above. The model will process the inputs and output a recommended portfolio allocation.


๐Ÿ“„ License

This project is licensed under the MIT License. See the LICENSE file for details.