Bridging the gap between causality science and active transportation research
π Note: For the Census Tract Network Analysis Tool, please check the Census_Tract_Network branch.
CISD is a cutting-edge framework that revolutionizes how we understand cause and effect in active transportation systems. By leveraging both traditional causal inference and advanced AI techniques, CISD enables researchers and policymakers to:
- Quantify the true impact of infrastructure interventions
- Account for complex spatial dependencies and longitudinal trends
- Process multimodal data sources including imagery, GPS traces, and textual data
- Generate robust evidence for evidence-based policy decisions
CISD treats policy analysis as a principled two-stage process:
- Define Scenario Vector β Bundle mediating and moderating features into explicit scenarios
- Apply Treatment Indicator β Estimate counterfactual outcomes when individuals experience different treatments while scenario elements remain fixed
|
|
|
|
# Development mode (editable)
pip install -e .
# Direct installation from GitHub
pip install git+https://github.com/pozapas/CausalAT.git# Spatial analysis features
pip install -e ".[spatial]"
# Visualization capabilities
pip install -e ".[viz]"
# Full functionality (all dependencies)
pip install -e ".[all]"Expand for detailed installation instructions
-
Clone the repository
git clone https://github.com/pozapas/CausalAT.git cd CausalAT -
Create a virtual environment (recommended)
python -m venv venv venv\Scripts\activate # Windows source venv/bin/activate # Linux/MacOS
-
Install with desired dependencies
pip install -e ".[all]" -
Verify installation
python -c "import cisd; print(cisd.__version__)"
Core dependencies - Essential libraries for basic functionality
- Data Handling: NumPy, Pandas, SciPy
- Machine Learning: scikit-learn
- Deep Learning: TensorFlow/PyTorch
- Network Analysis: NetworkX
Spatial dependencies - For geospatial analysis
- Spatial Data: GeoPandas, Shapely
- Spatial Statistics: libpysal, ESDA, spreg
- Econometric Models: statsmodels
Visualization dependencies - For data visualization
- Basic Plotting: Matplotlib, Seaborn
- Geospatial Maps: Contextily, Folium
- Interactive Charts: Plotly (for interactive dashboards)
Network analysis dependencies - For transportation network modeling
- Graph Operations: NetworkX
- OSM Integration: OSMnx (OpenStreetMap data)
- Advanced Algorithms: igraph (optional, performance-optimized)
Explore our comprehensive tutorial notebooks to get started with CISD.
| Tutorial | Description | Topics |
|---|---|---|
| π CISD Framework | Introduction to the CISD framework and concepts | Core concepts, estimands, scenario design |
| π€ AI-Augmented Inference | Using AI for causal inference in transportation research | Neural networks, representation learning, multimodal data |
| πΊοΈ Spatial-Temporal Analysis | Analyzing spatial-temporal effects of infrastructure interventions | GIS integration, spatial autocorrelation, panel data models |
| π Network Analysis | Working with transportation network data | Graph theory, network metrics, flow modeling |
Quick Start: Begin with the CISD Framework tutorial to understand the fundamental concepts before diving into specialized application areas.
cisd/
βββ core # Core implementation of CISD framework
βββ representation # Neural encoders for multimodal data
βββ balancing # Covariate distribution matching methods
βββ causal # Causal estimators with efficiency guarantees
βββ ai_pipeline # End-to-end AI workflows for causal inference
βββ spatial_temporal # Spatial and longitudinal data utilities
βββ spatial_neighborhood_generator # Synthetic spatial data generation
βββ visualization # Diagnostic and effect visualization tools
Module Details
cisd.core: Framework fundamentals, estimand definitions, scenario modelingcisd.representation: Feature embedding for images, GPS traces, text using neural networkscisd.balancing: Propensity modeling, entropy balancing, distribution matching algorithmscisd.causal: Doubly-robust estimators, influence functions, sensitivity analysiscisd.ai_pipeline: End-to-end workflows connecting all componentscisd.spatial_temporal: Spatial weights, autocorrelation tests, panel data modelscisd.spatial_neighborhood_generator: Synthetic data for testing and benchmarkingcisd.visualization: Interactive plots, spatial effect maps, balance diagnostics
If you use CISD in your research, please cite our work:
@software{causalat_cisd,
title = {CISD: Causal-Intervention Scenario Design for Active Transportation Research},
author = {Rafe, Amir},
url = {https://github.com/pozapas/CausalAT},
year = {2025},
month = {May},
publisher = {GitHub},
version = {1.0.0}
}Note: A formal paper describing the methodology is forthcoming. This citation will be updated when published.
We welcome contributions from researchers, practitioners, and developers!
Ways to contribute:
- π Report bugs and issues
- π‘ Suggest new features or enhancements
- π§ͺ Add test cases
- π Improve documentation
- π§ Submit pull requests
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR-USERNAME/CausalAT.git - Create a feature branch:
git checkout -b feature/amazing-feature - Develop your contribution
- Commit your changes:
git commit -m 'Add some amazing feature' - Push to your branch:
git push origin feature/amazing-feature - Submit a Pull Request
We strive to maintain high-quality, well-documented code that follows best practices for scientific computing.
This project is licensed under the MIT License - see the LICENSE file for details.
Transforming transportation policy analysis with causal science