Afghan War Games: Computer Scientists Accurately Predict Attacks

A soldier wounded by a roadside bomb is evacuated from the Kandahar provinceCourtesy of <a href=>US Army</a>

A military analyst hunches over a laptop. His screen flashes with real-time data of the war unfolding on the sands outside his base. The machine hums and then quickly spits out a color-coded map forecasting impending violence. Eyeing the contours, he radios a caravan of humvees and informs the soldiers that, according to the calculations, they will be ambushed in roughly twelve hours. The unit veers onto a bushwhacked road, lies in wait, and at the crack of dawn captures its would-be attackers without taking any injuries.

A sci-fi writer’s napkin scribblings? Or a peek at the future? Well, according to research published earlier this month in the Proceedings of the National Academy of Sciences, such a scene might not be far off.

Drawing from the 77,000 confidential US military logs released in Wikileaks’ Afghan War Diary, researchers compiled data tracking the activity of armed opposition groups (AOG) in Afghanistan between 2004 and 2009. They then used “spatiotemporal” statistics to model the intensity and location of future violence, down to the provincial level, through the end of 2010 (a year after the leaked data ends). A comparison of the results with safety reports from the Afghanistan NGO Safety Office showed that their predictions were strikingly accurate:    

In Baghlan, for instance, AOG activity rose by 120% (17.3% using log counts) from 100 incidents in 2009 to 222 in 2010; the model predicted a median 2010 increase of 128% (17.9%) to a count of 228…Further, a correlation test between the predicted medians and actual incident count for all 32 provinces…[showed] strong support for prediction capability.

The scientists were dumbfounded by the precision of their model. 

“The model does not have any knowledge of military plans/ political initiatives/ etc.,” coauthor and University of Edinburgh lecturer Guido Sanguinetti told Mother Jones in an email. “In a sense the model is data-driven, without much expert input; the fact that it could give statistically accurate predictions was quite exciting. Having been in Britain for many years, I may have actually said, ‘Blimey.'” 

“The fact that it could give statistically accurate predictions was quite exciting. Having been in Britain for many years, I may have actually said, ‘Blimey.'” 

Even more surprisingly, the calculations were not run on expensive supercomputers. While the researchers boast that their algorithm produces powerful results, it can be run on standard PCs. Given a laptop and an hour, they say, and these kind of calculations could one day feasibly provide provide on-the-ground war zone predictions.

Sharon Weinberger pointed out last year in Nature that the Pentagon planned to spend at least $28 million on computer modeling in 2011, reviving a military interest in predictive technologies that dates back to the 1970s. Government-funded researchers are notably cautious about the results to date. “I would say the weather guys are far ahead of where we are,” University of Maryland computer scientist Venkatramanan Subrahmanian, who has worked on modeling the locations of arms caches, told Weinberger. “And that might give you some relative understanding of where the science is.” 

The scientists behind the PNAS study believe their current models could be further refined by adding data on military strategy. That would help the researchers define the statistical relationship between the opposing forces and better gauge insurgents’ future actions.

Coauthor Andrew Zammit-Mangion also notes that the team hopes to advance the precision of their algorithm, so it can predict the specific location of attacks within provincial limits. “Technically, there is no limit as to how much we can ‘zoom in,'” he writes Mother Jones. If the scientists overcome some mathematical hurdles, they could potentially predict violence down to a city block, or, perhaps, even a bushwhacked desert road.


Mother Jones was founded as a nonprofit in 1976 because we knew corporations and the wealthy wouldn't fund the type of hard-hitting journalism we set out to do.

Today, reader support makes up about two-thirds of our budget, allows us to dig deep on stories that matter, and lets us keep our reporting free for everyone. If you value what you get from Mother Jones, please join us with a tax-deductible donation today so we can keep on doing the type of journalism 2019 demands.

We Recommend


Sign up for our newsletters

Subscribe and we'll send Mother Jones straight to your inbox.

Get our award-winning magazine

Save big on a full year of investigations, ideas, and insights.


Support our journalism

Help Mother Jones' reporters dig deep with a tax-deductible donation.


We have a new comment system! We are now using Coral, from Vox Media, for comments on all new articles. We'd love your feedback.