Since 2001 the American military has changed the way it operates in many ways that are not visible to outsiders but have had an enormous impact on how battles are fought and won. For example, in Iraq and Afghanistan, convoy operations became much safer and effective by having intelligence troops track where IEDs (roadside bombs and mines) and ambushes were happening, applying some math to predict where future attacks would take place, and routing convoys away from the hot spots. The bad guys would then shift, but the predictive analysis of the intel geeks was often able to predict that as well, and continue to keep the convoys away from many planned attacks. There were complications in Afghanistan, where there are fewer roads, so you are often forced to use certain roads or, if possible (as in the desert flatlands) use a cross country route. Moreover, fewer hard surface roads make it easier for the attackers, as the bombs can more easily be buried in the road, not on the side. New solutions had to be developed that involved dealing more effectively with attacks you could not avoid.
The math geeks also developed a special checklist for convoy commanders, where they could rate all aspects of a convoy operation (number and type of vehicles, weapons and cargo carried, air cover, including UAVs, available, the number and skill of the troops manning the convoy) and make a simple calculation for how the convoy should be run (how carefully to check to bombs and ambushes, how to brief the troops and generally what to expect.) This kind of analysis is also often done beforehand by headquarters to determine whether the convoy gets air cover and what kind (anything from a helicopter gunship to several types of UAV).
The best defense against IEDs (aside from alert people in the convoys) were techniques developed by 2006 in Iraq. This involved using manned and UAV aerial reconnaissance aircraft, along with pattern analysis and data mining, to find IEDs (roadside bombs), and the people who plant them, before convoys could be attacked. To do this, the U.S. Army developed an image analysis system that's basically just another form of pattern analysis. However, it's been a very successful system when it comes to finding newly planted IEDs. Called Constant Hawk it was considered military innovations of 2006.
Pattern analysis is one of the fundamental tools Operations Research (OR) practitioners have been using since World War II when the newly developed field of OR got its first big workout. Pattern analysis is widely used on Wall Street, by engineers, law enforcement, marketing specialists, and now, the military. Constant Hawk used a special video camera system to observe a locality and find useful patterns of behavior. Some of the Constant Hawk systems were mounted on light (C-12s, mainly) aircraft, others were mounted on ground structures. Special software compared photos from different times. When changes were noted, they were checked more closely, which resulted in the early detection of thousands of roadside bombs and terrorist ambushes. This largely eliminated roadside bomb attacks on supply convoys in Iraq, which travelled the same routes all the time. But those routes were also watched by Constant Hawk. No matter what the enemy did, the Hawk noticed. Eventually, the Hawk, and several other efforts, morphed into a campaign that led to the death of over 3,000 terrorists caught in the act of setting up roadside bombs, or lying in wait to set them off and attack their victims with gunfire. Hundreds more terrorists were captured, and many thousands of roadside bombs were avoided or destroyed before they could go off.
All this geekery works, and the troops like tools of this sort mainly because the systems retain photos of areas they have patrolled, and allows them to retrieve photos of a particular place on a particular day. Often, the troops returning from, or going out on a patrol, can use the pattern analysis skills we all have, to spot something suspicious, or potentially so.
A related math tool is predictive analysis. This was widely used in Iraq to determine the identity of bombers, where they were, and where they were most likely to place their bombs next. This enabled the geeks-with-guns (the Army OR specialists) to offer regular "weather reports" about expected IED activity. The troops took these reports very seriously, especially those who ran the hundreds of daily convoys that moved people and supplies around Iraq. If your route was predicted to be "hot", you paid extra attention that day, and often spotted IEDs that, as predicted, were there.
Usually, the predictions were used to send the combat engineers and EOD (Explosive Ordnance Disposal) teams out to scout and clean the route. It's the feedback from these guys that has brought the geeks their reputation. If the geeks, and their tools (computers, aerial images, and math), say there is something bad out there, they are generally right. For the geeks, it's all pretty obvious. Given enough data, you can predict all sorts of things, or just about anything, really. But to many people, including most reporters, it's all still magic. Afghanistan was different from Iraq, in terms of geography and the psychology of the enemy. But that didn’t. The system still analyzed, interpreted, and it told you what the bad guys were up to and where they are.