GithubHelp home page GithubHelp logo

expertsystem's Introduction

Computer Diagnostic Expert System

Introduction

This project implements a Computer Diagnostic Expert System, which assists users in diagnosing computer hardware issues based on observed symptoms. The system allows users to input symptoms and then generates a questionnaire for further precision in identifying the faulty hardware component. Once the questionnaire is completed, the system displays the faulty component, along with other potentially affected components.

Features

User Session

  • Provides a user-friendly interface for accessing the application.

Allows users to:

  • Input symptoms through an easy-to-use form.
  • Manipulate entered facts (symptoms) if necessary.
  • Deduces hardware issues based on entered symptoms.

Expert Session

  • Offers an interface for experts to access the application.
  • Recognizes experts via login credentials to allow manipulation of the rule base.

Allows experts to:

  • Authenticate
  • Add/update/delete a symptom
  • Add/update/delete an issue (faulty component)

Security measures

  • Authentication & Authorization using JWT (json web tokens)
  • Protected routes
  • Proteced apis using middlewares

Implementation Details

Knowledge Representation

The knowledge is represented using a rule-based system. Rules define relationships between symptoms and hardware issues.

alt text

Reasoning Type and Strategy

The system employs forward chaining reasoning to deduce hardware issues based on input symptoms. This strategy allows the system to determine the faulty component by matching input symptoms with predefined rules.

Technology Stack

  • Frontend: React with TypeScript and Tailwind CSS for the user interface.
  • Backend: Node.js with Express for server-side logic.
  • Database: SQLite for storing user inputs and expert rules.

Usage

  1. Clone the repository:
git clone https://github.com/y4riss/expertsystem.git
cd expertsystem
  1. Install dependencies:
cd frontend && npm install
cd ../backend && npm install
  1. Start the backend server:
cd backend
npm run dev
  1. Start the frontend application
cd ../frontend
npm start
  1. Access the application

| http://localhost:5173/

Admin page

Default creds

    username: admin
    password: admin

Login portal

| http://localhost:5173/login

Dashboard

| http://localhost:5173/dashboard

Api routes

  • GET REQUEST

| http://localhost:3000/api/rules/issues

| http://localhost:3000/api/rules/symptoms

  • POST REQUEST

| http://localhost:3000/api/auth/login

| http://localhost:3000/api/auth/logout

| http://localhost:3000/api/rules/issue

| http://localhost:3000/api/rules/symptom

| http://localhost:3000/api/diagnosis

  • PUT / DELETE REQUEST

| http://localhost:3000/api/rules/issue/:id

| http://localhost:3000/api/rules/symptom/:id

expertsystem's People

Contributors

y4riss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.