Residual correction irradiance inversion method, device and medium based on historical clear sky index state
By constructing a residual-corrected irradiance inversion method based on historical clear sky index status, and utilizing a histogram gradient boosting regression model and a residual correction model, the problem of insufficient utilization of historical information in satellite irradiance inversion is solved, and stable and accurate irradiance inversion under complex weather conditions is achieved.
Patent Information
- Application Number
- CN202610951963.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-29
- Publication Date
- 2026-11-27
Smart Images

Figure CN123178953A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of solar irradiance remote sensing inversion technology, and in particular to a residual correction irradiance inversion method, equipment and medium based on historical clear sky index status. Background Technology
[0002] Surface solar irradiance, especially total horizontal irradiance (GHI), is a crucial fundamental parameter for photovoltaic resource assessment, photovoltaic power prediction, and microgrid dispatching. Among related technologies, a surface irradiance retrieval system has been constructed through the collaborative operation of satellite remote sensing observations, clear-sky irradiance models, and machine learning methods.
[0003] However, current satellite irradiance inversion schemes directly use the current satellite window features for CSI inversion, failing to effectively utilize historical cloud state evolution information. This can lead to systematic biases in samples with rapid cloud state transitions, partial cloudy conditions, and cloud-clear boundaries, thus affecting the stability and accuracy of irradiance inversion. Furthermore, while directly stitching together original satellite pixels from multiple time points or using end-to-end deep time-series models such as LSTM can incorporate historical information, limitations include high feature dimensionality, complex training, and insufficient physical interpretability, making stable application difficult in real-world deployment scenarios with limited sample sizes. Summary of the Invention
[0004] This application aims to at least partially address one of the technical problems in the related art.
[0005] Therefore, the first objective of this application is to propose a residual-corrected irradiance inversion method based on historical clear sky index conditions.
[0006] The second objective of this application is to propose an electronic device.
[0007] The third objective of this application is to provide a computer-readable storage medium.
[0008] To achieve the above objectives, the first aspect of this application is to propose a residual-corrected irradiance inversion method based on historical clear sky index conditions, comprising the following steps:
[0009] Acquire satellite multi-channel observation data, solar geometric data, time data, station measured data, and clear-sky horizontal total irradiance data at the target time and historical times to construct a sample dataset; The sample dataset is preprocessed, and a basic clear sky index inversion model based on histogram gradient boosting regression is constructed using the preprocessed sample dataset. The basic clear sky index inversion value is output, and the basic irradiance inversion value is recovered by combining the clear sky horizontal total irradiance. The same basic clear sky index inversion model is used to invert the target time and multiple historical times to obtain the clear sky index and irradiance state sequence, and low-dimensional historical state features are constructed based on the state sequence. A residual correction model is constructed, using the low-dimensional historical state features as input and the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target for training. The residual inversion value at the target time is output, and the final irradiance inversion result at the target time is obtained by combining the base irradiance inversion value and the residual inversion value.
[0010] To achieve the above objectives, a second aspect of this application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the residual corrected irradiance inversion method based on historical clear sky index states as described in any one of the first aspects above.
[0011] To achieve the above objectives, a third aspect of this application also proposes a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the residual corrected irradiance inversion method based on historical clear sky index status as described in any one of the first aspects.
[0012] The technical solution provided by the embodiments of this application brings at least the following beneficial effects: This application converts current and historical satellite observations into inverted CSI / GHI state sequences output by the basic model, and constructs low-dimensional state features such as trends, volatility, stability, and cloud-clear boundary risk to achieve residual correction of the basic GHI inversion error. Compared with directly stitching together original satellite pixels from multiple times or using an end-to-end deep time series model, this reduces the feature dimension and training complexity of the historical information introduction stage, making the correction basis more intuitive and analyzable. At the same time, this application does not rely on real historical GHI, real historical CSI, real weather labels, or future time information, making it suitable for practical reasoning and deployment scenarios, and possessing good engineering practicality and promotional value. Therefore, this application can reduce the feature dimension and training complexity of the historical information introduction stage, and improve the stability of irradiance inversion results under complex weather transitions and cloud-clear boundary samples.
[0013] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0014] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 A flowchart of a residual-corrected irradiance inversion method based on historical clear sky index states proposed in this application embodiment; Figure 2 This is a schematic diagram of the structure of a residual corrected irradiance inversion model based on historical clear sky index states proposed in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a residual corrected irradiance inversion system based on historical clear sky index states proposed in an embodiment of this application. Detailed Implementation
[0015] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0016] The following description, with reference to the accompanying drawings, describes a residual-corrected irradiance inversion method based on historical clear sky index states, as proposed in an embodiment of this application.
[0017] Example 1 Figure 1 This is a flowchart of a residual-corrected irradiance inversion method based on historical clear sky index states proposed in this application, as shown in the following example. Figure 1 As shown, the method includes the following steps: Step S101: Obtain satellite multi-channel observation data, solar geometric data, time data, station measured data, and clear-sky horizontal total irradiance data at the target time and historical times to construct a sample dataset.
[0018] Specifically, satellite multi-channel observation data, solar geometric data, time data, site-measured data, and clear-sky horizontal total irradiance data are acquired at the target time and one or more historical times to construct a sample dataset for subsequent model training and evaluation.
[0019] Among these, satellite multi-channel observation data is used to characterize the radiation properties of the atmosphere and the Earth's surface; solar geometric data is used to describe the geometric conditions affecting surface irradiance, such as solar altitude angle and azimuth angle; temporal data is used to mark the observation time to correlate with solar position and seasonal variations; on-site measured data serves as a true reference for irradiance inversion; and clear-sky horizontal total irradiance data is used for subsequent calculation of the clear-sky index and irradiance recovery. By integrating the above multi-source data, fundamental data support can be provided for subsequent clear-sky index inversion and residual correction.
[0020] As one possible implementation method, satellite multi-channel observation data of the target time and its three previous historical times, the corresponding solar geometric parameters, timestamp information, measured total horizontal irradiance data of ground radiation observation stations, and total horizontal irradiance data of clear sky calculated by clear sky model can be obtained. These data are then aligned in chronological order to form a sample dataset containing information of the current time and historical times.
[0021] Therefore, this step, by systematically collecting multi-source heterogeneous data of the target time and its historical times, provides a data foundation containing time evolution information for subsequent models. This enables the models to utilize historical observation information to enhance their ability to represent the current irradiance state, which helps to improve the accuracy and stability of irradiance inversion under complex weather conditions.
[0022] Step S102: Preprocess the sample dataset, and use the preprocessed sample dataset to construct a basic clear sky index inversion model based on histogram gradient boosting regression, output the basic clear sky index inversion value, and combine it with the clear sky horizontal total irradiance to recover the basic irradiance inversion value.
[0023] Specifically, this step constructs a basic clear sky index inversion model based on the satellite observation characteristics at the target time. This model is used to map the satellite observation data at the target time to the clear sky index, a relative physical quantity, in order to weaken the influence of solar geometric changes on absolute irradiance modeling and make the model focus more on the relative irradiance changes caused by cloud cover and atmospheric attenuation.
[0024] Specifically, the model uses multi-channel satellite observation data at the target time as a basis to extract feature information that characterizes cloud conditions, atmospheric conditions, and surface properties. It then employs a regression learning algorithm to establish a nonlinear mapping relationship between these features and the clear sky index. The model output is a retrieved clear sky index value, which reflects the degree of attenuation of surface irradiance at the target time relative to irradiance under ideal clear sky conditions.
[0025] Subsequently, by combining the clear-sky horizontal total irradiance data at the target time, the basic irradiance inversion value is recovered by multiplying the basic clear-sky index inversion value with the clear-sky horizontal total irradiance. The clear-sky horizontal total irradiance is used only as a baseline for recovering irradiance and is not involved in the construction of model input features, thereby ensuring that no future information or idealized assumptions are introduced during model training and inference.
[0026] As one possible implementation, the basic clear sky index inversion model can adopt a histogram gradient boosting regression model. Its input features include the original pixels of the satellite small window at the target time, local statistical features, spectral difference features, as well as solar geometric features, temporal features and spatial location context features. The model output is the basic clear sky index inversion value, which is combined with the clear sky horizontal total irradiance to recover the basic irradiance inversion value.
[0027] This step decouples solar geometric changes from cloud state decay by converting satellite observation features into a clear sky index with clear physical meaning, thus improving the model's adaptability to samples under different times and solar altitudes. Simultaneously, by combining clear sky irradiance with baseline irradiance recovery, a stable benchmark inversion result is provided for subsequent residual correction.
[0028] Step S103: Call the same basic clear sky index inversion model to invert the target time and multiple historical times to obtain the clear sky index and irradiance state sequence, and construct low-dimensional historical state features based on the state sequence.
[0029] Specifically, after inverting the target time and its historical times using the same basic clear sky index inversion model, a state sequence consisting of the inverted clear sky index and inverted irradiance at the current and historical times can be obtained. This state sequence reflects the evolution of the relative irradiance attenuation caused by cloud cover, atmospheric attenuation, and local environmental changes over time within the satellite observation window.
[0030] Based on this state sequence, low-dimensional historical state features are further constructed. These features aim to quantify the temporal information contained in the state sequence from different dimensions, so as to characterize the dynamic change trend, fluctuation intensity, stability, and risk level of approaching the cloud-clear boundary of the cloud state.
[0031] Specifically, these low-dimensional historical state features may include, but are not limited to: the inversion values at each moment in the state sequence; statistics reflecting the central tendency and dispersion of the sequence; trend differences characterizing the overall direction of change of the sequence over time; adjacency differences depicting instantaneous changes between adjacent moments; volatility characteristics measuring the overall fluctuation amplitude of the sequence; stability characteristics assessing the temporal consistency of the sequence; and boundary distance and boundary risk characteristics quantifying the proximity between the inverted state and the preset cloud / clearness state threshold. These features are abstracted from the original high-dimensional satellite observation data, compressing historical time-series information into a low-dimensional representation with clear physical meaning.
[0032] As an example, low-dimensional historical state features can specifically include the inverted clear sky index sequence and inverted irradiance sequence at the current and historical moments, as well as the mean, standard deviation, minimum, maximum, range, trend difference between the target moment and the farthest historical moment, the adjacent difference between the target moment and adjacent historical moments, the distance from the inverted clear sky index to the preset cloudy threshold and clear sky threshold, the boundary risk features based on the exponential function transformation, the state stability features based on the standard deviation and scale parameter transformation, and the state volatility features reflecting the degree of dispersion of the sequence.
[0033] Therefore, by transforming historical satellite observation information into low-dimensional, physically meaningful inversion state features, this method significantly reduces the feature dimension and modeling complexity in the historical information introduction stage, avoids the redundancy and overfitting risks brought about by directly using high-dimensional original pixels, and makes the input basis of the residual correction model more intuitive and interpretable, thereby improving the model's generalization ability under complex weather conditions and the feasibility of engineering deployment.
[0034] Step S104: Construct a residual correction model, using low-dimensional historical state features as input, and the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target for training. Output the residual inversion value at the target time, and combine the base irradiance inversion value and the residual inversion value to obtain the final irradiance inversion result at the target time.
[0035] Specifically, a residual correction model is constructed. This model takes the aforementioned low-dimensional historical state features as input and aims to learn the mapping relationship between the temporal evolution information contained in the historical inversion clear sky index and irradiance state and the basic inversion error.
[0036] Specifically, the model uses the clear sky index and irradiance state sequences obtained from the inversion of the target time and its historical times based on the same basic clear sky index inversion model, as well as the low-dimensional features constructed from these sequences, such as statistics, trends, volatility, stability, and boundary risks, as input variables to characterize the historical cloud state evolution process. The model is trained using the difference between the measured irradiance at the target time and the inverted basic irradiance value as the residual objective, thereby learning the nonlinear relationship between historical inversion state characteristics and the current basic inversion deviation under complex conditions such as rapid cloud state transitions, partial cloud cover, or cloud-clear boundaries. Through this training process, the residual correction model can output residual inversion values for the inverted basic irradiance value at the target time. Finally, the basic irradiance inversion value and the residual inversion value are added together to obtain the corrected final target irradiance inversion result.
[0037] As one possible implementation, the residual correction model can adopt a histogram gradient boosting regression model. Its input features may include one or more of the following: the inverted clear sky index sequence, the inverted irradiance sequence and its mean, standard deviation, trend difference, adjacent difference, cloud-clear boundary distance and boundary risk features, state volatility features and state stability features at the current and historical times. The difference between the measured irradiance at the target time and the inverted base irradiance value is used as the residual target for training.
[0038] Therefore, this step, by constructing a residual correction model and using low-dimensional historical inversion state features to perform secondary correction on the basic irradiance inversion results, can effectively utilize historical time series information to improve the systematic bias of the basic model under complex weather conditions, thereby improving the accuracy and stability of irradiance inversion, while maintaining low feature dimensions and model complexity, which is convenient for practical deployment and application.
[0039] The following describes in detail the specific implementation process of each step in the residual correction irradiance inversion method based on historical clear sky index status of this application using several specific embodiments.
[0040] Example 2 Based on the above embodiments, this embodiment provides a detailed description of the specific implementation of step S102, which involves "constructing a basic clear sky index inversion model based on histogram gradient boosting regression, outputting the basic clear sky index inversion value, and recovering the basic irradiance inversion value by combining the clear sky horizontal total irradiance".
[0041] In this embodiment, the specific implementation of constructing the basic clear sky index inversion model in step S102 is as follows. First, the original pixels of the satellite small window are extracted based on the satellite multi-channel observation data at the target time. The original pixels are the multispectral channel reflectance or brightness temperature values within a preset window size centered on the target pixel, which constitute the original pixel features.
[0042] Building upon this, local statistical features are further extracted. These features are obtained through spatial statistical calculations of the original pixels within the satellite window across various spectral channels, specifically including statistical quantities such as the mean, standard deviation, maximum, minimum, and median of pixel values within the window. Simultaneously, spectral difference features are extracted. These features are obtained by calculating the reflectance differences or ratios between different spectral channels, and are used to characterize the spectral differences between clouds and ground features.
[0043] Furthermore, a current-time input feature set is constructed by combining solar geometric data, temporal data, and spatial location context features. The spatial location context features include one or more of the following: station latitude and longitude, satellite grid row and column coordinates, target pixel center coordinates, region coding, or station identity coding, used to provide geospatial location information of the target pixel. Solar geometric data includes parameters such as solar zenith angle and solar azimuth angle, while temporal data includes time-coded information such as annual day, solar angle, and time. All of these features together constitute the current-time input feature set.
[0044] Then, the current input feature set is input into the basic clear sky index inversion model based on histogram gradient boosting regression. This model learns the nonlinear mapping relationship between the input features and the clear sky index through the histogram gradient boosting regression algorithm and outputs the basic clear sky index inversion value.
[0045] Finally, the base clear-sky index inversion value is multiplied by the clear-sky horizontal total irradiance data at the target time to recover the base irradiance inversion value. It should be noted that the clear-sky horizontal total irradiance data is not used as an input feature of the base clear-sky index inversion model; it is only used for clear-sky index label calculation, base irradiance recovery, and final irradiance recovery. This avoids the model directly learning the absolute magnitude of clear-sky irradiance, allowing the model to focus more on the relative irradiance changes caused by cloud cover and atmospheric attenuation.
[0046] Therefore, this embodiment transforms satellite multi-channel observation data into local statistical features and spectral difference features with clear physical meaning, and combines them with solar geometric, temporal and spatial location context features, enabling the basic clear sky index inversion model to effectively utilize multi-source information for clear sky index inversion. At the same time, it avoids redundant information that may be introduced by using clear sky irradiance as an input feature, thereby improving the model's ability to represent changes in cloud state and the accuracy of inversion.
[0047] Example 3 Based on the above embodiments, this embodiment provides a detailed description of the specific implementation of step S103, "calling the same basic clear sky index inversion model to invert the target time and multiple historical times to obtain the clear sky index and irradiance state sequence, and constructing low-dimensional historical state features based on the state sequence".
[0048] In this embodiment, the specific implementation method of calling the same basic clear sky index inversion model to invert the clear sky index and irradiance state sequence at the target time and its historical time in step S103 is as follows.
[0049] First, satellite observation features at the target time t and three historical times t-1, t-2, and t-3 are obtained. These features include original pixels from multispectral satellite small windows, local statistical features, spectral difference features, solar geometric features, temporal features, and spatial context features for each time. The satellite observation features at these four times are then input into a pre-trained basic clear sky index (CLI) retrieval model. This model, based on a histogram gradient boosting regression algorithm, sequentially outputs the CLI retrieval values for each time, denoted as […]. , , and .
[0050] Subsequently, the total horizontal irradiance data for clear skies at each time point were obtained and denoted as follows: , , and By multiplying the baseline clear sky index inversion value at each time point by the corresponding clear sky horizontal total irradiance, the baseline irradiance inversion value at each time point is recovered. And so on. , and This constitutes an inverted clear sky index sequence that includes both the target time and historical times. and inverted irradiance sequence The state sequence.
[0051] Furthermore, low-dimensional historical state features are constructed based on the aforementioned state sequence. Specifically, based on the inverted clear sky index sequence and the inverted irradiance sequence, the inverted clear sky index values for the current and historical moments are calculated. , , and and the inverted irradiance value , , and Simultaneously, the mean, standard deviation, minimum, maximum, and range of the inverted CSI and GHI sequences are calculated. The trend difference between the target time and the furthest historical time t-3 is also calculated. and Calculate the adjacent differences between the target time and adjacent historical times, for example... , and , and the corresponding GHI adjacent differences.
[0052] Calculate the distance from the inverted clear sky index to the preset cloud-clear state threshold, i.e., the cloud-clear boundary distance. ,in and These are preset cloudy and clear sky thresholds, respectively, and the boundary risk characteristics are calculated based on these distances. , M This represents the boundary margin parameter. State volatility characteristics are characterized using the standard deviation or range of the inverted CSI sequence. State stability characteristics are determined according to the formula... Calculate, where, m For the length of the history window, S The stability scaling parameter is used. The various features calculated above together constitute low-dimensional historical state features, which serve as inputs for the subsequent residual correction model.
[0053] This specific implementation transforms historical satellite observations into inverted CSI / GHI state sequences with clear physical meanings and constructs low-dimensional statistical and trend features, effectively reducing the feature dimension in the historical information introduction stage. This makes the input of the residual correction model more compact and physically interpretable, thereby reducing the model training complexity while maintaining or improving the correction accuracy and improving the stability of irradiance inversion under rapid cloud state transitions and boundary samples.
[0054] In this embodiment, the low-dimensional historical state features constructed in step S103 are configured to have a dimension lower than that of the original satellite small window features after directly stitching together the target time and historical time, thereby transforming the historical time series information from a high-dimensional original pixel representation into a low-dimensional inversion of the clear sky index and irradiance physical state representation.
[0055] Specifically, after inverting the target time and its historical times using the same basic clear sky index inversion model, a state sequence is first obtained, consisting of the inverted clear sky index and inverted irradiance for the current and historical times. The input to this sequence comes from the inverted clear sky index values CSI_base,t, CSI_base,t-1, CSI_base,t-2, and CSI_base,t-3 output by the basic clear sky index inversion model at the target time t and historical times t-1, t-2, and t-3, as well as the corresponding inverted irradiance values GHI_base,t, GHI_base,t-1, GHI_base,t-2, and GHI_base,t-3 obtained by recovering the total clear sky horizontal irradiance. Subsequently, the processing involves constructing low-dimensional features based on this state sequence, rather than directly using the original satellite small window image data from each historical time.
[0056] For example, in one embodiment, the basic clear sky index inversion model uses 352 dimensions of current-time construction features and contextual features, while the residual correction stage only uses 41 dimensions of historical inverted CSI / GHI state and contextual features. These 41 features are obtained through statistical calculations and transformations of the aforementioned state sequences. The specific construction process includes: calculating the mean, standard deviation, minimum, maximum, and range of the inverted CSI and GHI sequences; calculating the trend difference between the target time and the furthest historical time, and the adjacent difference between the target time and adjacent historical times; calculating the distance and boundary risk features from the inverted CSI to the preset clear sky state threshold; and calculating the state stability and state volatility features. The state volatility features are directly characterized by the standard deviation or range of the inverted CSI sequence, while the state stability features are represented by a formula... The cloud-clear boundary risk characteristics are obtained by calculating the minimum distance d_boundary,t from the target time base clear sky index inversion value CSI_base,t to the preset cloudy threshold T_cloudy and clear sky threshold T_clear, and then applying an exponential function. We obtain M, where M is the boundary margin parameter. After the above processing, the output low-dimensional historical state feature set is used as the input of the residual correction model. Its dimension is significantly lower than that of directly stitching together the original satellite small window features from multiple time points (e.g., about 555 dimensions). This reduces the feature dimension and training complexity of the residual correction stage while preserving key temporal evolution information.
[0057] Therefore, this implementation significantly reduces the feature dimension and model training complexity in the residual correction stage by transforming high-dimensional historical original image data into low-dimensional inversion state features with clear physical meaning. While maintaining or slightly improving the inversion accuracy, it enhances the engineering feasibility and interpretability of the method.
[0058] Example 4 Based on the above embodiments, this embodiment provides a detailed description of the specific implementation of step S104 above, which involves "constructing a residual correction model, using the low-dimensional historical state features as input, using the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target for training, outputting the residual inversion value at the target time, and combining the base irradiance inversion value with the residual inversion value to obtain the final irradiance inversion result at the target time".
[0059] In this embodiment, the specific implementation of constructing the residual correction model is as follows. First, the low-dimensional historical state features constructed in step S103 are used as the input of the residual correction model. These low-dimensional historical state features specifically include one or more of the following: the inverted CSI sequence of the current and historical times, the inverted GHI sequence, and the mean, standard deviation, minimum, maximum, range, trend difference between the target time and the farthest historical time, the adjacent difference between the target time and adjacent historical times, the distance from the inverted CSI to the preset cloud clearing state threshold, boundary risk features, state stability features, and state volatility features. These features are constructed through the above steps after the basic clear sky index inversion model inverts the satellite observation data of the target time and its historical times, and their dimensionality is much lower than the feature dimension of directly stitching together the original satellite pixels from multiple times.
[0060] Subsequently, using the difference between the measured irradiance at the target time and the base irradiance inversion value output in the above steps as the residual target, a residual correction model based on histogram gradient boosting regression is trained. This model learns the nonlinear mapping relationship between the aforementioned low-dimensional historical state features and the base inversion error, thereby correcting for systematic biases generated by the base clear sky index inversion model under complex samples such as rapid cloud state changes, partial cloud cover, and cloud-clear boundaries. During the training, validation, and inference phases, this residual correction model does not use real historical CSI, real historical GHI, real weather labels, future time features, or real residuals from the test set as input; it only relies on the current and historical inversion CSI / GHI states output by the base clear sky index inversion model, as well as remote sensing observation data, clear sky irradiance data, and contextual information available during inference. After training, inputting the low-dimensional historical state features at the target time into the residual correction model will output the residual inversion value for the target time. Finally, the base irradiance inversion value obtained from the above steps is added to the residual inversion value output by the residual correction model to obtain the final target irradiance inversion result.
[0061] This specific implementation method constructs a residual correction model based on histogram gradient boosting regression and trains it using low-dimensional historical inversion state features, thereby achieving effective correction of the basic irradiance inversion results. Its technical advantages are: under the condition that it does not rely on unavailable information such as real historical irradiance or weather labels, it significantly reduces the feature dimension and model training complexity in the historical information introduction stage, while improving the accuracy and stability of irradiance inversion under complex weather transitions and cloud-clear boundary samples.
[0062] In this embodiment, the construction, training, validation, and inference processes of the residual correction model all follow strict information constraints to ensure the model's usability and reliability in actual deployment scenarios. Specifically, during the training phase of the residual correction model, its input features are entirely derived from the current and historical inverted clear sky index and irradiance states output by the basic clear sky index inversion model, as well as remote sensing observation data, clear sky irradiance data, and contextual information available during inference. These input features include, but are not limited to: the inverted clear sky index and inverted irradiance sequences output by the basic clear sky index inversion model for the target time and its historical times (e.g., three historical times), and low-dimensional historical state features constructed based on these sequences, such as statistics, trend differences, adjacent differences, state volatility, state stability, boundary distance, and boundary risk. The residual correction model is trained using the difference between the measured irradiance at the target time and the inverted value of the basic irradiance as the residual objective. This residual objective is only used for model parameter fitting and does not participate in the model input.
[0063] During the validation phase, the residual correction model also uses only the aforementioned available input features and evaluates its residual inversion performance based on the validation subset. No real historical clear sky index, real historical irradiance, real weather labels, or future time features are introduced during the validation process.
[0064] During the inference phase, the residual correction model relies solely on the current and historical inverted clear sky index and irradiance states output by the basic clear sky index inversion model, along with available remote sensing observation data, clear sky irradiance data, and contextual information at the inference time, to output the residual inversion value for the target time. This residual inversion value is added to the basic irradiance inversion value to obtain the final target irradiance inversion result. Throughout the process, the residual correction model strictly avoids using any real historical clear sky index, real historical irradiance, real weather labels, future time features, or real residuals from the test set as input, thereby avoiding information leakage and unavailability issues and ensuring the model's feasibility in real-world business processes. Through these constraints, the residual correction model can effectively learn the nonlinear mapping relationship between historical inversion states and basic inversion errors without relying on additional real historical information, thus achieving low-dimensional residual correction of the basic irradiance inversion results.
[0065] Therefore, by strictly limiting the source of input information for the residual correction model, this implementation avoids the model's dependence on real historical clear sky index, real historical irradiance, real weather labels, or future time features, thereby eliminating the risk of unavailable information or potential data leakage in actual deployment scenarios and significantly improving the model's applicability and robustness in real business processes.
[0066] In this embodiment, the training and evaluation process of the residual correction model involved in step S104 follows a strict set of data partitioning and parameter fitting rules to ensure the model's generalization ability and reliability in real inference scenarios. Specifically, based on the sample dataset constructed in step S101, the dataset partitioning operation in step S102 is first performed. This operation constructs all samples into a training set, a validation set, and a test set according to any one of the following methods: chronological order, random by day, or random per sample. The training set is used for parameter fitting of the basic clear sky index inversion model and the residual correction model; the validation set is used for model hyperparameter tuning or early stopping judgment; and the test set is only used for final performance evaluation and does not participate in any model parameter fitting process. During the training phase of the basic clear sky index inversion model, the model is fitted only on the training set or a further partitioned basic training subset from the training set, ensuring that its parameters are learned solely based on the mapping relationship between satellite observation features and clear sky index labels at the current moment.
[0067] Subsequently, during the training phase of the residual correction model, the model fits only to the training set, residual training subset, or validation subset. Its input is the low-dimensional historical state features constructed in the previous steps, and the residual objective is defined as the deviation of the measured irradiance at the target time from the predicted baseline irradiance at the target time—that is, the difference between the measured irradiance and the inverted baseline irradiance value. In this way, the residual correction model can learn the nonlinear relationship between the historical inverted clear sky index state sequence and the baseline inversion error, thereby performing secondary correction on the baseline inversion results.
[0068] During training, the residual correction model does not use any real historical CSI, real historical GHI, real weather labels, future time features, or real residuals from the test set as input. It relies solely on the current and historical inverted CSI / GHI states output by the basic clear sky index inversion model, as well as remote sensing observation data, clear sky irradiance data, and contextual information available during inference. The test set is used only to evaluate the accuracy of the final irradiance inversion results throughout the entire process and does not participate in any parameter fitting steps of the basic clear sky index inversion model or the residual correction model. This avoids the risk of data leakage and ensures the objectivity and reliability of the evaluation results.
[0069] Therefore, this implementation method ensures the generalization ability of the residual correction model in real inference scenarios by strictly limiting the division of the training set, validation set and test set and the parameter fitting range, avoids the inflated performance caused by data leakage, and improves the stability and credibility of the model in actual deployment.
[0070] In this embodiment, both the residual correction model constructed in step S104 and the basic clear sky index inversion model constructed in step S102 adopt regression models, and they can use the same or different model structures. Specifically, the basic clear sky index inversion model and the residual correction model are each independently selected from one of the following: histogram gradient boosting regression model, gradient boosting tree regression model, random forest regression model, linear regression model, support vector regression model, neural network regression model, or a combination thereof.
[0071] As an example, in a preferred embodiment, the basic clear sky index (CSI) retrieval model employs a histogram gradient boosting regression model. This model takes the original pixels of the satellite window at the target time, local statistical features, spectral difference features, solar geometric features, temporal features, and spatial location context features as input. It integrates multiple decision trees through a gradient boosting framework to output the basic CSI retrieval value. This histogram gradient boosting regression model, by discretizing continuous features into histograms, can efficiently handle high-dimensional feature spaces and effectively capture the complex nonlinear relationships between multispectral, spatial neighborhood, and contextual information. The residual correction model also employs a histogram gradient boosting regression model. Its input consists of the low-dimensional historical state features constructed in step S103, including the current and historical inverted CSI sequences, inverted GHI sequences and their statistics, trend differences, neighbor differences, state volatility, state stability, boundary distance, and boundary risk. The residual correction model is trained using the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target. By learning the nonlinear mapping relationship between the historical inversion clear sky index state and the base inversion error, it outputs the residual inversion value at the target time.
[0072] In another possible implementation, the basic clear sky index (CSI) inversion model can employ a random forest regression model, while the residual correction model can use a gradient boosting tree regression model. Although their model structures differ, both achieve their respective functions. During the training phase, the basic CSI inversion model fits only to the training set or a basic training subset, while the residual correction model fits based on the training set, a residual training subset, or a validation subset. Furthermore, the residual correction model does not use real historical CSI, real historical GHI, real weather labels, or future time features during training, validation, and inference phases; it relies solely on the current and historical inverted CSI / GHI states output by the basic CSI inversion model, as well as remote sensing observation data, clear sky irradiance data, and contextual information available during inference. By adding the basic irradiance inversion value to the residual inversion value, the final irradiance inversion result for the target time can be obtained.
[0073] Therefore, this specific implementation method, by selecting efficient regression models such as histogram gradient boosting regression, enables the basic clear sky index inversion model and residual correction model to efficiently handle high-dimensional current moment features and low-dimensional historical state features respectively, reducing the model training complexity and improving the irradiance inversion accuracy under complex weather transitions and boundary samples.
[0074] Example 5 This embodiment provides a detailed description of the complete implementation of the residual-corrected irradiance inversion data processing method based on historical clear sky index states. This includes data acquisition and preprocessing, construction of the basic clear sky index inversion model, generation of the historical inversion state sequence, construction of low-dimensional historical state features, training and inference of the residual correction model, and output and verification of the final irradiance inversion results. The residual-corrected irradiance inversion model based on historical clear sky index states constructed in this embodiment is as follows: Figure 2 As shown.
[0075] First, the data acquisition and sample dataset construction steps are performed. Satellite multi-channel observation data, solar geometric data, time data, site-measured data, and clear-sky horizontal total irradiance data are acquired for the target time and multiple historical time points. Specifically, the satellite multi-channel observation data includes raw pixel values from multiple spectral channels; the solar geometric data includes solar altitude angle and solar azimuth angle; the time data includes time-coded information such as year, month, day, hour, and minute; the site-measured data is the horizontal total irradiance measured by ground-based radiation observation stations; and the clear-sky horizontal total irradiance data is calculated from a clear-sky model. These data are aligned according to the target time to construct a sample dataset containing information from the current and historical times. Subsequently, the sample dataset undergoes numerical cleaning to remove invalid samples caused by satellite observation anomalies, site malfunctions, or missing data. The sample dataset is divided into training, validation, and test sets according to chronological order, daily randomization, or sample-by-sample randomization. All standardized or normalized parameters are fitted only to the training set or a basic training subset to avoid data leakage.
[0076] Next, a basic clear sky index (CLI) retrieval model is constructed. This model employs a histogram gradient boosting regression algorithm, using satellite observation features at the target time as input and outputting the basic CLI retrieval value. Specifically, original pixels in a small satellite window are extracted from the multi-channel satellite observation data at the target time. This small window is, for example, a 5×5 or 7×7 pixel region centered on the target pixel. Based on the multispectral pixel values within this small window, local statistical features are calculated, including the mean, standard deviation, minimum, maximum, and range of each spectral channel. Simultaneously, spectral difference features are calculated, such as the differences or ratios between different spectral channels, to enhance sensitivity to cloud and atmospheric conditions. Furthermore, solar geometric data, temporal data, and spatial location context features are included as input features. Spatial location context features include one or more of the following: station latitude and longitude, satellite grid row and column coordinates, target pixel center coordinates, region coding, or station identity coding. The total clear sky horizontal irradiance data is not used as input features for the basic CLI retrieval model; it is only used for subsequent CLI label calculation, basic irradiance recovery, and final irradiance recovery. In one specific implementation, the basic clear sky index inversion model uses 352 dimensions to construct features and context features at the current time. The model uses the clear sky index as the inversion target, outputs the basic clear sky index inversion value, and then multiplies this value with the clear sky level total irradiance data at the target time to recover the basic irradiance inversion value.
[0077] Next, the generation of the historical inversion state sequence is performed. The same basic clear sky index inversion model is invoked to infer the satellite observation characteristics of the target time and its three historical times. Specifically, the satellite observation characteristics of the target time t, and the historical times t-1, t-2, and t-3 are input into the basic clear sky index inversion model, which outputs the basic clear sky index inversion values for each time point sequentially. Combined with the total clear sky horizontal irradiance data for each time point, the basic irradiance inversion values for each time point are recovered, thus constructing a state sequence containing the inverted clear sky index sequence and the inverted irradiance sequence for both the target time and historical times.
[0078] Next, low-dimensional historical state features are constructed based on the aforementioned state sequence. These low-dimensional historical state features include one or more of the following: the inverted clear sky index value, inverted irradiance value, mean, standard deviation, minimum, maximum, range, trend difference between the target time and the furthest historical time, adjacent difference between the target time and adjacent historical times, distance from the inverted clear sky index to the preset cloud-clear state threshold, boundary risk features, state stability features, and state volatility features. The boundary risk features are obtained using the following formula:
[0079] in, This represents the distance between the cloud and clear boundary at the target time t. Indicates the characteristics of boundary risk. This represents the inversion value of the basic clear sky index. and These represent the preset cloudy threshold and clear sky threshold, respectively, and M represents the boundary margin parameter. The state volatility characteristic is the standard deviation or range of the inverted clear sky index sequence. The state stability characteristic is obtained according to the following formula:
[0080] in, This represents the state stability characteristics at target time t. The expression represents the retrieved clear sky index output by the basic clear sky index retrieval model at historical time tk, where m represents the historical window length, std represents the standard deviation function, and S represents the stability scale parameter. In a specific implementation, the low-dimensional historical state feature is 41-dimensional, including the aforementioned features and some contextual features. The dimensionality of this low-dimensional historical state feature is significantly lower than that of the original satellite small window features after directly stitching together the target time and historical time, thus transforming the historical time series information from a high-dimensional original pixel representation into a low-dimensional inverted clear sky index and irradiance physical state representation.
[0081] Subsequently, a residual correction model was constructed. This model also employs an algorithm structure based on histogram gradient boosting regression, using the constructed low-dimensional historical state features as input and the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target for training, outputting the target time residual inversion value. During the training, validation, and inference phases, the residual correction model does not use real historical clear sky index, real historical irradiance, real weather labels, future time features, or real residuals from the test set as input. Instead, it only uses the current and historical inverted clear sky index and irradiance states output by the base clear sky index inversion model, as well as remote sensing observation data, clear sky irradiance data, and contextual information available during inference. During the training phase, the base clear sky index inversion model only fits to the training set or a basic training subset; the residual correction model only fits to the training set, residual training subset, or validation subset. The test set is only used for performance evaluation and does not participate in any model parameter fitting.
[0082] Finally, the base irradiance inversion value and the residual inversion value are added together to obtain the final target irradiance inversion result. The final irradiance inversion result is obtained by adding the base irradiance inversion value and the residual correction value. During the validation phase, the model accuracy is evaluated using a test set, and indices such as root mean square error (RMSE), mean absolute error (MAO), and coefficient of determination (COP) are calculated. Experimental results show that the proposed method achieves an MEO of 108.47 W / m² in time-series testing, which is superior to the baseline model using only current-time features (114.78 W / m²), representing a reduction of 6.31 W / m² in MEO. Simultaneously, the proposed method has an MAO of 72.14 W / m² and a COP of 0.8538, demonstrating superior overall performance. In repeated experiments with 5 random seeds, the average root mean square error of this method was 108.94 W / m², which is close to and slightly better than the 109.48 W / m² of the residual model that directly splices high-dimensional historical original features. However, this method only uses 41 low-dimensional features in the residual correction stage, which significantly reduces the feature dimension and training complexity.
[0083] Therefore, this embodiment first transforms historical satellite observations into inverted clear sky index and irradiance state sequences with clear physical meaning, and then constructs low-dimensional state features for residual correction. This effectively utilizes short-term historical information, reduces modeling complexity, and improves the stability of irradiance inversion results under complex weather transitions and boundary samples. Moreover, it does not rely on real historical irradiance, real historical clear sky index, or future time information, and has good engineering practicality and promotion value.
[0084] To implement the above embodiments, this application also proposes a residual-corrected irradiance inversion system based on historical clear sky index states. Figure 3 This is a schematic diagram of the structure of a residual corrected irradiance inversion system based on historical clear sky index states proposed in an embodiment of this application, as shown below. Figure 3 As shown, the system includes: The acquisition module 100 is used to acquire satellite multi-channel observation data, solar geometric data, time data, station measured data, and clear sky horizontal total irradiance data at the target time and historical time, and to construct a sample dataset; The recovery module 200 is used to preprocess the sample dataset, construct a basic clear sky index inversion model based on histogram gradient boosting regression using the preprocessed sample dataset, output the basic clear sky index inversion value, and recover the basic irradiance inversion value by combining the clear sky horizontal total irradiance. The inversion module 300 is used to call the same basic clear sky index inversion model to invert the target time and multiple historical times to obtain the clear sky index and irradiance state sequence, and construct low-dimensional historical state features based on the state sequence. The output module 400 is used to construct a residual correction model. It takes the low-dimensional historical state features as input, uses the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target for training, outputs the residual inversion value at the target time, and combines the base irradiance inversion value and the residual inversion value to obtain the final irradiance inversion result at the target time.
[0085] It should be noted that the explanation of the aforementioned embodiment of the residual corrected irradiance inversion method based on historical clear sky index status also applies to the system of this embodiment, and will not be repeated here.
[0086] In summary, the residual-corrected irradiance inversion system based on historical clear sky index states in this application can reduce the feature dimension and training complexity in the historical information introduction stage, and improve the stability and accuracy of irradiance inversion under complex weather transitions and cloud-clear boundary samples.
[0087] To implement the above embodiments, this application also proposes an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the residual corrected irradiance inversion method based on historical clear sky index states as described in any of the first aspect embodiments above.
[0088] To implement the above embodiments, this application also proposes a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the residual corrected irradiance inversion method based on historical clear sky index status as described in any one of the first aspect embodiments above.
[0089] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0090] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0091] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0092] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.
[0093] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0094] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0095] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0096] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A residual-corrected irradiance inversion method based on historical clear sky index conditions, characterized in that, Includes the following steps: Acquire satellite multi-channel observation data, solar geometric data, time data, station measured data, and clear-sky horizontal total irradiance data at the target time and historical times to construct a sample dataset; The sample dataset is preprocessed, and a basic clear sky index inversion model based on histogram gradient boosting regression is constructed using the preprocessed sample dataset. The basic clear sky index inversion value is output, and the basic irradiance inversion value is recovered by combining the clear sky horizontal total irradiance. The same basic clear sky index inversion model is used to invert the target time and multiple historical times to obtain the clear sky index and irradiance state sequence, and low-dimensional historical state features are constructed based on the state sequence. A residual correction model is constructed, using the low-dimensional historical state features as input and the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target for training. The residual inversion value at the target time is output, and the final irradiance inversion result at the target time is obtained by combining the base irradiance inversion value and the residual inversion value.
2. The method according to claim 1, characterized in that, The construction of the basic clear sky index inversion model based on histogram gradient boosting regression, outputting the basic clear sky index inversion value, and combining it with the total horizontal irradiance of clear sky to recover the basic irradiance inversion value, includes: Based on satellite multi-channel observation data at the target time, the original pixels, local statistical features, and spectral difference features of the satellite small window are extracted, and the current time input feature set is constructed by combining solar geometric data, time data, and spatial location context features. Input the current time input feature set into the basic clear sky index inversion model based on histogram gradient boosting regression, and output the basic clear sky index inversion value; The baseline clear sky index inversion value is multiplied by the total clear sky irradiance data at the target time to recover the baseline irradiance inversion value.
3. The method according to claim 1, characterized in that, The process involves calling the same basic clear sky index inversion model to invert the target time and multiple historical times, obtaining a clear sky index and irradiance state sequence, including: The satellite observation features of the target time and multiple historical times corresponding to the target time are respectively input into the basic clear sky index inversion model, and the basic clear sky index inversion values of each time are output in sequence. By combining the total clear sky horizontal irradiance data at each time point with the base clear sky index inversion value, the base irradiance inversion value at each time point is recovered to generate a state sequence containing the inversion clear sky index sequence and the inversion irradiance sequence at the target time and historical time points.
4. The method according to claim 3, characterized in that, The low-dimensional historical state features include the clear sky index and irradiance value obtained by inversion, the trend difference between the target time and the farthest historical time, the adjacent difference between the target time and adjacent historical times, the distance from the inverted clear sky index to the preset cloud clear state threshold, boundary risk features, state stability features, and state volatility features.
5. The method according to claim 4, characterized in that, The boundary risk characteristics are calculated using the following formula: in, This represents the distance between the cloud and clear boundary at the target time t. Indicates the characteristics of boundary risk. This represents the inversion value of the basic clear sky index. and These represent the preset cloudy threshold and clear sky threshold, respectively. M This represents the boundary margin parameter.
6. The method according to claim 4, characterized in that, The state volatility characteristic is the standard deviation or range of the inverted clear sky index sequence; The state stability characteristic is calculated using the following formula: in, This represents the state stability characteristics at target time t. denoted as the inverted clear sky index output by the basic clear sky index inversion model at historical time tk, m represents the historical window length, std represents the standard deviation function, and S represents the stability scale parameter.
7. The method according to claim 1, characterized in that, The final irradiance inversion result obtained at the target time includes: Using the low-dimensional historical state features as input, and the difference between the measured irradiance at the target time and the base irradiance inversion value as the residual target, a residual correction model based on histogram gradient boosting regression is trained, and the residual inversion value at the target time is output. The base irradiance inversion value is added to the residual inversion value to obtain the final target irradiance inversion result.
8. The method according to claim 1, characterized in that, Both the basic clear sky index inversion model and the residual correction model are regression models, and the basic clear sky index inversion model and the residual correction model adopt the same or different model structures; The regression model is one or a combination of several of the following: histogram gradient boosting regression model, gradient boosting tree regression model, random forest regression model, linear regression model, support vector regression model, and neural network regression model.
9. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the residual corrected irradiance inversion method based on historical clear sky index states as described in any one of claims 1-8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the residual corrected irradiance inversion method based on historical clear sky index status as described in any one of claims 1-8.
