Skip to content
/ AI-ASIL-Analyser Public template

A cutting-edge web application that combines traditional ISO 26262 ASIL determination methods with AI-powered validation to ensure accurate automotive safety assessments.

License

Notifications You must be signed in to change notification settings

suduli/AI-ASIL-Analyser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

45 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI-ASIL-Analyser

Version License ISO 26262 AI Powered

A cutting-edge web application that combines traditional ISO 26262 ASIL determination methods with AI-powered validation to ensure accurate automotive safety assessments.

πŸš€ Features

Core Functionality

  • Dual Validation System: Compare database results with AI analysis from OpenAI GPT-4 or Anthropic Claude
  • Intelligent Discrepancy Detection: Automatically identifies and highlights differences between database and AI assessments
  • Real-time Reasoning: Get detailed explanations for Severity, Exposure, and Controllability ratings
  • Auto-Learning: Optionally update the database with AI-validated results
  • ISO 26262 Compliant: Follows official automotive safety standards

User Experience

  • Interactive Parameter Adjustment: Modify S, E, C parameters with instant ASIL recalculation
  • Visual Matrix Display: Interactive ASIL determination matrix with color coding
  • Component Database: Pre-loaded with common automotive components
  • Futuristic UI: Glassmorphism design with neon accents and animations
  • Responsive Design: Works seamlessly on desktop, tablet, and mobile
  • Dark/Light Mode: Automatic theme detection with manual override
  • Accessibility First: WCAG compliant with keyboard navigation support

πŸ› οΈ Prerequisites

  • Modern web browser (Chrome, Firefox, Safari, Edge)
  • AI API key (OpenAI or Anthropic) for enhanced features

⚑ Quick Start

1. Clone the Repository

git clone https://github.com/suduli/AI-ASIL-Analyser.git
cd AI-ASIL-Analyser
git checkout Version_V1

2. Open the Application

# Simply open index.html in your browser
open index.html

# Or serve with a local server (recommended)
python -m http.server 8000
# Visit http://localhost:8000

3. Configure AI Integration

  • Click the βš™οΈ settings button
  • Enter your OpenAI or Anthropic API key
  • Select your preferred AI provider
  • Save settings

πŸ“– Usage Guide

Quick Database Lookup

  1. Select a component from the dropdown (e.g., "brake system", "body control module")
  2. View instant results from the pre-built database

Custom Component Analysis

  1. Enter any automotive component name
  2. Click "Analyze with AI Validation"
  3. Compare database vs AI results

Parameter Adjustment

  1. Modify Severity (S0-S3), Exposure (E1-E4), or Controllability (C1-C3)
  2. See real-time ASIL level updates
  3. View detailed ISO 26262 matrix position

πŸ”„ How It Works

User Input β†’ Database Lookup β†’ AI Analysis β†’ Comparison β†’ Results Display
     ↓              ↓             ↓
  Instant      Real-time     Discrepancy
  Results      Reasoning     Detection

When Results Differ

  • Review detailed reasoning from both sources
  • Analyze the differences highlighted in the banner
  • Choose to adopt AI values if they're more accurate
  • Optionally save improved results to database

πŸ“ Project Structure

AI-ASIL-Analyser/
β”œβ”€β”€ index.html           # Main application HTML
β”œβ”€β”€ style.css           # Enhanced futuristic styling
β”œβ”€β”€ app.js              # Core application logic
β”œβ”€β”€ components_db.js    # Automotive components database
β”œβ”€β”€ README.md           # This documentation
└── assets/             # Additional resources
    β”œβ”€β”€ icons/
    └── images/

πŸ› οΈ Technical Stack

  • Frontend: Vanilla HTML5, CSS3, JavaScript (ES6+)
  • Styling: Custom CSS with CSS Variables, Glassmorphism
  • AI Integration: OpenAI GPT-4, Anthropic Claude APIs
  • Standards: ISO 26262-3 ASIL Determination

🎨 Design System

Color Palette

  • Primary: Neon Cyan (#00f5ff) - Main interactive elements
  • Secondary: Neon Purple (#bd00ff) - AI-related features
  • Success: Neon Green (#00ff88) - Database results
  • Warning: Neon Orange (#ff6b35) - Discrepancies
  • Error: Neon Red (#ff2965) - Critical issues

Typography

  • Headings: FKGroteskNeue (futuristic, clean)
  • Body: Inter/Geist (readable, modern)
  • Code: Berkeley Mono (technical elements)

Visual Effects

  • Glassmorphism: Translucent panels with backdrop blur
  • Neon Glows: CSS box-shadow animations
  • Gradient Borders: Dynamic color transitions
  • Particle Effects: Animated background grid

πŸ€– AI Integration

OpenAI GPT-4

  • Model: gpt-4-turbo-preview
  • Strengths: Comprehensive reasoning, automotive domain knowledge
  • API Key Format: sk-...

Anthropic Claude

  • Model: claude-3-opus-20240229
  • Strengths: Detailed safety analysis, ISO standard compliance
  • API Key Format: sk-ant-...

openrouter.com

  • Model: openai/gpt-oss-20b:free
  • Strengths: Detailed safety analysis, ISO standard compliance
  • API Key Format: sk-or-v1-...

AI Analysis Flow

  1. Component Analysis: AI receives component description and safety context
  2. Structured Response: Returns S, E, C values with detailed reasoning
  3. Validation & Comparison: Compare with database and highlight discrepancies

πŸ“Š Component Database

Included Categories

  • Braking Systems: brake system, ABS, brake pedal, brake fluid reservoir
  • Steering Systems: power steering, steering wheel, steering column
  • Powertrain: engine control unit, transmission, throttle control
  • Body Electronics: body control module, lighting systems, HVAC
  • Safety Systems: airbags, seatbelt systems, emergency braking
  • Chassis Systems: suspension control, electronic stability control
  • Communication: CAN bus, gateway modules, diagnostic systems
  • ADAS Components: cameras, radar, lidar, sensor fusion
  • Electric Vehicle: battery management, charging systems, inverters
  • Autonomous Driving: path planning, decision making, fail-safe systems

Database Structure

const componentsDB = {
  "component_name": {
    S: 3,        // Severity (0-3)
    E: 4,        // Exposure (1-4)
    C: 3,        // Controllability (1-3)
    asil: "D",   // Determined ASIL level
    reasons: {
      S: "Detailed severity reasoning",
      E: "Detailed exposure reasoning",
      C: "Detailed controllability reasoning"
    }
  }
}

βš™οΈ Configuration

AI Configuration

const aiConfig = {
  provider: 'openai' | 'anthropic',
  apiKey: 'your-api-key',
  model: 'gpt-4' | 'claude-3-opus'
};

Auto-Learning Feature

const autoLearn = {
  enabled: true,
  requireConfirmation: true,
  backupOriginal: true
};

πŸ§ͺ Testing

Test Coverage

  • Database Components: Verify all pre-loaded components return expected ASIL levels
  • AI Integration: Test API connectivity and response parsing
  • Parameter Modification: Ensure real-time ASIL recalculation
  • Discrepancy Detection: Validate comparison logic accuracy
  • Responsive Design: Test across different screen sizes
  • Accessibility: Verify keyboard navigation and screen reader support

πŸ”’ Quality Assurance

  • ISO 26262 Compliance: All calculations follow official standard
  • AI Response Validation: Structured prompts ensure consistent output
  • Error Handling: Graceful degradation when AI services unavailable
  • Performance: Optimized for fast loading and smooth animations

🀝 Contributing

We welcome contributions! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and test thoroughly
  4. Commit with descriptive messages: git commit -m 'Add amazing feature'
  5. Push to your branch: git push origin feature/amazing-feature
  6. Open a Pull Request

Contribution Areas

  • Component Database: Add more automotive components with accurate ASIL data
  • AI Prompts: Improve prompt engineering for better AI responses
  • UI/UX: Enhance the user interface and experience
  • Documentation: Improve guides, examples, and API docs
  • Testing: Add automated tests and validation scripts
  • Performance: Optimize loading times and animations

Adding New Components

When adding new components, ensure:

{
  S: 0-3,     // Based on ISO 26262-3 Table 1
  E: 1-4,     // Based on ISO 26262-3 Table 2
  C: 1-3,     // Based on ISO 26262-3 Table 3
  asil: "QM"|"A"|"B"|"C"|"D", // From ISO 26262-3 Table 4
  reasons: {
    S: "Clear severity justification with ISO reference",
    E: "Exposure probability explanation with scenarios",
    C: "Controllability assessment with driver capability analysis"
  }
}

πŸ“„ License

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

πŸ™ Acknowledgments

  • ISO 26262: International standard for automotive functional safety
  • OpenAI: GPT-4 API for intelligent component analysis
  • Anthropic: Claude API for safety-focused reasoning
  • Automotive Industry: Domain experts who contributed to component database
  • Open Source Community: Libraries and tools that made this possible

πŸ“ž Support & Contact

πŸ—ΊοΈ Roadmap

Upcoming Features

  • Enhanced AI prompt templates
  • Export functionality (PDF, JSON, CSV)
  • Component search and filtering
  • History tracking and comparison
  • Multi-language support
  • Advanced analytics dashboard
  • Batch component analysis
  • Integration with CAD tools

Future Vision

  • Machine learning model training
  • Real-time collaborative editing
  • Enterprise SSO integration
  • Advanced reporting and compliance

Built with ❀️ for the automotive safety community Ensuring safer vehicles through intelligent ASIL determination

About

A cutting-edge web application that combines traditional ISO 26262 ASIL determination methods with AI-powered validation to ensure accurate automotive safety assessments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •