ViEWS2020 was the second operational conflict prediction model employed by the VIEWS system. It was in use between 2020 and 2021, generating monthly predictions for the probability of armed conflict across Africa, up to three years in advance.
This is a legacy model. The model codebase remains accessible via an open-source GitHub repository for transparency, but is no longer supported or maintained.
Predicted outcome #1
Probability of conflict
Predicted probability of at least 25 battle-related deaths (BRDs) per country-month and at least 1 BRD per PRIO-GRID-month.
Predicted type(s) of violence
State-based conflict (SB), non-state conflict (NS), and one-sided violence (OS)
Per UCDP definitions: inter- or intrastate armed conflicts over government or territory, in which at least one (sb) or neither (ns) of the warring parties are directly affiliated with a government of a state; and one-sided violence by an armed actor against unarmed civilians (os)
Country-level coverage
Africa
The country level of analysis is based on the Gleditsch & Ward (1999) list of independent states, combined with the GIS dataset CShapes that specifies the geographic coverage of the included countries.
Sub-national coverage
Africa (0.5°)
The sub-national level of analysis is derived from PRIO-GRID 2.0, a spatial grid structure of quadratic cells that jointly cover all areas of the world at a resolution of 0.5 x 0.5 decimal degrees, approximately 55×55 km around the equator.
Lead time
1-36 months
The model generates predictions for each month in a rolling 3-year window.
Update schedule
Monthly
The model generated new predictions each month, based on the most recently available input data.
AVF shortcode render error: Layout is missing (avf-layout name=”MODEL | License Icon” view-id=”685034c7d6024″)
Codebase
Open code
Source code and additional documentation of this model are available under a CC-BY-NC 4.0 license.

Model Documentation
ViEWS2020: Revising and evaluating the ViEWS political Violence Early-Warning System
Håvard Hegre, Curtis Bell, Michael Colaresi, Mihai Croicu, Frederick Hoyles, Remco Jansen, Maxine Ria Leis, Angelica Lindqvist-McGowan, David Randahl, Espen Geelmuyden Rød, and Paola Vesco. Journal of Peace Research, Vol 58, Issue 3, 2021
How Are the Forecasts Generated?
Identifying and Weighting the Predictors of Conflict
Building the constituent models
The ViEWS2020 forecasts were produced by advanced models that compiled, analysed, and evaluated historical time-series data from 1989 up to the month prior to each run of the model (each update of the forecasts). The data covered a multitude of variables that decades of peace research had shown to correlate with political violence, or – conversely – with the lack thereof.
Variables that shared a common theme, such as conflict history or different measures of the strength of political institutions, were grouped together into so-called “constituent models”, which were trained and fitted independently. They are described at length in our 2021 Special Data Feature in Journal of Peace Research.
Within the constituent models, each theme of variables was fed into a number of so-called random forest algorithms – machine learning algorithms that learn from historical observations in order to generate forecasts for the future. The algorithms used a subset of the available data to identify predictors that performed particularly well in predicting conflict for a later subset of the same data. It repeated this multiple times, generating a list of the predictors in each theme that perform well over and over again – even taking into account the prevalence of non-linear relationships and interactive effects amongst the pool of predictors. Along with a calibration procedure, the result from this exercise was used to determine the relative weight that was placed on each variable when generating the constituent model forecasts, and (if needed) to weed out variables that have no bearing on the results.
Training data
The training datasets used by the ViEWS2020 model were ingested into tables in our database, where they were organised by theme and/or data source and prefixed accordingly. The individual sources are described below with their corresponding acronyms in parenthesis.
ACLED (acled_)
ACLED is the armed conflict location event dataset. VIEWS recodes ACLED data into approximations of UCDP GED categories of violence, as follows:
acled_count_pr: Protest event countacled_count_sb: State-based violence event countacled_count_ns: Non-state violence event countacled_count_os: One sided violence event countacled_fat_pr: Protest fatality countacled_fat_sb: State-based violence fatality countacled_fat_ns: Non-state violence fatality countacled_fat_os: One sided violence fatality countacled_dummy_[pr, sb, ns, os] are dummy encodings of acled_count_
FVP (fvp_)
A country-year dataset compiled for a another project. Combining data from VDEM, WDI, EPR. Columns prefixed prop_ are from EPR. Columns prefixed ssp2 are from SSP. Auto, demo, electoral, etc are from V-Dem.
UCDP GED (ged_)
The main outcome from the ViEWS2020 model came from UCDP-GED. 6 data columns were created from GED:
ged_best_sb: Best estimate of fatalities for state-based violence.ged_best_ns: Best estimate of fatalities for non-state violenceged_best_os: Best estimate of fatalities for one-sided violenceged_count_sb: Number of events for state-based violenceged_count_ns: Number of events for non-state violenceged_count_os: Number of events for one-sided violence
PRIO-GRID (pgdata_)
PRIO-GRID data was fetched from the PRIO-GRID API at https://grid.prio.org/#/apidocs. For full codebook see https://grid.prio.org/#/codebook. 41 columns were exposed from PRIO-GRID with their original names retained.
ICGCW (icgcw_)
The International Crisis Group has an online conflict tracker at https://www.crisisgroup.org/crisiswatch. This was scraped and encoded in 5 columns:
icgcw_alerts: Appeared in an alerticgcw_deteriorated: Situation deterioratedicgcw_improved: Situation improvedicgcw_opportunities: Opportunity spottedicgcw_unobserved: Country doesn’t appear
REIGN (reign_)
REIGN Rulers, Elections, and Irregular Governance dataset. For details see https://oefdatascience.github.io/REIGN.github.io/.
SPEI (spei_)
SPEI GLobal Drought monitor. For details see https://spei.csic.es/map/maps.html.
V-DEM (vdem_)
Varieties of democracy. Version 10 is currently loaded. For codebook see: https://www.v-dem.net/en/data/data-version-10/.Columns loaded from the Country-Year: V-DemFull+Others file. Columns ending in the following suffixes are currently not included due to memory constraints:
_codehigh_codelow_ord_sd_mean_nr_osp
WDI (wdi_)
World Bank World Development Indicators. Updated as of May 2020. Downloaded from http://databank.worldbank.org/data/download/WDI_csv.zip. For details, see https://databank.worldbank.org/source/world-development-indicators.
Forecasting Violence With the “Wisdom of the Crowd”
Compiling the model ensembles
Once the thematic constituent models had been trained and fitted, they were combined into broader models known as “ensembles” – a key tenet of all VIEWS models. Much like a crowd is wiser than the single individuals composing it, broader models that make use of forecasts from a number of smaller and specialized models are known to generate more accurate predictions. In addition to the benefits of incorporating multiple themes of conflict predictors and thus becoming more comprehensive forecasting models, ensembles are less sensitive to overfitting and more robust to new data.
The ViEWS2020 forecasts were generated by means of two such model ensembles: one that incorporated forecasts from constituent models trained specifically to predict conflict at the country level, and one that was trained for geographically refined locations spanning approximately 55x55km each (0.5×0.5 degrees). Both ensembles used calendar months as the temporal unit of analysis. They were known as the country-month ( cm) ensemble and the PRIO-GRID-month (pgm) ensembles and each contained a list of constituent models that were interpretable on their own and that had shown to improve the predictive performance of either one of the two ensembles. 16 models met these criteria for the cm ensemble, and 12 for the pgm ensemble. An overview of these is presented in the model section below, described in depth in the ViEWS2020 Special Data Feature in Journal of Peace Research.
Estimating the Model Weights
Similar to the evaluation procedure that the individual conflict predictors were subjected to in order to single out the most important variables in the constituent model forecasts, also the constituent models themselves underwent a weighting procedure upon incorporation into the final ensembles.
Up until February 2020, when the ViEWS2020 model was launched, simple unweighted model averaging emerged as the preferred weighting solution for both levels of analysis, as this method produced similar results to more complex weighting alternatives. This meant that the final ensemble forecasts were estimated as a simple average of the forecasts generated by each of the included constituent models. Following the launch of the ViEWS2 data infrastructure, which provided more data for model weighting, we however shifted to Ensemble Bayesian Model Averaging (EBMA) for the country-month ( cm) level. EBMA allows for inclusion of more models that specialize for subsets of the data, in addition to broader ones, resulting in more accurate forecasts. At the geographic (pgm) level, unweighted model averaging however continued to be used, since the EMBA procedure did not improve the performance of forecasting system enough to justify a change.
The two procedures above are discussed at length in the ViEWS2020 Special Data Feature in Journal of Peace Research. Additional information is also found in Appendix D to that article, available on our publications page.
More on model estimation (pdf)
Computing the Forecasts
To compute the forecasts, the ViEWS2020 model made use of two strategies: dynamic simulation (ds) and one-step-ahead modeling. The former built on the procedures discussed in Hegre et al. (2013) and Hegre et al. (2016), where it is discussed at length. Both strategies are also discussed in ViEWS’ Special Data Feature in Journal of Peace Research and its appendices.

