<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article article-type="discussion" dtd-version="2.3" xml:lang="EN" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Energy Res.</journal-id>
<journal-title>Frontiers in Energy Research</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Energy Res.</abbrev-journal-title>
<issn pub-type="epub">2296-598X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">1402840</article-id>
<article-id pub-id-type="doi">10.3389/fenrg.2024.1402840</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Energy Research</subject>
<subj-group>
<subject>Opinion</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Opinion on enhancing diversity in photovoltaic scenario generation using weather data simulating by style-based generative adversarial networks</article-title>
<alt-title alt-title-type="left-running-head">Deng and Zhang</alt-title>
<alt-title alt-title-type="right-running-head">
<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3389/fenrg.2024.1402840">10.3389/fenrg.2024.1402840</ext-link>
</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Deng</surname>
<given-names>Jianbin</given-names>
</name>
<uri xlink:href="https://loop.frontiersin.org/people/2732562/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Zhang</surname>
<given-names>Jing</given-names>
</name>
<xref ref-type="corresp" rid="c001">&#x2a;</xref>
<uri xlink:href="https://loop.frontiersin.org/people/2691032/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/Writing - review &#x26; editing/"/>
</contrib>
</contrib-group>
<aff>
<institution>Guangzhou Power Supply Bureau, Guangdong Power Grid Co., Ltd.</institution>, <addr-line>Guangzhou</addr-line>, <country>China</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>
<bold>Edited by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2606132/overview">Yitong Shang</ext-link>, Hong Kong University of Science and Technology, Hong Kong SAR, China</p>
</fn>
<fn fn-type="edited-by">
<p>
<bold>Reviewed by:</bold> <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1936888/overview">Zhang Hongwei</ext-link>, China University of Mining and Technology, China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2634622/overview">Xiaodong Zheng</ext-link>, South China University of Technology, China</p>
<p>
<ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1656737/overview">Xiurong Zhang</ext-link>, China Agricultural University, China</p>
</fn>
<corresp id="c001">&#x2a;Correspondence: Jing Zhang, <email>16601148530@163.com</email>
</corresp>
</author-notes>
<pub-date pub-type="epub">
<day>21</day>
<month>05</month>
<year>2024</year>
</pub-date>
<pub-date pub-type="collection">
<year>2024</year>
</pub-date>
<volume>12</volume>
<elocation-id>1402840</elocation-id>
<history>
<date date-type="received">
<day>18</day>
<month>03</month>
<year>2024</year>
</date>
<date date-type="accepted">
<day>23</day>
<month>04</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2024 Deng and Zhang.</copyright-statement>
<copyright-year>2024</copyright-year>
<copyright-holder>Deng and Zhang</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<kwd-group>
<kwd>photovoltaic</kwd>
<kwd>scenario generation</kwd>
<kwd>weather scenario</kwd>
<kwd>generative adversarial network</kwd>
<kwd>uncertainty</kwd>
</kwd-group>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Energy Storage</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1">
<title>1 Introduction</title>
<p>In 2023, the global installed capacity of photovoltaic (PV) power generation broke another record. The International Energy Agency recently released the 2023 annual report shows that last year, the global PV power generation new installed capacity of about 375&#xa0;GW, an increase of more than 30 per cent (<xref ref-type="bibr" rid="B15">Szal&#xf3;czy et al., 2024</xref>). Among them, China is the world&#x2019;s largest PV market and product supplier (<xref ref-type="bibr" rid="B2">Fu et al., 2024</xref>). However, the inherent intermittency and volatility of distributed PV power generation introduce considerable uncertainty, necessitating the modeling of PV scenarios to mitigate this uncertainty and support the growth of the PV industry. Among the various factors influencing PV output, weather conditions play a significant role in causing fluctuations and uncertainties in PV generation. However, the vast majority of the current PV scenario generation literature generates PV scenarios directly, which can overlook the important impact of weather on PV (<xref ref-type="bibr" rid="B1">Cai et al., 2023</xref>). To account for weather-related uncertainties and impose stricter physical constraints on PV power generation models, the PV scenario is modeled by simulating weather scenarios, enabling both specificity and generality in the models. Consequently, the development of a stochastic simulation model for year-round weather scenarios becomes essential to provide accurate weather information for PV power generation modeling (<xref ref-type="bibr" rid="B11">Rohani et al., 2014</xref>).</p>
<p>Current weather generation models mainly rely on mathematical approaches involving probabilistic calculations. The most common approach is to directly fit the distribution of weather data with probability distributions, such as sunlight intensity following a Beta distribution (<xref ref-type="bibr" rid="B9">Rathore et al., 2023</xref>) and wind speed following a Weibull distribution (<xref ref-type="bibr" rid="B4">Hussain et al., 2023</xref>). Li et la. proposed a two-stage scheme. In the first stage, weather sequences are simulated from a single-site multivariate weather generator, and in the second stage, the empirical Copula method is used to reproduce the inter-variable and inter-site dependencies as well as the temporal structure (<xref ref-type="bibr" rid="B7">Li et al., 2019</xref>). Richardson proposed WGEN based on a dynamic two-parameter Gamma distribution model and a two-parameter Beta distribution model (<xref ref-type="bibr" rid="B10">Richardson, 2018</xref>). WGEN is currently one of the widely used weather generator models, and many other weather generator models are developed based on improvements and extensions of WGEN, such as CLIGEN developed by the United States Department of Agriculture Agricultural Research Service. Sparks et al. proposed a novel method by transforming partial time series into an inferred linear function model, considering weather variables as Gaussian variables with temporal behavior (<xref ref-type="bibr" rid="B13">Sparks et al., 2018</xref>). Sun et al. utilized Copula for simulating multivariate joint distributions between observed and predicted weather variables, alongside Bayesian theory to derive conditional probability density functions for specific weather forecast scenarios, facilitating large-scale weather scenario generation (<xref ref-type="bibr" rid="B14">Sun et al., 2020</xref>). However, these probabilistic model-based approaches fail to fully capture the complexity of weather data.</p>
<p>In recent years, with the rapid advancements in artificial intelligence, deep learning has emerged as a pivotal technology in various domains, including electricity and agriculture (<xref ref-type="bibr" rid="B3">Fu and Zhou, 2023</xref>). Currently, several deep generative models tailored for time-series data have emerged to inform weather scenario generation. Yang et al. combined LSTM and Generative Adversarial Networks (GAN) to generate health time series data (<xref ref-type="bibr" rid="B19">Yang Z. et al., 2023</xref>). Li et al. fused transformer and GAN to ensure temporal consistency in generating time-series data (<xref ref-type="bibr" rid="B8">Li et al., 2022</xref>). Yi et al. utilized a diffusion model based on U-net with attention mechanism to generate time-series data, preserving frequency features (<xref ref-type="bibr" rid="B21">Yi et al., 2023</xref>). In PV scenario generation, Li et al. used a time series correlation evaluation mechanism and a GAN-based generator-assisted updating mechanism to generate PV scenarios with long and short time scale time series correlation (<xref ref-type="bibr" rid="B6">Li et al., 2023</xref>). Xu et al. used Deep Convolutional GAN (DCGAN) to generate high-accuracy PV scenario (<xref ref-type="bibr" rid="B17">Xu et al., 2023</xref>). Zhang et al. used Spectral Normalization GAN (SNGAN) to improve the training stability and generate PV scenarios with probabilistic characteristics. However, these methods primarily focus on preserving the temporal characteristics and uncertainty of the generated data, neglecting the diversity aspect. We believe that diverse weather data is crucial for generating PV scenarios and analyzing uncertainty in PV systems, enabling comprehensive performance simulation across various environmental conditions. This aids in optimizing the design and operational strategies of PV systems, enhancing their stability and reliability under diverse climate conditions. Hence, generating diverse weather data remains pivotal for weather generation in the context of power applications.</p>
<p>In recent years, style-based GAN (StyleGAN) has become a research and application hotspot due to its ability to ensure diversity in generated image data (<xref ref-type="bibr" rid="B5">Karras et al., 2020</xref>). Sauer et al. utilized StyleGAN to meet the specific requirements of large-scale text-to-image synthesis (<xref ref-type="bibr" rid="B12">Sauer et al., 2023</xref>). Xiong et al. utilized StyleGAN to achieve fast generation of high-quality 3D digital humans (<xref ref-type="bibr" rid="B16">Xiong et al., 2023</xref>). Yang et al. utilized StyleGAN to implement flipping and editing operations on real face images (<xref ref-type="bibr" rid="B18">Yang S. et al., 2023</xref>). StyleGAN excels at disentangling images, separating different image features in a hierarchical manner to generate images with diverse and realistic styles. In the context of weather scenario, we utilize style-based learning to enhance the level of refinement and granularity in weather simulations. Style-based learning enables the separation of various levels of image features (<xref ref-type="bibr" rid="B5">Karras et al., 2019</xref>). We believe that, in the case of weather data, it allows the matching of overall trend features and local random features, respectively. This allows for the generation of weather scenarios that capture the accurate overall trend while incorporating nuanced variations. However, style-based learning relies on convolutional neural networks (CNNs) for data processing, which may limit StyleGAN&#x2019;s ability to learn temporal features from weather data. To address this limitation, replacing the 2-dimensional CNNs in StyleGAN with 1-dimensional CNNs could better model the temporal characteristics of weather data.</p>
</sec>
<sec id="s2">
<title>2 Model for weather simulation</title>
<p>As shown in <xref ref-type="fig" rid="F1">Figure 1</xref>, we present a novel stochastic simulation approach for generating year-round PV scenarios utilizing weather scenarios generated on Conditional Style-based Generative Adversarial Networks (C-StyleGAN). The weather scenarios consist of three variables, temperature, direct radiation and diffuse radiation, which are placed side by side during the training of the model to facilitate the neural network to learn the correlation between the variables. An increase in temperature causes a decrease in the power generation efficiency of the PV panels because high temperatures increase the resistance to electron flow within the PV panels. Direct radiation is the main source of energy for PV panels, while diffuse radiation affects the propagation path of light and indirectly affects the amount of radiant energy received by the PV panels. This method leverages real weather data as a foundation for simulating weather scenarios. The weather data generated using C-StyleGAN exhibits comprehensive diversity and effectively captures temporal correlations through active learning. The proposed method employs a Conditional Generative Adversarial Network (CGAN) as the primary framework, and the underlying neural network architecture is an enhanced version of the style-based Generative Adversarial Network (StyleGAN2). In <xref ref-type="sec" rid="s2-1">Sections 2.1</xref>, <xref ref-type="sec" rid="s2-2">2.2</xref>, we will introduce the CGAN and the improved StyleGAN2, respectively. The generated PV scenarios can be obtained by inputting the temperature, direct radiation and diffuse radiation generated by C-StyleGAN into the PV model (<xref ref-type="bibr" rid="B20">Yano et al., 2009</xref>).</p>
<fig id="F1" position="float">
<label>FIGURE 1</label>
<caption>
<p>Conditional style-based generative adversarial networks model for weather simulation of PV scenario.</p>
</caption>
<graphic xlink:href="fenrg-12-1402840-g001.tif"/>
</fig>
<sec id="s2-1">
<title>2.1 CGAN using weather features as labels</title>
<p>CGAN is the main framework of this model and provides the overall idea for the training and optimization of the model (<xref ref-type="bibr" rid="B22">Zhang et al., 2021</xref>).</p>
<p>In a GAN framework, the primary components are the generator and the discriminator. The objective of generator is to learn the underlying distribution <inline-formula id="inf1">
<mml:math id="m1">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> of the real data by randomly sampling from real data. It takes a random noise <inline-formula id="inf2">
<mml:math id="m2">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mi>z</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>z</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> as input and converts it into a synthesized data <inline-formula id="inf3">
<mml:math id="m3">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>w</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>:</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> using a network parameter <inline-formula id="inf4">
<mml:math id="m4">
<mml:mrow>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. The primary objective of the generator is to produce weather data samples that closely resemble real data, with the intention of deceiving the discriminator. On the other hand, the discriminator is a binary model responsible for distinguishing between the data samples. Its role is to classify the weather data samples, with the objective of labeling the generated weather data samples <inline-formula id="inf5">
<mml:math id="m5">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>w</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>:</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> by the generator as &#x201c;false&#x201d; and the real weather data samples <inline-formula id="inf6">
<mml:math id="m6">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> as &#x201c;true&#x201d; to the best of its ability. In the training process, both the discriminator and the generator are trained using an adversarial approach. The generator&#x2019;s primary objective is to enhance its generation performance in order to deceive the discriminator, while the discriminator aims to improve its discrimination ability to accurately classify the weather data samples.</p>
<p>The training process of a GAN can be characterized as a minimax game, which is formulated as a value function <inline-formula id="inf7">
<mml:math id="m7">
<mml:mrow>
<mml:mi mathvariant="normal">V</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> by Eq. <xref ref-type="disp-formula" rid="e1">1</xref>. In this game, the objective is to maximize <inline-formula id="inf8">
<mml:math id="m8">
<mml:mrow>
<mml:mi mathvariant="normal">V</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> with respect to the generator <inline-formula id="inf9">
<mml:math id="m9">
<mml:mrow>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>, while minimizing the value function V with respect to the discriminator <inline-formula id="inf10">
<mml:math id="m10">
<mml:mrow>
<mml:mi>D</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. This minmax game provides a clear understanding of the GAN training process.<disp-formula id="e1">
<mml:math id="m11">
<mml:mrow>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:munder>
<mml:mi>min</mml:mi>
<mml:mi>G</mml:mi>
</mml:munder>
<mml:munder>
<mml:mi>max</mml:mi>
<mml:mi>D</mml:mi>
</mml:munder>
<mml:mi mathvariant="normal">V</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="&#x7c;">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>:</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:msup>
</mml:msub>
</mml:msub>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="&#x7c;">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>w</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>:</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:math>
<label>(1)</label>
</disp-formula>
</p>
<p>However, the data generated by GAN is inherently random and lacks control over specific output. To address this limitation, the concept of Conditional GAN (CGAN) has been proposed, incorporating the principles of supervised learning into GAN. The fundamental idea behind CGAN is to introduce conditional information into both the generator and discriminator. In our model, we utilize weather features as conditional labels, such as sunny, cloudy, overcast, and rainy/snowy, to steer and facilitate the training. This approach enables us to generate weather data sequences that align with specific desired features. The objective function of our model (Eq. <xref ref-type="disp-formula" rid="e2">2</xref>) is derived by adapting Eq. <xref ref-type="disp-formula" rid="e1">1</xref>.<disp-formula id="e2">
<mml:math id="m12">
<mml:mrow>
<mml:mtable columnalign="left">
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:munder>
<mml:mi>min</mml:mi>
<mml:mi>G</mml:mi>
</mml:munder>
<mml:munder>
<mml:mi>max</mml:mi>
<mml:mi>D</mml:mi>
</mml:munder>
<mml:mi mathvariant="normal">V</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>G</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mrow>
<mml:msub>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:mi>P</mml:mi>
</mml:mrow>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="&#x7c;">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>o</mml:mi>
<mml:mi>r</mml:mi>
<mml:mi>i</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x7c;</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd>
<mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:msub>
<mml:mi mathvariant="normal">E</mml:mi>
<mml:mrow>
<mml:mi>x</mml:mi>
<mml:mo>&#x223c;</mml:mo>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>w</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>:</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="&#x7c;">
<mml:mrow>
<mml:mi>log</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>P</mml:mi>
<mml:mrow>
<mml:mi>g</mml:mi>
<mml:mi>e</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>w</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>:</mml:mo>
<mml:mi>&#x3b8;</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x7c;</mml:mo>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:math>
<label>(2)</label>
</disp-formula>where, <inline-formula id="inf11">
<mml:math id="m13">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> denotes the condition and corresponds to the weather features.</p>
</sec>
<sec id="s2-2">
<title>2.2 Style-based learning model</title>
<p>We draw inspiration from StyleGAN2, which leverages the concept of style migration to learn from image data. The style-based learning generator incorporates two main parts, namely the Mapping network and the Synthesis network, to facilitate its functionality. The Mapping network plays a crucial role in decoupling complex features that are coupled together. On the other hand, the Synthesis network incorporates two important components for data processing: modulation-demodulation convolutional layers (MD-C) and modulation convolutional (M-C) layers. Eqs <xref ref-type="disp-formula" rid="e3">3</xref>&#x2013;<xref ref-type="disp-formula" rid="e6">6</xref> (<xref ref-type="bibr" rid="B5">Karras et al., 2019</xref>) illustrate the functioning of MD-C network blocks, while for M-C the operation of Eq. <xref ref-type="disp-formula" rid="e5">5</xref> is omitted. y incorporating style-based learning from StyleGAN2, we are able to enhance the fidelity and realism of weather simulations. This approach enables us to capture not only the overall global trends but also the localized variations in the generated weather scenarios.<disp-formula id="e3">
<mml:math id="m14">
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mi mathvariant="normal">f</mml:mi>
</mml:msup>
<mml:mo>&#x22c5;</mml:mo>
<mml:mi>w</mml:mi>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="normal">f</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
<label>(3)</label>
</disp-formula>
<disp-formula id="e4">
<mml:math id="m15">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2032;</mml:mo>
</mml:msup>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="&#x7c;">
<mml:mrow>
<mml:msub>
<mml:mi>s</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mo>&#x22c5;</mml:mo>
<mml:msubsup>
<mml:mi>&#x3c9;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:mi mathvariant="normal">c</mml:mi>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(4)</label>
</disp-formula>
<disp-formula id="e5">
<mml:math id="m16">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2033;</mml:mo>
</mml:msup>
</mml:msup>
<mml:mo>&#x3d;</mml:mo>
<mml:mrow>
<mml:mfenced open="[" close="]" separators="&#x7c;">
<mml:mrow>
<mml:mfrac>
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3c9;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2032;</mml:mo>
</mml:msup>
</mml:msubsup>
</mml:mrow>
<mml:mrow>
<mml:msqrt>
<mml:mrow>
<mml:mstyle displaystyle="true">
<mml:munder>
<mml:mo>&#x2211;</mml:mo>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>m</mml:mi>
<mml:mo>,</mml:mo>
<mml:mi>n</mml:mi>
</mml:mrow>
</mml:munder>
</mml:mstyle>
<mml:mrow>
<mml:msup>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:msubsup>
<mml:mi>&#x3c9;</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>m</mml:mi>
<mml:mi>n</mml:mi>
</mml:mrow>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2032;</mml:mo>
</mml:msup>
</mml:msubsup>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mn>2</mml:mn>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
</mml:mrow>
</mml:msqrt>
</mml:mrow>
</mml:mfrac>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(5)</label>
</disp-formula>
<disp-formula id="e6">
<mml:math id="m17">
<mml:mrow>
<mml:mover accent="true">
<mml:mi>w</mml:mi>
<mml:mo>&#x5e;</mml:mo>
</mml:mover>
<mml:mo>&#x3d;</mml:mo>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2033;</mml:mo>
</mml:msup>
</mml:msup>
<mml:mo>&#x2a;</mml:mo>
<mml:msup>
<mml:mi mathvariant="bold-italic">x</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
</mml:msup>
<mml:mo>&#x2b;</mml:mo>
<mml:msup>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
<label>(6)</label>
</disp-formula>where, the <inline-formula id="inf12">
<mml:math id="m18">
<mml:mrow>
<mml:mi>w</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> decoupled by the Mapping Network is first passed through a fully connected layer with a weight of <inline-formula id="inf13">
<mml:math id="m19">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:mi mathvariant="normal">f</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> and a deviation of <inline-formula id="inf14">
<mml:math id="m20">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="normal">f</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> to obtain the style information <inline-formula id="inf15">
<mml:math id="m21">
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. The resulting <inline-formula id="inf16">
<mml:math id="m22">
<mml:mrow>
<mml:mi mathvariant="bold-italic">s</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula> is then multiplied element-wise with the convolution kernel <inline-formula id="inf17">
<mml:math id="m23">
<mml:mrow>
<mml:msup>
<mml:mi>&#x3c9;</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, producing modulation weights <inline-formula id="inf18">
<mml:math id="m24">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2032;</mml:mo>
</mml:msup>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>. Subsequently, a demodulation weight <inline-formula id="inf19">
<mml:math id="m25">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2033;</mml:mo>
</mml:msup>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> is computed using a root mean square operation, incorporating an infinitesimal constant <inline-formula id="inf20">
<mml:math id="m26">
<mml:mrow>
<mml:mi>&#x3f5;</mml:mi>
</mml:mrow>
</mml:math>
</inline-formula>. Utilizing <inline-formula id="inf21">
<mml:math id="m27">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">&#x3c9;</mml:mi>
<mml:msup>
<mml:mi mathvariant="normal">c</mml:mi>
<mml:mo>&#x2033;</mml:mo>
</mml:msup>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> and the convolutional bias <inline-formula id="inf22">
<mml:math id="m28">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">b</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula>, a convolutional operation is performed on <inline-formula id="inf23">
<mml:math id="m29">
<mml:mrow>
<mml:msup>
<mml:mi mathvariant="bold-italic">x</mml:mi>
<mml:mi mathvariant="normal">c</mml:mi>
</mml:msup>
</mml:mrow>
</mml:math>
</inline-formula> which is the original input. This operation enables the extraction of complicated features from weather scenario.</p>
<p>The discriminator is predominantly implemented using a residual Convolutional Neural Network (CNN). This choice of architecture enables the discriminator to effectively identify abstract features and uncover hidden invariant structures within the weather data sequence. Within each residual block, average pooling down-sampling is employed to reduce the temporal resolution of the samples by half. Pattern collapse, a common issue in GAN structures where only a subset of data patterns are captured, is addressed by incorporating a small batch standard difference layer into the network structure. This addition aims to increase the diversity of reproducible samples generated, mitigating the problem. Towards the end of the discriminator, two fully connected layers are applied to adjust the output shape. The discriminator&#x2019;s discriminant results being closer to 1 indicate a more realistic weather scenario. These discriminant results are then utilized to construct loss functions for both the generator network and the discriminator network, as described by Eqs <xref ref-type="disp-formula" rid="e7">7</xref>, <xref ref-type="disp-formula" rid="e8">8</xref>. The purpose of computing these losses is to optimize the parameters of each component in the neural network using backpropagation, thereby continuously improving the realism of the weather data generated by the generator.<disp-formula id="e7">
<mml:math id="m30">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>G</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>Relu</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2212;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>z</mml:mi>
<mml:mrow>
<mml:mfenced open="|" close="" separators="&#x7c;">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(7)</label>
</disp-formula>
<disp-formula id="e8">
<mml:math id="m31">
<mml:mrow>
<mml:mi>L</mml:mi>
<mml:mi>o</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>s</mml:mi>
<mml:mi>D</mml:mi>
<mml:mo>&#x3d;</mml:mo>
<mml:mtext>Relu</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>&#x2b;</mml:mo>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>G</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>z</mml:mi>
<mml:mrow>
<mml:mfenced open="|" close="" separators="&#x7c;">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x2b;</mml:mo>
<mml:mtext>Relu</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>D</mml:mi>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>w</mml:mi>
<mml:mrow>
<mml:mfenced open="|" close="" separators="&#x7c;">
<mml:mrow>
<mml:mi>y</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
<label>(8)</label>
</disp-formula>where the function denoted as <inline-formula id="inf24">
<mml:math id="m32">
<mml:mtext>Relu</mml:mtext>
</mml:math>
</inline-formula> is represented by <inline-formula id="inf25">
<mml:math id="m33">
<mml:mrow>
<mml:mtext>Relu</mml:mtext>
<mml:mrow>
<mml:mfenced open="(" close=")" separators="&#x7c;">
<mml:mrow>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
<mml:mo>&#x3d;</mml:mo>
<mml:mo>&#x2061;</mml:mo>
<mml:mi>max</mml:mi>
<mml:mrow>
<mml:mfenced open="{" close="}" separators="&#x7c;">
<mml:mrow>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mi>x</mml:mi>
</mml:mrow>
</mml:mfenced>
</mml:mrow>
</mml:mrow>
</mml:math>
</inline-formula> and has the capability to be smoothed.</p>
</sec>
</sec>
<sec sec-type="discussion" id="s3">
<title>3 Discussion</title>
<p>Currently, almost all GAN-based PV scenario generation models are directly based on renewable energy generation data such as PV data or wind power data, and the proposed model is also theoretically applicable to the direct modelling of the PV scenario and the wind power scenario, as they are both essentially time series data. However, these approaches often overlook the crucial factor of weather scenarios. Weather conditions significantly impact PV power generation, and PV power models rely on factors such as direct radiation, diffuse radiation, and temperature to simulate PV power output. Solar radiation levels and temperature directly influence the performance of PV modules, and the uncertainty in weather scenarios contributes greatly to the uncertainty in PV power generation. Therefore, solely relying on direct PV data simulation neglects the physical constraints imposed by weather scenarios on PV power generation, limiting the generalizability of PV scenario modeling approaches. To address this limitation, we propose a weather-based PV generation scenario simulation that first models weather scenarios to accurately capture their realism. By incorporating weather-based simulations, we can enforce strict physical constraints on PV scenarios, thus ensuring a higher level of generality in PV scenario simulation models.</p>
<p>Traditional methods for modeling weather scenarios primarily rely on explicit methods based on probabilistic statistical approaches. These explicit methods require formulating probability distribution functions for PV generation data, leading to limitations such as small capacity, poor generalization capability, and difficulties in handling high-dimensional data. With the advancements in artificial intelligence algorithms, deep learning methods, particularly unsupervised learning methods based on GAN, have gained prominence. GAN-based models do not necessitate explicit specification of probability distribution functions for scenario data, nor do they require explicit likelihood estimation. GAN is capable of capturing complex data distributions due to its data-driven approach. GAN has the flexibility to generate realistic weather simulations while effectively capturing spatial and temporal dependencies. In addition, GANs have the ability to generate high-resolution simulations and estimate uncertainty, providing a powerful tool for weather prediction and climate research. However, one limitation of GANs is the lack of control over the generated data, as it is random and unpredictable. CGAN enable GANs to transition from unsupervised to supervised learning, allowing better control over the network&#x2019;s output. In our proposed model, we utilize weather features as labels, such as sunny, cloudy, overcast, and rainy/snowy, to generate weather scenarios based on specified weather conditions. By incorporating weather features as labels, we can generate weather scenarios according to our specific requirements. To achieve better control over the overall probabilistic, temporal, and correlation characteristics of weather scenario data, as well as the diversity represented by local differences, we propose a style-based weather data simulation algorithm. This algorithm enables us to learn the trend characteristics and local uncertainty random variation characteristics of weather data, representing high and low image characteristics, respectively. By separating these characteristics, we can generate weather scenarios with consistent trends but diverse variations.</p>
</sec>
<sec sec-type="conclusion" id="s4">
<title>4 Conclusion</title>
<p>For PV scenario modeling, generating weather data sequences with specific features is crucial. We propose a conditional style-based generative adversarial network for stochastic weather scenario simulation.</p>
<p>In conclusion, two key points stand out. Firstly, methods based on weather data for generating PV scenarios can comprehensively consider weather&#x2019;s impact on PV system performance, enhancing simulation accuracy. This aids in understanding PV system behavior under various conditions and supports system design and operation. Secondly, current time-series data generation models and PV scenario generation models often lack scenario diversity consideration. StyleGAN, an advanced image generation technology, holds significant potential for weather data generation. Leveraging its hierarchical feature control and continuous latent space, StyleGAN can generate richer, more diverse, and realistic weather scenarios. This increases data diversity and enhances simulation realism.</p>
<p>Moreover, AI advancements, like ChatGPT, are promising for weather scenario generation. It can automate dataset annotations, improve data quality, and analyze discrepancies between generated and real data, aiding GAN training and refining generated results. This opens avenues for processing higher-dimensional and larger-scale weather data.</p>
</sec>
</body>
<back>
<sec id="s5">
<title>Author contributions</title>
<p>JD: Conceptualization, Data curation, Investigation, Writing&#x2013;original draft. JZ: Funding acquisition, Investigation, Visualization, Writing&#x2013;review and editing.</p>
</sec>
<sec sec-type="funding-information" id="s6">
<title>Funding</title>
<p>The author(s) declare that financial support was received for the research, authorship, and/or publication of this article. This study is supported by the science and technology program of Guangzhou Power Supply Bureau, Guangdong Power Grid Co., Ltd. (030109KK52222003).</p>
</sec>
<sec sec-type="COI-statement" id="s7">
<title>Conflict of interest</title>
<p>Authors JD and JZ were employed by Guangzhou Power Supply Bureau of Guangdong Power Grid Co., Ltd.</p>
<p>The authors declare that this study received funding from the science and technology program of Guangzhou Power Supply Bureau of Guangdong Power Grid Co., Ltd. (030109KK52222003). The funder had the following involvement in the study: Data collection.</p>
</sec>
<sec sec-type="disclaimer" id="s8">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Cai</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>He</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Guo</surname>
<given-names>L.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Two-tier coordinated optimal scheduling of wind/PV/hydropower and storage systems based on generative adversarial network scene generation</article-title>. <source>Front. Energy Res.</source> <volume>11</volume>. <pub-id pub-id-type="doi">10.3389/fenrg.2023.1266079</pub-id>
</citation>
</ref>
<ref id="B2">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Wei</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Sun</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Agri-energy-environment synergy-based distributed energy planning in rural areas</article-title>. <source>IEEE Trans. Smart Grid</source>, <fpage>1</fpage>. <pub-id pub-id-type="doi">10.1109/TSG.2024.3364182</pub-id>
</citation>
</ref>
<ref id="B3">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Fu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>Y.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Collaborative optimization of PV greenhouses and clean energy systems in rural areas</article-title>. <source>IEEE Trans. Sustain. Energy</source> <volume>14</volume>, <fpage>642</fpage>&#x2013;<lpage>656</lpage>. <pub-id pub-id-type="doi">10.1109/TSTE.2022.3223684</pub-id>
</citation>
</ref>
<ref id="B4">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Hussain</surname>
<given-names>I.</given-names>
</name>
<name>
<surname>Haider</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Ullah</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Russo</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Casolino</surname>
<given-names>G. M.</given-names>
</name>
<name>
<surname>Azeem</surname>
<given-names>B.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Comparative analysis of eight numerical methods using Weibull distribution to estimate wind power density for coastal areas in Pakistan</article-title>. <source>Energies</source> <volume>16</volume>, <fpage>1515</fpage>. <pub-id pub-id-type="doi">10.3390/en16031515</pub-id>
</citation>
</ref>
<ref id="B5">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Karras</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Laine</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Aittala</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Hellsten</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Lehtinen</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Aila</surname>
<given-names>T.</given-names>
</name>
</person-group> (<year>2020</year>). &#x201c;<article-title>Analyzing and improving the image quality of StyleGAN</article-title>,&#x201d; in <conf-name>2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)</conf-name>, <conf-loc>Seattle, WA, USA</conf-loc>, <conf-date>June 13 2020 to June 19 2020</conf-date>, <fpage>8107</fpage>&#x2013;<lpage>8116</lpage>.</citation>
</ref>
<ref id="B6">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>P.</given-names>
</name>
<name>
<surname>Huang</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Liang</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Dai</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Cao</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>H.</given-names>
</name>
<etal/>
</person-group> (<year>2023</year>). <article-title>Power system data-driven dispatch using improved scenario generation considering time-series correlations</article-title>. <source>Front. Energy Res.</source> <volume>11</volume>. <pub-id pub-id-type="doi">10.3389/fenrg.2023.1267713</pub-id>
</citation>
</ref>
<ref id="B7">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Babovic</surname>
<given-names>V.</given-names>
</name>
</person-group> (<year>2019</year>). <article-title>A new scheme for multivariate, multisite weather generator with inter-variable, inter-site dependence and inter-annual variability based on empirical copula approach</article-title>. <source>Clim. Dyn.</source> <volume>52</volume>, <fpage>2247</fpage>&#x2013;<lpage>2267</lpage>. <pub-id pub-id-type="doi">10.1007/s00382-018-4249-5</pub-id>
</citation>
</ref>
<ref id="B8">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Li</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Metsis</surname>
<given-names>V.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Ngu</surname>
<given-names>A. H.</given-names>
</name>
</person-group> (<year>2022</year>). &#x201c;<article-title>TTS-GAN: a transformer-based time-series generative adversarial network</article-title>,&#x201d; in <conf-name>Conference on Artificial Intelligence in Medicine in Europe</conf-name>, <conf-loc>Halifax, Canada</conf-loc>, <conf-date>June 14-17 2022</conf-date>, <fpage>133</fpage>&#x2013;<lpage>143</lpage>.</citation>
</ref>
<ref id="B9">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rathore</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Kumar</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Patidar</surname>
<given-names>N. P.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Techno-socio-economic and sensitivity analysis of standalone micro-grid located in central India</article-title>. <source>Int. J. Ambient Energy</source> <volume>44</volume>, <fpage>1490</fpage>&#x2013;<lpage>1511</lpage>. <pub-id pub-id-type="doi">10.1080/01430750.2023.2176922</pub-id>
</citation>
</ref>
<ref id="B10">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Richardson</surname>
<given-names>C. W.</given-names>
</name>
</person-group> (<year>2018</year>) <source>Wgen: a model for generating daily weather variables</source>.</citation>
</ref>
<ref id="B11">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Rohani</surname>
<given-names>G.</given-names>
</name>
<name>
<surname>Nour</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2014</year>). <article-title>Techno-economical analysis of stand-alone hybrid renewable power system for Ras Musherib in United Arab Emirates</article-title>. <source>Energy</source> <volume>64</volume>, <fpage>828</fpage>&#x2013;<lpage>841</lpage>. <pub-id pub-id-type="doi">10.1016/j.energy.2013.10.065</pub-id>
</citation>
</ref>
<ref id="B12">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Sauer</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Karras</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Laine</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Geiger</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Aila</surname>
<given-names>T.</given-names>
</name>
</person-group> (<year>2023</year>). &#x201c;<article-title>StyleGAN-T: unlocking the power of GANs for fast large-scale text-to-image synthesis</article-title>,&#x201d; in <conf-name>International Conference on Machine Learning</conf-name>, <conf-loc>Honolulu; HI; United States</conf-loc>, <conf-date>23-29 July 2023</conf-date>.</citation>
</ref>
<ref id="B13">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sparks</surname>
<given-names>N. J.</given-names>
</name>
<name>
<surname>Hardwick</surname>
<given-names>S. R.</given-names>
</name>
<name>
<surname>Schmid</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Toumi</surname>
<given-names>R.</given-names>
</name>
</person-group> (<year>2018</year>). <article-title>IMAGE: a multivariate multi-site stochastic weather generator for European weather and climate</article-title>. <source>Stoch. Environ. Res. Risk Assess.</source> <volume>32</volume>, <fpage>771</fpage>&#x2013;<lpage>784</lpage>. <pub-id pub-id-type="doi">10.1007/s00477-017-1433-9</pub-id>
</citation>
</ref>
<ref id="B14">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Sun</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Feng</surname>
<given-names>C.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2020</year>). <article-title>Probabilistic solar power forecasting based on weather scenario generation</article-title>. <source>Appl. Energy</source> <volume>266</volume>, <fpage>114823</fpage>. <pub-id pub-id-type="doi">10.1016/j.apenergy.2020.114823</pub-id>
</citation>
</ref>
<ref id="B15">
<citation citation-type="book">
<person-group person-group-type="author">
<name>
<surname>Szal&#xf3;czy</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Gelencs&#xe9;r</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Rost&#xe1;si</surname>
<given-names>&#xc1;.</given-names>
</name>
<name>
<surname>Abonyi</surname>
<given-names>J.</given-names>
</name>
</person-group> (<year>2024</year>) <source>The economic growth paradigm must Be abandoned in the transition to green energy</source>. <comment>Available at SSRN 4735910</comment>.</citation>
</ref>
<ref id="B16">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Xiong</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Kang</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Jin</surname>
<given-names>D.</given-names>
</name>
<name>
<surname>Chen</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Bao</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Han</surname>
<given-names>X.</given-names>
</name>
<etal/>
</person-group> (<year>2023</year>). &#x201c;<article-title>Get3DHuman: lifting StyleGAN-human into a 3D generative model using pixel-aligned reconstruction priors</article-title>,&#x201d; in <conf-name>2023 IEEE/CVF International Conference on Computer Vision (ICCV)</conf-name>, <conf-loc>Paris, France</conf-loc>, <conf-date>October 2-3, 2023</conf-date>, <fpage>9253</fpage>&#x2013;<lpage>9263</lpage>.</citation>
</ref>
<ref id="B17">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Xu</surname>
<given-names>J.</given-names>
</name>
<name>
<surname>Ji</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Bao</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhang</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Wang</surname>
<given-names>W.</given-names>
</name>
<etal/>
</person-group> (<year>2023</year>). <article-title>Two-stage scheduling of integrated energy systems based on a two-step DCGAN-based scenario prediction approach</article-title>. <source>Front. Energy Res.</source> <volume>10</volume>. <pub-id pub-id-type="doi">10.3389/fenrg.2022.1012367</pub-id>
</citation>
</ref>
<ref id="B18">
<citation citation-type="confproc">
<person-group person-group-type="author">
<name>
<surname>Yang</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Jiang</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Liu</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Loy</surname>
<given-names>C. C.</given-names>
</name>
</person-group> (<year>2023b</year>). &#x201c;<article-title>StyleGANEX: StyleGAN-based manipulation beyond cropped aligned faces</article-title>,&#x201d; in <conf-name>2023 IEEE/CVF International Conference on Computer Vision (ICCV)</conf-name>, <conf-loc>Paris, France</conf-loc>, <conf-date>October 2-3, 2023</conf-date>, <fpage>20943</fpage>&#x2013;<lpage>20953</lpage>.</citation>
</ref>
<ref id="B19">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yang</surname>
<given-names>Z.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Zhou</surname>
<given-names>G.</given-names>
</name>
</person-group> (<year>2023a</year>). <article-title>TS-GAN: time-series GAN for sensor-based health data augmentation</article-title>. <source>ACM Trans. Comput. Healthc.</source> <volume>4</volume>, <fpage>1</fpage>&#x2013;<lpage>21</lpage>. <pub-id pub-id-type="doi">10.1145/3583593</pub-id>
</citation>
</ref>
<ref id="B20">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yano</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Furue</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Kadowaki</surname>
<given-names>M.</given-names>
</name>
<name>
<surname>Tanaka</surname>
<given-names>T.</given-names>
</name>
<name>
<surname>Hiraki</surname>
<given-names>E.</given-names>
</name>
<name>
<surname>Miyamoto</surname>
<given-names>M.</given-names>
</name>
<etal/>
</person-group> (<year>2009</year>). <article-title>Electrical energy generated by photovoltaic modules mounted inside the roof of a north-south oriented greenhouse</article-title>. <source>Biosyst. Eng.</source> <volume>103</volume>, <fpage>228</fpage>&#x2013;<lpage>238</lpage>. <pub-id pub-id-type="doi">10.1016/j.biosystemseng.2009.02.020</pub-id>
</citation>
</ref>
<ref id="B21">
<citation citation-type="web">
<person-group person-group-type="author">
<name>
<surname>Yi</surname>
<given-names>H.</given-names>
</name>
<name>
<surname>Hou</surname>
<given-names>L.</given-names>
</name>
<name>
<surname>Jin</surname>
<given-names>Y.</given-names>
</name>
<name>
<surname>Saeed</surname>
<given-names>N. A.</given-names>
</name>
</person-group> (<year>2023</year>). <article-title>Time series diffusion method: a denoising diffusion probabilistic model for vibration signal generation</article-title>. <comment>Available at: <ext-link ext-link-type="uri" xlink:href="https://arxiv.org/abs/2312.07981">https://arxiv.org/abs/2312.07981</ext-link>.</comment>
</citation>
</ref>
<ref id="B22">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhang</surname>
<given-names>Q.</given-names>
</name>
<name>
<surname>Ferdowsi</surname>
<given-names>A.</given-names>
</name>
<name>
<surname>Saad</surname>
<given-names>W.</given-names>
</name>
<name>
<surname>Bennis</surname>
<given-names>M.</given-names>
</name>
</person-group> (<year>2021</year>). <article-title>Distributed conditional generative adversarial networks (GANs) for data-driven millimeter wave communications in UAV networks</article-title>. <source>IEEE Trans. Wirel. Commun.</source> <volume>21</volume>, <fpage>1438</fpage>&#x2013;<lpage>1452</lpage>. <pub-id pub-id-type="doi">10.1109/TWC.2021.3103971</pub-id>
</citation>
</ref>
<ref id="B23">
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhang</surname>
<given-names>X.</given-names>
</name>
<name>
<surname>Fan</surname>
<given-names>S.</given-names>
</name>
<name>
<surname>Li</surname>
<given-names>D.</given-names>
</name>
</person-group> (<year>2024</year>). <article-title>Spectral normalization generative adversarial networks for photovoltaic power scenario generation</article-title>. <source>IET Renew. Power Gener</source>. <pub-id pub-id-type="doi">10.1049/rpg2.12978</pub-id>
</citation>
</ref>
</ref-list>
</back>
</article>