Photometric Redshift Predictions with a Neural Network for DESI Quasars J. P. Moss, S. J. Curran, Y. C. Perrott Abstract Accurate redshift measurements are essential for studying the evolution of quasi-stellar objects (QSOs) and their role in cosmic structure formation. While spectroscopic redshifts provide high precision, they are impractical for the vast number of sources detected in large-scale surveys. Photometric redshifts, derived from broadband fluxes, offer an efficient alternative, particularly when combined with machine learning techniques. In this work, we develop and evaluate a neural network model for predicting the redshifts of QSOs in the Dark Energy Spectroscopic Instrument (DESI) Early Data Release spectroscopic catalogue, using photometry from DESI, the Widefield Infrared Survey Explorer (WISE) and the Galactic Evolution Explorer (GALEX). We compare the performance of the neural network model against a k-Nearest Neighbours approach, these being the most accurate and least resource-intensive of the methods trialled herein, optimising model parameters and assessing accuracy with standard statistical metrics. Our results show that incorporating ultraviolet photometry from GALEX improves photometric redshift estimates, reducing scatter and catastrophic outliers compared to models trained only on near infrared and optical bands. The neural network achieves a correlation coefficient with spectroscopic redshift of 0.9187 0.9187 with normalised median absolute deviation of 0.197 0.197 , representing a significant improvement over other methods. Our work combines DESI, WISE and GALEX measurements, providing robust predictions which address the difficulties in predicting photometric redshift of QSOs over a large redshift range. keywords quasars: general, galaxies: active, techniques: photometric J. P. Moss]mossji@staff.vuw.ac.nz 1 Introduction 1.1 Background Accurate redshift measurement is crucial for understanding the cosmological and physical properties of active galactic nuclei (AGN), particularly quasars, which are the most luminous and distant objects in the Universe. Although spectroscopic measurements provide precise redshifts, they are resource-intensive and impractical for the vast number of sources that upcoming surveys, such as those with the Square Kilometre Array (SKA; carilli2004 ; schilizzi2004 ; norris2011emu ), will detect. This highlights the need for efficient photometric redshift estimation methods that can handle large datasets. Photometric redshifts, hereafter referred to as z_{\mathrm{phot}} , derived from broadband flux measurements in the ultraviolet (UV), optical and near infrared bands (NIR), offer a complementary approach, enabling the rapid analysis of quasars and other celestial objects. Using machine learning techniques trained on large datasets, these methods can provide reliable redshift estimates, paving the way for timely data processing and analysis in the SKA and other large-scale surveys. The identification and classification of AGN such as quasars and quasi-stellar objects (QSOs) requires the detection of spectral lines. However, even with the development of multiobject spectrometers ( wolf2018 ) , spectroscopy is a time- and resource-intensive process ( popowicz2017 ) . Acquiring high-quality spectra is a demanding task due to the necessity for high signal-to-noise ratios and spectral resolutions. Achieving resolutions of R=$300\,000$ or higher is essential for fully resolving line shapes and accurately interpreting wavelength shifts in QSO spectra ( dravins2010 ) . However, several challenges can complicate the interpretation of these spectra, such as incomplete spectroscopic data ( connolly1999 ) , the absence of suitable lines, overlapping lines from different sources, and imprecise laboratory wavelengths. Additionally, obtaining such high-fidelity spectra often requires long integration times. The development of efficient spectrometers with resolutions approaching R=$1\,000\,000$ for future large telescopes remains a significant challenge in advancing our understanding of QSO spectra ( dravins2010 ) , and the spectroscopic redshifts ( z_{\mathrm{spec}} ) derived from them. However, higher spectral resolution also comes at the cost of increased noise, necessitating even longer exposure times to maintain adequate signal-to-noise-ratios. Photometric redshift estimates based on broadband photometry or template-fitting (see, for example, Ball2007 ; Carliles2007 ; bovy2012 ; moss2021_ML ; zhou2021 ; moss2022_milliquas and references therein) from the photometry of known objects provide a valuable alternative but are often plagued by inherent uncertainties. Once trained on a sufficiently large dataset, modern machine learning (ML) models allow the analysis of large amounts of data, from which they can estimate the redshift from the photometric measurements taken by the survey. This enables us to predict the redshift of a large number of sources without relying on a spectrum for each object. As modern surveys collect vast amounts of data, the ability to rapidly estimate redshifts using ML models becomes crucial for timely data processing and release. By validating and refining photometric redshift methods against spectroscopic data, we can improve the accuracy of these models, extending their applicability to future surveys and legacy datasets. Such methods also hold potential for identifying high-redshift objects in upcoming surveys, where spectroscopic follow-up may be limited or delayed. Developing robust methods and pipelines for estimating redshifts from photometric measurements is essential to maximise the scientific potential of upcoming surveys. In this paper, we present a neural network capable of predicting QSO redshifts in the Dark Energy Spectroscopic Instrument (DESI; dey2019 ; desicollaboration2022 ; desicollaboration2023 ; chaussidon2023 ; alexander2023 ) dataset with an accuracy of \sim 81\% , which increases to \sim 92\% with the inclusion of photometry from Galaxy Evolution Explorer (GALEX; Martin2005 ; gildepaz2007 ). 2 Data and Methods 2.1 DESI DESI surveys the sky in the -34^{\circ}<\delta\leq 90^{\circ} declination range using the g , r , and z bands. Data Release 9 (DR9 schlegel2021 ) includes images and photometric measurements of 2.85 million sources. The photometry of these sources from DESI is complemented by forced photometry in the W1 and W2 bands from unWISE coadded images, derived from Wide-field Infrared Explorer (WISE) mission ( wright2010 ) ; that is, flux measurements were extracted at the positions of sources detected in the optical bands, even if the sources were too faint to be independently detected in WISE infrared (IR) images. This imaging data serves as the basis for target selection in the DESI spectroscopic survey. The Early Data Release (EDR) QSO catalogue 1 1 1 QSO_cat_fuji_healpix_only_qso_targets.fits available at https://data.desi.lbl.gov/public/edr/vac/edr/qso/v1.0/ , for which the sky distribution is shown in Figure 1 , contains 87\,318 sources spectroscopically identified as QSOs using DESI’s Redrock (RR) template-fitting algorithm and the QuasarNET (QN) deep-learning classifier. In this paper, the term ‘DESI dataset’ encompasses both the imaging data from the Legacy Imaging Surveys’ DR9, which includes g , r , and z fluxes, and the spectroscopic data from the EDR QSO catalogue, which provides redshift information for a subset of these sources. Both include W1 and W2 fluxes from unWISE coadded images, derived using forced photometry as described above. Distributions of the fluxes in the DESI dataset are shown in Figure 2 . Figure 1 : The sky distributions of the DESI EDR QSO spectroscopic catalogue (top, from desicollaboration2023 ) and SDSS (bottom, from lyke2020 ) samples. The histograms show the number of sources in right ascension and declination. 2.2 DESI x SDSS To assess the impact of missing photometric bands on redshift prediction performance, the DESI dataset was crossmatched with the Sloan Digital Sky Survey (SDSS) Data Release 16 QSO catalogue (DR16Q; lyke2020 ). The DESI component of the dataset, described in Section 2.1 , provided photometry in the g , r , and z bands, along with infrared fluxes from WISE ( W1 and W2 ). SDSS contains optical magnitudes ( u , g , r , i , z ), where g , r , and z overlap with DESI, and forced-photometry UV measurements in the far- and near-ultraviolet ( FUV and NUV ) wavebands from GALEX for 750\,414 QSO sources. This crossmatch allows us to evaluate whether excluding the SDSS u and i bands, as well as the GALEX FUV and NUV bands, leads to a significant degradation in photometric redshift predictions. SDSS imaging has a median seeing of 1.32 arcseconds in the r -band 2 2 2 https://www.sdss4.org/dr17/imaging/other_info , while DESI’s spatial resolution is limited by its 1.5 arcsecond fibre diameter 3 3 3 https://noirlab.edu/public/media/archives/brochures/pdf/brochure007.pdf . A positional tolerance of 1 arcsecond was chosen for crossmatching to ensure high-confidence associations, returning 24 616 secure matches (only 3.2\% of the DESI EDR QSO sample) which we refer to as DxS. This modest fraction arises because SDSS imaging is both shallower ( z\mathrel{\vtop{\halign{#\cr$<$\cr\lower 1.29167pt\hbox{$\scriptscriptstyle\sim$}\cr}}}22\,\mathrm{mag} ) and covers a slightly different footprint than the DESI EDR, so many of the fainter or uniquely targeted DESI QSOs simply have no SDSS counterpart. Figure 1 illustrates the limited overlap, while Figures 2 and 3 show that, despite the low match fraction and the difference in magnitude distributions, the two redshift distributions are broadly similar in shape and spread, diverging mainly at the highest redshifts where SDSS drops out. 2.3 GALEX GALEX provides UV photometry in two bands: FUV and NUV . These bands are particularly valuable for studies of QSOs, as they probe rest-frame UV features that shift into optical wavelengths at high redshifts, as shown in Figure 4 . For this study, GALEX measurements were obtained from the SDSS DR16Q catalogue, including forced-photometry UV fluxes for a subset of SDSS QSOs. We also attempted to crossmatch the DESI dataset directly with the standalone GALEX QSO catalogue ( atlee2007 ) , which contains 36\,120 sources with NUV and /or FUV fluxes. However, this yielded only 504 matches, significantly reducing the sample size, making it unusable as a training set for machine learning. As a result, we chose to use the GALEX UV fluxes available via the SDSS DR16Q catalogue, which provided broader coverage while maintaining consistency with the rest of the dataset. While a direct cross-match between the DESI quasar sample and GALEX yields only 504 high-confidence matches, the broader DxS dataset contains 24,616 sources with GALEX fluxes. This is because the GALEX photometry for DxS is sourced from the GALEX–SDSS cross-match catalogue, which includes both detections and forced photometry at SDSS positions. As such, many sources in the DxS dataset have GALEX fluxes even when no significant UV detection was made by SDSS. These fluxes often have large uncertainties or are upper-limit estimates. Although the inclusion of GALEX bands improves neural network predictions on average, the comparatively poor quality of the UV measurements likely contributes to the more modest or statistically insignificant improvements observed for the kNN model. The results highlight the importance of UV coverage for constraining redshifts, but also the need for caution when interpreting results based on noisy or uncertain fluxes. Previous studies have shown that a wide range of wavelengths is desirable for estimating photometric redshift due to the shifting of rest-frame wavelengths through filter bands ( Brescia2021 ; duncan2022 ) . The wide wavelength coverage of W1 - FUV allows us to trace rest-frame features across redshift. 2.4 Preprocessing While we do have access to the redshift quality flags summarised in Table 1 during training, we chose not to apply these filtering constraints so that the model remains applicable to real-world data where such quality indicators may be absent. We tested the effect of applying these filters in preliminary runs and found no significant difference in results, so the constraints were not used in the final training set. Before incorporating the photometric data into the training features, SDSS magnitudes and DESI fluxes were corrected for Galactic extinction using the schlafly2011 dust maps, and the data were standardised by the mean and standard deviation to ensure that the fluxes and magnitudes were comparable, enabling consistent input features for the models. Table 1 : Filtering criteria for the DxS sample and the number of sources affected by each filter. Names are as follows ( desicollaboration2023 ) : ZERR is the uncertainty in the spectroscopic redshift; ZWARN is a bitmask indicating if there are any known problems with the data or the spectroscopic fit; SPECTYPE is the spectral classification, which could be STAR , GALAXY or QSO . Filter criterion Number of sources ZERR > 0.001 25 ZWARN != 0 277 SPECTYPE != ‘QSO’ 1447 Many ML models use the u-g , g-r , r-i and i-z colours of sources in SDSS to train and validate an ML model (for example, Carliles2007 ; hoyle2015 ; Pasquet2019 ; li2022 ). Throughout this study, we use raw fluxes and magnitudes as input features for the ML models, rather than colour indices, since our previous studies have shown that the raw measurements yield comparable results ( moss2021_ML ; curran2022_incomplete ) . This approach avoids introducing additional correlations between features, and retains the direct photometric measurements, ensuring that the models are trained on the most fundamental observational data. Across this work, the choice of using fluxes or magnitudes was guided by dataset conventions and practical considerations. For the DESI and DxS datasets, fluxes are used directly as provided in the Legacy Surveys DR9 catalogue. In contrast, SDSS photometry is typically provided in asinh magnitudes, which we retain. While this means the units differ between datasets, all fluxes and magnitudes are standardised prior to model training, minimising the impact of unit differences and ensuring that fluxes and magnitudes are directly comparable. This preprocessing step prevents unit-driven bias and ensures the models remain sensitive to relative patterns rather than absolute scales. No conversion between fluxes and magnitudes was therefore necessary. This choice also preserves the numerical properties of low-S/N sources, particularly in the case of asinh magnitudes and forced photometry. The choice to work with raw fluxes and magnitudes aligns with the goal of maintaining flexibility and generality for application across various surveys and datasets. Figure 2 : The distribution of magnitudes for the DESI sample as a whole compared to those with a match in SDSS (see Section 3.2 ). The legend in each panel shows the mean magnitude and the standard deviation. While DESI fluxes are used directly for model training, the comparison in this figure is made in magnitude space to match the SDSS format. Figure 3 : The distribution of redshifts for the full DESI sample and the SDSS-matched subset. The legend in each panel shows the mean redshift, standard deviation and maximum redshift. Figure 4 : The variation of source-frame wavelength with redshift for g , r , z , W1 , W2 and GALEX bands. The coloured horizontal bands show the ‘windows’ provided by the filter ranges at the observed-frame wavelengths and the curves show those rest-frame wavelengths as a function of source redshift. The dashed red line represents the Lyman break ( \lambda=1.216\times 10^{-7} m), the green square hashed region represents the Lyman forest and the shaded cyan region shows the Big Blue Bump. The black dotted line represents the Mg ii emission line ( \lambda=2.8\times 10^{-7} m) and the green dotted line shows the 4000 ÅA break. Labels identify the bands and lines. For example, for a source at a redshift of z=5 , the FUV line ( \lambda_{\text{rest}}=1.575\times 10^{-7} m) has been shifted into the z -band. 2.5 Model Evaluation and Metrics To evaluate model performance we use the following statistics: • Correlation coefficient ( r ) of the least-squares linear fit between the predicted redshifts ( z_{\text{phot}} ) and the spectroscopic redshifts ( z_{\text{spec}} ). Perfect agreement would yield r=1 . • Explained variance (EV). Define the residuals \Delta z\equiv z_{\text{spec}}-z_{\text{phot}}. EV compares the spread of these residuals with the intrinsic spread of the true redshifts: \mathrm{EV}=1-\frac{\sigma^{2}_{\Delta z}}{\sigma^{2}_{z_{\text{spec}}}}, where the variance is \sigma^{2}_{x}=\frac{\sum_{i=1}^{N}\left(\Delta z\right)^{2}}{z_{\text{spec}}}. An ideal model has \sigma^{2}_{\Delta z}\!\to\!0 and hence \mathrm{EV}\!\to\!1 . • Normalised median absolute deviation (NMAD), a robust scatter estimator insensitive to outliers: \sigma_{\mathrm{NMAD}}=1.4826\times\mathrm{median}\!\left(\frac{|\Delta z|}{1+z_{\text{spec}}}\right). • Maximum error e_{\max}=\max\!\bigl(|\Delta z|\bigr). • Mean absolute error (MAE) \mathrm{MAE}=\frac{1}{N}\sum_{i=1}^{N}|\Delta z_{i}|. Each model was trained on 80% of the dataset, with 20% reserved for testing. Models were trained on selected features, and the models were run 100 times. A summary of the features in each dataset is given in Table 2 . Each run used its own train-test split so that the data were shuffled each time. The training utilised K-fold cross-validation, using the above metrics to quantify predictive performance. The average performance of each model across the 100 runs was computed, and the results inspected visually by comparing the z_{\mathrm{phot}} generated by each model to the z_{\mathrm{spec}} in the datasets, including their residuals, defined by \Delta z=z_{\mathrm{phot}}-z_{\mathrm{spec}} with standard deviation \sigma_{\Delta z} . Table 2 : Missing values by photometric band for each dataset. All datasets use extinction-corrected magnitudes or fluxes where applicable. GALEX fluxes include both direct detections and forced photometry. Only 504 DESI sources were matched to GALEX with reliable UV fluxes. Dataset Band Type Missing % Missing SDSS ( 750\,414 ) u mag 1,014 0.14 g mag 1,015 0.14 r mag 1,011 0.13 i mag 1,011 0.13 z mag 1,011 0.13 FUV , NUV flux 0 0.00 DxS ( 24\,616 ) g , r , z flux 0 0.00 W1 , W2 flux 0 0.00 DESI ( 87\,318 ) g , r , z flux 0 0.00 u , g , r , i , z mag 27 0.11 W1 , W2 flux 0 0.00 FUV , NUV flux 504 0.58 2.6 Neural Network In preliminary trials, several machine learning algorithms were evaluated, including Random Forest (RF), Ridge Regression (RR), Support Vector Machines (SVM), ElasticNet (EN), k-Nearest Neighbours (kNN), and a Neural Network (NN). The RF and SVM models yielded reasonably accurate predictions but were found to be prohibitively slow to train and test across the large dataset and multiple iterations required for this study. In contrast, RR and EN were computationally efficient but underperformed in terms of predictive accuracy, particularly at higher redshifts and in regions with sparse training data. Consequently, this paper focuses on the methodologies and results of the NN and kNN approaches. For the neural network, architectures with 1 to 6 hidden layers and 50 to 300 neurons per layer were explored, using ReLU activations, the Adam and AdamW optimisers, and mean squared error loss. The best configuration was selected based on the lowest RMS error on the test set. As per our previous studies ( moss2021_ML ) , the NN model used in this study, shown schematically in Figure 5 , was a fully connected NN model using K-fold cross-validation. The NN employed is constructed using the TensorFlow Keras API ( abadi2016 ; tensorflow ) , and has a fully-connected, three-layer perceptron architecture designed for regression tasks. Early stopping with a patience of 100 epochs was applied to prevent overfitting. K-fold cross-validation was employed to assess model performance, during which the data in each fold was split into training and test sets. This setup allowed for robust assessment of the model’s performance by averaging the evaluation metrics across folds. To manage computational efficiency, each fold was trained over 100 epochs with a batch size of 32. We defined our loss function as mean squared error (MSE) and used mean absolute error (MAE) as the primary evaluation metric. The model was compiled with the Adam optimiser ( kingma2017 ) , which was selected based on prior experiments for its effectiveness in handling sparse and noisy data, which can be problems in astronomical datasets. Figure 5 : Architecture of the neural network used in the NN algorithm. Blue boxes show densely-connected hidden layers, each with 200 neurons and activation functions, and with optimiser and learning rate (lr) indicated. The orange box indicates the loss function (MSE) used to measure the accuracy of the model’s training. Arrows indicate the downwards flow of information from one layer to the next. The red box indicates the output layer. Visualisation developed using Bird’s Neural Notation Convention ( bird2023 ) . 2.7 Comparison with k-Nearest Neighbours Since different ML models can learn different patterns in the same data, as part of the same study we also implemented a kNN algorithm to predict photometric redshifts. The kNN algorithm has been used in previous studies ( yuan2013 ; zhang2013a ; zhang2019 ) . This ML method is computationally less intensive than a NN, as well as being relatively simple and interpretable ( zhang2013a ) , but it can struggle with complex data and can suffer from catastrophic failures, particularly in certain redshift regimes ( han2016 ) . A NN, on the other hand, can reduce the dispersion and catastrophic outliers, providing more reliable estimates ( pasquet-itam2018 ) at the expense of being computationally more difficult. The kNN’s key hyperparameters were optimised and its performance evaluated over 100 iterations. In each iteration, the number of neighbours ( k ) was tested across values from 1 to 40, alongside systematic exploration of distance metrics (Euclidean and Manhattan) and weighting schemes (uniform or distance-based). The combination of these hyperparameters that minimised the RMS error on the test set was identified as optimal, and is listed in Table 3 . Similar investigations into the impact of distance metrics on kNN-based redshift prediction have been conducted in previous studies, such as luken2022 , who found that Mahalanobis distance performs best below z<1 . Once the optimal hyperparameters were determined for a given iteration, the kNN regressor was retrained on the training set and used to generate predictions for the test set. The residuals \Delta z=z_{\mathrm{spec}}-z_{\mathrm{phot}} were calculated, and RMS errors for each k were averaged across all iterations, providing a comprehensive assessment of the algorithm’s performance independent of specific data splits. Table 3 : Final configuration of the kNN model used in this study. These hyperparameters were selected based on grid search performance across 100 iterations, optimising for the lowest RMS error. Hyperparameter Value Distance metric Manhattan Weighting scheme distance Number of neighbours ( k ) 18 3 Results 3.1 DESI fluxes The NN and kNN were trained on the DESI dataset only, using the g , r , z , W1 and W2 fluxes as training features (see Section 2.4 ). Table 4 summarises the performance metrics, demonstrating the base level of accuracy we can achieve without invoking wavebands from other surveys. Figure 6 shows a representative sample scatterplot for one of the 100 runs of the NN using the DESI fluxes as training features, with the lower panel showing the residuals normalised by \Delta z/(1+z) . In this sample, the main cluster of points is near the 1:1 line. Some bimodality is observed in the distribution of points in the scatterplot. This likely reflects complexities in the photometric data, such as the photometric gap between the z and W1 wavebands. Importantly, the bimodality does not introduce degeneracies or significantly affect the model’s overall performance, as evidenced by the strong correlation coefficient ( r=0.8183 ) and low scatter ( \sigma_{\mathrm{\Delta z}}=0.387 ) compared to the kNN model. See Section 4.1 for a discussion on how this affects the redshift predictions. Figure 6 : Example plot showing prediction results after training the NN model on the DESI fluxes ( g , r , z , W1 , W2 ). The top panel illustrates the NN predictions, while the bottom panel shows the normalised residuals. In each plot, the solid red line represents the 1:1 relationship, and the dotted red lines indicate the 1\sigma deviation from the mean. Inset: distribution of the normalised residuals ( z_{\mathrm{phot}}-z_{\mathrm{spec}} ) plotted against redshift, with the red line indicating the line of perfect correlation. 3.2 SDSS magnitudes 3.2.1 SDSS crossmatching The spectroscopic redshifts provided by DESI and SDSS were generally in agreement; however, 107 sources displayed significant discrepancies ( |\Delta z|>0.14 ). Such mismatches are most often due to the incorrect association of QSO emission lines ( chaussidon2023 ) . In order to rule out the possibility that these are due to redshift measurements of different sources, Figure 7 shows the distribution of |\Delta z | with the source separation. While there is a grouping of outliers at |\Delta z |\gtrsim 0.14 , there is no sign of any correlation. These outliers were excluded from the training sample in order not to contaminate the sample. Lastly, to increase our confidence in the redshifts being measured for the same source, in Figure 8 we show \Delta m versus \Delta z for the DxS dataset, with red stars representing the sources for which |\Delta z|<0.14\,(\sim 1\sigma) where \Delta m is the difference between the DESI and SDSS g , r and z magnitudes. Although small differences in magnitude for matched DESI and SDSS sources are to be expected, we also considered the impact of excluding sources with large magnitude differences ( |\Delta m|>1 in g , r or z ). We repeated the analysis both with and without these sources included, and found no significant change in model performance. As a result, only the 107 sources with large redshift discrepancies were excluded from the training set. Figure 7 : z_{\mathrm{DESI}}-z_{\mathrm{SDSS}} versus the angular separation between the DESI and SDSS coordinates. Figure 8 : Top: the difference in magnitudes versus difference in redshift between DESI and SDSS measurements, with m being g , r or z . Red stars show sources for which z_{\text{DESI}}-z_{\text{SDSS}}>0.14 . Bottom: distribution of the |\Delta m| in the top row. The SDSS magnitudes ( u , g , r , i , z ) in the DxS dataset were used to train the NN as described in Section 2.4 , and Table 5 gives the averaged metrics across 100 runs of each method. Figure 9(a) shows the results of training the NN model on the SDSS magnitudes ( u , g , r , i , z ). These predictions are significantly worse than the predictions using either the DESI fluxes ( g , r , z , W1 , W2 ), or DESI complemented with GALEX fluxes ( g , r , z , W1 , W2 , NUV , FUV ), demonstrating the importance of the W1 , W2 , NUV and FUV bands. (a) Example plot showing prediction results after training the NN model on the SDSS magnitudes ( u , g , r , i , z ). The top panel illustrates the redshift predictions, while the bottom panel shows the normalised residuals. In each plot, the solid red line represents the 1:1 relationship, and the dotted red lines indicate the 1\sigma deviation from the mean. Inset: distribution of the normalised residuals ( z_{\mathrm{phot}}-z_{\mathrm{spec}} ) plotted against redshift, with the red line indicating the line of perfect correlation. (b) As for Figure 9(a) but for the DESI and GALEX fluxes g , r , z , FUV , NUV . Figure 9 : Comparison of neural network photometric redshift predictions for SDSS-only versus SDSS+GALEX fluxes. Table 4 : Average performance metrics from 100 runs of the kNN and NN models, trained on the DESI dataset ( g , r , z , W1 , W2 ), where the training and test sets are randomised for each trial. Numbers in parentheses represent uncertainties in the last reported digits. Changes refer to the increase or decrease from kNN DESI to NN DESI. Positive percentage changes indicate an increase (improvement for Corr and EV, but worsening for NMAD, ME, and MAE), and vice versa. kNN DESI NN DESI Change (%) Corr 0.7779 0.0026 0.8099 0.0044 3.95 EV 0.6046 0.0041 0.6556 0.0072 7.78 NMAD 0.2968 0.0033 0.2781 0.0078 -6.72 ME 3.5971 0.2949 3.0910 0.4633 -16.37 MAE 0.2002 0.0022 0.1876 0.0052 -6.72 Table 5 : As for Table 4 , but using the SDSS magnitudes ( u , g , r , i , z ) only. kNN SDSS NN SDSS Change (%) Corr 0.7904 0.0055 0.7770 0.0373 -1.72 EV 0.6241 0.0085 0.6028 0.0559 -3.53 NMAD 0.2634 0.0059 0.2968 0.0431 11.25 ME 2.2414 0.2821 2.1083 0.1925 -6.31 MAE 0.1776 0.0040 0.2002 0.0291 11.29 Table 6 : As for Table 4 , but using the DESI fluxes and GALEX NUV and FUV . kNN GALEX NN GALEX Change (%) Corr 0.8675 0.0044 0.9187 0.0036 5.57 EV 0.7516 0.0073 0.8434 0.0069 10.88 NMAD 0.2584 0.0046 0.1971 0.0047 -31.1 ME 2.4889 0.1423 2.1546 0.2281 -15.52 MAE 0.1743 0.0031 0.1330 0.0032 -31.05 Table 7 : Performance metrics and relative improvements computed with respect to the NN DESI baseline. Positive percentages indicate an increase (improvement for Corr and EV, but worsening for NMAD, ME, and MAE), and vice versa. NN Model kNN Model Metric DESI SDSS cf. DESI (%) DESI/GALEX cf. DESI (%) DESI SDSS cf. DESI (%) DESI/GALEX cf. DESI (%) Corr 0.8099(44) -4.23 11.84 0.7779(26) 1.58 10.33 EV 0.6556(72) -8.76 22.27 0.6046(41) 3.12 19.56 NMAD 0.2781(78) 6.30 -41.1 0.2968(33) -12.68 -14.86 ME 3.0910(4633) -46.61 -43.46 3.5971(2949) -60.48 -44.53 MAE 0.1876(52) 6.29 -41.05 0.2002(22) -12.73 -14.86 3.3 GALEX magnitudes As noted previously ( Ball2008 ; niemack2009 ; Curran2020 ; nakazono2024 ) , the inclusion of GALEX narrowband fluxes from DxS alongside DESI fluxes in the second set of features leads to notable improvements in the performance of the machine learning models for redshift predictions (Table 6 ), the GALEX bands being required to span the \lambda_{\text{rest}}=1216 ÅA Lyman break at low redshift (see Figure 4 ). The kNN and NN were trained on the g , r , z , W1 , W2 , NUV and FUV fluxes from DxS. The NUV and FUV measurements come from the SDSS catalogue (see Section 3.2 ). The inclusion of the NUV and FUV fluxes from the DxS dataset resulted in significant performance improvements for both of the NN and the kNN models. As shown in Table 6 , the NN achieves an average correlation across the 100 runs of r=0.9187\pm 0.0036 , a 5.57% increase over the kNN’s correlation of r=0.8675\pm 0.0044 . Substantial improvements are also observed in other metrics: the EV improves by 10.88%, while the NMAD and MAE decrease by 31.1% and 15.52% respectively, indicating higher accuracy and lower scatter in the NN predictions. These results demonstrate the neural network’s superior capacity to model the complex relationships in the dataset, using the additional UV fluxes for improved z_{\mathrm{phot}} predictions. Figure 9(b) shows the results of including the NUV and FUV fluxes from GALEX in the training features for the NN model. Table 7 shows the improvements in metrics across the models and datasets shown in Tables 4 , 5 and 6 to highlight the improvement when moving from one dataset to the next. Training the kNN model on GALEX fluxes as well as DESI fluxes also improves the metrics, but to a much lesser degree than the NN model. The NN trained on the DESI fluxes ( g , r , z , W1 and W2 ) is used as the baseline for each comparison, and the percentage scores are the changes shown in each metric when the SDSS magnitudes are used as training features, and when the GALEX fluxes are added to the DESI fluxes, respectively. The improvements are calculated as \frac{\text{Value}_{\rm new}-\text{Value}_{\rm NN~DESI}}{\text{Value}_{\rm NN~DESI}}\times 100. (1) Comparing the metrics from the NN model trained on SDSS to those trained on DESI, all metrics are worse with the exception of ME, which is 46.61% lower when using the SDSS magnitudes as training features. When including the GALEX fluxes along with the DESI fluxes, all metrics improve by \sim 40\% , with the exception of correlation coefficient and EV, which show improvements of 11.84% and 22.27% respectively. To ensure a fair comparison, we tested photometric redshift performance on the same DxS dataset using two sets of features: one with all SDSS bands plus WISE ( u , g , r , i , z , W1 , W2 ), and one with just the DESI bands ( g , r , z , W1 , W2 ). While the full ugrizW1W2 set gave slightly better results, shown in Table 8 , the differences are small. This suggests that the addition of u and i provides only a modest improvement over grz+W1W2 . The NIR information from the WISE bands appears to play a larger role in breaking colour-redshift degeneracies than the inclusion of the u and i bands alone. Table 8: Photometric redshift performance on the same DxS sample ( 0.12 ), these wavelengths are shifted into the W1 and W2 bands, with UV and optical features moving further into the infrared. This continuous shifting of rest-frame wavelengths across observed bands complicates photometric redshift estimation, particularly at higher redshifts where rest-frame UV features dominate. To investigate how each of the ML models operates across different redshift regimes, the DESI dataset was divided into the following redshift bins: • 0.05.0 ) was disregarded due to the very low number of sources. While the 4.00.14 . This threshold corresponds to the 1\sigma width of the residual distribution for the matched sample in Figure 12 , and was chosen to isolate only the most significant outliers. While some recent studies use 2\sigma or 3\sigma thresholds (e.g. duncan2022 ; luken2023 ), we adopt the more conservative 1\sigma definition to ensure a clean separation of the outliers from the dominant population. All of these sources come from the DxS crossmatched sample and have complete photometry across all nine bands ( u , g , r , i , z , W1 , W2 , FUV , and NUV ), as SDSS provides the optical and UV measurements, and DESI contributes the near-infrared fluxes (see Table 2 ). All nine bands were used as input features in the photometric redshift prediction models for this subset. To address the mismatches in the DESI and SDSS redshifts, we remove the 107 problematic sources and retrain our model on the remaining 24\,509 sources, using the DESI spectroscopic redshift ( z_{\mathrm{DESI}} ) as the target. Figure 13 shows a diagnostic scatterplot comparing the photometric redshift accuracy and photometric consistency for the outlier QSOs, showing that for 78 out of 107 ( \sim 73\% ) outliers, our predictions most closely match the DESI spectroscopic redshift. Each point represents an individual source, with the y-axis showing the absolute difference between the SDSS and DESI magnitudes for the source and the x-axis showing the lowest absolute difference between z_{\mathrm{phot}} and the available spectroscopic redshift from either SDSS or DESI. Objects located in the lower-left quadrant (below both medians) represent cases for which the photometric redshift is relatively accurate and the photometric measurements are consistent between the two surveys. Objects in the upper-right quadrant show larger discrepancies in both redshift and photometry. Figure 12 : Spectroscopic redshifts from SDSS and DESI for the matched sources in the DxS sample. The background colour-coded scatterplot shows the 24\,509 QSOs for which z_{\text{SDSS}}\approx z_{\text{DESI}} . The green crosses indicate sources classified as outliers which lie outside 1\sigma\sim 0.14 . The legend shows the mean and standard deviation of the residuals for the full sample. The inset displays the distribution of \Delta z=z_{\mathrm{SDSS}}-z_{\mathrm{DESI}} for the outliers only. Figure 13 : The sum of the difference in the SDSS and DESI g , r , z magnitudes versus the difference between the predicted and closest spectroscopic redshift for the outliers in Table 12 . Filled markers show the DESI z_{\mathrm{spec}} being closest and unfilled for the SDSS. The dotted lines show the median values along each axis, from which we see a concentration at |\Delta z|\mathrel{\vtop{\halign{#\cr$<$\cr\lower 1.1625pt\hbox{$\scriptscriptstyle\sim$}\cr}}}0.2 and a photometric discrepancy of \langle|\Delta m|\rangle\mathrel{\vtop{\halign{#\cr$<$\cr\lower 1.1625pt\hbox{$\scriptscriptstyle\sim$}\cr}}}0.6 in each of the g , r , z magnitudes. The discrepancies between z_{\mathrm{spec}} for DESI and those for SDSS were used as an unseen test set for the NN model. In Figure 14 we plot the spectroscopic redshifts from SDSS ( z_{\text{SDSS}} ) against those from DESI ( z_{\text{DESI}} ). The vertical axis is labelled " z_{\mathrm{comparison}} " to reflect that the plotted values may represent either SDSS spectroscopic redshifts or predicted redshifts from our model. For clarity, each data source is explicitly indicated in the figure legends. The red stars show the redshift predictions from our model plotted against the spectroscopic redshift from DESI. Figure 14 also shows that the NN model tightens up the z_{\mathrm{phot}} for the outliers, which is confirmed in the inset, which shows that the standard deviation of the residuals is now \sigma_{\mathrm{resids}}=0.04 (improved from 0.14 ). Many of the predicted redshifts are now on the line of z_{\text{SDSS}}\approx z_{\text{DESI}} . Figure 14 : Photometric redshift predictions from the NN model (red stars) for the outliers identified in Figure 12 . As in Figure 12 , the background colour-coded scatterplot shows the 24\,509 QSOs for which z_{\text{SDSS}}\approx z_{\text{DESI}} . The inset shows the distribution of \Delta z=z_{\mathrm{phot}}-z_{\mathrm{DESI}} for these predictions. The predicted redshifts cluster more tightly around the 1:1 line, with improved performance at lower redshifts, especially 10.14 , with 100 runs of the NN trained on the DESI/GALEX ( g , r , z , W1 , W2 , NUV , FUV ). The filled black markers show the DESI spectroscopic redshift, the unfilled markers the SDSS spectroscopic redshift and the stars the predicted redshift. The label gives the SDSS name of the source. The data is shown in Table 12 .