top of page

Gunfire on School Grounds Dashboard

Transforming Critical Safety Data into Actionable Intelligence


This Streamlit dashboard provides comprehensive, real-time analysis of gun violence incidents on school grounds across the United States. By automatically fetching and processing data from Everytown Research, the dashboard reveals critical patterns including that 84.1% of incidents occur during school months and 82.3% happen on weekdays. With 1,485+ incidents analyzed across all 50 states over 13 years, this tool transforms complex data into actionable insights for policymakers, educators, researchers, and communities working to create safer learning environments.


Key Impact Metrics

  • 1,485 verified incidents across 1,268 schools analyzed in real-time

  • 100% data quality score through advanced ETL pipeline

  • 50 states covered with 700 cities affected

  • 20+ page executive reports generated automatically

  • Sub-second response times through intelligent caching


Advanced Analytics Features

  • Real-Time Data Pipeline - Automatically fetches latest CSV from Everytown Research, achieving 100% data quality through multi-stage validation, coordinate verification, and duplicate detection

  • Temporal Intelligence - Reveals 84.1% school month concentration, 18.9% yearly increase trend, peak risk months (October, September, January), and 1.86x higher weekday incident rates

  • Geographic Analysis - Interactive choropleth mapping, Gini coefficient calculation (0.486) showing geographic inequality, regional concentration metrics with top 5 states accounting for 31.7% of incidents

  • Severity Assessment - Tracks that while 35.7% have no casualties, the 3.3% mass casualty events account for 24.6% of all casualties, with intent-outcome correlation heatmaps

  • Predictive Insights - Identifies high-risk patterns: "Attack on others" intent shows 28.1% fatality rate, enabling targeted prevention strategies

  • Executive Report Generator - Creates comprehensive HTML reports with statistical summaries, trend analysis, geographic insights, and evidence-based recommendations

  • Natural Language Processing - Extracts themes from 1,400+ incident narratives using NLTK and WordCloud visualization


Technologies

  • Python & Pandas – Vectorized operations processing 20+ engineered features with sub-second performance

  • Streamlit – Reactive framework with session state management and strategic @st.cache_data optimization

  • Plotly – 15+ interactive visualization types including choropleth maps, heatmaps, and time series

  • Statistical Analysis – NumPy/SciPy for Gini coefficient, trend analysis, and volatility measures

  • NLP Pipeline – NLTK and WordCloud for narrative pattern extraction and theme identification


Use Cases & Impact

  • Policymakers - Evidence-based resource allocation with identified high-risk periods and 31.7% incident concentration in top 5 states

  • Educational Leaders - Data-driven safety protocols based on temporal patterns and severity assessments

  • Researchers - Access to 13 years of verified data with 100% quality score for peer-reviewed studies

  • Law Enforcement - Geographic concentration analysis and temporal patterns for strategic deployment

  • Communities - Local incident tracking among 1,254 affected schools for targeted interventions


Technical Excellence

  1. Intelligent Data Collection - Real-time API integration with automatic updates as new incidents are verified

  2. Advanced ETL Pipeline - Handles missing coordinates, creates temporal features, severity classifications, and achieves 100% completeness score

  3. Performance Optimization - Strategic caching, vectorized computations, and responsive design for mobile access

  4. Professional Reporting - Automated generation of publication-ready executive summaries with statistical rigor


Key Discoveries Through analysis of 1,542 total casualties (479 killed, 1,063 wounded):

  • School Calendar Correlation: 84.1% during school months vs 15.9% summer

  • Geographic Inequality: Top 20% of states contain 72% of incidents

  • Severity Paradox: 3.3% mass casualty events drive 24.6% of casualties

  • Peak Risk Identification: October, September, January require heightened vigilance


Recognition & Impact This dashboard transforms raw incident data into clear, actionable intelligence that enables evidence-based decision-making for school safety. By making complex data accessible through intuitive visualizations and automated insights, it empowers stakeholders at all levels to work toward the shared goal of eliminating gun violence in educational settings.


Project Gallery

© 2025 by Hassan Nemrawi.
Powered and secured by Wix

bottom of page