A generic innovative visualization technique for univariate time-series data capable of forecasting the next-state transition using Markov chains.
This is a software implementation of the proposed Caterpillar Diagram in the research article titled "An innovative color-coding scheme for terrorism threat advisory system".
A Caterpillar Diagram is a visualization technique used for analyzing univariate time-series data. It consists of a series of colored circles with varying radii. The circle's color represents the direction of change in the time-series data, and the circle's size shows its variation.
It implements the innovative and intuitive Difference of Differences (DoD) approach to create a color schema. As proposed, it segregates the time-series data under analysis into a cohort of three consecutive time units. Further, it utilizes the unsigned differences between observations to assign a size to each cohort. This novel visualization technique can segregate the time-series data using seven colors or five stages of Aggressive, Ascent, Descent, Controlled, and Status Quo.
Further, the proposed mechanism utilizes the accumulated color information regarding each cohort to forecast the next step transition using a stationary matrix of Markov Chains.
- Prabal Pratap Singh - https://orcid.org/0000-0002-0738-7629
- Prof. Deepu Philip - https://orcid.org/0000-0002-4607-9020
To install caterpillard
package from PyPI:
(env) $ pip install caterpillard
The documentation for the package is available here
This package has been tested on Python 3.9 and Python 3.10 across all major operating
systems like Linux
, MacOs
and Windows
.
This package is licensed under GNU Affero General Public License v3.0
Please read CONTRIBUTING.md
for more details.
This package has been developed as a part of the doctoral research titled "Modeling & Analysis of Terrorism" by Prabal Pratap Singh under the supervision of Prof. Deepu Philip at Indian Institute of Technology Kanpur.
If you utilize this package then please use the bibliography in IEEE format to cite this package and the associated Journal article in your work:
[2] P. P. Singh and D. Philip, “An innovative color-coding scheme for terrorism threat advisory system,” Methodological Innovations, p. 20597991221144576, Dec. 2022, doi: 10.1177/20597991221144577.