In many astronomical images, stars, distant galaxies, and quasars (bright cores of galaxies) appear as points of light that are hard to tell apart by appearance alone. To identify them, researchers analyze how the radiation they receive is distributed across different wavelengths. This work requires specialized observations and analyses, which can take too long given the huge volume of data produced by new sky surveys. An international team led by researchers at the University of São Paulo (USP), supported by FAPESP, has developed a method that uses artificial intelligence (AI) to make the classification of these objects faster, more reliable, and scalable.
The study, whose first author is postdoctoral researcher Daniel López-Cano at the University of São Paulo's Physics Institute (IF-USP), combines data produced from simulations with real observations. The strategy seeks to bridge differences between these two datasets and sorts sources into four groups: stars, galaxies, low-redshift quasars (relatively nearby), and high-redshift quasars (very distant).
It is worth recalling that redshift, traditionally represented by the letter z, is the shift of light toward longer wavelengths caused by the expansion of the Universe: the greater the value of z, the more distant the object and the older the epoch in which it emitted the light we observe. The most significant gains from the new method occur precisely in identifying distant quasars, objects that are essential for investigating the formation, evolution, and structure of the Universe.
The results were published in The Astrophysical Journal. The second author is Luis Raul Weber Abramo , a professor at IF-USP and supervisor of López-Cano's postdoctoral research.
"In large astronomical surveys, we have ever-growing volumes of data. Artificial intelligence lets us classify objects much faster and more reliably. The goal is to produce catalogs that can guide later observations made with specialized instruments," says López-Cano.
Using AI to classify sources from the Javalambre Physics of the Accelerating Universe Astrophysical Survey (J-PAS) is not new. But implementing it is not so simple. The advance faces a recurring difficulty in applying artificial intelligence to astronomy: algorithms must be trained on large amounts of data whose classification is already known. Computer simulations can produce these datasets in abundance. However sophisticated they are though, they do not perfectly reproduce the conditions of real observations.
Differences in instrument sensitivity, equipment calibration, measurement noise, and the characteristics of the observed objects themselves can mean that an algorithm trained on simulated data performs worse when applied to a telescope's real records. In artificial intelligence jargon, this problem is known as "domain shift": the training data have different statistical characteristics from those encountered when the model is actually applied.
The researchers' proposed solution was to train the model in two stages. First, the algorithm learns to distinguish stars, galaxies, and quasars using a large amount of data produced by computer simulations. Then, only the part of the network that transforms input data into an internal representation is readjusted with a much smaller set of real observations, while the so-called "decision boundaries" learned from the simulations remain fixed. In this way, the system learns to "translate" real data into the same language as the simulations, compensating for the differences between them. This strategy is known as "semi-supervised domain adaptation."
A universe observed in 56 colors
The research used data from the first public release (Early Data Release) of J-PAS, an international astronomical survey designed to study the distribution of galaxies and the expansion of the Universe. Carried out at the Javalambre Astrophysical Observatory (located on Pico del Buitre, at 1,957 meters above sea level, in the Aragon region of Spain), the survey uses a set of 56 photometric filters, mostly narrow-band, to record the brightness of each source across different parts of the electromagnetic spectrum.
The result is a kind of light signature containing information about the physical characteristics of the observed objects. Although it does not fully replace conventional spectroscopy, the system provides far more detailed spectral information than traditional astronomical photography, which uses only a few broadband filters.
"The light emitted depends on the type of object. It's through the specific characteristics of the light that we can tell stars, galaxies, and quasars apart. For stars, the spectrum depends, among other factors, on temperature and chemical composition. Galaxies combine the contribution of countless stars with the effects of interstellar gas and dust. In quasars, there's also the intense emission associated with activity in the galactic nucleus, made up of a supermassive black hole surrounded by an accretion disk," López-Cano explains.
The JST250 telescope and its JPCam camera at the Javalambre Astrophysical Observatory in Spain (photo: Centro de Estudios de Física del Cosmos de Aragón)
The dominant interpretation among astrophysicists and cosmologists is that quasars are extremely luminous nuclei of galaxies, more common in the young Universe, powered by supermassive black holes that attract and accumulate large amounts of gas and dust, a process known as accretion. Heated to extreme temperatures as it spirals toward the black hole, forming the accretion disk, this matter would emit extraordinary amounts of radiation, making quasars observable even at very large cosmological distances. Because light takes time to travel through space, observing a distant quasar also means investigating a remote era in the history of the Universe.
To distinguish less distant quasars from more distant ones, the team adopted, as an operational threshold, a redshift (z) of 2.1. This choice does not correspond to an abrupt physical change in the nature of quasars, but is related to an important feature of their light spectra: the so-called "Lyman-alpha forest." This is a set of absorption lines observed in the spectrum of light emitted by very distant objects. These lines are produced by clouds of neutral hydrogen in intergalactic space, between the light source and Earth.
Abramo compares high-redshift quasars to very distant lighthouses, whose light allows us to measure the absorption that occurred along the way to Earth. "These objects are extremely valuable for astrophysics and cosmology, because they illuminate the clouds of hydrogen between them and us, offering a detailed view of cosmic structures in an era when galaxies were undergoing intense transformation," he says.
An object with a redshift of z = 2.1 is being observed now as it was when the Universe was about 3.2 billion years old, that is, about 10.6 billion years ago. This does not mean the object itself was 3.2 billion years old, but that the Universe had that age when the light was emitted. Given that the Universe is currently estimated to be 13.8 billion years old, the light we receive from this object was emitted when only 23% of known cosmic history had elapsed.
From simulations to real observations
To develop the algorithm, the researchers drew on another major astronomical project: the Dark Energy Spectroscopic Instrument ( DESI ), mounted on a telescope with a 4-meter aperture in Arizona, United States. Its function is to split the light of millions of galaxies and quasars into different wavelengths, making it possible to measure their redshifts and thereby build a three-dimensional map of the Universe. DESI's distinguishing feature is its system of 5,000 optical fibers, controlled by small robotic positioners, which can capture the light of up to 5,000 celestial objects at once. This light is sent to ten spectrographs, which analyze the spectra individually.
Using the spectra obtained by DESI, the researchers produced about 1.5 million simulated sources: the real spectra were converted into the measurements the J-PAS filters would record, with a realistic noise model added. This set was used for the initial training of the algorithm. The system was then adjusted with real data: objects observed by both J-PAS and DESI, whose correct classification is known thanks to DESI's spectra. Of the roughly 52,000 available objects, only around 15,000 were used in the adjustment (including just 242 distant quasars). The rest were set aside to validate the model and test its performance on data it had never seen during training.
The team compared three strategies for training the AI: training exclusively on simulations, training only on real observations, and combining both approaches. The third delivered the best results, showing that a relatively small amount of real data can correct differences between the simulations and actual observing conditions.
"The biggest gain came in identifying distant quasars, which made up less than 2% of the available objects. For this category, the F1 score, which measures the relationship between the ability to find the sought-after objects and the reliability of the identifications, rose from 0.40 [in the model trained only on simulations] to 0.54 [in the model trained exclusively on real observations] and reached 0.68 [in the combined method]. Taking the four object categories together, the average F1 score reached 0.83, also higher than the results of the other two strategies," López-Cano reports.
The efficiency gain has important practical consequences. Large photometric surveys such as J-PAS make it possible to select objects for later observations with higher-resolution spectrographs. Because time on these instruments is limited, a more reliable classification avoids wasting resources on incorrectly selected targets.
One possible application is WEAVE-QSO , a program dedicated to the spectroscopic study of quasars, whose data can be used to investigate the distribution of intergalactic gas and the large-scale structure of the Universe. "First, with one telescope, we identify where the quasars are. Then we can use another instrument, with higher spectral resolution, to measure their light much more precisely," López-Cano sums up.
The contribution of the study, however, is not limited to quasars. With the rapid growth of data from surveys such as DESI, J-PAS, and LSST (from the Vera Rubin Observatory), it is becoming increasingly important to develop systems that can exploit the abundance of simulations without losing the reliability provided by real observations. "The ultimate goal is to understand gravity, dark matter, and dark energy better. To do that, we need to map the objects telescopes detect and know how to classify them," says López-Cano. Classification is therefore a necessary step for statistical analyses that can test cosmological models against observations.
The research was supported by FAPESP through three projects ( 19/26492-3 , 22/03426-8 , and 24/05768-9 ).
About São Paulo Research Foundation (FAPESP)
The São Paulo Research Foundation (FAPESP) is a public institution with the mission of supporting scientific research in all fields of knowledge by awarding scholarships, fellowships and grants to investigators linked with higher education and research institutions in the State of São Paulo, Brazil. FAPESP is aware that the very best research can only be done by working with the best researchers internationally. Therefore, it has established partnerships with funding agencies, higher education, private companies, and research organizations in other countries known for the quality of their research and has been encouraging scientists funded by its grants to further develop their international collaboration. You can learn more about FAPESP at www.fapesp.br/en and visit FAPESP news agency at www.agencia.fapesp.br/en to keep updated with the latest scientific breakthroughs FAPESP helps achieve through its many programs, awards and research centers. You may also subscribe to FAPESP news agency at http://agencia.fapesp.br/subscribe.