They say lightning never strikes twice, but boffins have built an AI to show where it'll come next

It's like thunder, lightning, the way you code me is frightening

Machine learning algorithms can predict when and where lightning will strike, according to new research published in npj Climate and Atmospheric Science.

That might sound impressive at first, but the study is still pretty crude considering its limits. The forecast can only guess that a thunderbolt will flash somewhere within a 30 kilometer radius (~18 miles) and at some point within 30 minutes of it touching down.

“Current systems are slow and very complex, and they require expensive external data acquired by radar or satellite,” said Amirhossein Mostajabi, co-author of the paper and a PhD student at the Swiss Federal Institute of Technology Lausanne.

“Our method uses data that can be obtained from any weather station. That means we can cover remote regions that are out of radar and satellite range and where communication networks are unavailable.”

Lightning strikes are, the paper claims, the second leading cause of death under “natural hazard processes” in Switzerland, after snow avalanches. A total of 1,023 people died from being struck by lightning from 1946 to 2015. The zap of electricity can also damage crops and set fire to buildings.

The team of researchers began the study by collecting data from 12 weather stations that logged lightning strikes in Switzerland from 2006 to 2017. They analyzed four weather variables: local air pressure, temperature, humidity, and wind speed, which affect how much moisture is available for a brewing thunderstorm.

Next, they split the data for training and testing. “Once the database was formed, pattern recognition and data mining algorithms were employed to identify regularities between predictors and responses using a portion of the data which, as mentioned above, is called the training set,” the paper said.


We trained an AI to predict how bad a forest fire will be. It's just as good as a coin flip!


The machine learning algorithms learned to pick up on the combination of variables that were most likely to lead to lightning strikes. After training, they were fed the same four inputs to predict if a bolt will flash within a 30 kilometer radius around the weather station. Results revealed that the algorithms could predict a strike to within ten minutes of it occurring to over 71 per cent accuracy.

The model struggles with false positives, however, and tends to overpredict when lightning will strike. Deploying such a system in the real world would probably lead to a lot of false alarms.

“The main challenge in developing the appropriate predictive scheme was the high imbalance seen between lighting-inactive and lighting-active classes. The situation gets even worse when the lead time is increased,” the researchers admitted in the paper.

But since the model only requires monitoring the air pressure, temperature, humidity, and wind speed surrounding the weather station, it’s probably not too difficult for the researchers to test their algorithms in real time using sensors. Hopefully they make sure everything's grounded first. ®

Keep Reading

New Zealand government to explain its algorithms to stop robo-bias warping policy

But won’t reveal the actual algorithms – or even define what an algorithm is

Amazon staffers took bribes, manipulated marketplace, leaked data including search algorithms – DoJ claims

Banned merchants restored, rivals’ stores binned, cash sent around town in an Uber, it is alleged

Neo4j has this great IDE-a: How about we stuff all our graph workspace, database, algorithms and visualisation wizardry in one place?

Graph graph graph egg and graph; graph graph graph graph graph graph baked beans graph graph graph

K8s on a plane! US Air Force slaps Googly container tech on yet another war machine to 'run advanced ML algorithms'

And if that's not Skynet enough for ya, Britten-Norman is working to make the BN-2 Islander fly autonomously

Talk about high tech: Tens of thousands of Cali marijuana convictions to go up in smoke, thanks to algorithms

Now that's toke'n ring networking: Code of America happy to pass around its tools to scrub cases under US state law

When the chips are down, thank goodness for software engineers: AI algorithms 'outpace Moore's law'

ML eggheads, devs get more bang for their buck, say OpenAI duo

Scientists use machine-learning algorithms to map out 10 billion cells from human bodies in fight against cancer

AI really is glorified statistics when it's applied to biology

Australia to make Google and Facebook disclose ranking algorithms and pay for local content

Months of negotiation on voluntary code of conduct didn’t make progress

Biting the hand that feeds IT © 1998–2020