A study, based on millions of articles, charted deteriorating national sentiment ahead of the recent revolutions in Libya and Egypt.
While the analysis was carried out retrospectively, scientists say the same processes could be used to anticipate upcoming conflict.
The system also picked up early clues about Osama Bin Laden’s location.
Kalev Leetaru, from the University of Illinois’ Institute for Computing in the Humanities, Arts and Social Science, presented his findings in the journal First Monday.
Mood and location
The study’s information was taken from a range of sources including the US government-run Open Source Centre and BBC Monitoring, both of which monitor local media output around the world.
News outlets which published online versions were also analysed, as was the New York Times’ archive, going back to 1945.
In total, Mr Leetaru gathered more than 100 million articles.
Reports were analysed for two main types of information: mood – whether the article represented good news or bad news, and location – where events were happening and the location of other participants in the story. The Nautilus SGI supercomputer crunched the 100 million articles.
Mood detection, or ‘automated sentiment mining’ searched for words such as ‘terrible’, ‘horrific’ or ‘nice’.
Location, or ‘geocoding’ took mentions of specific places, such as ‘Cairo’ […]