Solar forecasting models are least reliable when the sun is low: early morning, late afternoon, winter, and high latitudes. At those times sunlight crosses far more atmosphere, more of it arrives scattered rather than direct, and satellite-based irradiance products are known to overestimate what reaches the ground. These are also the hours when solar output ramps up and down fastest, which makes them hard for grid operators. This note argues that two problems overlap here. The first is the loss function itself. Mean absolute error measured in watts per square metre gives low-sun hours almost no weight, because the signal there is small. The second is the averaging behaviour of distance losses, which flattens the sharp, short-lived swings in the forecast. Speech enhancement has a tested remedy for the second problem. It reweights the loss across frequency bands according to how much each band matters, and it sharpens the training target so the network stops predicting blurry averages.
The proposal is a forecasting loss that works in the frequency domain of the forecast time series. Its band weights depend on the solar zenith angle (the angle between the sun and straight overhead) and are estimated from data, not borrowed from human hearing. The method will be judged on the low-sun hours and ramps where current models fail. It is built so that the cheap fixes are tested first: normalizing by clear-sky irradiance, feeding the angle as an input, and reweighting low-sun samples. If those fixes match it, we will say so.
Core Claim
Our claim is that a large share of the high-zenith forecasting error is not a constant offset. It is lost high-frequency content: the forecast's variability at periods of minutes to a couple of hours shrinks more as the sun drops. If that is true, two cheap fixes will both fall short. Correcting the level, either by predicting the clear-sky index (measured irradiance divided by modelled cloud-free irradiance) or by bias-correcting per angle bin, cannot restore missing ramps. Reweighting samples by angle cannot restore them either, because inside each upweighted sample the loss still rewards the mean. A loss that compares forecast and truth band by band, with more weight on the bands the model systematically flattens at a given zenith angle, should restore that variability. It should do so without the hyperparameter fragility of a learned mask network.
The claim has a diagnostic step that can falsify it. If the measured spectral shrinkage of a strong baseline does not grow with zenith angle, the frequency component is unnecessary, and the project reduces to clear-sky normalization plus reweighting.
Grounding in Prior Work
The motivation comes from remote sensing. Xu and Mao compared Himawari-8 and MODIS surface radiation products with ground radiometers in Beijing. Both overestimate at low solar elevation, with Himawari-8 hourly RMSE of 86.58 W·m⁻² and a bias of +51.79 W·m⁻². Devasthale et al. show that low sun angles create wintertime gaps and large uncertainty in the CLARA-A3 surface solar radiation record. Zhu et al. show, for limb ozone retrieval, that a large zenith angle amplifies errors from secondary parameters such as aerosols and albedo. That is a reason to expect error structure, not just error size, to change with angle.
Retrieval work handles the angle by look-up tables or exclusion. Jiang et al. build band-ratio tables over solar and view angles with the 6S radiative transfer model. Li et al. discard MODIS snow observations beyond a 22.37° sensor angle and refill them from neighbouring days. Hassinen et al. and Koukouli et al. report retrieval degradation beyond roughly 70–80° zenith. None of these touches how a learned model is trained. They constrain the proposal only by telling us where to stratify evaluation.
The closest learned system is CrossViViT, described in Improving day-ahead Solar Irradiance Time Series Forecasting by Leveraging Spatio-Temporal Context and its preprint What if We Enrich day-ahead Solar Irradiance Time Series Forecasting with Spatio-Temporal Context?. It fuses EUMETSAT satellite video with ground time series from the Baseline Surface Radiation Network (BSRN) and trains with MAE and quantile losses. The authors report a clear-sky bias. We reuse this architecture and its released code unchanged, and alter only the training objective and target representation.
The method comes from speech enhancement, and specific papers there shape specific design choices.
- Target sharpening. Perceptual Contrast Stretching sharpens the training target so that distance losses stop producing muffled spectra. It raised a causal Transformer from 2.76 to 3.07 PESQ on VoiceBank-DEMAND with no change to inputs. This is the closest evidence that changing the objective beats adding context.
- Matching inputs and targets. Khan et al. found that contrast stretching must be applied to both inputs and targets to avoid a distribution mismatch. We adopt that as a design constraint.
- Learned masks. Zhao et al. replace fixed weighting curves with a learned mask predictor. They also report sensitivity to mask dimension and stabilizing constants. That is why we estimate our weights from residual statistics instead of learning a mask network.
- Fixed importance curves. The band-importance work (Chao et al., Xia et al.) fixes the curve from human hearing studies. We do not import any auditory constants, only the idea of a measured importance curve.
Research Program
Everything is computed on the clear-sky index series $k(t)$ over the forecast horizon. This choice removes the trivial dependence of irradiance on solar geometry, so that whatever angle effect remains is the scattering-driven part. A multi-level discrete wavelet transform splits each series into bands $b$, from 15-minute to multi-hour periods. Wavelets are used instead of a short-time Fourier transform because forecast windows are short and non-stationary across the day. The training loss is
$$ \mathcal{L} = \sum_{t}\sum_{b} w_b(\theta_t)\,\big|W_b[\hat{k}](t) - W_b[k](t)\big| \;+\; \lambda\,\mathcal{L}_{\text{quantile}}, $$
where:
- $W_b[\cdot](t)$ is the wavelet coefficient in band $b$ at time $t$;
- $\hat{k}$ and $k$ are the forecast and observed clear-sky index;
- $\theta_t$ is the solar zenith angle at time $t$;
- $\mathcal{L}_{\text{quantile}}$ is CrossViViT's original quantile loss, kept so that probabilistic outputs survive;
- $\lambda$ balances the two terms.
The weights are set from a reference model's spectral shrinkage. We first train the clear-sky-index baseline. On a validation split we then compute, for each zenith bin and band, the ratio $s_b(\theta)$ of forecast wavelet energy to observed wavelet energy, and set
$$ w_b(\theta) \propto \min\big(s_b(\theta)^{-\alpha},\, w_{\max}\big), $$
where:
- $\alpha$ controls how strongly flattened bands are boosted;
- $w_{\max}$ caps the weight so that pure-noise bands are not chased;
- $s_b(\theta)$ is linearly interpolated between zenith bins.
This plays the role of a band-importance curve, but it is measured from the failure we want to fix. It adds two hyperparameters, compared with the mask network and stabilizers of Zhao et al..
A second, separable ingredient is zenith-dependent contrast stretching. A monotone gamma-type map is applied to the high-frequency wavelet coefficients of both the input station history and the target. Its strength grows with $\theta$. It is applied symmetrically, following Khan et al., and inverted at inference time.
The work has three stages:
- Diagnostic. Measure $s_b(\theta)$ and per-band error for the published CrossViViT configuration and for the clear-sky-index baseline across all BSRN stations.
- Weighted loss. Train with the weighted spectral loss.
- Contrast stretching. Add the stretching and test whether it contributes beyond the weights.
Baselines
Naive reference points. The do-nothing reference is CrossViViT as released in gitbooo/CrossViVit, trained with its original loss on raw irradiance. The reported number to beat is an MAE of 50.35 at the cloudy CAB station, against 54.91 for the best time-series-only model, from Boussif et al.. Clear-sky persistence is included as a floor. We reproduce the 50.35 first. Any comparison uses our reproduced number, trained on the same stations, years, and splits.
Strongest competitor. The strongest competitor is CrossViViT trained on the clear-sky index, with the cosine of the zenith angle as an extra input channel and per-sample loss weights rising with zenith angle. The weights are tuned over the same budget as our $\alpha$ and $w_{\max}$, with an equal number of configurations and equal GPU hours. It is the strongest because it fixes both the low weight given to low-sun hours and the geometry dependence using standard tools. No reported result was found on Lacuna for this configuration on BSRN, so we establish it ourselves. A post-hoc per-zenith-bin quantile-mapping bias correction, fitted on validation data, is applied on top of it as a further variant.
What counts as beating it. Beating the strongest competitor means two things together. The first is a statistically significant reduction, by block bootstrap over days, in MAE for zenith angles above 75° and in ramp-detection error. The second is overall MAE no worse than the competitor's. Lower error in the low-sun bins bought with a worse overall MAE does not count.
Ablations. Ablations isolate the key ingredient. The first uses the spectral loss with $w_b$ constant across angle; this tests frequency weighting without zenith conditioning. The second uses zenith-conditioned weights applied in the time domain instead of per band. The third adds contrast stretching applied to targets only, to test the symmetry finding. The fourth uses weights from the second-pass model instead of the first, to check whether the procedure is stable.
Why not just…?
Why not just feed the zenith angle as an input? It is included inside the strongest baseline, not dismissed. The argument against it being sufficient is that inputs do not change what the loss rewards. The contrast-stretching gains reported by Chao et al. came with unchanged inputs. Operational products that already model solar geometry still show high-zenith overestimation (Xu and Mao). That is suggestive, not decisive, since those are retrievals rather than forecasts. The comparison of the strongest baseline against the angle-conditioned spectral loss settles the question.
Why not just predict the clear-sky index and bias-correct per angle? This is the most serious threat. If the high-zenith error is mainly a level offset, it will work as well as our method, and the diagnostic will show it: $s_b(\theta)$ near 1 across angles. In that case we report the negative result and recommend the simpler pipeline. Our method only earns its place if shrinkage grows with angle and bias correction leaves the ramp error unchanged.
Why not just discard high-zenith hours and fill gaps, or correct with a radiative transfer model? Discarding hours, as Li et al. do, removes exactly the ramp hours a forecast is needed for. Devasthale et al. show that low-sun exclusion leaves long winter gaps. Radiative transfer correction needs an atmospheric state that is poorly known. At high zenith, errors in that state are amplified (Zhu et al.). It also corrects retrievals, not forecasts. We report the coverage lost under a 75° cutoff as context, not as a competitor.
Proposed Experiments
Data and splits. All runs use the BSRN plus EUMETSAT dataset from Boussif et al., covering 2008–2022 across six stations. Splits are by year, and the paper's zero-shot unseen-station protocol is kept.
Metrics. Every metric is reported overall and stratified by zenith angle: below 60°, 60–75°, and above 75°.
- MAE in W·m⁻², and MAE in clear-sky-index units.
- Ramp detection F1, where a ramp is a clear-sky-index change above 0.3 within 30 minutes.
- The per-band energy ratio $s_b$.
- Prediction-interval coverage, compared against the reported "over 0.90" zero-shot coverage.
- The "Easy" and "Hard" day partition from that paper, used to separate clear-sky bias from cloudy-day ramps.
Decisive checks. There are three, in order:
- Diagnostic gate. Does baseline shrinkage of high-frequency bands increase with zenith angle? If not, stop.
- Main comparison. Does the angle-conditioned spectral loss beat the tuned clear-sky-index plus reweighting plus bias-correction baseline on high-zenith MAE and ramp F1? Overall MAE must not worsen, and coverage must not drop below 0.90.
- Ablations. Does conditioning on angle matter, shown by beating constant $w_b$? Does contrast stretching add anything beyond the weights?
Transfer check. A secondary run applies the trained model to an unseen high-latitude BSRN station. It tests whether $w_b(\theta)$ transfers, or must be re-estimated per site, which would limit practical use.
References
- Evaluation of Two Satellite Surface Solar Radiation Products in the Urban Region in Beijing, China
- Leveraging the satellite-based climate data record CLARA-A3 to understand the climatic trend regimes relevant for solar energy applications over Europe
- Sensitivity Analysis of Ozone Profiles Retrieved from SCIAMACHY Limb Radiance Based on the Weighted Multiplicative Algebraic Reconstruction Technique
- A Simple Band Ratio Library (BRL) Algorithm for Retrieval of Hourly Aerosol Optical Depth Using FY-4A AGRI Geostationary Satellite Data
- Impact of Sensor Zenith Angle on MOD10A1 Data Reliability and Modification of Snow Cover Data for the Tarim River Basin
- Overview of the O3M SAF GOME-2 operational atmospheric composition and UV radiation data products and data availability
- Geophysical validation and long-term consistency between GOME-2/MetOp-A total ozone column and measurements from the sensors GOME/ERS-2, SCIAMACHY/ENVISAT and OMI/Aura
- Improving *day-ahead* Solar Irradiance Time Series Forecasting by Leveraging Spatio-Temporal Context
- Perceptual Contrast Stretching on Target Feature for Speech Enhancement
- Exploiting Consistency-Preserving Loss and Perceptual Contrast Stretching to Boost SSL-Based Speech Enhancement
- Improve Speech Enhancement using Perception-High-Related Time-Frequency Loss
- Speech enhancement with weighted denoising auto-encoder