| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
STRive (SpatioTemporal Rule Interactive Visual Explorer) is a visual analytics tool for discovering and exploring spatial and temporal patterns in data. It integrates Association Rule Mining (ARM) with interactive visualization techniques to generate, analyze, and interpret spatiotemporal relationships for actionable insights.
https://drive.google.com/file/d/1Yyb-yltCSQPxClFUaZKnZLy5_8bpmkJ-/view?usp=sharing
git clone https://github.com/maurodiaz7/STRive.git
cd STRiveWe recommend setting up a dedicated conda environment to avoid version conflicts in python packages. Our tests were carried using Python 3.13.2.
conda create -n strive python=3.13.2 pip install -r requirements/requirements.inSTRive includes an LLM (gemini-2.0-flash) component for generating explanations of the identified patterns. Input your api key in the file pipeline/llm.py, line 136. The LLM explanation component is the last step in the workflow, so it will not interfere with the regular usage of the tool.
Run with
python .\main.pyGo to http://127.0.0.1:8000/ on your browser. We recommend using Google Chrome.
Two test datasets (vehicular accidents and crimes) are provided here. These datasets were used to carry out the case studies described in the paper. Each folder contains two files, one CSV and one JSON. For each dataset, both files are required in order to replicate the results. Please read the paper (https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5226205) for full details.
The first case study employs the files in the accidents folder. Upon downloading them, follow this steps:
The second case study employs the files in the crimes folder. Upon downloading them, follow this steps:
Note: During the experiments, we tested several rule orderings, including sorting by antecedents and by consequents. For this second case study, the rules are sorted by antecedent. To reproduce the results from the paper, open pipeline/generate_rules.py, comment out line 129, and uncomment line 130. If this is not done, the results will be mostly the same, but with antecedents and consequents reversed (e.g., Type:Theft -> Location:Park Property instead of Location:Park Property -> Type:Theft). We recommend making this small change.
The order of rules and clusters (top to bottom) may differ from what is shown in the paper due to the layout reordering algorithm. Some clusters (mainly the smaller ones) may show slight variations in their composition. Larger clusters, which are the focus of these case studies, remain unchanged. We also implemented a tooltip in the Attributes view that appears when hovering over any attribute name, providing better visibility of the attribute.
STRive supports uploading other categorical spatiotemporal datasets. For details on the required input format, see Section 4.3 (Workflow) of the attached paper. You can also use the provided datasets (crimes and accidents) as references for structuring your own input files.
If you encounter an error or have any questions, please feel free to contact me at dany.mauro.diaz.e@gmail.com or dany.espino@fgv.br
| Back | FazBrowse Home | New Git URL |