
KIPAC scientists have for the first time used artificial neural networks to analyze complex distortions in spacetime, called gravitational lenses, demonstrating that the method is 10 million times faster than traditional analyses. (Greg Stewart/SLAC National Accelerator Laboratory)
SLAC and Stanford researchers demonstrate that brain-mimicking ‘neural networks’ can revolutionize the way astrophysicists analyze their most complex data, including extreme distortions in spacetime that are crucial for our understanding of the universe.
Researchers from the Department of Energy’s SLAC National Accelerator Laboratory and Stanford University have for the first time shown that neural networks – a form of artificial intelligence – can accurately analyze the complex distortions in spacetime known as gravitational lenses 10 million times faster than traditional methods.
“Analyses that typically take weeks to months to complete, that require the input of experts and that are computationally demanding, can be done by neural nets within a fraction of a second, in a fully automated way and, in principle, on a cell phone’s computer chip,” said postdoctoral fellow Laurence Perreault Levasseur, a co-author of a study published today in Nature.
Lightning Fast Complex Analysis
The team at the Kavli Institute for Particle Astrophysics and Cosmology (KIPAC), a joint institute of SLAC and Stanford, used neural networks to analyze images of strong gravitational lensing, where the image of a faraway galaxy is multiplied and distorted into rings and arcs by the gravity of a massive object, such as a galaxy cluster, that’s closer to us. The distortions provide important clues about how mass is distributed in space and how that distribution changes over time – properties linked to invisible dark matter that makes up 85 percent of all matter in the universe and to dark energy that’s accelerating the expansion of the universe.
Until now this type of analysis has been a tedious process that involves comparing actual images of lenses with a large number of computer simulations of mathematical lensing models. This can take weeks to months for a single lens.
But with the neural networks, the researchers were able to do the same analysis in a few seconds, which they demonstrated using real images from NASA’s Hubble Space Telescope and simulated ones.
To train the neural networks in what to look for, the researchers showed them about half a million simulated images of gravitational lenses for about a day. Once trained, the networks were able to analyze new lenses almost instantaneously with a precision that was comparable to traditional analysis methods. In a separate paper, submitted to The Astrophysical Journal Letters, the team reports how these networks can also determine the uncertainties of their analyses.
KIPAC researcher Phil Marshall explains the optical principles of gravitational lensing using a wineglass. (Brad Plummer/SLAC National Accelerator Laboratory)
Prepared for Data Floods of the Future
“The neural networks we tested – three publicly available neural nets and one that we developed ourselves – were able to determine the properties of each lens, including how its mass was distributed and how much it magnified the image of the background galaxy,” said the study’s lead author Yashar Hezaveh, a NASA Hubble postdoctoral fellow at KIPAC.
This goes far beyond recent applications of neural networks in astrophysics, which were limited to solving classification problems, such as determining whether an image shows a gravitational lens or not.
The ability to sift through large amounts of data and perform complex analyses very quickly and in a fully automated fashion could transform astrophysics in a way that is much needed for future sky surveys that will look deeper into the universe – and produce more data – than ever before.
The Large Synoptic Survey Telescope (LSST), for example, whose 3.2-gigapixel camera is currently under construction at SLAC, will provide unparalleled views of the universe and is expected to increase the number of known strong gravitational lenses from a few hundred today to tens of thousands.
“We won’t have enough people to analyze all these data in a timely manner with the traditional methods,” Perreault Levasseur said. “Neural networks will help us identify interesting objects and analyze them quickly. This will give us more time to ask the right questions about the universe.”

KIPAC researchers used images of strongly lensed galaxies taken with the Hubble Space Telescope to test the performance of neural networks, which promise to speed up complex astrophysical analyses tremendously. (Yashar Hezaveh/Laurence Perreault Levasseur/Phil Marshall/Stanford/SLAC National Accelerator Laboratory; NASA/ESA)
A Revolutionary Approach
Neural networks are inspired by the architecture of the human brain, in which a dense network of neurons quickly processes and analyzes information.
In the artificial version, the “neurons” are single computational units that are associated with the pixels of the image being analyzed. The neurons are organized into layers, up to hundreds of layers deep. Each layer searches for features in the image. Once the first layer has found a certain feature, it transmits the information to the next layer, which then searches for another feature within that feature, and so on.
“The amazing thing is that neural networks learn by themselves what features to look for,” said KIPAC staff scientist Phil Marshall, a co-author of the paper. “This is comparable to the way small children learn to recognize objects. You don’t tell them exactly what a dog is; you just show them pictures of dogs.”
But in this case, Hezaveh said, “It’s as if they not only picked photos of dogs from a pile of photos, but also returned information about the dogs’ weight, height and age.”

Scheme of an artificial neural network, with individual computational units organized into hundreds of layers. Each layer searches for certain features in the input image (at left). The last layer provides the result of the analysis. The researchers used particular kinds of neural networks, called convolutional neural networks, in which individual computational units (neurons, gray spheres) of each layer are also organized into 2-D slabs that bundle information about the original image into larger computational units. (Greg Stewart/SLAC National Accelerator Laboratory)
Although the KIPAC scientists ran their tests on the Sherlock high-performance computing cluster at the Stanford Research Computing Center, they could have done their computations on a laptop or even on a cell phone, they said. In fact, one of the neural networks they tested was designed to work on iPhones.
“Neural nets have been applied to astrophysical problems in the past with mixed outcomes,” said KIPAC faculty member Roger Blandford, who was not a co-author on the paper. “But new algorithms combined with modern graphics processing units, or GPUs, can produce extremely fast and reliable results, as the gravitational lens problem tackled in this paper dramatically demonstrates. There is considerable optimism that this will become the approach of choice for many more data processing and analysis problems in astrophysics and other fields.”
Learn more: Artificial Intelligence Analyzes Gravitational Lenses 10 Million Times Faster
The Latest on: Neural networks
- Artificial Neural Networks as a Way to Predict Future Kidney Cancer Incidence in the United States - Beyond the Abstracton January 19, 2021 at 10:45 am
The incidence of kidney cancer is increasing and it could be counteracted with new ways to predict and detect it. Our work has the aim to implement an artificial neural network in order to predict the ...
- How to reroute a broken neural circuiton January 19, 2021 at 8:25 am
How animals turn sense into perception is a magical mystery. To better understand this fundamental process, scientists are using simple nematode worms to break and repair odor-sensing neural circuits ...
- Neural Network Software Market 2021 Industry Size, Share, Price, Trend and Forecast to 2026on January 18, 2021 at 11:59 pm
Market Demand, Growth, Opportunities and Analysis of Top Key Player Forecast To 2022 " To Its Research Database According to Stratistics MRC, the Global Neural Network Software market is expected to ...
- Setting boundaries for neural networkson January 14, 2021 at 3:45 am
Neural networks will probably struggle with that one. As quants race to deploy neural networks in finance, they are running into a common problem. Neural networks require huge datasets to train, but ...
- Using neural networks for faster X-ray imagingon January 13, 2021 at 4:38 am
A team of scientists from Argonne is using artificial intelligence to decode X-ray images faster, which could aid innovations in medicine, materials and energy.
- What this bald eagle and neural network depiction have to do with future U.S. AI strategyon January 12, 2021 at 11:03 pm
The White House launched the National AI Initiatives Office, a group with an eagle and neural network on its seal, to plan U.S. AI strategy.
- A new technique called ‘concept whitening’ promises to provide neural network interpretabilityon January 12, 2021 at 2:01 pm
"Concept whitening" can help steer neural networks toward learning specific concepts without sacrificing performance.
- Can neural networks experience bizarre hallucinations like us?on January 8, 2021 at 9:11 am
While Google’s neural network created images grabbed worldwide attention, we must fine tune these artificial intelligence models to generate perfect deepfake and visual content, by understanding how ...
- What neural networks playing video games demonstrate about the human brainon January 8, 2021 at 7:17 am
When you are driving a car, your brain is taking in an enormous amount of visual information and using it to make driving decisions, such as when to brake or change lanes. The brain needs to determine ...
- Welcome to Neurussia — a non-existent but recognizable country created by a neural network (PHOTOS)on January 8, 2021 at 6:03 am
A Russian programmer trained a neural network to create landscapes with Russian panel houses. The result was mesmerizing, and at times frightening.
via Google News and Bing News