Lightning Prediction under Uncertainty: DeepLight with Hazy Loss Md Sultanul Arifin 1805097@ugrad.cse.buet.ac.bd, Abu Nowshed Sakib 1705107@ugrad.cse.buet.ac.bd, Yeasir Rayhan yrayhan@purdue.edu, Tanzima Hashem tanzimahashem@cse.buet.ac.bd Abstract Lightning, a common feature of severe meteorological conditions, poses significant risks, from direct human injuries to substantial economic losses. These risks are further exacerbated by climate change. Early and accurate prediction of lightning would enable preventive measures to safeguard people, protect property, and minimize economic losses. In this paper, we present DeepLight, a novel deep learning architecture for predicting lightning occurrences. Existing prediction models face several critical limitations: they often struggle to capture the dynamic spatial context and inherent uncertainty of lightning events, underutilize key observational data, such as radar reflectivity and cloud properties, and rely heavily on Numerical Weather Prediction (NWP) systems, which are both computationally expensive and highly sensitive to parameter settings. To overcome these challenges, DeepLight leverages multi-source meteorological data, including radar reflectivity, cloud properties, and historical lightning occurrences through a dual-encoder architecture. By employing multi-branch convolution techniques, it dynamically captures spatial correlations across varying extents. Furthermore, its novel Hazy Loss function explicitly addresses the spatio-temporal uncertainty of lightning by penalizing deviations based on proximity to true events, enabling the model to better learn patterns amidst randomness. Extensive experiments show that DeepLight improves the Equitable Threat Score (ETS) by 18%–30% over state-of-the-art methods, establishing it as a robust solution for lightning prediction. 1 Department of Computer Science and Engineering Bangladesh University of Engineering and Technology Dhaka 1000, Bangladesh 2 Purdue University West Lafayette, IN, USA 1 Introduction Lightning, a typical characteristic of severe meteorological conditions, poses significant risks including fatalities, injuries, property damage, and disruptions to electronic and aviation systems cooper2019reducing . For example, in Bangladesh, 43 people lost their lives due to lightning strikes in just eight days (May 1--8, 2024), a trend linked to climate change 1 1 1 https://www.msn.com/en-xl/asia/bangladesh/35-farmers-among-74-killed-by-lightning-in-38-days-sstf/ar-BB1m5Dm3 . Similarly, Nepal recorded 360 lightning-related deaths between 2019 and 2023, surpassing annual monsoon flood fatalities 2 2 2 https://www.scmp.com/week-asia/health-environment/article/3260581/rise-lightning-related-deaths-nepal-prompts-calls-safe-shelters-better-forecasting . Beyond direct casualties, lightning triggers wildfires and disrupts critical infrastructure. For example, in 2012, lightning-induced wildfires in the U.S. burned over 9 million acres cooper2019reducing . Hence, early prediction of lightning events is crucial, as it offers a strategic advantage in deploying preventive measures to minimize damage. In this work, we present DeepLight , a novel framework for predicting lightning based on deep learning. Predicting lightning is inherently difficult due to the highly localized, transient, and stochastic nature of the underlying atmospheric processes. Lightning typically forms in convective storms that evolve rapidly and across varying spatial scales. These storms involve strong upward air motions, known as updrafts, which lift moisture and ice particles high into the atmosphere. As these particles (such as ice, graupel, and supercooled water) collide within the storm, they transfer electrical charges. This gradual buildup of opposite charges in different parts of the cloud is known as electrification, and when the charge separation becomes strong enough, it results in a sudden discharge or lightning. However, these micro-physical processes happen within milliseconds and are not directly observable by standard atmospheric sensors. This limitation makes it challenging to forecast lightning with sufficient lead time, let alone pinpoint the exact timing and location of strikes. As a result, researchers typically rely on historical lightning records and indirect indicators such as radar reflectivity and cloud properties to support lightning forecasting raheem2023techniques . Figure 1 : Row-A: Lightning Occurrence (Ground Truth); Row-B: Flash Energy; Row-C: Flash Count; Row-D: Radar Reflectivity; Row-E: COD (Cloud Optical Depth); Row-F: CTP (Cloud Top Pressure); Row-G: CTH (Cloud Top Height from AWG Cloud Height Algorithm). Details of these parameters are discussed in Section 2 . Lightning and the associated meteorological parameters often exhibit complex spatiotemporal correlations with lightning. Some of these correlations can be observed directly in the input data (e.g., cloud cover preceding lightning in the same region). Others involve subtle or non-obvious interactions among multiple variables over space and time, which are not immediately apparent but can be learned by deep models. Identifying and modeling both types of patterns is crucial for accurate prediction. For instance, as shown in Figure 1 , cloud presence in the red region at timestamps t_{1} and t_{2} (Rows E, F, and G) precedes lightning activity in the same region at t_{3} (Row A), indicating a temporal correlation. Likewise, at a single timestamp t_{0} , elevated parameter values across a green region reflect a spatial correlation with lightning flashes. Notably, the spatial extent of these correlations is not fixed, i.e. different regions may vary in size, yet still exhibit similar spatial relationships. Figure 1 shows that the green and blue regions are different in size but show similar spatial correlations. These diverse and often complex patterns are difficult to model explicitly, thereby contributing to the overall uncertainty in lightning forecasting. Furthermore, the spatial and temporal correlation lengths for electrification proxies, such as rapid precipitation growth, are significantly shorter than those for precipitation itself, making lightning events harder to predict than other weather phenomena. Together, the lack of direct observations, reliance on imperfect proxies, dynamic and hidden correlations, and the fundamental uncertainty surrounding lightning occurrence pose major challenges to achieving accurate and reliable forecasts. Our model DeepLight is able to address these challenges effectively by learning the spatio-temporal correlations, and interdependencies between meteorological factors, and hence improving forecast accuracy. DeepLight introduces a multi-branch deep learning architecture and a neighborhood-aware loss function called Hazy Loss , each designed to tackle specific challenges in lightning prediction. The multi-branch architecture captures complex spatial structures and varying scales of meteorological influences, ensuring the model learns critical correlations between lightning occurrences and atmospheric conditions. The Hazy Loss function addresses the inherent randomness and uncertainty in lightning events by penalizing spatio-temporal deviations from the ground truth based on their proximity, encouraging the model to learn patterns that tolerate spatial and temporal imprecision. By integrating real multi-source meteorological data, including radar reflectivity, cloud properties, and historical lightning occurrences, DeepLight learns both local and large-scale patterns. Its dual encoder architecture captures the relationships between lightning parameters and meteorological observations. One encoder processes lightning parameters, while the other extracts features from meteorological data. These features are fused and processed through a decoder, with both the encoder and decoder utilizing multi-branch convolution techniques to capture spatial dependencies across varying extents. This dynamic spatial modeling capability, which is the first of its kind in lightning prediction, allows DeepLight to adapt and improve its predictions across different spatial scales. By combining these design choices, DeepLight enhances the robustness and accuracy of lightning forecasting, setting it apart as a highly effective solution to this inherently uncertain problem. Early research price1992simple ; Michalon1999 used Numerical Weather Prediction (NWP) systems to simulate various atmospheric parameters for lightning prediction using empirical functions. However, the performance of the NWP system is compromised due to its sensitivity to parameter settings. Vemuri et al. wes-7-1869-2022 demonstrated variability in NWP simulation outcomes based on different physics parameterization schemes for the same storm event. Additionally, NWP systems require significant computational resources and cannot capture spatial patterns in simulated data. The availability of real lightning observation data has spurred recent research (e.g., LightNet lightnet , ADSNet adsnet , HSTN HSTN , and LightNet+ zhou2022lightnet+ ) to integrate deep learning models alongside NWP systems. Though these models have improved prediction performance, they still fall short of meeting the demands of real-world applications. Specifically, they struggle to (i) capture the dynamic spatial context and inherent randomness of lightning events, (ii) effectively utilize real observational data on both radar reflectivity and cloud properties, and (iii) reduce dependency on Numerical Weather Prediction (NWP) systems. In this paper, we develop a novel NWP-independent model DeepLight that addresses the gaps of the existing solutions and significantly enhances lightning prediction performance. Our contributions are summarized as follows. • We propose DeepLight , a deep learning neural network architecture for lightning prediction that enhances the correlational understanding from multi-source real data and removes dependency on NWP systems for simulated data. • We identify that the extent of the neighborhood for spatial correlation is dynamic and design multi-branch convolution techniques that capture context from different spatial extents. • We introduce a novel neighbourhood-aware Hazy Loss function that enables the model to learn lightning patterns amidst high spatio-temporal uncertainty. • We demonstrate DeepLight ’s superiority over existing solutions for lightning prediction through extensive experiments, achieving up to a 30% improvement in Equitable Threat Score (ETS) for 1-hour forecasts, 18–22% for 3-hour predictions, and 8–13% for 6-hour forecasts. 2 Problem Formulation We aim to predict future lightning occurrences using historical real-world data, including lightning observations and activities, and auxiliary meteorological parameters such as radar reflectivity noaa_radar_reflectivity and cloud properties abi-cod ; abi-acha ; abi-ctp . The selection of these features is guided by the comprehensive analysis by Leinonen et al. nhess-22-577-2022 , which underscores their importance in lightning forecasting. Additionally, previous state of the art deep learning studies lightnet ; adsnet ; zhou2022lightnet+ have leveraged these parameters, either in simulated or real-world formats, to improve prediction performance. We assume that the target region is divided into an N\times N grid, where each grid cell represents a spatial unit for which lightning occurrence is predicted. Lightning Occurrence ( L_{t} ). Lightning occurrence ( L_{t} ) for a region denotes whether lightning occurs or not at t -th time-step: [t,t+1) . Lightning Activities ( A_{t} ): Lightning activities ( A_{t} ) is represented as A_{t} = [Flash Frequency, Flash Energy]. Specifically, flash frequency quantifies the number of occurred lightning flashes and flash energy measures the total energy released by lightning flashes of a region at t^{th} time-step: [t,t+1) . Radar Reflectivity ( R_{t} ): In thunderstorm clouds, charge develops through the Triboelectric Effect, caused by friction between differently sized hydrometeors illingworth1985charge . Hydrometeors of various shapes and sizes react differently to radio waves. Radar reflectivity values R_{t} provide information about these hydrometeors at t^{th} time-step: [t,t+1) , indicating the potential for charge buildup and lightning occurrences. Cloud Properties ( D_{t} ): Cloud behaves like a giant capacitor where the upper (lighter) portion of the cloud is positively charged and lower (heavier) portion is negatively charged, storing electrical energy until it is discharged as lightning. Cloud Properties are represented as D_{t} : D_{t} = [Cloud Top Height, Cloud Top Pressure, Cloud Optical Depth] for the t^{th} time-step: [t,t+1) . Cloud top height signifies the geopotential height at the top of a cloud layer, measured in feet. Cloud top pressure denotes the pressure reading at the top of a cloud layer, measured in hectopascals (hPa). Cloud optical depth refers to the vertical optical thickness of the cloud, determined by particle composition, form, concentration, and extent. Problem Definition: Given lightning observations ( L_{t} ), lightning activities ( A_{t} ), radar reflectivity ( R_{t} ) and cloud properties ( D_{t} ) for the last s time-steps (i.e., t=-s,\ldots,-2,-1 ) for each cell of an N\times N grid, the objective is to forecast the probabilistic estimate ( \hat{L}_{t} ; \hat{L}_{t}\in[0,1] ) denoting the likelihood of lightning occurrence for the future h time steps (i.e., t=0,1,2,\ldots,h-1 ) for each cell of the grid. 3 Related Works 3.1 Lightning Prediction Models Traditionally, Numerical Weather Prediction (NWP) systems have been used to forecast lightning occurrences. One of such popular NWP systems is the Weather Research and Forecasting (WRF) model powers2017weather . WRF is a mesoscale NWP system designed for atmospheric research and operational forecasting, capable of simulating a wide range of weather phenomena. Recent research has attempted to solve the lightning prediction problem in various ways. Some models incorporate machine learning techniques while relying on features derived from NWP-based simulations or real observational data. Others introduce novel loss functions or specialized deep learning modules to enhance predictive accuracy. Table 1 gives an overview of the existing work on lightning prediction and how they differ from our proposed model in terms of correlation modeling, methodologies and used features. 3.1.1 Correlation Modeling Temporal and spatial correlations are evident in lightning occurrences with varying spatial extent. Numerical Weather Prediction (NWP) systems, such as powers2017weather primarily rely on physics parameterization schemes to capture temporal correlations and simulate various atmospheric parameters, e.g., max vertical velocity and precipitation. Empirical methods like PR92 price1992simple and MNSRP99 Michalon1999 use these simulated parameters to predict lightning. However, previous studies lightnet ; adsnet ; zhou2022lightnet+ have shown that these methods have inherent limitations when it comes to capturing spatial correlations. Deep learning based approaches such as LightNet lightnet , ADSNet adsnet , HSTN HSTN and LightNet+ zhou2022lightnet+ , can model both spatial and temporal patterns in data upto a certain level. However, these models still struggle to effectively handle different spatial extent of the correlations. DeepLight significantly improves lightning prediction accuracy by effectively capturing temporal correlations and spatial correlations of varying extent. Table 1: Comparison of related studies. S : Simulated, LO : Lightning Observation, CP : Cloud Properties, RR : Radar Reflectivity, WBCE : Weighted Binary Cross Entropy Loss, MSPL : Multi-scale Pooling Loss, GD : Gaussian Diffusion Module Study Correlation Modelling Methodologies Features Temporal Spatial Spatial extent Loss func. Approach S LO CP RR PR92 price1992simple ✓ \times \times \times NWP ✓ \times \times \times MNSRP99 Michalon1999 ✓ \times \times \times NWP ✓ \times ✓ \times LightNet lightnet ✓ ✓ static WBCE NWP+CLSTM ✓ ✓ \times ✓ ADSNet adsnet ✓ ✓ static WBCE NWP+Attention+CLSTM ✓ ✓ \times \times HSTN HSTN ✓ ✓ static MSPL NWP+GD+CLSTM ✓ ✓ \times ✓ LightNet+ zhou2022lightnet+ ✓ ✓ static WBCE NWP+Attention+CLSTM ✓ ✓ \times \times DeepLight ✓ ✓ dynamic Hazy Loss MB-ConvLSTM \times ✓ ✓ ✓ 3.1.2 Methodologies Approaches in lightning prediction have evolved from traditional statistical methods to deep learning algorithms. Price and Rind price1992simple established a relationship between lightning frequency and maximum vertical velocity, introducing the PR92 lightning parameterization scheme. Later, Michalon et al. Michalon1999 proposed that lightning frequency can be represented by a power function of both the cloud top height and the cloud droplet concentration, thereby partially acknowledging the influence of micro-physical cloud properties on lightning occurrences. Prediction capabilities of such methods that solely rely on NWP systems are hampered by their inability to calibrate to the observed historical data. This problem is tackled by the deep learning methods lightnet ; adsnet ; HSTN ; zhou2022lightnet+ using hybrid neural network architecture alongside NWP systems to learn from historical lightning occurrence data. DeepLight does not use NWP systems and introduces a variant of the ConvLSTM architecture, MB-ConvLSTM to capture the context of the lightning prediction. Recent studies in the spatio-temporal prediction field have introduced specialized loss functions beyond the traditional Weighted Binary Cross Entropy (WBCE) loss to enhance model performance. For example, HSTN HSTN proposed Multi-Scale Pooling Loss, which effectively incorporates proximity to the ground truth in the loss computation. Similarly, we introduce a novel loss function, called the Hazy Loss , that addresses the spatio-temporal prediction proximity problem more smoothly and effectively. 3.1.3 Features Leinonen et al. nhess-22-577-2022 conducts an extensive study on the effects of various features on lightning, analyzing the impact of 106 different prediction variables. PR92 price1992simple utilizes simulated maximum vertical velocity as a key feature to establish a correlation with lightning frequency. Michalon et al. Michalon1999 incorporates simulated micro-physical cloud properties, such as cloud top height and cloud droplet concentration, into their model. In a more comprehensive approach, LightNet lightnet integrates a suite of simulated micro-physical parameters, i.e., ice, snow and graupel mixing ratios, simulated radar reflectivity and maximum vertical velocity derived from the WRF model, and real-world lightning observations. Both ADSNet adsnet and LightNet+ zhou2022lightnet+ follow a similar feature set to LightNet, with the notable substitution of radar reflectivity with precipitation. HSTN HSTN also uses three observational data points from weather stations: average temperature, average relative humidity, and precipitation. Since the quality of simulated data is sensitive to parameter settings, DeepLight exploits only real-world lightning observations, cloud properties, radar reflectivity for lightning prediction. 3.2 Spatiotemporal Prediction Models Spatiotemporal prediction is central to a wide range of applications, including traffic li2022deep ; liu2023spatio ; zhang2018long , mobility zhang2017deep ; zhang2018predicting ; tang2022sprnn , accident bao2020uncertainty , crime chen2023spatio , and air quality forecasting chen2024spatiotemporal ; huang2021spatio . These domains typically rely on deep learning architectures to model spatial and temporal dependencies. Foundational models like convolutional neural networks (CNNs) lecun1998gradient and recurrent neural networks (RNNs) elman1990finding provided early progress in spatial and temporal modeling, respectively. Long Short-Term Memory (LSTM) Hochreiter networks extended the temporal depth of RNNs, and ConvLSTM convlstm architectures attempted to merge spatial and temporal reasoning. However, these methods face challenges in capturing complex dependencies and uncertainty in many real-world tasks. Recent advances have addressed limitations of early CNN and RNN-based models by developing architectures tailored for complex spatiotemporal dependencies and uncertainty. Self-supervised methods like SelfWeather gong2024spatio leverage contrastive and generative objectives for robust feature learning without heavy labeling. StepDeep stepdeep employs 3D convolutions for dense spatial-temporal encoding but can struggle with stochastic phenomena such as lightning. Spiking neural networks (SNNs) combined with spatial-temporal self-attention (STS-Transformer) wang2023spatial provide asynchronous, energy-efficient modeling with enhanced relative position bias. In weather forecasting, GraphCast lam2023learning uses graph neural networks trained on reanalysis data to outperform traditional deterministic models, while Pangu-Weather bi2022pangu ; bi2023accurate integrates 3D Earth-specific transformers and hierarchical temporal aggregation, achieving strong generalization and superior cyclone tracking through extensive historical data training. For renewable energy, HSTTN zhang2023long introduces an hourglass-shaped Transformer network with skip connections and contextual fusion to jointly model hierarchical temporal scales and spatial correlations, excelling in long-term wind power forecasting. In urban systems, DMVST-Net yao2018deep combines LSTM, local CNN, and semantic views in a multi-view spatiotemporal framework, significantly improving taxi demand prediction by capturing complex nonlinear dependencies across space and time. While these spatiotemporal models have demonstrated strong performance in their respective domains, they are not directly suited to lightning prediction. Lightning events are highly localized, transient, and inherently uncertain, with longer dynamic spatiotemporal correlations than those in large-scale traffic, mobility, or weather systems. Moreover, most existing models do not explicitly address the stochastic nature of lightning formation, nor do they leverage the unique combination of real-world radar reflectivity, cloud properties, and historical lightning observations without reliance on computationally expensive Numerical Weather Prediction systems. Consequently, specialized architectures and loss functions, such as those introduced in DeepLight , are necessary to effectively capture the dynamic spatial extent and the high spatio-temporal uncertainty inherent in lightning forecasting. 4 DeepLight In this paper, we introduce DeepLight , a deep learning model for predicting lightning occurrences. The model’s improved performance is driven by its novel neighborhood-aware loss function called Hazy Loss , its multi-branch deep learning architecture, and its ability to learn from diverse, real-world meteorological observation data, including radar reflectivity, cloud properties, and historical lightning occurrences. The Hazy Loss function applies smooth scoring to manage the randomness of lightning events, penalizing spatio-temporal deviations to address key forecasting challenges effectively. This penalization scheme helps model predict more closely to the region of actual lightning occurrence. The multi-branch deep learning architecture enables the model to adaptively capture the dynamic spatial extent of meteorological phenomena. For instance, as illustrated in Figure 1 , lightning occurrence patterns often manifest in clustered formations of varying sizes (e.g., the large green box and small blue box at t_{0} ). The multi-branch approach allows the model to assign different kernel sizes to the horizontally stacked convolution layers, effectively adjusting the field of focus to accommodate variations in spatial extent, thereby enhancing its ability to capture patterns of different sizes. Figure 2 : Network Architecture of DeepLight DeepLight adopts a dual encoder-decoder architecture consisting of two encoders and a single decoder (cf. Figure 2 ). The two encoders model the lightning data, e.g., lightning occurrence, lightning flash count, intensity, and the accompanying meteorological condition data, e.g., Cloud Properties, Radar Reflectivity etc., respectively. Each encoder consists of a single convolutional stem (CStem) (cf. Section 4.1.1 ) followed by a Multi-Branch ConvLSTM (MB-ConvLSTM) (cf. Section 4.1.2 ), and generates two separate contexts representing the lightning observation and the accompanying meteorological condition. These two contexts are then fused together and fed to the decoder. The decoder consists of a convolution stem (CStem) followed by a Multi-Branch ConvLSTM (MB-ConvLSTM), the output of which is upscaled by Transposed Convolution zeiler2010deconvolutional . 4.1 Multi-Branched Approach Multi-branching inception is a deep learning design paradigm that employs multiple parallel pathways within a single module, allowing the network to process inputs through diverse transformations. This concept is broadly used in various architectures, including multi-head attention in transformers and multi-path convolutional networks in computer vision. In the context of lightning prediction, capturing spatial correlations at varying scales is crucial due to the dynamic nature of lightning clusters. To address this, our model leverages multi-branching within both CStem and MB-ConvLSTM. 4.1.1 Convolutional Stem (CStem) A convolutional stem (CStem) downsamples the input through a series of convolution operations. CStem of previous studies lightnet ; adsnet consists of multiple p\times p fixed sized convolutions layers stacked vertically (one after another). In case of lightning, this imposes a hard restriction on the radius of the influence of nearby cells on a target cell. This results in the model learning incomplete information, as lightning storms can cover distances depending on the strength of the storm. Hence, we modify the CStem and introduce MultiBranch Conv Block in it (cf. Figure 3(a) ). This block stacks multiple p\times p convolutions of different size horizontally (side-by-side) and let the network learn what convolutions to focus more. This improves the generalization capability of the network, and helps the model learn better lightning representation. Note that, even though the underlying motivation of ours matches with the Inception module of GoogleNet inception , there is a difference in the implementation details. The Inception module employs multiple convolutional filters of different sizes (e.g., 1\times 1 , 3\times 3 , 5\times 5 ) in parallel to capture features at various scales, followed by concatenation of their outputs. It also includes a dimensionality reduction step using 1\times 1 convolutions before the larger filters to reduce computational cost. In contrast, our multi-branch convolution block directly stacks multiple p\times p convolutions of different sizes side by side without preliminary dimension reduction. Each branch is followed by batch normalization and ReLU activation, and the outputs are concatenated and fused using a final 1\times 1 convolution, followed by max pooling. This design allows our model to dynamically learn the relevant spatial extent without enforcing architectural constraints like pre-activation dimensionality reduction, making it better suited for capturing variable-scale patterns in meteorological data. 4.1.2 Multi Branch Convolutional LSTM (MB-ConvLSTM) MB-ConvLSTM is built upon the standard ConvLSTM architecture but addresses a critical limitation: ConvLSTM employs a fixed-sized p\times p convolution, which restricts its ability to capture dynamic spatial dependencies. As discussed, this limitation is particularly problematic for lightning prediction, where lightning clusters vary significantly in size and shape due to complex atmospheric interactions. ConvLSTM’s fixed receptive field prevents it from effectively adapting to these variations, leading to suboptimal performance in capturing meteorological patterns of varying sizes. To overcome this, we propose MB-ConvLSTM (Figure 3(b) ), which introduces two separate but identical Multi-Branch Convolution blocks applied to Hidden state and Input , respectively to relax the rigid locality constraint of ConvLSTM. The Multi-Branch Convolution block used in MB-ConvLSTM closely resembles the one employed in our Convolutional Stem (CStem) as described in Section 4.1.1 , with a few key differences: (i) batch normalization is omitted within each branch, and (ii) the fused output from the final 1\times 1 convolution is not followed by ReLU activation or max pooling. These modifications help preserve the temporal dynamics within the recurrent unit while still enabling the model to capture spatial features across varying receptive fields. The driving equations of MB-ConvLSTM are presented as follows, where \circ and * represent the Hadamard product and convolution operation, respectively. K_{p} represents a p\times p convolution, and \mathbin{\|} represents the concatenation operation. Let \mathcal{X}_{t} , \mathcal{H}_{t} , \mathcal{C}_{t} be the input, hidden state and cell state, of MB-ConvLSTM, respectively. Let i_{t} , f_{t} , and o_{t} be the input, forget and output gates of the MB-ConvLSTM, respectively. \displaystyle\overline{\mathcal{X}}_{t} \displaystyle=K_{1}*(\mathbin{\|}_{p\in\{3,5,7,11\}}(ReLU(K_{p}*\mathcal{X}_{t}))) \displaystyle\overline{\mathcal{H}}_{t-1} \displaystyle=K_{1}*(\mathbin{\|}_{p\in\{3,5,7,11\}}(ReLU(K_{p}*\mathcal{H}_{t-1}))) \displaystyle f_{t} \displaystyle=\sigma(\left[\overline{\mathcal{X}}_{t}\right]^{1}+\left[\overline{\mathcal{H}}_{t-1}\right]^{1}+W_{cf}\circ\mathcal{C}_{t-1}+b_{f}) \displaystyle i_{t} \displaystyle=\sigma(\left[\overline{\mathcal{X}}_{t}\right]^{2}+\left[\overline{\mathcal{H}}_{t-1}\right]^{2}+W_{ci}\circ\mathcal{C}_{t-1}+b_{i}) \displaystyle\mathcal{C}_{t} \displaystyle=f_{t}\circ\mathcal{C}_{t-1}+i_{t}\circ tanh(\left[\overline{\mathcal{X}}_{t}\right]^{3}+\left[\overline{\mathcal{H}}_{t-1}\right]^{3}+b_{c}) \displaystyle o_{t} \displaystyle=\sigma(\left[\overline{\mathcal{X}}_{t}\right]^{4}+\left[\overline{\mathcal{H}}_{t-1}\right]^{4}+W_{co}\circ\mathcal{C}_{t}+b_{o}) \displaystyle\mathcal{H}_{t} \displaystyle=o_{t}\circ tanh(\mathcal{C}_{t}) Here, to determine the future state of a certain cell, the input \mathcal{X}_{t} and the hidden state of the previous time-step \mathcal{H}_{t-1} are first fed into two separate Multi Branch Convolution blocks. Each branch of a Multi Branch Convolution block consists of a different p\times p convolution, K_{p} followed by a ReLU layer. Afterwards, the output of all the branches are concatenated and fed through a 1\times 1 convolution to generate \overline{\mathcal{X}}_{t} and \overline{\mathcal{H}}_{t-1} , respectively. Now we split both \overline{\mathcal{X}}_{t} and \overline{\mathcal{H}}_{t-1} channelwise into four parts \left[\overline{\mathcal{X}}_{t}\right]^{1} , \left[\overline{\mathcal{X}}_{t}\right]^{2} , \left[\overline{\mathcal{X}}_{t}\right]^{3} , \left[\overline{\mathcal{X}}_{t}\right]^{4} and \left[\overline{\mathcal{H}}_{t-1}\right]^{1} , \left[\overline{\mathcal{H}}_{t-1}\right]^{2} , \left[\overline{\mathcal{H}}_{t-1}\right]^{3} , \left[\overline{\mathcal{H}}_{t-1}\right]^{4} . To generate forget gate value f_{t} , the gate responsible for removing some of the information from the previous time step, we run sigmoid on the summation of \left[\overline{\mathcal{X}}_{t}\right]^{1} , \left[\overline{\mathcal{H}}_{t-1}\right]^{1} and weight-biased \mathcal{C}_{t-1} . Then we move on to calculate the input gate i_{t} , the value that dictates how much new information should be added in the current timestep, in the same manner as we did for forget gate by replacing \left[\overline{\mathcal{X}}_{t}\right]^{1} and \left[\overline{\mathcal{H}}_{t-1}\right]^{1} with \left[\overline{\mathcal{X}}_{t}\right]^{2} and \left[\overline{\mathcal{H}}_{t-1}\right]^{2} . For the new information to be generated we run tanh operation on the summation of \left[\overline{\mathcal{X}}_{t}\right]^{3} , \left[\overline{\mathcal{H}}_{t-1}\right]^{3} and b_{c} , learnable parameter we call bias value. New cell value \mathcal{C}_{t} is calculated by first multiplying f_{t} with the old cell value C_{t-1} then adding together i_{t} multiplied the input information values. Now we move on to generate output gate o_{t} , which dictates how information should be let into the new hidden state value \mathcal{H}_{t} , by applying sigmoid on the summation of \left[\overline{\mathcal{X}}_{t}\right]^{4} , \left[\overline{\mathcal{H}}_{t-1}\right]^{4} and weight-biased new cell value \mathcal{C}_{t} . \mathcal{H}_{t} is now calculated simply multiplying o_{t} with the tanh ed version of the new cell state C_{t} . (a) Convolutional Stem (CStem) of DeepLight (b) Multi-Branch ConvLSTM Figure 3 : Multi-Branched approaches used in DeepLight 4.2 Fusion Module DeepLight maintains 2 encoders: Lightning Encoder encodes lightning observations, and Auxiliary Encoder encodes meteorological condition. Let Lightning Encoder handle t=-s,-s+1,\ldots,-1 timesteps of past data and generate the Lightning Cell State , \mathcal{C}^{light}_{t=-1} and the Lightning Hidden State , \mathcal{H}^{light}_{t=-1} . Likewise, the Auxiliary Cell State , \mathcal{C}^{aux}_{t=-1} and the Auxiliary Hidden State , \mathcal{H}^{aux}_{t=-1} get generated by the Auxiliary Encoder . The fusion module fuses the cell ( \mathcal{C}^{light}_{t=-1} , \mathcal{C}^{aux}_{t=-1} ) and hidden states ( \mathcal{H}^{light}_{t=-1} , \mathcal{H}^{aux}_{t=-1} ) learned from the MB-ConvLSTM of these two encoders, separately. It concatenates the states and passes them through a 1\times 1 convolution (represented as K_{1} in the following equation) followed by a ReLU layer. \displaystyle\mathcal{C}^{fused} \displaystyle=ReLU(K_{1}*(\mathcal{C}^{light}_{t=-1}\mathbin{\|}\mathcal{C}^{aux}_{t=-1})) \displaystyle\mathcal{H}^{fused} \displaystyle=ReLU(K_{1}*(\mathcal{H}^{light}_{t=-1}\mathbin{\|}\mathcal{H}^{aux}_{t=-1})) 4.3 UpScaler The UpScaler module in DeepLight is designed to reconstruct full-resolution lightning prediction frames by incrementally increasing the spatial resolution of the features generated by the decoder. It achieves this by employing a series of transposed convolutional layers, each designed to upscale the feature maps to progressively finer resolutions while preserving spatial correlations learned in the earlier stages. The UpScaler not only reconstructs the high-resolution output but also serves as the final step where the deep representations learned through the dual encoder-decoder architecture are translated into actionable predictions. 4.4 Hazy Loss Traditional loss functions for classification, e.g., Binary Cross Entropy (BCE), only account for the exact matches and mismatches, without considering for the spatial or temporal closeness of the predictions made by a model. However, lightning events are inherently uncertain, exhibiting randomness in both space and time, which makes precise point-wise prediction difficult and overly punitive when using traditional loss functions. To this end, we propose Hazy Loss , designed to explicitly tackle the spatio-temporal uncertainty in lightning prediction. It enables the model to be trained in a spatio-temporally aware fashion, where the predicted values are based on their distance from the ground truth, rather than by strict correctness alone. The key idea is to introduce a sense of neighbourhood: if a positive prediction is close to a cluster of positive ground truths but not exactly at the place of occurrence, we should penalize the model less. Likewise, when a negative prediction is far away from a ground truth positive cluster, we should not penalize it drastically. Hazy Loss infuses the spatial and temporal closeness of the predicted values by means of Gaussian blurring hummel1987deblurring . Blurring helps diffuse the closeness information far away with diminishing intensity. Let L_{0},L_{1},\ldots,L_{h-1} represent the ground truth grids corresponding to the prediction horizon of h timesteps. These grids are stacked to form a three-dimensional tensor L , which encapsulates the temporal evolution of lightning occurrences across spatial locations. We then apply Gaussian blurring on top of L and normalize it, timestep by timestep, to generate a three dimensional blurred ground truth tensor L^{blur} . Like L , we can think of L^{blur} as a tensor where L^{blur}_{0},L^{blur}_{1},\ldots,L^{blur}_{h-1} are stacked on top of each other. L^{blur} gives us the information of how close a cell is to a neighbouring positive cell. Figure 4 illustrates how Hazy Loss uses L^{blur} to penalize predictions based on their spatial proximity to actual lightning occurrences, ensuring that predictions closer to true lightning events have lower penalties, while those farther away are penalized more heavily. Figure 4 : The left image shows the ground truth L at a particular timestep, where white cells indicate the occurrence of lightning and black cells indicate no lightning. The right image displays the corresponding blurred ground truth L_{\text{blur}} , where lightning occurrence information has been diffused into neighboring cells. The red dot marks a position close to an actual lightning flash, while the orange dot represents a distant location. The blurring enables our loss function to impose a higher penalty when the model incorrectly predicts a lightning event at the orange dot than at the red dot , and vice versa for false negatives. To calculate the blurred ground truth L^{blur} from L , we first generate a 3D Gaussian kernel K_{g} . Note that the size of the kernel is an odd number such that the values at the edge of the kernel is almost zero. Let the shape of the kernel be \left(s_{x1},s_{x2},s_{x3}\right) . Then, the input tensor L is zero-padded before convolution with the Gaussian kernel K_{g} . The padding is applied symmetrically along each dimension as \left(\left\lfloor{s_{x1}/2}\right\rfloor,\left\lfloor{s_{x2}/2}\right\rfloor,\left\lfloor{s_{x3}/2}\right\rfloor\right) . The resulting padded tensor is then convolved with K_{g} to generate the blurred ground truth. The equations governing this process are provided in Equation 1 . Here, x_{1d} , x_{2d} , and x_{3d} represent the distances from the kernel center to a given kernel cell at (x_{1},x_{2},x_{3}) along their respective dimensions. The parameters \sigma_{1} , \sigma_{2} , and \sigma_{3} denote the variances along the corresponding axes, controlling the extent of the Gaussian blur. \displaystyle\left[K_{g}\right]_{x_{1},x_{2},x_{3}}=\frac{1}{\left(2\pi\right)^{\frac{3}{2}}\sigma_{1}\sigma_{2}\sigma_{3}}e^{-\frac{x_{1d}^{2}}{2\sigma_{1}^{2}}-\frac{x_{2d}^{2}}{2\sigma_{2}^{2}}-\frac{x_{3d}^{2}}{2\sigma_{3}^{2}}} (1) \displaystyle GaussianBlur_{\sigma_{1},\sigma_{2},\sigma_{3}}\left(\boldsymbol{L}\right)=K_{g}*Padding\left(\boldsymbol{L}\right) \displaystyle\boldsymbol{L^{\prime blur}}=GaussianBlur_{\sigma_{1},\sigma_{2},\sigma_{3}}\left(\boldsymbol{L}\right) \displaystyle\boldsymbol{L^{blur}_{t}}=Normalization\left(\boldsymbol{L^{\prime blur}_{t}}\right) Given, ground truth \boldsymbol{L} and prediction \boldsymbol{\hat{L}} , the Hazy Loss can be computed as follows. \displaystyle\boldsymbol{P} \displaystyle=\left(1-\boldsymbol{L_{blur}}\right)\circ\boldsymbol{\hat{L}}+\boldsymbol{L_{blur}}\circ\left(1-\boldsymbol{\hat{L}}\right) \displaystyle\boldsymbol{B} \displaystyle=-\left(\left(\boldsymbol{L}\circ\log(\boldsymbol{\hat{L}})+(1-\boldsymbol{L})\circ\log(1-\boldsymbol{\hat{L}})\right)\right) \displaystyle Loss_{\text{Hazy}} \displaystyle=\frac{1}{h\cdot N\cdot N}\left(\boldsymbol{P}\cdot\boldsymbol{B}\right) \boldsymbol{P} here is the importance factor of a cell that dictates how much of an impact the BCE loss value of that particular cell will have on the final overall Hazy Loss . After \boldsymbol{P} is calculated, we do the dot product between \boldsymbol{P} the BCE loss vector, \boldsymbol{B} (it is considered as a vector as we compute the BCE loss value of each cell individually) to get a scalar value which is weighted based on the importance factor. In this context, it is evident that when a cell is in close proximity to a lightning occurrence (spatially or temporally or both), the value of \boldsymbol{L_{blur}} is elevated. Consequently, the weight P for that cell will rely more heavily on the negative prediction ( 1-\boldsymbol{\hat{L}} ) than on the positive prediction ( \boldsymbol{\hat{L}} ). If the model prediction \boldsymbol{\hat{L}} is high (the model predicts that there is a high chance of lightning occurrence) the corresponding negative prediction ( 1-\boldsymbol{\hat{L}} ) will be low, leading to a reduced weight for the cell due to its comparatively high dependence on the negative prediction. Conversely, a lower prediction value will result in a higher ( 1-\boldsymbol{\hat{L}} ) and consequently a higher weight. In contrast, if the cell of interest is located far from a lightning occurrence, \boldsymbol{L^{blur}} will be low, while 1-\boldsymbol{L^{blur}} will be high. In this scenario, the weight P will depend more on the positive prediction ( \boldsymbol{\hat{L}} ) than the negative prediction ( 1-\boldsymbol{\hat{L}} ), with higher prediction values increasing the weight and lower prediction values reducing it. The Hazy Loss itself is not sufficient to train a model with high prediction accuracy as, by definition, it is a loss based on blurring which removes key information about lightning occurrence. Rather than serving as a standalone loss function, it acts as a complementary aid to train a ML prediction model in a spatio-temporally aware fashion. Thus, we train DeepLight model with the combination of the traditional WBCE and our proposed Hazy Loss , i.e., Loss_{\text{Total}}=Loss_{\text{WBCE}}+Loss_{\text{Hazy}} Our experiments indicate that the proposed novel loss function significantly enhances the performance not only of DeepLight but also of other machine learning-based lightning prediction models. A comprehensive discussion of these experimental results is provided in Section 5.3 . 5 Evaluation In this section, we evaluate DeepLight in experiments. Specifically in the following sections, we show the experiment settings, the comparison of DeepLight with baselines, the effect of Hazy Loss and Multi-Branching based approach, ablation studies, and case studies. 5.1 Experimental Settings 5.1.1 Dataset Due to the unavailability of the datasets used in the state-of-the-art lightning prediction models lightnet ; zhou2022lightnet+ ; adsnet , we prepare a new dataset and evaluate DeepLight and the baselines on it. We have made the dataset 3 3 3 https://doi.org/10.5281/zenodo.15324370 and code 4 4 4 https://www.github.com/arifinnasif/DeepLight publicly available. The dataset is based on a region of the USA, where lightning is more frequent. The region in contention is centered around Dallas and encompasses certain parts of Texas and Oklahoma. The latitude of the region ranges from 30.2^{\circ}N to 35.93^{\circ}N and the longitude ranges from 93.52^{\circ}W to 100.3^{\circ}W . We divide the region into a grid of 159\times 159 cells with each cell being 4km\times 4km . In our experiments, we utilize Lightning Occurrence and Activity data and Cloud Property data from the GOES satellite abi-acha ; abi-cod ; abi-ctp ; glm-lcfa , and Radar Reflectivity data from the NEXRAD radar system noaa_radar_reflectivity , all corresponding to our target region and time frame. The dataset consists of hourly observations collected from April to July for the years 2021, 2022, and 2023. Data from 2021 and 2022 are used for training ( 66.66\% ), April and May of 2023 for validation ( 16.67\% ), and June and July of 2023 for testing ( 16.67\% ). 1. Satellite Data: GOES satellite data, available via NOAA’s Open Data Dissemination (NODD) 5 5 5 https://www.noaa.gov/information-technology/open-data-dissemination , are accessed using goes-2-go from the noaa-goes16 AWS S3 bucket. We obtain cloud top height, cloud top pressure, cloud optical depth, lightning observations, lightning frequency, and flash energy, all in netCDF4 format. Data are interpolated onto a 2D grid using scipy.interpolate.griddata . Table 2 details parameter derivation from various products. 2. Radar Data: NEXRAD S-Band Doppler radars cover the U.S. We use Level 3 Long Range Reflectivity data from the Dallas Lovefield, Texas station ( NEXRAD:TDAL ), processed via MetPy 6 6 6 https://www.unidata.ucar.edu/software/metpy/ . Interpolation follows the same scipy.interpolate.griddata approach. Reflectivity values, ranging from -35dBZ to 65dBZ, are capped at zero for negative values, as per noaa_radar_reflectivity , since they are irrelevant to lightning prediction. Feature Product Variable Cloud Top Height ABI-L2-ACHA abi-acha ‘HT’ Cloud Top Pressure ABI-L2-CTP abi-ctp ‘PRES’ Cloud Optical Depth ABI-L2-COD abi-cod ‘COD’ Lightning Observation GLM-L2-LCFA glm-lcfa ‘flash_count’ Flash frequency GLM-L2-LCFA ‘flash_count’ Flash energy GLM-L2-LCFA ‘flash_energy’ Table 2 : Satellite data overview. 5.1.2 Baselines We compare DeepLight with the following baselines. • Linear Regression pearson1901liii . Linear Regression is a fundamental statistical method used to model the relationship between a dependent variable and one or more independent variables by fitting a linear equation to observed data. In our implementation, independent linear models predict lightning for each grid cell over a six-hour horizon. • ST-ResNet Zhang_Zheng_Qi_2017 . ST-ResNet utilizes convolution-based residual networks to effectively capture both nearby and distant spatial dependencies and categorizes temporal attributes into three main aspects: temporal closeness, period, and trend, each modeled by distinct residual networks. It dynamically integrates the outputs from these networks, to enhance predictive performance. In our adaptation, we use a single residual unit, as weekly and monthly trends were not prominent in the lightning data. • StepDeep stepdeep . Originally designed to predict mobility events, StepDeep as a general spatio-temporal framework employs 3D Convolutional Networks for the purpose of learning spatiotemporal features. It integrates a temporal dimension with spatial data through 3-dimensional convolutional kernels, enabling it to effectively predict events in time and space. StepDeep is implemented following the original paper. • LightNet-O lightnet . LightNet is a spatio-temporal forecasting model built solely for predicting lightning occurrences. It utilizes data from two different sources, i.e., WRF simulated data, real-world lightning observations, and employs a Dual Encoder-Decoder architecture for predicting lightning occurrences. Its variant, LightNet-O, relies solely on historical lightning observations for its forecasts and is implemented following the original paper 7 7 7 https://github.com/gyla1993/LightNet . • ADSNet-O adsnet . ADSNet leverages dual-source data (historical and NWP-based simulated) for lightning prediction, while ADSNet-O focuses specifically on historical lightning observations. Similar to LightNet, ADSNet follows an Encoder-Decoder architecture for lightning predictions. ADSNet-O is modified in our work to support a six-hour prediction horizon 8 8 8 https://github.com/geolvr/ADSNet . • DeepLight-ViT. To assess the effectiveness of attention mechanisms vaswani2017attention in modeling spatio-temporal lightning occurrences, we introduce a variant of our proposed architecture named DeepLight-ViT . In this baseline, we replace all convolutional components in the original DeepLight architecture with Vision Transformer (ViT) blocks dosovitskiy2020image . This allows us to evaluate whether self-attention can better capture long-range spatial dependencies compared to traditional convolutions. DeepLight-ViT thus serves as a transformer-based counterpart to our CNN-based model, enabling a comparative analysis of attention-driven and convolution-driven representations in the context of lightning forecasting. We replace the convolutional stem with a ViT block in our implementation. We exclude NWP-based baselines as studies have consistently demonstrated that Numerical Weather Prediction (NWP) systems are significantly less effective than deep learning-based models (e.g., LightNet-O, ADSNet-O) lightnet ; adsnet ; zhou2022lightnet+ . Since DeepLight outperforms both LightNet-O lightnet and ADSNet-O adsnet , it is evident that it also surpasses NWP systems by a considerable margin. Furthermore, implementing NWP systems requires substantial computational infrastructure and resources, limiting their accessibility, particularly in developing countries. This reinforces the necessity of lightweight, efficient models like DeepLight , which address the shortcomings of NWP systems by leveraging multi-source real-world data, such as radar reflectivity and cloud properties, instead of relying on computationally intensive simulated data. DeepLight ’s architecture and novel loss function are specifically designed to overcome the spatio-temporal prediction challenges inherent in traditional NWP approaches. Exact settings of all the baselines used can be found in our codebase 9 9 9 https://github.com/arifinnasif/DeepLight . We exclude the Hierarchical Spatiotemporal Network (HSTN) HSTN as a baseline due to the lack of publicly available code and reproducibility concerns. 5.1.3 Evaluation Metric We evaluate the baselines and DeepLight on the following five metrics. Among them, Equitable Threat Score (ETS, for short) is the most important for lightning prediction. ETS adjusts for chance and accounts for the rarity of lightning events, offering a fairer and more reliable performance measurement over rest of the metrics. • POD (Probability of Detection) measures the ratio of correctly predicted lightning events to the total number of observed lightning events. • FAR (False Alarm Rate) measures the ratio of incorrectly predicted lightning events to the total number of predicted lightning events. • ETS (Equitable Threat Score) measures the accuracy of lightning event predictions while adjusting for hits that could occur purely by chance. Let N denote the total number of grids, and TP , FP , FN , TN denote the True Positives, False Positives, False Negatives and True Negatives, respectively. It is defined as ETS = \frac{TP-R}{N-TN-R} , where R=\frac{(TP+FP)(TP+FN)}{N} • MicroF1 computes the harmonic mean of precision and recall by globally counting the total true positives, false positives, and false negatives across all prediction instances. • MacroF1 computes the F1 score separately for both the lightning and no-lightning classes and then averages them. Macro F1 gives equal importance to lightning and non-lightning predictions, making it well-suited for imbalanced settings where rare event detection is critical. 5.1.4 Training Details & Hyperparameters The model is implemented using PyTorch 2.3.0 and is trained for 200 epochs with a learning rate of 0.0001 on a system configured with 64-bit Windows Server with Intel Xeon Silver 4214R 2.40GHz CPU, 384GB memory, NVIDIA Tesla V100 GPU with 32GB VRAM. The variance values for Gaussian blurring are set to 19.21 for spatial dimensions and 0.96 for temporal dimensions. Additionally, the positive weight for the WBCE loss function is set to 20 . We selected the model with highest validation ETS score. Table 3 : Comparison of DeepLight with baselines. \delta_{ETS}(\%) measures the performance improvement of DeepLight relative to the model listed in each row. POD (Probability of Detection) and FAR (False Alarm Ratio) are also reported. While a high POD with a low FAR indicates good performance, the ETS (Equitable Threat Score) provides a more balanced metric that accounts for both hits and false alarms, avoiding issues with extreme POD or FAR values. 1 hour Cumulative Score Method Strict Metric Neighb.-Based Metric POD FAR ETS MicroF1 MacroF1 \delta_{ETS}(\%) POD FAR ETS MicroF1 MacroF1 \delta_{ETS}(\%) Linear Regression 0.120 0.988 0.001 0.021 0.481 >100 0.235 0.970 0.007 0.053 0.475 >100 ST-ResNet 0.631 0.980 0.010 0.038 0.424 >100 0.992 0.977 0.001 0.045 0.061 >100 StepDeep 0.810 0.753 0.225 0.378 0.682 17.8 0.913 0.564 0.408 0.589 0.789 6.9 LightNet-O 0.846 0.777 0.206 0.352 0.668 28.6 0.935 0.604 0.375 0.556 0.771 16.3 ADSNet-O 0.845 0.777 0.206 0.352 0.668 28.6 0.922 0.607 0.369 0.550 0.768 18.2 DeepLight-ViT 0.609 0.848 0.131 0.243 0.613 50.6 0.573 0.709 0.227 0.386 0.684 51.0 DeepLight 0.758 0.703 0.265 0.427 0.708 x 0.869 0.494 0.463 0.640 0.816 x 3 hours Cumulative Score Linear Regression 0.735 0.981 -0.005 0.036 0.083 >100 0.914 0.959 -0.003 0.079 0.054 >100 ST-ResNet 0.821 0.972 0.005 0.055 0.267 >100 0.999 0.956 0.001 0.085 0.042 >100 StepDeep 0.553 0.703 0.224 0.386 0.682 25.0 0.701 0.524 0.379 0.566 0.773 15.6 LightNet-O 0.708 0.727 0.228 0.393 0.683 22.8 0.826 0.567 0.377 0.567 0.773 16.2 ADSNet-O 0.706 0.716 0.237 0.404 0.689 18.1 0.806 0.558 0.380 0.570 0.774 15.3 DeepLight-ViT 0.507 0.766 0.177 0.321 0.649 36.8 0.471 0.614 0.249 0.424 0.699 43.2 DeepLight 0.631 0.644 0.280 0.455 0.718 x 0.741 0.462 0.438 0.624 0.805 x 6 hours Cumulative Score Linear Regression 0.975 0.959 -0.001 0.080 0.052 >100 0.997 0.927 0.000 0.137 0.070 >100 ST-ResNet 0.926 0.957 0.001 0.083 0.133 >100 0.999 0.926 0.001 0.137 0.068 >100 StepDeep 0.352 0.668 0.184 0.341 0.656 31.0 0.485 0.485 0.311 0.499 0.737 17.7 LightNet-O 0.514 0.693 0.212 0.384 0.673 13.7 0.651 0.531 0.347 0.544 0.757 5.5 ADSNet-O 0.510 0.676 0.222 0.396 0.680 8.6 0.624 0.517 0.347 0.544 0.757 5.5 DeepLight-ViT 0.364 0.736 0.160 0.306 0.637 33.7 0.344 0.584 0.204 0.377 0.669 44.3 DeepLight 0.456 0.616 0.241 0.417 0.694 x 0.563 0.444 0.366 0.559 0.768 x 5.2 Comparison with Baselines Table 3 presents a comparative analysis of DeepLight ’s performance against the baseline models. The evaluation considers three prediction horizons: one hour, three hours and six hours. For each interval, we show their performance using both strict and neighborhood-based metrics to compute the values of true positives, false positives, true negatives, and false negatives. In the strict setting, a lightning event is considered correctly predicted only if it occurs within the exact predicted grid cell. In contrast, the neighborhood-based metric relaxes this condition by also treating predictions as correct if the event falls within any of the eight adjacent grid cells. ETS is a more effective metric for lightning prediction, as it accounts for hits, misses, false alarms, and correct rejections, offering a balanced and comprehensive evaluation of model performance. Among existing models, LightNet-O lightnet and ADSNet-O adsnet achieve the highest ETS scores, outperforming other baselines such as StepDeep stepdeep , ST-ResNet Zhang_Zheng_Qi_2017 , and Linear Regression across all prediction horizons. DeepLight significantly outperforms these strong baselines, achieving the highest ETS across all prediction horizons for both strict and neighborhood-based metrics, with the performance gain being especially pronounced for short-term forecasts. Although LightNet-O lightnet and ADSNet-O adsnet report higher POD values than DeepLight , their substantially higher FAR diminishes their overall effectiveness. By effectively balancing POD and FAR, DeepLight achieves a markedly superior ETS. Furthermore, in terms of both Micro-F1 and Macro-F1 scores, DeepLight consistently outperforms all baseline models, including LightNet-O lightnet and ADSNet-O adsnet , across all prediction horizons and evaluation settings. Linear Regression is inferior to other models in most metrics because its simple design fails to capture the complex nature of lightning. While ST-ResNet Zhang_Zheng_Qi_2017 exhibits high POD values, it is evident that its FAR is nearly 100%. This indicates that ST-ResNet Zhang_Zheng_Qi_2017 predicts a lightning hit (binary value 1) in all grid cells, suggesting that it is not capable of effectively analyzing lightning data and cannot accurately forecast lightning. StepDeep stepdeep outperforms both LightNet-O lightnet and ADSNet-O adsnet for the one hour predictions in all the metrics except POD. However, as the prediction horizon increases, StepDeep’s stepdeep performance declines due to its reliance on convolutional filters, which are less effective than recurrent units at capturing long-range temporal dependencies. DeepLight-ViT vs DeepLight: As shown in Table 3 , the attention-based baseline DeepLight-ViT performs worse than the convolution-based DeepLight architecture. DeepLight-ViT struggles to capture the complex spatio-temporal patterns characteristic of lightning prediction. Several factors contributed to this outcome. Firstly, the core strength of DeepLight lies in its simplistic design, which facilitates better generalization. The inclusion of attention mechanisms added significant complexity to the architecture, potentially leading to overfitting on limited training data. This trade-off between model expressiveness and generalization underscores the effectiveness of our minimalist design philosophy. Second, transformer-based attention mechanisms are computationally intensive and typically require large-scale datasets to reach their full potential. Although our dataset is rich, it may lack the scale or diversity necessary to fully leverage transformer capabilities. Table 4 : Impact of Hazy Loss on Strict ETS Metric Across Different Prediction Horizon on Various Models Model 1 hour 3 hours 6 hours WBCE Loss only with Hazy Loss \delta(\%) WBCE Loss only with Hazy Loss \delta(\%) WBCE Loss only with Hazy Loss \delta(\%) LightNet-O 0.206 0.234 13.6% 0.228 0.258 13.2% 0.212 0.225 6.10% ADSNet-O 0.206 0.247 19.9% 0.237 0.268 13.1% 0.222 0.232 4.50% DeepLight 0.225 0.265 17.8% 0.249 0.280 12.4% 0.223 0.241 8.10% 5.3 Hazy Loss as a Generalized Loss Function In this study, we evaluate the impact of Hazy Loss on the ETS metric for 1-hour, 3-hour and 6-hour prediction horizons across different models. The performance is compared with the traditional Weighted Binary Cross Entropy (WBCE, for short) Loss. Table 4 shows the ETS scores of each model under both loss functions, along with the percentage improvement (\delta) achieved using Hazy Loss . The table demonstrates that Hazy Loss consistently improves the ETS scores across all models and prediction horizons compared to WBCE Loss, validating the effectiveness of Hazy Loss in enhancing model performance for lightning prediction tasks. Specifically: for the 1-hour prediction horizon, improvements range from 13.6\% to 19.9\% . For the 3-hour prediction horizon, improvements range from 12.4\% to 13.2\% . Lastly, for the 6-hour prediction horizon, improvements range from 4.5\% to 8.1\% . Figure 5 : (a) Strict-metric ETS illustrating the effect of Multi-Branching; (b) Strict-metric ETS for different ablated model versions across various prediction horizons. 5.4 Impact of Multi-Branching Figure 5 a presents the impact of multi-branching on DeepLight ’s prediction capability. We evaluate a variant of DeepLight in which all additional branches are removed from both the Convolutional Stem and the LSTM. This variant of DeepLight is unable to capture spatial correlation in multiple extent and thus has poor performance. The ETS score for 1, 3 and 6 hours are 0.262 , 0.272 and 0.229 , which are 1.13\% , 2.86\% and 4.98\% worse than that of DeepLight , respectively. We also evaluate another variant of DeepLight in which every multi-branching block (in both the Convolutional Stem and the LSTM) is replaced with the Inception Block from GoogLeNet inception . This model also under-performs, as the Inception architecture is not well-suited to our specific use case. It has an ETS score of 0.228 , 0.241 and 0.218 for 1, 3 and 6 hours, respectively. 5.5 Ablation Study: Impact of individual features We perform an ablation study to assess the contribution of individual features by selectively removing them and evaluating its impact on DeepLight ’s performance. We evaluate the following three DeepLight variants. • DeepLight-D (L+R) excludes cloud property features (D). • DeepLight-R (L+D) excludes radar reflectivity features (R). • DeepLight-L (R+D) excludes lightning-related features, i.e., lightning observations (L) and activities (A). • DeepLight excludes no feature. This is the original model which is trained on all features, i.e. cloud properties, radar reflectivity, and lightning data. Figure 5 b shows that DeepLight consistently achieves the highest ETS across all prediction intervals, highlighting the importance of all features. Removing lightning features ( DeepLight-L ) results in the most significant performance drop across all intervals (e.g., a 44.14\% drop at 1-hour horizon), highlighting its critical role. Removing cloud properties ( DeepLight-D ) reduces ETS by 16.25\% at 1 hour, 8.17\% at 3 hours, and 2.76\% at 6 hours, while removing radar reflectivity ( DeepLight-R ) reduces ETS by 16.52\% , 7.83\% , and 1.65\% , respectively. This shows that cloud properties and radar reflectivity play more significant roles in short-term predictions, improving performance by over 16\% in the 1-hour horizon (a) A diminishing thunderstorm (b) A steady thunderstorm with multiple clusters Figure 6 : Predictions from different models across time steps. Each column corresponds to a specific time step, with the leftmost column representing t=0 , followed by t=1 , and so on up to the rightmost column at t=5 5.6 Case Study Figures 6(a) and 6(b) present the predictions of StepDeep stepdeep , LightNet-O lightnet , ADSNet-O adsnet , and DeepLight compared to the actual ground truth. In Figure 6(a) , we observe a thunderstorm that diminishes over time. Although all models perform well during the first hour, DeepLight exhibits the best performance with the fewest false alarms. As predictions extend further into the future, the performance of each model diverges from the ground truth. For StepDeep stepdeep , the predicted lightning occurrence region remains unchanged, with increasing uncertainty over time. ADSNet-O adsnet and LightNet-O lightnet fail to accurately predict lightning locations, as they forecast lightning strikes across all cells in the final hours. In contrast, DeepLight accurately predicts the storm’s decreasing intensity. In another scenario depicted in Figure 6(b) , the storm maintains consistent strength throughout the six-hour prediction period, with lightning scattered across the region in various-sized clusters. Similar to the previous scenario, StepDeep’s stepdeep positive prediction region remains static, with only the prediction probability changing. ADSNet-O adsnet and LightNet-O lightnet expand their positive prediction regions but reduce intensity and fail to focus on the number of lightning spots. DeepLight , however, successfully predicts multiple small lightning spots over an extended duration. The key strength of DeepLight lies in its ability to minimize false alarms, particularly during the first hour of prediction, which closely matches the ground truth. 6 Conclusion In this paper, we introduce DeepLight , a deep learning model for lightning prediction that departs from the conventional numerical approach. It features a multi-branch ConvLSTM architecture that extracts spatial correlations from neighborhoods of varying radius. Additionally, DeepLight incorporates a novel neighborhood-aware loss function that penalizes lightning predictions based on their spatio-temporal distance from the ground truth. Our experiments utilize real-world lightning and auxiliary data (i.e., radar reflectivity and cloud properties) derived from GOES satellite and NEXRAD radar. DeepLight outperforms state-of-the-art models in lightning prediction, showing significant ETS improvements: 30% for 1-hour, 18–22% for 3-hour, and 8–13% for 6-hour horizons. Incorporating Hazy Loss into training further boosts accuracy over the traditional weighted BCE loss, resulting ETS gains of 17.8%, 12.4%, and 8.10% for 1, 3, and 6 hours, respectively. These results highlight the importance of Hazy Loss in enhancing DeepLight ’s performance.