Structural Risk Index (SRI) - Advanced Property Safety Assessment System
Transform municipal code violation data into actionable risk intelligence with our proprietary Structural Risk Index (SRI) - a weighted scoring system that identifies high-risk properties across multiple jurisdictions for targeted intervention, investment analysis, and insurance risk assessment.
See the SRI system in action with live filtering and real-time analysis
Experience the SRI system with real multi-city data
Interactive SRI Dashboard showing real-time property risk analysis
The SRI assigns risk scores (1-26+ points) to properties based on code violation patterns, enabling:
- Investors: Identify distressed property opportunities
- Insurance: Adjust premiums based on neighborhood risk
- Residents: Make informed housing decisions
- Cities: Prioritize safety inspections
Weighted Risk Scoring:
- Unsafe Structure: +5 points (critical safety)
- 40/50-Year Inspection: +3 points (aging building risk)
- Work Without Permit: +2 points (illegal modifications)
- Nuisance/Maintenance: +1 point (deterioration)
- Multiple Violations: +1 each (pattern recognition)
Core Algorithm:
SRI Score = Base Risk Score + Multiple Violation Bonus
Where:
β’ Base Risk Score = Ξ£(Violation Weight Γ Violation Count)
β’ Multiple Violation Bonus = max(0, Total Violations - 1) Γ 1
Risk Weight Categories:
| Violation Type | Weight | Risk Rationale |
|---|---|---|
| Unsafe Structure | +5 points | Critical structural integrity issues |
| 40/50-Year Inspection | +3 points | Aging building mandatory safety reviews |
| Work Without Permit | +2 points | Unauthorized modifications, code compliance |
| Nuisance/Maintenance | +1 point | Property deterioration indicators |
| Multiple Violations | +1 each | Pattern recognition for recurring issues |
Risk Classification:
- π΄ High Risk: SRI β₯ 8 points (Immediate attention required)
- π‘ Medium Risk: SRI 4-7 points (Monitor and plan intervention)
- π’ Low Risk: SRI < 4 points (Standard maintenance cycle)
Validation & Accuracy:
- Algorithm trained on 3 South Florida municipalities
- Covers building safety, structural integrity, and compliance patterns
- Cross-validated against municipal inspection priorities
Current Analysis: 1,089 Properties Across 3 Cities
- Pompano Beach: 23.8% high-risk properties (highest concentration)
- Margate: 5.0% high-risk properties
- Wilton Manor: 5.0% high-risk properties
- Risk Range: 1-26 points (Average: 3.1)
Professional SRI analysis dashboard with key findings
Launch: streamlit run streamlit_app/app.py
Key Features:
- Dynamic Filtering: City, risk scores, violation types
- Live Visualizations: Risk distribution, city comparisons
- Property Search: Find specific addresses or risk levels
- Export Functionality: Download filtered results and reports
- Professional Interface: Ready for stakeholder presentations
- Risk Metrics: Total properties, high-risk percentages, average scores
- Interactive Charts: Histogram, bar charts, pie charts with real-time updates
- Property Table: Sortable, color-coded results with violation breakdowns
- Export Tools: CSV downloads with custom filtering applied
Real-time filtering and interactive visualizations
coderisk-sf/
β
βββ streamlit_app/ # π― INTERACTIVE SRI DASHBOARD
β βββ app.py # Main Streamlit application
β βββ README.md # Dashboard documentation
β
βββ src/ # π§ SRI ANALYSIS ENGINE
β βββ 3_financial_analysis.ipynb # Complete SRI implementation
β
βββ clean_data/ # π PROCESSED DATASETS & RESULTS
β βββ structural_risk_index_results.csv # Complete SRI scores
β βββ sri_professional_dashboard.png # Publication-ready charts
β βββ margate_clean.csv # City violation data
β βββ pompano_beach_clean.csv
β βββ wilton_manor_clean.csv
β
βββ input_folder/ # π SOURCE DATA (Municipal PDFs)
βββ results_folder/ # π DATA PIPELINE OUTPUTS
βββ cleaning/ # π§Ή CITY-SPECIFIC DATA PROCESSING
βββ requirements.txt # π¦ DEPENDENCIES
βββ README.md
# Clone and setup
git clone https://github.com/edilma/coderisk-sf
cd coderisk-sf
# Create virtual environment
python -m venv .venv
.venv\Scripts\activate # Windows
source .venv/bin/activate # macOS/Linux
# Install dependencies
pip install streamlit plotly pandas numpy pathlib# Start SRI Dashboard
streamlit run streamlit_app/app.py
# Opens automatically at: http://localhost:8501# Open complete SRI analysis notebook
jupyter notebook src/3_financial_analysis.ipynb
# Contains: Data loading, SRI calculation, professional visualizations- Interactive dashboard with 1,089 real property risk scores
- Professional visualizations ready for presentations
- Exportable results in CSV format
- Complete methodology in Jupyter notebook
# Example SRI Calculation
property_risk_score = (
unsafe_structure_violations * 5 + # Critical safety
inspection_40_50_violations * 3 + # Aging infrastructure
work_without_permit_violations * 2 + # Illegal modifications
nuisance_maintenance_violations * 1 + # Minor deterioration
multiple_violation_bonus # Pattern recognition
)π° Investment Intelligence:
- Distressed Properties: Find renovation opportunities with quantified risk
- Market Analysis: Understand neighborhood safety trends
- Due Diligence: Risk-adjust property valuations
οΏ½οΈ Insurance Applications:
- Premium Adjustment: Risk-based pricing using neighborhood data
- Underwriting: Enhanced property risk assessment
- Claims Prediction: Identify high-risk areas proactively
ποΈ Municipal Use Cases:
- Inspection Prioritization: Focus limited resources on highest-risk properties
- Budget Planning: Allocate enforcement resources based on risk density
- Public Safety: Identify dangerous structures before incidents occur
| City | Properties | High Risk (8+) | Avg SRI | Max SRI | Risk Density |
|---|---|---|---|---|---|
| Pompano Beach | 130 | 31 (23.8%) | 5.00 | 26 | 2.91 |
| Margate | 602 | 30 (5.0%) | 3.15 | 15 | 1.11 |
| Wilton Manor | 357 | 18 (5.0%) | 2.33 | 25 | 1.59 |
- Pompano Beach shows 5x higher risk concentration than other cities
- Risk density varies dramatically between jurisdictions (2.91 vs 1.11)
- Building Safety Inspections drive 27% of all risk factors
- 1,089 total properties analyzed with complete risk profiles
- Building Safety Inspection: 27.0% of risk factors
- Work Without Permit: 10.7% of risk factors
- Nuisance/Maintenance: 9.6% of risk factors
- Unsafe Structure: 7.1% of risk factors
- Other Categories: 45.5% (opportunity for further analysis)
- Weighted Scoring: Evidence-based risk factor weights
- Multi-Violation Detection: Bonus points for repeat offenders
- Standardized Scale: Consistent 1-26+ point scoring across cities
- Real-Time Calculation: Instant updates with new violation data
- Streamlit Framework: Professional, responsive web interface
- Plotly Visualizations: Interactive charts with hover details
- Real-Time Filtering: Instant updates across all visualizations
- Export Capabilities: CSV downloads with applied filters
- Multi-Source Integration: Handles different city data formats
- Quality Assurance: Automatic data validation and cleansing
- Scalable Architecture: Easy addition of new cities
- Audit Trail: Complete data lineage preservation
pip install streamlit plotly pandas numpy pathlibpip install jupyter landingai-ade python-dotenv- Python 3.8+
- 4GB RAM (for processing 1,000+ properties)
- Web browser (for Streamlit dashboard)
- Internet connection (for initial package installation)
π― LandingAI Financial Hack NYC 2025
- Structural Risk Index Algorithm: Weighted scoring system (1-26+ points)
- Interactive Dashboard: Real-time filtering with professional visualizations
- Multi-City Analysis: 1,089 properties across 3 jurisdictions analyzed
- Export Functionality: CSV downloads with filtered results
- Professional Visualizations: Publication-ready charts and dashboards
- Streamlit Web App: Launch with single command
- Live Filtering: Real-time updates perfect for screen recording
- Business Value: Clear ROI demonstration for multiple stakeholders
- Professional Interface: Presentation-quality design
- Proprietary SRI Algorithm: Novel approach to property risk quantification
- Cross-Jurisdictional Analysis: Unified risk assessment across city boundaries
- Actionable Intelligence: Direct connection between data and business decisions
- Scalable Architecture: Ready for expansion to additional cities
Status: Production-ready SRI system with interactive dashboard