<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN" "JATS-journalpublishing1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="1.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Plant Sci.</journal-id>
<journal-title-group>
<journal-title>Frontiers in Plant Science</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Plant Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">1664-462X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fpls.2026.1755040</article-id>
<article-version article-version-type="Version of Record" vocab="NISO-RP-8-2008"/>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Original Research</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Research on time series prediction of microclimate in agrivoltaic systems based on the long short-term memory and attention mechanism</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name><surname>Zhang</surname><given-names>Long</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3360259/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="visualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Gong</surname><given-names>Jianhui</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Formal analysis" vocab-term-identifier="https://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="validation" vocab-term-identifier="https://credit.niso.org/contributor-roles/validation/">Validation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Wu</surname><given-names>Cuinan</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/1752454/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Funding acquisition" vocab-term-identifier="https://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Murchie</surname><given-names>Erik Harry</given-names></name>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/358526/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Gibbs</surname><given-names>Alexandra Jacquelyn</given-names></name>
<xref ref-type="aff" rid="aff4"><sup>4</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/359078/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Liu</surname><given-names>Bingbing</given-names></name>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Yang</surname><given-names>Chen</given-names></name>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="investigation" vocab-term-identifier="https://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Xu</surname><given-names>Guijun</given-names></name>
<xref ref-type="aff" rid="aff5"><sup>5</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Zhang</surname><given-names>Jinxin</given-names></name>
<xref ref-type="aff" rid="aff6"><sup>6</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="methodology" vocab-term-identifier="https://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author">
<name><surname>Guo</surname><given-names>Jiguang</given-names></name>
<xref ref-type="aff" rid="aff6"><sup>6</sup></xref>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="resources" vocab-term-identifier="https://credit.niso.org/contributor-roles/resources/">Resources</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="software" vocab-term-identifier="https://credit.niso.org/contributor-roles/software/">Software</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; original draft" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-original-draft/">Writing &#x2013; original draft</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Xiao</surname><given-names>Maohua</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/2220711/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name><surname>Bao</surname><given-names>Encai</given-names></name>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<xref ref-type="corresp" rid="c001"><sup>*</sup></xref>
<uri xlink:href="https://loop.frontiersin.org/people/3291134/overview"/>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="conceptualization" vocab-term-identifier="https://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Funding acquisition" vocab-term-identifier="https://credit.niso.org/contributor-roles/funding-acquisition/">Funding acquisition</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Project-administration" vocab-term-identifier="https://credit.niso.org/contributor-roles/project-administration/">Project administration</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="supervision" vocab-term-identifier="https://credit.niso.org/contributor-roles/supervision/">Supervision</role>
<role vocab="credit" vocab-identifier="https://credit.niso.org/" vocab-term="Writing &#x2013; review &amp; editing" vocab-term-identifier="https://credit.niso.org/contributor-roles/writing-review-editing/">Writing &#x2013; review &amp; editing</role>
</contrib>
</contrib-group>
<aff id="aff1"><label>1</label><institution>College of Engineering, Nanjing Agricultural University</institution>, <city>Nanjing</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff2"><label>2</label><institution>Institute of Agricultural Facilities and Equipment, Jiangsu Academy of Agricultural Sciences</institution>, <city>Nanjing</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff3"><label>3</label><institution>Key Laboratory of Agricultural Engineering of the Middle and Lower Reaches of the Yangtze River, Ministry of Agriculture and Rural Affairs of the People&#x2019;s Republic of China</institution>, <city>Nanjing</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff4"><label>4</label><institution>School of Biosciences, University of Nottingham</institution>, <city>Nottingham</city>,&#xa0;<country country="gb">United Kingdom</country></aff>
<aff id="aff5"><label>5</label><institution>Shenzhen Energy Nanjing Holding Co., Ltd.</institution>, <city>Nanjing</city>,&#xa0;<country country="cn">China</country></aff>
<aff id="aff6"><label>6</label><institution>China Electric Power Engineering Consulting Group Co., Ltd.</institution>, <city>Beijing</city>,&#xa0;<country country="cn">China</country></aff>
<author-notes>
<corresp id="c001"><label>*</label>Correspondence: Encai Bao, <email xlink:href="mailto:20180051@jaas.ac.cn">20180051@jaas.ac.cn</email>; Maohua Xiao, <email xlink:href="mailto:xiaomaohua@njau.edu.cn">xiaomaohua@njau.edu.cn</email></corresp>
</author-notes>
<pub-date publication-format="electronic" date-type="pub" iso-8601-date="2026-02-03">
<day>03</day>
<month>02</month>
<year>2026</year>
</pub-date>
<pub-date publication-format="electronic" date-type="collection">
<year>2026</year>
</pub-date>
<volume>17</volume>
<elocation-id>1755040</elocation-id>
<history>
<date date-type="received">
<day>26</day>
<month>11</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>13</day>
<month>01</month>
<year>2026</year>
</date>
<date date-type="rev-recd">
<day>31</day>
<month>12</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2026 Zhang, Gong, Wu, Murchie, Gibbs, Liu, Yang, Xu, Zhang, Guo, Xiao and Bao.</copyright-statement>
<copyright-year>2026</copyright-year>
<copyright-holder>Zhang, Gong, Wu, Murchie, Gibbs, Liu, Yang, Xu, Zhang, Guo, Xiao and Bao</copyright-holder>
<license>
<ali:license_ref start_date="2026-02-03">https://creativecommons.org/licenses/by/4.0/</ali:license_ref>
<license-p>This is an open-access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution License (CC BY)</ext-link>. 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.</license-p>
</license>
</permissions>
<abstract>
<sec>
<title>Introduction</title>
<p>Agrivoltaic (AV) systems combine photovoltaic (PV) power generation with agriculture to enhance land use and energy production. However, accurately predicting the microclimate within AV systems remains a challenge, primarily due to existing models failing to get their inherent temporal and spatial variability.</p>
</sec>
<sec>
<title>Methods</title>
<p>To address this, this study used long short-term memory (LSTM) networks to process time-series data and incorporated an attention mechanism to adjust the importance of temporal features. The model considered two environmental parameters, including solar radiation intensity and air temperature. Data collected from experimental AV systems with different PV panel density in Nanjing, China. The performance of the LSTM-Attention model was compared with traditional machine learning methods and standard LSTM models.</p>
</sec>
<sec>
<title>Results</title>
<p>The results demonstrated that the LSTM-Attention model outperformed the other models in predicting both solar radiation intensity and air temperature within AV systems with different PV panel density. Specifically, the Root Mean Square Error (RMSE) for radiation intensity predictions decreased by 28.0%, 35.7%, and 42.1% at different coverage densities. For air temperature predictions, the RMSE dropped by 39.0% in summer and 18.1% in winter. Importantly, the LSTM-Attention model maintained stable prediction performance even in winter and rainy weather conditions.</p>
</sec>
<sec>
<title>Discussion</title>
<p>The results indicated that the LSTM-Attention model could effectively captured the complex temporal variations in solar radiation and air temperature within AV systems, especially under varying weather conditions. The study provides theoretical support for improving crop management strategies within AV systems.</p>
</sec>
</abstract>
<kwd-group>
<kwd>agrivoltaics</kwd>
<kwd>microclimate prediction</kwd>
<kwd>attention mechanism</kwd>
<kwd>long short-term memory</kwd>
<kwd>solar radiation</kwd>
<kwd>air temperature</kwd>
</kwd-group>
<funding-group>
<award-group id="gs1">
<funding-source id="sp1">
<institution-wrap>
<institution>Natural Science Foundation of Jiangsu Province</institution>
<institution-id institution-id-type="doi" vocab="open-funder-registry" vocab-identifier="10.13039/open_funder_registry">10.13039/501100004608</institution-id>
</institution-wrap>
</funding-source>
<award-id rid="sp1">BK20241174</award-id>
</award-group>
<funding-statement>The author(s) declared that financial support was received for this work and/or its publication. This research was funded by the Major Science and Technology Special Project of China Electric Power Engineering Consulting Group Co., Ltd. (Grant No. DG3-P01-2023), and the Natural Science Foundation of Jiangsu Province (BK20241174).</funding-statement>
</funding-group>
<counts>
<fig-count count="13"/>
<table-count count="3"/>
<equation-count count="16"/>
<ref-count count="46"/>
<page-count count="19"/>
<word-count count="10417"/>
</counts>
<custom-meta-group>
<custom-meta>
<meta-name>section-at-acceptance</meta-name>
<meta-value>Sustainable and Intelligent Phytoprotection</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="s1" sec-type="intro">
<label>1</label>
<title>Introduction</title>
<p>Agrivoltaics is an emerging agricultural model that combines photovoltaic (PV) power generation with farming, allowing for more efficient use of land (<xref ref-type="bibr" rid="B3">Brown, 2018</xref>; <xref ref-type="bibr" rid="B37">Stid et&#xa0;al., 2025</xref>). In recent years, agrivoltaics (AV) systems have become increasingly popular as a way to combine renewable energy generation with farming (<xref ref-type="bibr" rid="B21">Li et&#xa0;al., 2022a</xref>). They have been given a lot of attention from researchers and businesses due to their dual environmental and economic benefits (<xref ref-type="bibr" rid="B4">Chopdar et&#xa0;al., 2024</xref>).</p>
<p>In AV systems, microclimate have a direct impact on the photosynthetic efficiency and physiological metabolic processes of crops, affecting the productivity and benefits of the system (<xref ref-type="bibr" rid="B8">Ghosh, 2023</xref>; <xref ref-type="bibr" rid="B28">Moon and Ku, 2023</xref>). The intensity of solar radiation that drives the process of photosynthesis is crucial for determining the rate of dry matter production and the final quality parameters of the crop (<xref ref-type="bibr" rid="B10">Gnayem et&#xa0;al., 2024</xref>). Air temperature also affects the activity of enzymes and respiration in plants, controlling the growth cycle and stress resistance performance (<xref ref-type="bibr" rid="B11">Gong et&#xa0;al., 2025</xref>). It has been found out that the shading caused by the PV panel results in significant changes in the radiation intensity both in space and time, and these changes in the light environment led to complex temperature field changes via alterations in the surface energy balance. All these together can cause physiological problems such as photoinhibition or heat stress for crops. As a non-linear system that is influenced by various factors such as the angle of the sun, clouds, and the shape of the PV array, AV systems display clear temporal and spatial variations in their microclimatic parameters (<xref ref-type="bibr" rid="B31">Pandey et&#xa0;al., 2025</xref>). To get a good grasp of the coupling among solar radiation and air temperature and to build up precise prediction models would offer some help to make decisions concerning crop cultivation and at the same time it would also form the basis for designing PV arrays and intelligent control systems (<xref ref-type="bibr" rid="B44">Zainali et&#xa0;al., 2025</xref>). Although environmental prediction for PV greenhouses is relatively well-established, there is still limited research on environmental prediction in open-field AV systems. Open-field AV systems differ significantly from greenhouse setups, primarily due to the lack of physical enclosures and the direct interaction between crops and external environmental factors such as wind, precipitation, and solar radiation. Consequently, accurately predicting microclimates in these systems is critical for optimizing both agricultural production and energy generation. By improving the prediction of environmental factors such as solar radiation and air temperature, it could provide data-driven insights that can assist in designing more efficient PV panel layouts and management strategies for crop cultivation.</p>
<p>The current methods used for predicting microclimates in AV systems include three main types of modeling methods: mechanistic approach, computational fluid dynamics (CFD), and data driven method (<xref ref-type="bibr" rid="B22">Li et&#xa0;al., 2021</xref>; <xref ref-type="bibr" rid="B40">Williams et&#xa0;al., 2023</xref>; <xref ref-type="bibr" rid="B42">Yajima et&#xa0;al., 2023</xref>). In practical applications, PV modules block incoming solar radiation in AV systems, forming moving shadows on the ground surface such as farmland, which affects the microclimate. Therefore, mechanistic models generally use solar radiation theory or thermodynamics to study the light distribution and dynamic energy-mass exchange process in these systems. For example, <xref ref-type="bibr" rid="B26">Ma Lu et&#xa0;al. (2022)</xref> developed a photosynthetic active radiation (PAR) decomposition model according to the Spitters light response curve theory. By adding cloud cover improvement elements and satellite-based information, they decreased the prediction mistake of the diffuse PAR part to 23.75% at a 30-minute time scale in temperate regions. <xref ref-type="bibr" rid="B45">Zhang et&#xa0;al. (2025)</xref> created a spatiotemporal dynamic model for the PV shading width, allowing for the quantitative prediction of the shading effect. <xref ref-type="bibr" rid="B32">Peng et&#xa0;al. (2023)</xref> created a light-electricity-heat coupling multi-physics model for PV greenhouses. They achieved a dynamic match between the coverage of PV panels and the photosynthetic characteristics of strawberries by optimizing the PAR and net photosynthetic rate models together. Some parameters are quite hard to get right, such as convective heat transfer coefficients and longwave radiation exchange coefficients. Additionally, the effect of crops on the surrounding environment continues to be a topic of active research, making it challenging to develop complete mechanistic models for AV systems (<xref ref-type="bibr" rid="B45">Zhang et&#xa0;al., 2025</xref>).</p>
<p>The CFD model is a special type of mechanistic models (<xref ref-type="bibr" rid="B2">Bellone et&#xa0;al., 2024</xref>). Recently, CFD modeling approaches have been extensively employed in studies of AV systems. A representative study by <xref ref-type="bibr" rid="B18">Joseph et&#xa0;al. (2025)</xref> implemented coupled multi-physics simulations incorporating source-sink terms within a CFD framework to analyze microclimates in AV systems. The study reduced numerical diffusion artefacts in shaded obstacle simulations through the refinement of the discrete ordinates radiation method. <xref ref-type="bibr" rid="B40">Williams et&#xa0;al. (2023)</xref> conducted a comprehensive CFD-based microclimate analysis examining the coupled effects of panel elevation, surface reflectivity, and plant water loss in AV systems. <xref ref-type="bibr" rid="B11">Gong et&#xa0;al. (2025)</xref> applied a CFD thermal environment model to explore the thermal regulation in AV systems with different panel heights. While these established CFD models can accurately simulate microclimate distribution within AV systems, they require substantial computational resources. In conclusion, CFD models are better suited for applications that do not have high real-time computation requirements such as agricultural buildings&#x2019; structural optimization and energy consumption simulation, rather than real-time environmental control in AV systems (<xref ref-type="bibr" rid="B44">Zainali et&#xa0;al., 2025</xref>).</p>
<p>The rapid development of artificial intelligence and computing technologies has prompted increasing adoption of data-driven models for microclimate prediction (<xref ref-type="bibr" rid="B24">Li et&#xa0;al., 2022b</xref>; <xref ref-type="bibr" rid="B15">Huang et&#xa0;al., 2024</xref>; <xref ref-type="bibr" rid="B23">Li et&#xa0;al., 2025</xref>). Although the training process demands considerable computational resources, these models achieve rapid prediction speeds post-training, with their accuracy being highly contingent upon both dataset quality and algorithmic design. Commonly employed machine learning approaches include regression models and convolutional neural networks (<xref ref-type="bibr" rid="B9">Giudici et&#xa0;al., 2023</xref>). Among these, the long short-term memory (LSTM) have emerged as a prevalent algorithm for time-series processing (<xref ref-type="bibr" rid="B41">Wu et&#xa0;al., 2024</xref>), finding particular application in agricultural building microclimate prediction due to their superior capability in handling sequential data (<xref ref-type="bibr" rid="B7">Geng et&#xa0;al., 2024</xref>). However, as the forecasting horizon extends, there is a significant decline in prediction accuracy, making the achievement of precise microclimate predictions under complex scenarios a key research challenge.</p>
<p>As a major innovation for processing sequence data, attention mechanisms dynamically allocate focus among inputs to enhance the model&#x2019;s capability to recognize and leverage important information (<xref ref-type="bibr" rid="B12">Guo and Feng, 2024</xref>). Recent advances have demonstrated its effectiveness in enhancing model predictive performance. <xref ref-type="bibr" rid="B27">Mao et&#xa0;al. (2024)</xref> integrated attention mechanisms into BiGRU networks; the computed attention weights for hidden state vectors greatly enhanced the extraction of temporal features in greenhouse environments. <xref ref-type="bibr" rid="B16">Jiang et&#xa0;al. (2022)</xref> introduced an Attention-LSTM architecture which yielded impressive results in predicting indoor temperature 90 minutes ahead. They used a four-head attention mechanism to dynamically weight important features such as past temperatures, exterior wall temperatures, and predicted outdoor temperatures, resulting in a coefficient of determination of 0.9, which is a 26.1% improvement over traditional LSTM methods. However, research on applying attention mechanisms to enhance model predictive performance in AV systems remains relatively unexplored.</p>
<p>PV panel coverage density, which is an important structural parameter affecting the microclimate of AV systems, directly affects the spatial distribution patterns and dynamic changes of photothermal resources. The shading effect of PV panels with different coverage densities greatly changes the surface energy balance, causing spatiotemporal differences in the radiation intensity and temperature field, thereby affecting the photosynthesis efficiency and physiological metabolic process of crops (<xref ref-type="bibr" rid="B38">Tan et&#xa0;al., 2025</xref>). To conduct microclimate parameter prediction research on multiple density scenarios can not only clarify the quantitative response relationship between the coverage of PV panels and the microenvironmental factors, but also provide data support for optimizing the configuration of PV arrays, so as to achieve the goal of improving the efficiency of power generation and agricultural production at the system level.</p>
<p>To deal with the considerable temporal variation and spatial disparity of microclimate parameters in AV systems, and the reduced predictive precision with longer forecasting intervals, this research created an LSTM-Attention based multi-parameter microclimate prediction model. The model used a multi-dimensional environmental parameter combination such as the PV panel coverage density and photothermal environment and adopted an attention mechanism to dynamically weight important temporal factors. This method was able to make highly accurate forecasts of the microclimate in AV systems during different seasons and weather conditions, which provided a theoretical basis for optimizing the allocation of light and thermal resources and managing crops.</p>
</sec>
<sec id="s2" sec-type="materials|methods">
<label>2</label>
<title>Materials and methods</title>
<sec id="s2_1">
<label>2.1</label>
<title>Experimental AV systems</title>
<p>The experimental AV park located in Nanjing, China (31.6&#xb0;N, 119.2&#xb0;E). This park covered a total area of 47 hectares at an altitude of 360 meters, which was constructed in 2016 by Shenzhen Energy Group. Operating under an AV model, it comprised eight array units (<xref ref-type="fig" rid="f1"><bold>Figure&#xa0;1a</bold></xref>). The park was estimated to reduce CO2 emissions by 19,800 t per year, which is equivalent to saving 7,900 t of standard coal. estimated to reduce CO<sub>2</sub> emissions by 19,800 t per year, equivalent to saving 7,900 t of standard coal. The experimental area has a subtropical monsoon climate with obvious seasonal changes.</p>
<fig id="f1" position="float">
<label>Figure&#xa0;1</label>
<caption>
<p>Location of the AV systems and different structure with 3 coverage densities: <bold>(a)</bold> Experimental AV base; <bold>(b)</bold> PV array structure; <bold>(c)</bold> Arrays with 3 different coverage densities of the moderate-density (MD), the high-density (HD) and the full-density (FD).</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g001.tif">
<alt-text content-type="machine-generated">Aerial view and illustrations of solar panel arrays. Panel (a) shows extensive solar panels installed in a rural area near a river. Panel (b) depicts an overhead view of solar panels arranged in a grid pattern. Panel (c) illustrates three configurations: full-density (FD), high-density (HD), and moderate-density (MD) solar panel structures, each on different support frameworks.</alt-text>
</graphic></fig>
<p>The AV system adopted a south-facing array configuration with a total span of 6.8&#xa0;m. Under full-density coverage, the PV modules were arranged in four tightly packed horizontal rows (<xref ref-type="fig" rid="f1"><bold>Figure&#xa0;1b</bold></xref>). The modules were mounted at a 24&#xb0; tilt angle on <italic>&#x3a6;</italic>300 concrete piles, with the lower edge positioned 2.5&#xa0;m above ground level. The polycrystalline silicon PV modules had a rated power output of 265 Wp, with a dimension of 1640 &#xd7; 992 &#xd7; 35&#xa0;mm (L &#xd7; W &#xd7; H). Considering that low PV array coverage would result in impractical investment recovery periods while accounting for retrofitting costs, the study established two typical PV coverage densities of the moderate-density (MD) and the high-density (HD), based on a tightly packed configuration of 4 horizontal rows representing the full-density (FD) (<xref ref-type="fig" rid="f1"><bold>Figure&#xa0;1c</bold></xref>). The vertical projection ratios of these coverage levels (the total vertical projection area of the modules on the farmland/the area of the farmland where the photovoltaic modules are installed) are 53.3%, 40.0% and 26.7% respectively.</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>Data acquisition</title>
<p>To investigate the shading effects of PV arrays, varying PV panel deployment densities (full-density, FD; high-density, HD; and moderate-density, MD) were employed to establish quantitative relationships between shading ratios and microenvironmental parameters, thereby comprehensively covering typical operational scenarios. The monitored AV system in this study comprised four distinct sensor monitoring zones: three inter-panel areas within AV systems with different panel coverage densities and an open-field area without PV panels. The environmental parameters monitored included global solar radiation, temperature, relative humidity, soil moisture, precipitation, wind speed and direction, both within and outside the AV systems. Detailed specifications of the sensor models and their parameters are provided in <xref ref-type="table" rid="T1"><bold>Table&#xa0;1</bold></xref>. The data recording system integrated a compact weather station recorder, equipped with solar radiation sensors, temperature sensors and other instruments.</p>
<table-wrap id="T1" position="float">
<label>Table&#xa0;1</label>
<caption>
<p>Details of specifications of sensors for environmental data collection.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Type</th>
<th valign="middle" align="left">Manufacturer</th>
<th valign="middle" align="left">Model</th>
<th valign="middle" align="left">Measured variable</th>
<th valign="middle" align="left">Accuracy</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Air temperature and humidity sensor</td>
<td valign="middle" rowspan="5" align="left">Onset Co., Ltd., USA</td>
<td valign="middle" align="left">HOBO<break/>UX100-011A</td>
<td valign="middle" align="left">Air temperature<break/>Relative humidity</td>
<td valign="middle" align="left">&#xb1;&#xa0;0.2&#xb0;C<break/>&#xb1;&#xa0;2.5%</td>
</tr>
<tr>
<td valign="middle" align="left">Total solar radiation intensity sensor</td>
<td valign="middle" align="left">HOBO<break/>S-LIB-M003</td>
<td valign="middle" align="left">Solar radiation intensity</td>
<td valign="middle" align="left">&#xb1;&#xa0;10 W/m<sup>2</sup></td>
</tr>
<tr>
<td valign="middle" align="left">Temperature sensor</td>
<td valign="middle" align="left">HOBO<break/>S-TMB-M006</td>
<td valign="middle" align="left">Soil temperature and PV panels temperature</td>
<td valign="middle" align="left">&#xb1;&#xa0;0.2&#xb0;C</td>
</tr>
<tr>
<td valign="middle" align="left">Soil moisture sensor</td>
<td valign="middle" align="left">HOBO<break/>S-SMC-M005</td>
<td valign="middle" align="left">Soil moisture</td>
<td valign="middle" align="left">&#xb1;&#xa0;3.1%</td>
</tr>
<tr>
<td valign="middle" align="left">Small weather station data recorder</td>
<td valign="middle" align="left">HOBO<break/>H21-USB</td>
<td valign="middle" align="left">&#x2014;</td>
<td valign="middle" align="left">&#x2014;</td>
</tr>
<tr>
<td valign="middle" align="left">Rain gauge cylinder</td>
<td valign="middle" rowspan="2" align="left">Shandong Jianda Renke Electronic Technology Co., LTD., China</td>
<td valign="middle" align="left">RS-YL-6</td>
<td valign="middle" align="left">Precipitation</td>
<td valign="middle" align="left">0.5 mm</td>
</tr>
<tr>
<td valign="middle" align="left">Wind speed and direction sensor</td>
<td valign="middle" align="left">RS-FSJT-N01<break/>RS-FXJT-360</td>
<td valign="middle" align="left">Wind speed and direction</td>
<td valign="middle" align="left">0.1 m/s<break/>360&#xb0;</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>As shown in <xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2a</bold></xref>, all sensors were placed for long-term, continuous monitoring at intervals of 10&#xa0;min. The sensor layout followed the following principles: Under the condition of meeting the information collection requirements, reduce the redundancy of sensor configuration; Taking into full account factors such as shading of PV modules, plant height, and root length of plants, the expected test results can fully reflect objective laws. The spatial distribution of sensor locations was presented in <xref ref-type="fig" rid="f2"><bold>Figure&#xa0;2b</bold></xref>. The data collection period spanned from June 15, 2023, to June 15, 2024, which covered an entire year, including all four seasons. Specifically, the data collection included critical periods such as the summer solstice, with the training set from June 15, 2023, to July 5, 2023, and the validation set from July 16, 2024, to July 24, 2023, representing high-temperature and high-radiation conditions. The winter solstice, with the training set from December 8, 2023, to December 28, 2023, and the validation set from December 29, 2023, to January 6, 2024, representing low-temperature and low-radiation conditions. In addition, we selected data from various weather conditions to enhance the model&#x2019;s robustness. The sensors operated continuously with 10-minute intervals to monitor parameters. The experimental protocol set daytime as 06:00-18:00 and nighttime as 18:00-06:00<sup>+1</sup> (<xref ref-type="bibr" rid="B46">Zhang et&#xa0;al., 2023</xref>). According to the observation of cloudiness, precipitation record and sunshine duration measurement, the weather condition during the study period was divided into three types, clear sky, overcast and rainy condition (<xref ref-type="bibr" rid="B45">Zhang et&#xa0;al., 2025</xref>).</p>
<fig id="f2" position="float">
<label>Figure&#xa0;2</label>
<caption>
<p>Monitoring scene and experimental measuring point: <bold>(a)</bold> Monitoring scene; <bold>(b)</bold> Arrangement of the experimental measurement points.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g002.tif">
<alt-text content-type="machine-generated">Photograph depicting a solar panel structure in an agricultural setting, bordered by evenly spaced vertical beams. Adjacent to it, a diagram illustrates the monitoring setup. It highlights ground measurements for solar radiation, air temperature, humidity, rainfall, wind speed, and direction, alongside underground monitoring for soil temperature and moisture. The setup includes marked measurements for dimensions and monitoring points.</alt-text>
</graphic></fig>
</sec>
<sec id="s2_3">
<label>2.3</label>
<title>Data preprocessing</title>
<sec id="s2_3_1">
<label>2.3.1</label>
<title>Missing values</title>
<p>In order to make sure that data imputation can be feasible and to prevent long-distance false interpolation due to too much missing data, this study used box plots to remove outliers from the collected data. Then, the missing values were filled with mean imputation, linear interpolation, and data from the closest position with similar weather conditions (<xref ref-type="bibr" rid="B33">Ritter, 2023</xref>).</p>
</sec>
<sec id="s2_3_2">
<label>2.3.2</label>
<title>Normalization</title>
<p>To ensure data consistency and improve processing efficiency, the study normalized all the input environmental elements to the interval [0, 1]. Normalization of the input data <italic>X</italic><sub>1</sub>, <italic>X</italic><sub>2</sub>, <italic>X</italic><sub>3</sub>&#x2026; <italic>X</italic><sub>N</sub> was performed by <xref ref-type="disp-formula" rid="eq1">Equation 1</xref> (<xref ref-type="bibr" rid="B36">Singh and Singh, 2020</xref>; <xref ref-type="bibr" rid="B43">Yang et&#xa0;al., 2023</xref>).</p>
<disp-formula id="eq1"><label>(1)</label>
<mml:math display="block" id="M1"><mml:mrow><mml:mi>X</mml:mi><mml:mo>=</mml:mo><mml:mtext>&#xa0;</mml:mtext><mml:mfrac><mml:mrow><mml:msub><mml:mi>X</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mrow><mml:mtext>min</mml:mtext></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>X</mml:mi><mml:mrow><mml:mtext>max</mml:mtext></mml:mrow></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mrow><mml:mtext>min</mml:mtext></mml:mrow></mml:msub></mml:mrow></mml:mfrac></mml:mrow></mml:math>
</disp-formula>
<p>Where, <italic>X</italic><sub>i</sub> is the original data, <italic>X</italic><sub>min</sub> is the minimum values of the original dataset, <italic>X</italic><sub>max</sub> is the maximum values of the original dataset, and <italic>X</italic> is the normalized value after transformation.</p>
</sec>
<sec id="s2_3_3">
<label>2.3.3</label>
<title>Correlation analysis</title>
<p>The collected environmental data were analyzed by the Pearson correlation coefficient (PCC) method. The PCC measured the linear correlation of two continuous random variables, as shown in <xref ref-type="disp-formula" rid="eq2">Equation 2</xref>. The PCC ranges from -1 to 1, where values approaching 1 indicate stronger correlations between variables (<xref ref-type="bibr" rid="B17">Jiang et&#xa0;al., 2025</xref>).</p>
<disp-formula id="eq2"><label>(2)</label>
<mml:math display="block" id="M2"><mml:mrow><mml:mi>R</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>p</mml:mi></mml:msubsup><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mover accent="true"><mml:mi>X</mml:mi><mml:mo>&#xaf;</mml:mo></mml:mover><mml:mo stretchy="false">)</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mover accent="true"><mml:mi>Y</mml:mi><mml:mo>&#xaf;</mml:mo></mml:mover><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mrow><mml:msqrt><mml:mrow><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>p</mml:mi></mml:msubsup><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mover accent="true"><mml:mi>X</mml:mi><mml:mo>&#xaf;</mml:mo></mml:mover><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msqrt><mml:msqrt><mml:mrow><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>p</mml:mi></mml:msubsup><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mover accent="true"><mml:mi>Y</mml:mi><mml:mo>&#xaf;</mml:mo></mml:mover><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msqrt></mml:mrow></mml:mfrac></mml:mrow></mml:math>
</disp-formula>
<p>Where, <italic>X<sub>k</sub></italic> and <italic>Y<sub>k</sub></italic> are the <italic>k</italic>-th feature variable and environmental sample data, <italic>p</italic> is the number of samples, <inline-formula>
<mml:math display="inline" id="im1"><mml:mover accent="true"><mml:mi>X</mml:mi><mml:mo>&#xaf;</mml:mo></mml:mover></mml:math></inline-formula> and <inline-formula>
<mml:math display="inline" id="im2"><mml:mover accent="true"><mml:mi>Y</mml:mi><mml:mo>&#xaf;</mml:mo></mml:mover></mml:math></inline-formula> are the mean values of the feature variables and the environmental data from the AV systems.</p>
</sec>
<sec id="s2_3_4">
<label>2.3.4</label>
<title>Data preparation</title>
<p>To rigorously evaluate model robustness under extreme climatic conditions, we specifically selected data from 30-day periods centered around the summer solstice (representing high-temperature, high-radiation conditions) and winter solstice (representing low-temperature, low-radiation conditions) for model training and validation. The dataset was partitioned such that each seasonal subset contained 21 consecutive days (70% of data) for training and 9 consecutive days (30%) for validation. The sensor records every 10 minutes, and a single environmental parameter generates 1,008 measurements per day. For a single environmental parameter, the training set for each season contained 3,024 environmental data points (21 days), and the validation set contains 1,296 data points (9 days). The whole process of data processing and microclimate prediction of AV systems in this study was shown in <xref ref-type="fig" rid="f3"><bold>Figure&#xa0;3</bold></xref>.</p>
<fig id="f3" position="float">
<label>Figure&#xa0;3</label>
<caption>
<p>Microclimate prediction process.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g003.tif">
<alt-text content-type="machine-generated">Flowchart illustrating a data processing and prediction system using a Long Short-Term Memory (LSTM) attention model. Sensors upload data for preprocessing and feature selection. Preprocessed data is distributed to a model comprising input, hidden, attention, fully connected, and output layers. The model evaluates performance and stores updated data in a cloud server. Feedback is looped back to the system for local storage and execution. Icons and graphs depict data types and processes at each stage.</alt-text>
</graphic></fig>
</sec>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Models for solar radiation and air temperature prediction</title>
<sec id="s3_1">
<label>3.1</label>
<title>Long short-term memory</title>
<p>Microclimate variables in agrivoltaic systems exhibit strong temporal dependence, long-range dependencies, and nonlinear fluctuations due to moving shadows, cloud dynamics, and seasonal changes, which calls for a time-series model that can robustly learn long sequences. LSTM, with its gated architecture, effectively mitigates vanishing/exploding gradients in long-sequence modeling and is therefore well-suited for capturing long-term temporal patterns (<xref ref-type="bibr" rid="B14">Hochreiter and Schmidhuber, 1997</xref>; <xref ref-type="bibr" rid="B20">Landi et&#xa0;al., 2021</xref>). The LSTM architecture has a complex gate mechanism for controlling the flow of information and updating cell states, thus controlling both information storage and transmission. As shown in <xref ref-type="fig" rid="f4"><bold>Figure&#xa0;4</bold></xref>, the LSTM gating system comprises four fundamental units. At each timestep <italic>t</italic>, the model processes 3 inputs: (i) the external input at <italic>t</italic>, (ii) the LSTM unit output at <italic>t</italic>-1, and (iii) the cell state at <italic>t</italic>-1. These inputs undergo transformation through the gating units to produce updated outputs and cell states (<xref ref-type="bibr" rid="B5">Fang et&#xa0;al., 2021</xref>). The mathematical formulations governing these operations were provided in <xref ref-type="disp-formula" rid="eq3">Equations 3</xref>&#x2013;<xref ref-type="disp-formula" rid="eq8">8</xref>.</p>
<fig id="f4" position="float">
<label>Figure&#xa0;4</label>
<caption>
<p>Door structure of long short-term memory. <italic>C<sub>t</sub></italic><sub>-1</sub> is cell state at time <italic>t</italic>-1, <italic>C<sub>t</sub></italic> is cell state at time <italic>t</italic>, <italic>h<sub>t</sub></italic><sub>-1</sub> is output at <italic>t</italic>-1, <italic>h<sub>t</sub></italic> is output at <italic>t</italic>, <italic>f<sub>t</sub></italic> is forget gate, <italic>&#x3bc;<sub>t</sub></italic> is update gate, <italic>o<sub>t</sub></italic> is output gate, <inline-formula>
<mml:math display="inline" id="im3"><mml:mrow><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi>t</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="true">&#x2dc;</mml:mo></mml:mover></mml:mrow></mml:math></inline-formula> is cell state, <italic>&#x3c3;</italic> is activation equation and tanh is hyperbolic tangent function.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g004.tif">
<alt-text content-type="machine-generated">Diagram illustrating a Long Short-Term Memory (LSTM) cell with three main gates: forget, update, and output. Inputs \( C_{t-1} \), \( x_t \), and \( o_{t-1} \) influence cell state \( C_t \) and output \( h_t \). Arithmetic operations, activation functions, and gating mechanisms manage information transfer.</alt-text>
</graphic></fig>
<disp-formula id="eq3"><label>(3)</label>
<mml:math display="block" id="M3"><mml:mrow><mml:msub><mml:mi>f</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x3c3;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>f</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#xa0;</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mi>f</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq4"><label>(4)</label>
<mml:math display="block" id="M4"><mml:mrow><mml:msub><mml:mi>i</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x3c3;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>&#x3bc;</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#xa0;</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mi>&#x3bc;</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq5"><label>(5)</label>
<mml:math display="block" id="M5"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>c</mml:mi><mml:mo>&#x2dc;</mml:mo></mml:mover><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>tanh</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>c</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#xa0;</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mi>c</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq6"><label>(6)</label>
<mml:math display="block" id="M6"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>i</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:msub><mml:mover accent="true"><mml:mi>C</mml:mi><mml:mo>&#x2dc;</mml:mo></mml:mover><mml:mi>t</mml:mi></mml:msub></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq7"><label>(7)</label>
<mml:math display="block" id="M7"><mml:mrow><mml:msub><mml:mi>o</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>&#x3c3;</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>o</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:mo stretchy="false">[</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#xa0;</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo stretchy="false">]</mml:mo><mml:mo>+</mml:mo><mml:msub><mml:mi>b</mml:mi><mml:mi>o</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq8"><label>(8)</label>
<mml:math display="block" id="M8"><mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>o</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo>&#xb7;</mml:mo><mml:mi>tanh</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mi>t</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
<p>Where, tanh denotes the hyperbolic tangent function and <italic>&#x3c3;</italic> represents the activation function. The weight matrices (<italic>W<sub>f</sub></italic>, <italic>W<sub>&#x3bc;</sub></italic>, <italic>W<sub>c</sub></italic>, <italic>W<sub>o</sub></italic>) and bias vectors (<italic>b<sub>f</sub></italic>, <italic>b<sub>u</sub></italic>, <italic>b<sub>c</sub></italic>, <italic>b<sub>o</sub></italic>) correspond to the forget gate, update gate, cell state, and output gate, respectively. These parameters were initialized randomly and subsequently optimized through data-driven training.</p>
</sec>
<sec id="s3_2">
<label>3.2</label>
<title>Attention mechanism</title>
<p>The attention mechanism comes from animal&#x2019;s visual attention. This mechanism enables models to concentrate more on the most important information from the input sequence, which makes it better at recognizing important features and improves its prediction accuracy. The attention mechanism dynamically assigns higher weights to the most informative time steps, enabling the model to focus on critical information while suppressing noise, thereby improving responsiveness and accuracy under rapidly varying shading (<xref ref-type="bibr" rid="B30">Niu et&#xa0;al., 2021</xref>).</p>
<p>The attention mechanism works by taking three input vectors: query (<italic>Q</italic>), key (<italic>K</italic>), and value (<italic>V</italic>). The vector <italic>Q</italic> gets relevance scores with other vectors, while the key vector <italic>K</italic> measures the connection strength between <italic>Q</italic> and other vectors. The value vector <italic>V</italic> contains the information to be aggregated according to the attention weights gotten from <italic>Q</italic>. The mechanism calculates the similarity between <italic>Q</italic> and <italic>K</italic> to determine how much attention should be given to each element in <italic>V</italic> during the weighted aggregation process. Specifically, it first calculates the dot product of <italic>Q</italic> and <italic>K</italic>, applies a normalization operation to get the importance weights of each element in <italic>K</italic>, and then performs a weighted sum of <italic>V</italic> with these weights to get the final representation. As shown in <xref ref-type="fig" rid="f5"><bold>Figure&#xa0;5</bold></xref>, the attention computation has three main steps (<xref ref-type="bibr" rid="B6">Gao et&#xa0;al., 2022</xref>).</p>
<fig id="f5" position="float">
<label>Figure&#xa0;5</label>
<caption>
<p>Schematic diagram of attention mechanism. <italic>x</italic><sub>1</sub>, <italic>x</italic><sub>2</sub>, <italic>x<sub>n</sub></italic> are feature input; <italic>W<sub>Q</sub></italic>, <italic>W<sub>K</sub></italic> and <italic>W<sub>V</sub></italic> are parameter matrix; <italic>Q</italic> is query vector, <italic>K</italic> is key vector, <italic>V</italic> is value vector; <italic>q</italic><sub>i</sub> is the element of <italic>Q</italic> vectork, <italic>k</italic><sub>i</sub> is the element of <italic>K</italic> vector, <italic>v<sub>i</sub></italic> is the element of <italic>V</italic> vector; <italic>&#x3b1;<sub>i</sub></italic> is the attention distribution; Softmax is the normalized function; <italic>out<sub>i</sub></italic> is output of attention mechanism; <italic>i</italic> is the feature number, the range is 1 to <italic>n</italic>.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g005.tif">
<alt-text content-type="machine-generated">Flowchart illustrating the attention mechanism in neural networks. Input vectors \(x_1\), \(x_2\), \(x_3\) are processed to form query \(Q\), key \(K\), and value \(V\) matrices. These are used to calculate attention scores \(&#x3b1;_i\) by applying the softmax function on the product of the transposed key and query. The final output \(out_i\) is obtained by multiplying the value matrix with the attention scores.</alt-text>
</graphic></fig>
<p>Step 1: The query (<italic>Q</italic>), key (<italic>K</italic>), and value (<italic>V</italic>) matrices were computed using <xref ref-type="disp-formula" rid="eq9">Equations 9</xref>&#x2013;<xref ref-type="disp-formula" rid="eq11">11</xref>.</p>
<p>Step 2: The similarity scores between <italic>Q</italic> and <italic>K</italic> were calculated via <xref ref-type="disp-formula" rid="eq12">Equation 12</xref>. These scores were then normalized using the softmax function to obtain attention weights, where higher values indicate stronger relevance between the i-th input and the task objective.</p>
<p>Step 3: The final attention output was generated by performing a weighted sum of <italic>V</italic> with the normalized attention weights, as defined in <xref ref-type="disp-formula" rid="eq13">Equation 13</xref>.</p>
<disp-formula id="eq9"><label>(9)</label>
<mml:math display="block" id="M9"><mml:mrow><mml:mi>Q</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>Q</mml:mi></mml:msub><mml:mo>*</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq10"><label>(10)</label>
<mml:math display="block" id="M10"><mml:mrow><mml:mi>K</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>K</mml:mi></mml:msub><mml:mo>*</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq11"><label>(11)</label>
<mml:math display="block" id="M11"><mml:mrow><mml:mi>V</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>W</mml:mi><mml:mi>V</mml:mi></mml:msub><mml:mo>*</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq12"><label>(12)</label>
<mml:math display="block" id="M12"><mml:mrow><mml:msub><mml:mi>&#x3b1;</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msup><mml:mi>K</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq13"><label>(13)</label>
<mml:math display="block" id="M13"><mml:mrow><mml:msub><mml:mi>c</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>V</mml:mi><mml:mo>&#xb7;</mml:mo><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mo stretchy="false">(</mml:mo><mml:msup><mml:mi>K</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:msub><mml:mi>q</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math>
</disp-formula>
</sec>
<sec id="s3_3">
<label>3.3</label>
<title>Long short-term memory &#x2013; attention</title>
<p>To enhance the prediction of microclimate within AV systems, the study developed an integrated LSTM-Attention model. The framework of the model was illustrated in <xref ref-type="fig" rid="f6"><bold>Figure&#xa0;6</bold></xref>. The model architecture operates as follows: First, multivariate time-series data were processed through an LSTM layer for feature extraction. Subsequently, an attention mechanism was applied to compute weight coefficients, which quantify the relevance between current and historical data points. By adaptively assigning higher weights to more informative temporal features, the model effectively captured the most critical patterns while suppressing noise. The structure of the LSTM-Attention model includes 5 layers (<xref ref-type="bibr" rid="B25">Ma et&#xa0;al., 2024</xref>). The description of each layer is given below:</p>
<fig id="f6" position="float">
<label>Figure&#xa0;6</label>
<caption>
<p>Network structure of LSTM-Attention prediction model. <italic>t</italic><sub>1</sub>, <italic>t</italic><sub>2</sub>,&#x2026;, <italic>t<sub>n</sub></italic> are time series; <italic>X</italic><sub>1</sub>, <italic>X</italic><sub>2</sub>,&#x2026;, <italic>X<sub>m</sub></italic> are input variables; LSTM is long short-term memory; <italic>y</italic><sub>1</sub>, <italic>y</italic><sub>2</sub>,&#x2026;, <italic>y<sub>n</sub></italic> are output.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g006.tif">
<alt-text content-type="machine-generated">Diagram of a neural network architecture with four layers: input, hidden LSTM cell, attention, and fully connected, leading to the output. Each layer processes information sequentially, with arrows indicating data flow.</alt-text>
</graphic></fig>
<list list-type="order">
<list-item>
<p>Input Layer: Multidimensional time-series features are converted to LSTM-compatible 3D arrays (<italic>S</italic>, <italic>T</italic>, <italic>X</italic>). Where, <italic>S</italic> is the number of input samples, <italic>T</italic> is the time dimension, and <italic>X</italic> is the feature dimension.</p></list-item>
<list-item>
<p>LSTM Layer: Two LSTM layers are interlaced with dropout layers to prevent overfitting by stochastically deactivating neurons during training, which improves generalization ability.</p></list-item>
<list-item>
<p>Attention layer: To compute the attention mechanism, we used <xref ref-type="disp-formula" rid="eq9">Equations 9</xref>&#x2013;<xref ref-type="disp-formula" rid="eq11">11</xref> to derive the <italic>Q</italic>, <italic>K</italic>, and <italic>V</italic> vectors for each hidden state. The similarity scores between <italic>Q</italic> and <italic>K</italic> were then calculated through <xref ref-type="disp-formula" rid="eq12">Equation 12</xref>, followed by normalization via the Softmax function to obtain the attention distribution. Higher values in this distribution indicate stronger relevance between the input information and task objectives. Finally, the attention output was computed as the dot product between the normalized weights and the value vectors (<xref ref-type="disp-formula" rid="eq13">Equation 13</xref>).</p></list-item>
<list-item>
<p>Fully Connected Layer: Attention outputs were processed through dense connections for feature recombination and dimensional transformation.</p></list-item>
<list-item>
<p>Output Layer: Final predictions were generated with linear activation.</p></list-item>
</list>
<p>Since the target subjects, regional climatic characteristics, as well as the feature variables, data volume, and data quality of the dataset in this study differ from those in previous studies, it would lack scientific rigor to compare and discuss the predictive performance of the model in this study with that of previous research. To assess the improvement of the LSTM-Attention model over the standard LSTM model and several widely used machine learning models in microclimate prediction, the study conducted comparative analyses under two scenarios: varying prediction time horizons and different weather conditions. Specifically, the LSTM-Attention model was compared with four commonly employed machine learning models&#x2014;BP, SVM, LSTM, and LSTM-GRU&#x2014;in terms of their predictive performance for both solar radiation intensity and air temperature within AV systems.</p>
</sec>
<sec id="s3_4">
<label>3.4</label>
<title>Algorithm parameter settings</title>
<p>The internal environmental factor model of the AV system was developed using Python 3.11, with PyCharm as the development environment and TensorFlow as the development framework. The training process involved 80 iterations, a learning rate of 0.01, and an input batch size of 32, with the maximum number of epochs set to 100. The &#x201c;Adam&#x201d; optimizer and &#x201c;mean squared error&#x201d; loss function were employed for model training. Additionally, the number of neurons in both the GRU and LSTM layers was set to 128. To maintain consistency in model comparisons, all modules across were configured with the same parameters.</p>
<p>The study selected several machine learning models for comparison, including BP, SVM, and LSTM-GRU. The rationale for choosing these models was based on their ability to handle sequential data and their inherent differences in handling long-term dependencies. However, these models still faced challenges when dealing with the complex temporal and spatial variations in agrivoltaic systems, particularly under changing weather conditions.</p>
</sec>
<sec id="s3_5">
<label>3.5</label>
<title>Evaluation indicators</title>
<p>To assess the model&#x2019;s performance, the study utilized the coefficient of determination (<italic>R</italic><sup>2</sup>), root mean square error (RMSE), and mean absolute error (MAE). The mathematical expressions for these metrics were given in <xref ref-type="disp-formula" rid="eq14">Equations 14</xref>&#x2013;<xref ref-type="disp-formula" rid="eq16">16</xref>.</p>
<disp-formula id="eq14"><label>(14)</label>
<mml:math display="block" id="M14"><mml:mrow><mml:msup><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:mrow><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="true">&#xaf;</mml:mo></mml:mover><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq15"><label>(15)</label>
<mml:math display="block" id="M15"><mml:mrow><mml:mi>R</mml:mi><mml:mi>M</mml:mi><mml:mi>S</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:msqrt><mml:mrow><mml:mfrac><mml:mn>1</mml:mn><mml:mi>n</mml:mi></mml:mfrac><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msqrt></mml:mrow></mml:math>
</disp-formula>
<disp-formula id="eq16"><label>(16)</label>
<mml:math display="block" id="M16"><mml:mrow><mml:mi>M</mml:mi><mml:mi>A</mml:mi><mml:mi>E</mml:mi><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mi>n</mml:mi></mml:mfrac><mml:msubsup><mml:mstyle displaystyle="true"><mml:mo>&#x2211;</mml:mo></mml:mstyle><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>n</mml:mi></mml:msubsup><mml:mo>|</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mi>X</mml:mi><mml:mi>k</mml:mi></mml:msub><mml:mo>&#x2212;</mml:mo><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow></mml:mfrac><mml:mo>|</mml:mo><mml:mo>&#xd7;</mml:mo><mml:mn>100</mml:mn><mml:mo>%</mml:mo></mml:mrow></mml:math>
</disp-formula>
<p>Where, <italic>X<sub>k</sub></italic> is the predicted value, <italic>Y<sub>k</sub></italic> is the observed value, <inline-formula>
<mml:math display="inline" id="im4"><mml:mrow><mml:mover accent="true"><mml:mrow><mml:msub><mml:mi>Y</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:mrow><mml:mo stretchy="true">&#xaf;</mml:mo></mml:mover></mml:mrow></mml:math></inline-formula> is the mean of the observed values, and <italic>n</italic> is the total number of predicted samples.</p>
</sec>
</sec>
<sec id="s4" sec-type="results">
<label>4</label>
<title>Results and discussions</title>
<sec id="s4_1">
<label>4.1</label>
<title>Correlation analysis</title>
<p>Microclimate parameters in AV system have complex nonlinear interdependence with different environmental factors. Including all measured factors as model inputs can add noise and reduce the accuracy of predictions because of possible multicollinearity and interference from irrelevant features (<xref ref-type="bibr" rid="B39">Wang and Chen, 2021</xref>). <xref ref-type="fig" rid="f7"><bold>Figure&#xa0;7</bold></xref> showed a complicated nonlinear relationship among the microclimate parameters inside the AV system, where solar radiation intensity and air temperature exhibited differential coupling with various environmental factors. According to Pearson correlation analysis, the internal solar radiation intensity was highly correlated with the PV panel temperature and the external solar radiation, but it had a moderate association with the relative humidity and soil temperature. External air temperature and wind speed showed considerable but less noticeable connections to the inner microclimate parameters, which implied that the atmosphere has a secondary effect on the inner environment through the PV array. These results matched the known rules about energy balance in partly closed farming places, where how the leaves are shaped and what they&#x2019;re made of affect how they interact with their surroundings (<xref ref-type="bibr" rid="B1">Ali Abaker Omer et&#xa0;al., 2025</xref>).</p>
<fig id="f7" position="float">
<label>Figure&#xa0;7</label>
<caption>
<p>Pearson correlation between the solar radiation (<italic>Isr</italic>) and air temperature (<italic>Iat</italic>) inside AV systems with different environmental factors. <italic>Isr</italic> represents the intensity of internal solar radiation, <italic>Iat</italic> represents the internal air temperature, <italic>Irh</italic> represents the internal relative humidity, <italic>Ist</italic> represents the internal soil temperature, <italic>Ism</italic> represents the internal soil moisture, <italic>Esr</italic> represents the external solar radiation, <italic>Eat</italic> represents the external air temperature, <italic>Erh</italic> represents the external relative humidity, <italic>Est</italic> represents the external soil temperature, <italic>Esm</italic> represents external soil moisture, <italic>Pr</italic> represents precipitation, <italic>Wd</italic> represents the wind direction, <italic>Ws</italic> represents the wind speed, <italic>Tp</italic> represents the temperature of the PV panel.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g007.tif">
<alt-text content-type="machine-generated">Heatmap showing correlation coefficients between different variables. Ranges from dark orange to teal, representing values 1 to negative 0.95. Significant correlations include Iat and Isr at 0.73, and Isr and Esr at 0.98.</alt-text>
</graphic></fig>
<p>For solar radiation intensity, the analysis showed very strong relationship with the external solar radiation and temperature of PV panel, while demonstrating moderate relationships with the external air temperature and internal relative humidity. There were weak correlations between the strength of the internal solar radiation and the moisture level of the soil or the direction of the wind. It suggested that external solar radiation and temperature of PV panel should be the main input variables for radiation prediction, and external air temperature and internal relative humidity could be added to consider the effect of atmospheric attenuation. Differential correlation pattern indicated that we need different features for the model of these two important microclimate parameters. The internal air temperature showed very high correlation with external air temperature and PV panel temperature. It exhibited a moderate correlation with relative humidity and soil temperature, while showing weak correlations with wind speed and precipitation. The results showed that the main factors affecting the prediction of air temperature were the external air temperature, temperature of PV panel, and internal relative humidity, and the internal soil temperature and wind speed should be considered as secondary.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Analysis of radiation intensity prediction results</title>
<sec id="s4_2_1">
<label>4.2.1</label>
<title>Seasonal variations in predicted radiation intensity</title>
<p><xref ref-type="fig" rid="f8"><bold>Figure&#xa0;8</bold></xref> presented the comparative curves of predicted and measured solar radiation intensity across different seasons for the BP, SVM, LSTM, LSTM-GRU, and LSTM-Attention models. The results revealed that the maximum prediction deviations for solar radiation intensity in summer under the MD, HD, and FD treatments for the five models were 300.4, 358.1, 252.9, 261.7, and 163.7 W/m<sup>2</sup> (MD); 281.5, 344.3, 274.6, 232.9, and 173.4 W/m<sup>2</sup> (HD); and 300.6, 343.0, 268.0, 233.2, and 167.4 W/m<sup>2</sup> (FD), respectively. In winter, the maximum prediction deviations under the same coverage densities were 156.8, 160.0, 134.6, 116.9, and 80.0 W/m<sup>2</sup> (MD); 165.9, 177.1, 169.1, 121.7, and 73.2 W/m<sup>2</sup> (HD); and 54.3, 57.8, 73.7, 47.8, and 29.0 W/m<sup>2</sup> (FD). These results demonstrated that the LSTM-Attention model achieved superior prediction accuracy for solar radiation intensity in both summer and winter, with its maximum deviation being significantly lower than those of the traditional machine learning models and the standalone LSTM or LSTM-GRU models.</p>
<fig id="f8" position="float">
<label>Figure&#xa0;8</label>
<caption>
<p>The estimated and measured value curve of solar radiation: <bold>(a)</bold> Summer; <bold>(b)</bold> Winter.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g008.tif">
<alt-text content-type="machine-generated">Six line graphs comparing solar radiation intensity over time using different modeling techniques: Measured data, BP, SVM, LSTM, LSTM-GRU, and LSTM-Attention. Graphs are labeled (a) and (b) for MD, HD, and FD, showing variations in intensity readings for each method over a 600-minute period.</alt-text>
</graphic></fig>
<p>The performance differences between LSTM and its improved versions, LSTM-GRU and LSTM-Attention, showed that improving the structure of the neural network could enhance the accuracy of forecasts in complicated energy areas. The LSTM model had a maximum prediction deviation of 252.9 W/m<sup>2</sup> for summer solar radiation intensity under MD treatment. In comparison, the LSTM-Attention model reduced the maximum prediction error by 37.5% compared to the LSTM model under the FD treatment, demonstrating the quantitative analysis capability of the attention mechanism on multiple reflected radiations among PV panels. Furthermore, the LSTM model had a 25.6% decrease in the maximum prediction error for winter solar radiation intensity with HD treatment compared to MD treatment. However, its maximum error at the FD treatment was still higher than LSTM-GRU and LSTM-Attention. Notably, the LSTM-Attention model performed well in winter, it has the smallest maximum error in the whole dataset at the FD treatment, which is 60.7% less than that of the LSTM model. Regarding solar radiation intensity prediction as a particular environmental element, the LSTM-Attention model exhibited excellent seasonal adaptability. In the high summer radiation condition, the model could keep the prediction deviation below 170 W/m<sup>2</sup> through the attention-weighted LSTM framework, which was over 50% better than the traditional machine learning model. In winter, under low-radiation conditions, its maximum deviation was only 29.0 W/m<sup>2</sup> at the FD treatment, outperforming LSTM-GRU by 39.3%. In addition, it observed that higher PV coverage densities tend to increase error due to shading effects and localized temperature changes, which were harder for the model to capture. This was especially prominent in summer when radiation intensity fluctuations are more pronounced. This difference in performance showed that the attention layer improved important temporal features, and the LSTM part dealt well with the non-linear changes in radiation intensity (<xref ref-type="bibr" rid="B19">Kong et&#xa0;al., 2023</xref>; <xref ref-type="bibr" rid="B34">&#x15e;ener and Tu&#x11f;al, 2025</xref>).</p>
<p>Solar radiation intensity was a key microclimate parameter that was highly influenced by the density of the PV array. Our study showed that as the PV array density increased, shading effects became more pronounced, leading to greater spatial and temporal variation in radiation intensity. Specifically, under the HD and FD configurations, the model&#x2019;s ability to predict solar radiation intensity decreased. During the summer, the increased shading caused by higher PV array densities resulted in significant fluctuations in radiation intensity, which the model had difficulty capturing. The RMSE increased with the array density, reflecting the growing complexity in predicting radiation under dense PV arrays. The model performed better under the MD configurations, where the shading effects were less severe. These findings indicated that the attention mechanism incorporated in the model helped mitigate the impact of shading to some extent, but further refinement was needed to address the more dynamic shading patterns in high-density configurations.</p>
<p><xref ref-type="fig" rid="f9"><bold>Figure&#xa0;9</bold></xref> showed the comparison of different solar radiation prediction models according to their seasonal variation and coverage density. Results show that the LSTM-Attention model did better than the others during both summer and winter. In summer, at MD, HD, and FD treatments, the LSTM-Attention model got a mean RMSE of 41.6 W/m<sup>2</sup>. It meant that the reduction was 28.0%, 35.7%, 42.1%, and 49.4% less than the LSTM-GRU, LSTM, BP, and SVM models, respectively. MAE had a similar trend, and <italic>R</italic><sup>2</sup> was around 96.9% to 97.1%, which meant it performed much better than other models. The benefit of LSTM-Attention was even more evident in winter. At the HD treatment, it reached an RMSE of 11.2 W/m<sup>2</sup>, which was 30.4%, 52.7%, 55.7%, and 57.6% lower than the LSTM-GRU, LSTM, BP, and SVM models, respectively. For this prediction, the <italic>R</italic><sup>2</sup> value was 97.8%, indicating that the model had a good ability to capture the temporal characteristics of solar radiation intensity.</p>
<fig id="f9" position="float">
<label>Figure&#xa0;9</label>
<caption>
<p>Performance comparison of five prediction models for solar radiation intensity in different forecasting seasons.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g009.tif">
<alt-text content-type="machine-generated">Six bar charts compare evaluation indicators for different models across seasons and conditions: MD, HD, and FD. The models&#x2014;SVM, BP, LSTM, LSTM-GRU, and LSTM-Attention&#x2014;are evaluated using RSME, MAE, and R-squared. Top row represents summer; bottom row represents winter. Top graphs show variability across conditions; winter graphs have consistent R-squared values.</alt-text>
</graphic></fig>
<p>Further analysis showed that the LSTM-Attention model had better stability than the benchmark models under changing environmental conditions. MD treatment RMSE was only 49.7% of the LSTM model&#x2019;s RMSE in winter. As coverage density increased, the performance of the LSTM-Attention model decreased slightly; the <italic>R</italic><sup>2</sup> value dropped by only 0.8% at the FD treatment. In contrast, the <italic>R</italic><sup>2</sup> values of LSTM-GRU and LSTM decreased by 1.9% and 0.3%, respectively. It is likely because the attention mechanism can model the spatiotemporal variations in solar radiation intensity, particularly in winter when the fluctuations were caused by changes in the solar elevation angle. LSTM-Attention could make the key feature more important so as to avoid the sudden error of prediction. Traditional LSTM and LSTM-GRU models responded more slowly to sudden changes in radiation intensity compared to these models. This can be seen from the higher MAE values for these models in summer, which were up to 53.6% higher than the LSTM-Attention model under high coverage density conditions. From this, it can be seen that the mechanism reduced phase lag and peak mismatch during fast changing radiation period and improved robustness when the signal to noise ratio was low, which explained the stronger performance of LSTM-Attention under complex climate conditions.</p>
</sec>
<sec id="s4_2_2">
<label>4.2.2</label>
<title>Out-of-window generalization test of solar radiation under different weather conditions</title>
<p>To partially evaluate the model&#x2019;s generalization ability outside the training window, an additional validation was performed on a short period of data (3 days) not included in the training phase. This additional period, which was selected outside of both the summer and winter solstices, provided a preliminary check of the model&#x2019;s robustness to conditions beyond the specific seasonal extremes. We evaluated its solar radiation forecasting performance relative to conventional LSTM and hybrid LSTM-GRU models under seasonally varied weather conditions (<xref ref-type="fig" rid="f10"><bold>Figure&#xa0;10</bold></xref>). As shown in <xref ref-type="fig" rid="f10"><bold>Figure&#xa0;10</bold></xref>, the mean maximum prediction deviations for the three models (LSTM-Attention, LSTM and hybrid LSTM-GRU models) under summer conditions were 139.2, 105.8, and 100.7 W/m<sup>2</sup> for sunny days; 67.2, 58.6, and 41.2 W/m<sup>2</sup> for cloudy days; and 44.7, 44.3, and 30.4 W/m<sup>2</sup> for rainy days. Under winter conditions, the corresponding mean maximum deviations were 82.6, 68.2, and 5.6 W/m<sup>2</sup> for sunny days; 47.1, 38.9, and 3.7 W/m<sup>2</sup> for cloudy days; and 9.2, 8.3, and 1.0 W/m<sup>2</sup> for rainy days. The comparative analysis of these curves and data demonstrated that, the LSTM-Attention model achieved superior prediction accuracy for solar radiation intensity compared to other models under different weather conditions.</p>
<fig id="f10" position="float">
<label>Figure&#xa0;10</label>
<caption>
<p>Prediction results of solar radiation intensity under different weather conditions in different seasons by LSTM, LSTM-GRU and LSTM-Attention models: <bold>(a)</bold> Summer; <bold>(b)</bold> Winter.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g010.tif">
<alt-text content-type="machine-generated">Graphs showing solar radiation intensity over time on different days.   Top panel: Three graphs (MD, HD, FD) for June 2023. Peaks on sunny days, lower values on cloudy and rainy days.   Bottom panel: Three graphs (MD, HD, FD) for December 2023. Similar pattern with peaks on sunny days and smaller peaks on cloudy and rainy days.   Colors represent measured data and three prediction models: LSTM, LSTM-GRU, and LSTM-Attention.</alt-text>
</graphic></fig>
<p><xref ref-type="table" rid="T2"><bold>Table&#xa0;2</bold></xref> presented a numerical comparison of how well the LSTM, LSTM-GRU, and LSTM-Attention models predicted solar radiation intensity in the AV system under typical seasonal weather. The LSTM-Attention model performed better than the others in all tested situations. For example, during summer clear-sky conditions at the MD treatment site, this model reached an RMSE of 31.8 W/m<sup>2</sup> and an MAE of 25.7 W/m<sup>2</sup>. These values were 48.0% and 43.0% lower than those of the LSTM model. It also achieved an <italic>R</italic><sup>2</sup> of 97.6%. The advantage of the LSTM-Attention model was even clearer in cloudy and rainy weather. On rainy days, its MAE decreased to 41.6% of the LSTM model&#x2019;s value. In winter clear sky, the LSTM-Attention model reduced the RMSE to 5.2 W/m<sup>2</sup>, improved by 39.5% compared with LSTM-GRU model. These results showed that the LSTM-Attention structure can adapt well to various weather situations.</p>
<table-wrap id="T2" position="float">
<label>Table&#xa0;2</label>
<caption>
<p>Comparison of model performance for solar radiation intensity under different weather conditions.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" rowspan="2" align="left">Season</th>
<th valign="middle" rowspan="2" align="left">Treatment</th>
<th valign="middle" rowspan="2" align="left">Weather type</th>
<th valign="middle" colspan="3" align="center">LSTM</th>
<th valign="middle" colspan="3" align="center">LSTM-GRU</th>
<th valign="middle" colspan="3" align="center">LSTM-Attention</th>
</tr>
<tr>
<th valign="middle" align="left">RSME/W&#xb7;m<sup>-2</sup></th>
<th valign="middle" align="left">MAE/ W&#xb7;m<sup>-2</sup></th>
<th valign="middle" align="left"><italic>R</italic><sup>2</sup>/%</th>
<th valign="middle" align="left">RSME/W&#xb7;m<sup>-2</sup></th>
<th valign="middle" align="left">MAE/ W&#xb7;m<sup>-2</sup></th>
<th valign="middle" align="left"><italic>R</italic><sup>2</sup>/%</th>
<th valign="middle" align="left">RSME/W&#xb7;m<sup>-2</sup></th>
<th valign="middle" align="left">MAE/ W&#xb7;m<sup>-2</sup></th>
<th valign="middle" align="left"><italic>R</italic><sup>2</sup>/%</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" rowspan="9" align="left">Summer</td>
<td valign="middle" rowspan="3" align="center">MD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">61.1</td>
<td valign="middle" align="right">45.1</td>
<td valign="middle" align="right">91.3</td>
<td valign="middle" align="right">44.1</td>
<td valign="middle" align="right">32.1</td>
<td valign="middle" align="right">95.5</td>
<td valign="middle" align="right">31.8</td>
<td valign="middle" align="right">25.7</td>
<td valign="middle" align="right">97.6</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">25.7</td>
<td valign="middle" align="right">17.2</td>
<td valign="middle" align="right">92.2</td>
<td valign="middle" align="right">20.7</td>
<td valign="middle" align="right">14.4</td>
<td valign="middle" align="right">94.9</td>
<td valign="middle" align="right">14.4</td>
<td valign="middle" align="right">10.0</td>
<td valign="middle" align="right">97.5</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">18.7</td>
<td valign="middle" align="right">8.9</td>
<td valign="middle" align="right">90.4</td>
<td valign="middle" align="right">12.2</td>
<td valign="middle" align="right">6.4</td>
<td valign="middle" align="right">95.9</td>
<td valign="middle" align="right">7.1</td>
<td valign="middle" align="right">3.7</td>
<td valign="middle" align="right">98.6</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">HD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">51.1</td>
<td valign="middle" align="right">40.2</td>
<td valign="middle" align="right">92.8</td>
<td valign="middle" align="right">44.0</td>
<td valign="middle" align="right">33.9</td>
<td valign="middle" align="right">94.7</td>
<td valign="middle" align="right">35.2</td>
<td valign="middle" align="right">27.2</td>
<td valign="middle" align="right">96.6</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">24.5</td>
<td valign="middle" align="right">17.1</td>
<td valign="middle" align="right">91.6</td>
<td valign="middle" align="right">20.7</td>
<td valign="middle" align="right">13.8</td>
<td valign="middle" align="right">93.9</td>
<td valign="middle" align="right">17.2</td>
<td valign="middle" align="right">11.4</td>
<td valign="middle" align="right">95.8</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">16.1</td>
<td valign="middle" align="right">8.9</td>
<td valign="middle" align="right">91.0</td>
<td valign="middle" align="right">12.8</td>
<td valign="middle" align="right">6.9</td>
<td valign="middle" align="right">94.4</td>
<td valign="middle" align="right">8.3</td>
<td valign="middle" align="right">4.4</td>
<td valign="middle" align="right">97.6</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">FD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">49.1</td>
<td valign="middle" align="right">39.2</td>
<td valign="middle" align="right">92.2</td>
<td valign="middle" align="right">39.3</td>
<td valign="middle" align="right">31.1</td>
<td valign="middle" align="right">95.0</td>
<td valign="middle" align="right">29.3</td>
<td valign="middle" align="right">22.4</td>
<td valign="middle" align="right">97.2</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">23.0</td>
<td valign="middle" align="right">16.5</td>
<td valign="middle" align="right">91.3</td>
<td valign="middle" align="right">20.1</td>
<td valign="middle" align="right">12.5</td>
<td valign="middle" align="right">93.4</td>
<td valign="middle" align="right">14.0</td>
<td valign="middle" align="right">9.9</td>
<td valign="middle" align="right">96.8</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">14.6</td>
<td valign="middle" align="right">7.9</td>
<td valign="middle" align="right">91.5</td>
<td valign="middle" align="right">11.7</td>
<td valign="middle" align="right">5.8</td>
<td valign="middle" align="right">94.6</td>
<td valign="middle" align="right">7.2</td>
<td valign="middle" align="right">4.1</td>
<td valign="middle" align="right">98.0</td>
</tr>
<tr>
<td valign="middle" rowspan="9" align="left">Winter</td>
<td valign="middle" rowspan="3" align="center">MD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">39.6</td>
<td valign="middle" align="right">22.8</td>
<td valign="middle" align="right">92.3</td>
<td valign="middle" align="right">8.6</td>
<td valign="middle" align="right">5.8</td>
<td valign="middle" align="right">94.6</td>
<td valign="middle" align="right">5.2</td>
<td valign="middle" align="right">3.5</td>
<td valign="middle" align="right">98.0</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">20.2</td>
<td valign="middle" align="right">11.1</td>
<td valign="middle" align="right">91.4</td>
<td valign="middle" align="right">12.5</td>
<td valign="middle" align="right">7.8</td>
<td valign="middle" align="right">93.6</td>
<td valign="middle" align="right">10.2</td>
<td valign="middle" align="right">6.0</td>
<td valign="middle" align="right">95.7</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">3.8</td>
<td valign="middle" align="right">2.6</td>
<td valign="middle" align="right">91.1</td>
<td valign="middle" align="right">2.6</td>
<td valign="middle" align="right">1.8</td>
<td valign="middle" align="right">93.1</td>
<td valign="middle" align="right">2.0</td>
<td valign="middle" align="right">1.3</td>
<td valign="middle" align="right">96.0</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">HD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">38.4</td>
<td valign="middle" align="right">19.2</td>
<td valign="middle" align="right">91.7</td>
<td valign="middle" align="right">28.2</td>
<td valign="middle" align="right">12.3</td>
<td valign="middle" align="right">95.6</td>
<td valign="middle" align="right">19.9</td>
<td valign="middle" align="right">9.3</td>
<td valign="middle" align="right">97.8</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">17.5</td>
<td valign="middle" align="right">9.9</td>
<td valign="middle" align="right">91.6</td>
<td valign="middle" align="right">15.9</td>
<td valign="middle" align="right">9.7</td>
<td valign="middle" align="right">93.1</td>
<td valign="middle" align="right">10.2</td>
<td valign="middle" align="right">5.5</td>
<td valign="middle" align="right">97.2</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">3.4</td>
<td valign="middle" align="right">2.4</td>
<td valign="middle" align="right">91.9</td>
<td valign="middle" align="right">2.9</td>
<td valign="middle" align="right">1.9</td>
<td valign="middle" align="right">93.9</td>
<td valign="middle" align="right">2.5</td>
<td valign="middle" align="right">1.6</td>
<td valign="middle" align="right">95.7</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">FD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">11.0</td>
<td valign="middle" align="right">6.1</td>
<td valign="middle" align="right">91.2</td>
<td valign="middle" align="right">8.2</td>
<td valign="middle" align="right">5.8</td>
<td valign="middle" align="right">95.1</td>
<td valign="middle" align="right">5.6</td>
<td valign="middle" align="right">3.6</td>
<td valign="middle" align="right">97.7</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">14.4</td>
<td valign="middle" align="right">8.6</td>
<td valign="middle" align="right">91.6</td>
<td valign="middle" align="right">12.5</td>
<td valign="middle" align="right">7.5</td>
<td valign="middle" align="right">93.7</td>
<td valign="middle" align="right">9.5</td>
<td valign="middle" align="right">5.6</td>
<td valign="middle" align="right">96.3</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">3.0</td>
<td valign="middle" align="right">2.0</td>
<td valign="middle" align="right">90.8</td>
<td valign="middle" align="right">2.6</td>
<td valign="middle" align="right">1.8</td>
<td valign="middle" align="right">93.2</td>
<td valign="middle" align="right">2.0</td>
<td valign="middle" align="right">1.3</td>
<td valign="middle" align="right">96.2</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The LSTM-Attention model predicted the solar radiation intensity better than the LSTM-GRU model due to the attention mechanism that adjusted the importance of different weather features more efficiently. Although the LSTM-GRU model did not have much improvement in complex weather conditions, the LSTM-Attention model still maintained an <italic>R</italic><sup>2</sup> of 96.2% in winter rain, which was 5.4% higher than LSTM. It meant that it can deal with the non-linear effect of rainfall on radiation better. Additionally, as the difference among the three models became smaller with an increase in coverage density, LSTM-Attention still reduced the MAE by an average of 42.1% compared to LSTM under FD treatment. It showed that it works reliably in different circumstances. These findings indicated that hybrid models including attention mechanisms could greatly enhance the accuracy of solar radiation intensity prediction tasks, offering more dependable modeling tools for evaluating the performance of an AV system (<xref ref-type="bibr" rid="B35">Sakib et&#xa0;al., 2024</xref>).</p>
</sec>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Analysis of air temperature prediction results</title>
<sec id="s4_3_1">
<label>4.3.1</label>
<title>Seasonal variations in predicted air temperature</title>
<p><xref ref-type="fig" rid="f11"><bold>Figure&#xa0;11</bold></xref> displayed comparative curves between predicted and measured air temperature values across different seasons for the BP, SVM, LSTM, LSTM-GRU, and LSTM-Attention models. The maximum prediction deviations for air temperature in summer under the MD, HD and FD treatment were 2.3, 1.6, 2.2, 1.8, and 1.0&#xb0;C (MD); 2.3, 1.8, 2.3, 1.8, and 1.1&#xb0;C (HD); and 2.9, 2.2, 1.6, 1.52, and 0.9&#xb0;C (FD), respectively, for the five models. Correspondingly, the maximum prediction deviations in winter under the same coverage densities were 4.7, 4.3, 5.0, 3.7, and 3.8&#xb0;C (MD); 6.7, 4.5, 4.7, 4.2, and 3.4&#xb0;C (HD); and 7.5, 5.0, 4.3, 2.8, and 2.3&#xb0;C (FD). The results showed that the LSTM-Attention model improved the ability of the model to forecast seasonal temperatures, with the prediction errors being much smaller than those of the traditional methods (BP, SVM) and other neural network structures (LSTM, LSTM-GRU). It is noteworthy that the curves predicted by the LSTM-Attention model were most consistent with the actual measurement data, especially showing better adaptability during periods of fast temperature changes. On the contrary, the BP and SVM models generated smoother prediction curves with less capacity to capture sudden temperature changes. Though the LSTM and LSTM-GRU models outperformed traditional ML techniques, they still had some lag or overshoot in their peak temperature predictions.</p>
<fig id="f11" position="float">
<label>Figure&#xa0;11</label>
<caption>
<p>The estimated and measured value curve of air temperature: <bold>(a)</bold> Summer; <bold>(b)</bold> Winter.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g011.tif">
<alt-text content-type="machine-generated">Two sets of line graphs compare measured data and various prediction models for air temperature over time. The left side shows graphs with a temperature range of -10 to 45 degrees Celsius. The right side's range is -10 to 25 degrees Celsius. Each set is titled MD, HD, and FD. Models include BP, SVM, LSTM, LSTM-GRU, and LSTM-AT. Time is measured in ten-minute intervals up to 1,280 minutes.</alt-text>
</graphic></fig>
<p>According to the error analysis, the LSTM-Attention model performed the best. In summer, under the MD treatment, the maximum deviation was only 1.0&#xb0;C. It was much less than the deviations of the BP and SVM models, which were 2.3&#xb0;C and 1.6&#xb0;C, respectively. As the PV coverage density rose to the FD treatment, the maximum deviation of the LSTM-Attention model decreased further to 0.9&#xb0;C. In contrast, the other models&#x2019; errors grew. In winter, the performance difference became even larger, with LSTM-Attention keeping a max deviation of 2.3&#xb0;C for the FD treatment. The main reason for this performance improvement was that the attention mechanism could pay attention to the relevant parts of the temperature feature sequence, which improved the model&#x2019;s ability to find the nonlinear relationship between the environment and temperature, so as to make more accurate predictions of temperature changes under complex environmental conditions. All models were impacted by the PV panel coverage density, but the degree of impact differed greatly. Traditional machine learning models (BP and SVM) had poor adaptability to environmental parameter changes as they showed significant performance deterioration when the coverage density increased. Deep learning models generally performed better, and LSTM-Attention was the most insensitive to changes in coverage density, indicating the best robustness. This observation indicates that for environmental temperature prediction tasks affected by the intensity of solar radiation, deep learning models with attention mechanisms can better deal with the differences in input features caused by different PV panel layouts, making them a more reliable prediction tool for real-world engineering applications, as reported by He et&#xa0;al (<xref ref-type="bibr" rid="B13">He et&#xa0;al., 2022</xref>).</p>
<p>Air temperature predictions showed different patterns under varying PV array densities. The temperature field within the AV system was heavily influenced by both solar radiation and shading effects. As the PV array density increased, the shading reduced the amount of direct sunlight reaching the ground, which in turn lowered the overall temperature. The model performed reasonably well in predicting air temperature in scenarios with the MD configuration. However, in the HD and FD configuration, the shading effects significantly altered the temperature distribution, leading to increased model errors, especially during periods of high solar radiation. The RMSE for air temperature predictions was higher in the HD configuration compared to the MD configuration, where temperature variations were more stable. This suggested that the model struggled to adapt to the complex temperature gradients caused by dense PV arrays. As a result, further adjustments were needed to enhance the model&#x2019;s ability to capture such variations in high-density configurations.</p>
<p><xref ref-type="fig" rid="f12"><bold>Figure&#xa0;12</bold></xref> showed the performance of five models in predicting air temperature in different seasons and PV panel coverage levels. LSTM-Attention model always did better than the rest no matter if it was summer or winter, and the coverage density didn&#x2019;t matter. It has smaller RMSE and MAE values compared to LSTM-GRU and LSTM. For instance, in summer with the MD coverage, the LSTM-Attention model achieved an RMSE of 0.5&#xb0;C. This was 39.0% lower than LSTM-GRU and 51.0% lower than LSTM. In winter at the same coverage level, it had an RMSE of 0.8&#xb0;C, which was 18.1% and 35.8% less than LSTM-GRU and LSTM, respectively. The model also kept an <italic>R</italic><sup>2</sup> over 97.0% in all cases, indicating a strong capacity to explain temperature changes. Interestingly, in summer with HD coverage, the <italic>R</italic><sup>2</sup> was as high as 98.2%, which was much higher than those of LSTM-GRU and LSTM.</p>
<fig id="f12" position="float">
<label>Figure&#xa0;12</label>
<caption>
<p>Performance comparison of five prediction models for air temperature in different forecasting seasons.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g012.tif">
<alt-text content-type="machine-generated">Bar charts comparing six models: SVM, BP, LSTM, LSTM-GRU, and LSTM-Attention. Metrics displayed are RSME, MAE, and R-squared for three scenarios: MD, HD, and FD, presented in two rows. Each chart shows decreasing error and increasing R-squared values across models.</alt-text>
</graphic></fig>
<p>The improved accuracy of the LSTM-Attention model may have been because it had an attention mechanism that gave different weights to the input data. It helped the model to recognize the complex and changing temperature patterns usually seen in small climate areas inside AV systems. On the other hand, the LSTM-GRU model did not include a feature selection process, which may explain its larger variation in error. For instance, at the FD treatment site in winter, its RMSE was 0.9&#xb0;C. Although this result was better than that of the standard LSTM model, it was still less accurate than LSTM-Attention. The basic LSTM model, affected by gradient vanishing problems, performed the worst when predicting long sequences. Its <italic>R</italic><sup>2</sup> value dropped to 92.3% in winter. These findings support the importance of using attention mechanisms to improve the accuracy of air temperature forecasts (<xref ref-type="bibr" rid="B29">Nandi et&#xa0;al., 2022</xref>).</p>
</sec>
<sec id="s4_3_2">
<label>4.3.2</label>
<title>Out-of-window generalization test of air temperature under different weather conditions</title>
<p>To partly assess how well the model performs outside the training period, we ran an extra validation using three days of data that were not part of the training set. These three days were chosen to avoid both summer and winter solstices. This helped us do an early check on whether the model could handle conditions that were not tied to the extreme seasons. We compared how three models (LSTM, LSTM-GRU, and LSTM-Attention) performed during summer and winter under three different types of weather: clear, cloudy, and rainy days (<xref ref-type="fig" rid="f13"><bold>Figure&#xa0;13</bold></xref>). In summer, the highest average prediction errors on clear days were 3.9&#xb0;C for LSTM, 3.5&#xb0;C for LSTM-GRU, and 2.8&#xb0;C for LSTM-Attention. On cloudy days, the errors dropped to 1.1&#xb0;C, 0.8&#xb0;C, and 0.6&#xb0;C for the same models. For rainy days, the errors were even lower: 0.4&#xb0;C for LSTM, 0.3&#xb0;C for LSTM-GRU, and 0.2&#xb0;C for LSTM-Attention. In winter, the maximum mean deviation on clear days was 1.8&#xb0;C, 1.5&#xb0;C, and 1.1&#xb0;C; for cloudy days, it was 0.9&#xb0;C, 1.0&#xb0;C, and 0.9&#xb0;C; and for rainy days, it was 2.2&#xb0;C, 1.2&#xb0;C, and 0.7&#xb0;C for the above three models, respectively.</p>
<fig id="f13" position="float">
<label>Figure&#xa0;13</label>
<caption>
<p>Prediction results of air temperature under different weather conditions in different seasons by LSTM, LSTM-GRU and LSTM-Attention models: <bold>(a)</bold> Summer; <bold>(b)</bold> Winter.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fpls-17-1755040-g013.tif">
<alt-text content-type="machine-generated">Graph (a) and (b) depict air temperature data using various models. Each graph contains three panels representing different conditions: sunny, cloudy, and rainy days. The top panel covers MD, HD, and FD from June 15 to June 19, 2023, with temperatures between 15 and 50&#xb0;C. The bottom panel portrays MD, HD, and FD from December 10 to December 21, 2023, with temperatures ranging from -20 to 30&#xb0;C. Models include measured data, LSTM, LSTM-GRU, and LSTM-Attention, showing similar temperature trends across conditions.</alt-text>
</graphic></fig>
<p>Performance comparison showed that the LSTM-Attention model had better performance than both GRU-combined and traditional LSTM models in terms of weather prediction accuracy. This improved performance was especially noticeable during summer clear-sky conditions, when the LSTM-Attention model cut down the prediction error by 27.7% compared to the regular LSTM model, and during winter rainy conditions, the improvement was as high as 67.7%. The stable performance under various weather conditions suggests that the attention mechanism can capture temperature changes affected by weather, which is difficult for traditional models to handle. In addition, during rainy conditions, the model showed higher prediction errors, likely due to rapid changes in radiation and temperature.</p>
<p><xref ref-type="table" rid="T3"><bold>Table&#xa0;3</bold></xref> provided a quantitative comparison of air temperature forecasts in the AV system for different seasons by means of LSTM, LSTM-GRU and LSTM-Attention. The results indicated that the LSTM-Attention model performed better than the other models in terms of accuracy. In the summer clear sky situation at MD treatment, the RMSE of LSTM-Attention model was 1.4&#xb0;C, which was 31.4% and 17.7% lower than the RMSE of LSTM and LSTM-GRU models, respectively. Its <italic>R</italic><sup>2</sup> was 95.9%, higher than the 92.1% and 93.9% of the other models. When it was overcast, this model did even better, with the RMSE dropping to 0.3&#xb0;C and the <italic>R</italic><sup>2</sup> rising to 97.5%, indicating that it could do a better job capturing changes in air temperature under different lighting conditions. The LSTM-Attention model demonstrated especially strong stability during winter extreme weather events. Rainy condition at the MD treatment, it achieved an RMSE of 0.4&#xb0;C, an 87.2% reduction from LSTM&#x2019;s 3.1&#xb0;C, and maintained a high <italic>R</italic><sup>2</sup> of 96.5%. Noteworthy is that in winter clear sky situation, the model&#x2019;s MAE got as low as 0.4&#xb0;C, which was 29.1% better than LSTM-GRU, proving the accuracy of detecting small changes in air temperature in cold places. This advantage became more obvious when there were more places covered.</p>
<table-wrap id="T3" position="float">
<label>Table&#xa0;3</label>
<caption>
<p>Comparison of model performance for air temperature under different weather conditions.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" rowspan="2" align="center">Season</th>
<th valign="middle" rowspan="2" align="center">Treatment</th>
<th valign="middle" rowspan="2" align="center">Weather type</th>
<th valign="middle" colspan="3" align="center">LSTM</th>
<th valign="middle" colspan="3" align="center">LSTM-GRU</th>
<th valign="middle" colspan="3" align="center">LSTM-Attention</th>
</tr>
<tr>
<th valign="middle" align="center">RSME/&#xb0;C</th>
<th valign="middle" align="center">MAE/&#xb0;C</th>
<th valign="middle" align="center"><italic>R</italic><sup>2</sup>/%</th>
<th valign="middle" align="center">RSME/&#xb0;C</th>
<th valign="middle" align="center">MAE/&#xb0;C</th>
<th valign="middle" align="center"><italic>R</italic><sup>2</sup>/%</th>
<th valign="middle" align="center">RSME/&#xb0;C</th>
<th valign="middle" align="center">MAE/&#xb0;C</th>
<th valign="middle" align="center"><italic>R</italic><sup>2</sup>/%</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" rowspan="9" align="left">Summer</td>
<td valign="middle" rowspan="3" align="center">MD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">2.10</td>
<td valign="middle" align="right">1.75</td>
<td valign="middle" align="right">92.1</td>
<td valign="middle" align="right">1.75</td>
<td valign="middle" align="right">1.47</td>
<td valign="middle" align="right">93.9</td>
<td valign="middle" align="right">1.44</td>
<td valign="middle" align="right">1.24</td>
<td valign="middle" align="right">95.9</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">0.60</td>
<td valign="middle" align="right">0.52</td>
<td valign="middle" align="right">91.4</td>
<td valign="middle" align="right">0.48</td>
<td valign="middle" align="right">0.42</td>
<td valign="middle" align="right">94.5</td>
<td valign="middle" align="right">0.32</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">97.5</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">0.31</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">91.3</td>
<td valign="middle" align="right">0.29</td>
<td valign="middle" align="right">0.26</td>
<td valign="middle" align="right">92.3</td>
<td valign="middle" align="right">0.27</td>
<td valign="middle" align="right">0.23</td>
<td valign="middle" align="right">93.4</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">HD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">2.10</td>
<td valign="middle" align="right">1.70</td>
<td valign="middle" align="right">93.0</td>
<td valign="middle" align="right">1.79</td>
<td valign="middle" align="right">1.54</td>
<td valign="middle" align="right">94.9</td>
<td valign="middle" align="right">1.29</td>
<td valign="middle" align="right">1.05</td>
<td valign="middle" align="right">97.3</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">0.49</td>
<td valign="middle" align="right">0.42</td>
<td valign="middle" align="right">92.0</td>
<td valign="middle" align="right">0.48</td>
<td valign="middle" align="right">0.42</td>
<td valign="middle" align="right">92.4</td>
<td valign="middle" align="right">0.30</td>
<td valign="middle" align="right">0.26</td>
<td valign="middle" align="right">97.0</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">0.27</td>
<td valign="middle" align="right">0.24</td>
<td valign="middle" align="right">91.5</td>
<td valign="middle" align="right">0.27</td>
<td valign="middle" align="right">0.23</td>
<td valign="middle" align="right">91.6</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">0.24</td>
<td valign="middle" align="right">98.1</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">FD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">1.88</td>
<td valign="middle" align="right">1.61</td>
<td valign="middle" align="right">92.3</td>
<td valign="middle" align="right">1.69</td>
<td valign="middle" align="right">1.44</td>
<td valign="middle" align="right">93.7</td>
<td valign="middle" align="right">1.25</td>
<td valign="middle" align="right">1.03</td>
<td valign="middle" align="right">96.6</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">0.46</td>
<td valign="middle" align="right">0.40</td>
<td valign="middle" align="right">90.9</td>
<td valign="middle" align="right">0.44</td>
<td valign="middle" align="right">0.38</td>
<td valign="middle" align="right">91.8</td>
<td valign="middle" align="right">0.29</td>
<td valign="middle" align="right">0.25</td>
<td valign="middle" align="right">96.3</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">0.22</td>
<td valign="middle" align="right">0.19</td>
<td valign="middle" align="right">91.4</td>
<td valign="middle" align="right">0.21</td>
<td valign="middle" align="right">0.19</td>
<td valign="middle" align="right">91.9</td>
<td valign="middle" align="right">0.14</td>
<td valign="middle" align="right">0.13</td>
<td valign="middle" align="right">96.4</td>
</tr>
<tr>
<td valign="middle" rowspan="9" align="left">Winter</td>
<td valign="middle" rowspan="3" align="center">MD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">0.75</td>
<td valign="middle" align="right">0.58</td>
<td valign="middle" align="right">92.8</td>
<td valign="middle" align="right">0.70</td>
<td valign="middle" align="right">0.55</td>
<td valign="middle" align="right">93.8</td>
<td valign="middle" align="right">0.47</td>
<td valign="middle" align="right">0.39</td>
<td valign="middle" align="right">97.1</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">0.42</td>
<td valign="middle" align="right">0.35</td>
<td valign="middle" align="right">91.1</td>
<td valign="middle" align="right">0.37</td>
<td valign="middle" align="right">0.31</td>
<td valign="middle" align="right">93.3</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">0.23</td>
<td valign="middle" align="right">96.2</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">3.05</td>
<td valign="middle" align="right">1.98</td>
<td valign="middle" align="right">92.7</td>
<td valign="middle" align="right">0.61</td>
<td valign="middle" align="right">0.53</td>
<td valign="middle" align="right">91.1</td>
<td valign="middle" align="right">0.39</td>
<td valign="middle" align="right">0.32</td>
<td valign="middle" align="right">96.5</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">HD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">0.80</td>
<td valign="middle" align="right">0.61</td>
<td valign="middle" align="right">91.4</td>
<td valign="middle" align="right">0.61</td>
<td valign="middle" align="right">0.47</td>
<td valign="middle" align="right">94.9</td>
<td valign="middle" align="right">0.47</td>
<td valign="middle" align="right">0.38</td>
<td valign="middle" align="right">97.0</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">0.57</td>
<td valign="middle" align="right">0.47</td>
<td valign="middle" align="right">91.5</td>
<td valign="middle" align="right">0.54</td>
<td valign="middle" align="right">0.46</td>
<td valign="middle" align="right">92.4</td>
<td valign="middle" align="right">0.34</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">97.0</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">0.72</td>
<td valign="middle" align="right">0.61</td>
<td valign="middle" align="right">91.2</td>
<td valign="middle" align="right">0.70</td>
<td valign="middle" align="right">0.60</td>
<td valign="middle" align="right">91.6</td>
<td valign="middle" align="right">0.40</td>
<td valign="middle" align="right">0.34</td>
<td valign="middle" align="right">97.2</td>
</tr>
<tr>
<td valign="middle" rowspan="3" align="center">FD</td>
<td valign="middle" align="left">Sunny day</td>
<td valign="middle" align="right">0.51</td>
<td valign="middle" align="right">0.43</td>
<td valign="middle" align="right">90.2</td>
<td valign="middle" align="right">0.69</td>
<td valign="middle" align="right">0.54</td>
<td valign="middle" align="right">91.5</td>
<td valign="middle" align="right">0.45</td>
<td valign="middle" align="right">0.36</td>
<td valign="middle" align="right">96.4</td>
</tr>
<tr>
<td valign="middle" align="left">Cloudy day</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">0.24</td>
<td valign="middle" align="right">91.8</td>
<td valign="middle" align="right">0.25</td>
<td valign="middle" align="right">0.21</td>
<td valign="middle" align="right">93.4</td>
<td valign="middle" align="right">0.21</td>
<td valign="middle" align="right">0.18</td>
<td valign="middle" align="right">95.5</td>
</tr>
<tr>
<td valign="middle" align="left">Rainy day</td>
<td valign="middle" align="right">0.65</td>
<td valign="middle" align="right">0.52</td>
<td valign="middle" align="right">92.5</td>
<td valign="middle" align="right">0.48</td>
<td valign="middle" align="right">0.40</td>
<td valign="middle" align="right">91.3</td>
<td valign="middle" align="right">0.28</td>
<td valign="middle" align="right">0.24</td>
<td valign="middle" align="right">96.9</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>In all kinds of weather conditions, LSTM-Attention always performed better than other models in complex meteorological situations. During the summer rainy season, <italic>R</italic><sup>2</sup> was high, ranging from 93.4% to 98.1%, which was higher than other models by 1.1% to 6.8%. In the winter overcast condition under HD treatment, the model got an MAE of 0.3&#xb0;C, which was 40.4% lower than the baseline models, and an <italic>R</italic><sup>2</sup> of 97.0%. It can be seen that it can fit the non-linear relationship of air temperature under different weather conditions. The model consistently performed well throughout all seasons and weather conditions, showing that it can be relied upon to predict air temperature. From this, it can be seen that the LSTM memory retained longer context, which was essential for predicting delayed temperature responses. This mechanism based explanation was consistent with the observation that the gains of LSTM-Attention became more pronounced under complex weather, particularly in winter rainy scenarios.</p>
</sec>
</sec>
<sec id="s4_4">
<label>4.4</label>
<title>Limitations and future work</title>
<p>This study presents some encouraging outcomes using the LSTM-Attention model for forecasting microclimate parameters in AV systems. However, there are some limitations that should be considered. A major limitation is that only one dataset from one particular area, under flat land conditions, was used. This might impact how well the model works in other places or under different terrain conditions. Therefore, future studies could consider validating the microclimate prediction model under various terrain conditions, such as sloping land. Additionally, although the attention mechanism enhances the model&#x2019;s prediction accuracy, it has difficulty dealing with extreme weather conditions that have highly variable inputs. Future research will focus on optimizing the model to better handle such variations and improve its adaptability across different environments.</p>
<p>Despite these challenges, the results give us a good starting point to improve how we set up PV arrays and manage crops in AV systems. In the future, the proposed model can be integrated with streaming data from in-field sensors and weather stations to deliver rolling short-term forecasts, thereby supporting real-time AV management decisions such as irrigation scheduling and field operation planning. In addition, the model can be evaluated and applied across different PV coverage densities, and the forecasting module can be embedded into a management framework to enable quantitative co-optimization of PV array layouts and crop management under multi-objective trade-offs.</p>
</sec>
</sec>
<sec id="s5" sec-type="conclusions">
<label>5</label>
<title>Conclusion</title>
<p>In this study, we developed a model based on LSTM and Attention mechanisms to predict microclimate such as solar radiation and air temperature in AV systems. The model was trained with information collected from the experimental AV systems on flat land in Nanjing, China. The results showed that the LSTM-Attention model performed much better than the traditional machine learning models (BP and SVM) and the standard LSTM model. Specifically, during the summer, the model decreased the RMSE of the solar radiation forecast by 28.0%, 35.7%, and 42.1% for the MD, HD, and FD treatments, respectively. In terms of air temperature prediction, the RMSE was reduced by 39.0% in summer and 18.1% in winter compared to the LSTM-GRU model. The attention mechanism allowed the model to focus on the most relevant temporal features, which improved its ability to detect complex changes in solar radiation and air temperature under different weather conditions such as sunny, cloudy, and rainy days. The model also performed well at both ends of the season. In winter, the RMSE for solar radiation predictions was 11.2 W/m<sup>2</sup> and for air temperature predictions was 0.4&#xb0;C under rainy conditions with the FD treatment. These results show that the LSTM-Attention model can do a good job at predicting microclimate parameters. This research provides a theoretical basis for the optimization of the array structure of AV systems and the adjustment of agricultural planting structure. At the same time, it offers important theoretical support for the microclimate prediction of AV projects in different regions. However, it should be noted that this study was only conducted under flat land conditions. Future studies can extend the model to different terrain types, such as sloping land, to further validate its applicability.</p>
</sec>
</body>
<back>
<sec id="s6" sec-type="data-availability">
<title>Data availability statement</title>
<p>The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.</p></sec>
<sec id="s7" sec-type="author-contributions">
<title>Author contributions</title>
<p>LZ: Investigation, Methodology, Software, Visualization, Writing &#x2013; original draft, Writing &#x2013; review &amp; editing. JHG: Formal Analysis, Validation, Writing &#x2013; original draft. CW: Funding acquisition, Writing &#x2013; original draft, Writing &#x2013; review &amp; editing. EM: Writing &#x2013; review &amp; editing. AG: Writing &#x2013; review &amp; editing. BL: Investigation, Resources, Writing &#x2013; original draft. CY: Investigation, Resources, Writing &#x2013; original draft. GX: Resources, Software, Writing &#x2013; original draft. JZ: Methodology, Resources, Writing &#x2013; original draft. JG: Resources, Software, Writing &#x2013; original draft. MX: Supervision, Writing &#x2013; review &amp; editing. EB: Conceptualization, Funding acquisition, Project administration, Supervision, Writing &#x2013; review &amp; editing.</p></sec>
<ack>
<title>Acknowledgments</title>
<p>The authors would like to thank the editor and reviewers for their constructive comments.</p>
</ack>
<sec id="s9" sec-type="COI-statement">
<title>Conflict of interest</title>
<p>Authors BL, CY and GX were employed by the company Shenzhen Energy Nanjing Holding Co., Ltd. Authors JZ AND JG were employed by the company China Electric Power Engineering Consulting Group Co., Ltd.</p>
<p>The remaining author(s) declared that this work was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
<p>The authors declare that this study received funding from China Electric Power Engineering Consulting Group Co., Ltd. The funder had the following involvement in the study: Collection, analysis, interpretation of data.</p></sec>
<sec id="s10" sec-type="ai-statement">
<title>Generative AI statement</title>
<p>The author(s) declared that generative AI was not used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p></sec>
<sec id="s11" sec-type="disclaimer">
<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">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ali Abaker Omer</surname> <given-names>A.</given-names></name>
<name><surname>Li</surname> <given-names>M.</given-names></name>
<name><surname>Zhang</surname> <given-names>F.</given-names></name>
<name><surname>Hassaan</surname> <given-names>M. M. E.</given-names></name>
<name><surname>El Kolaly</surname> <given-names>W.</given-names></name>
<name><surname>Zhang</surname> <given-names>X.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Impacts of agrivoltaic systems on microclimate, water use efficiency, and crop yield: A systematic review</article-title>. <source>Renew. Sust. Energ. Rev.</source> <volume>221</volume>, <elocation-id>115930</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.rser.2025.115930</pub-id>
</mixed-citation>
</ref>
<ref id="B2">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Bellone</surname> <given-names>Y.</given-names></name>
<name><surname>Croci</surname> <given-names>M.</given-names></name>
<name><surname>Impollonia</surname> <given-names>G.</given-names></name>
<name><surname>Nik Zad</surname> <given-names>A.</given-names></name>
<name><surname>Colauzzi</surname> <given-names>M.</given-names></name>
<name><surname>Campana</surname> <given-names>P. E.</given-names></name>
<etal/>
</person-group>. (<year>2024</year>). 
<article-title>Simulation-based decision support for agrivoltaic systems</article-title>. <source>Appl. Energy</source> <volume>369</volume>, <elocation-id>123490</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.apenergy.2024.123490</pub-id>
</mixed-citation>
</ref>
<ref id="B3">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Brown</surname> <given-names>A.</given-names></name>
</person-group> (<year>2018</year>). 
<article-title>Photovoltaic win&#x2013;win</article-title>. <source>Nat. Clim. Change</source> <volume>9</volume>, <fpage>7</fpage>&#x2013;<lpage>7</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41558-018-0381-9</pub-id>
</mixed-citation>
</ref>
<ref id="B4">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Chopdar</surname> <given-names>R. K.</given-names></name>
<name><surname>Sengar</surname> <given-names>N.</given-names></name>
<name><surname>Giri</surname> <given-names>N. C.</given-names></name>
<name><surname>Halliday</surname> <given-names>D.</given-names></name>
</person-group> (<year>2024</year>). 
<article-title>Comprehensive review on agrivoltaics with technical, environmental and societal insights</article-title>. <source>Renew. Sust. Energ. Rev.</source> <volume>197</volume>, <elocation-id>114416</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.rser.2024.114416</pub-id>
</mixed-citation>
</ref>
<ref id="B5">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Fang</surname> <given-names>Z.</given-names></name>
<name><surname>Crimier</surname> <given-names>N.</given-names></name>
<name><surname>Scanu</surname> <given-names>L.</given-names></name>
<name><surname>Midelet</surname> <given-names>A.</given-names></name>
<name><surname>Alyafi</surname> <given-names>A.</given-names></name>
<name><surname>Delinchant</surname> <given-names>B.</given-names></name>
</person-group> (<year>2021</year>). 
<article-title>Multi-zone indoor temperature prediction with LSTM-based sequence to sequence model</article-title>. <source>Energy Build.</source> <volume>245</volume>, <elocation-id>111053</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.enbuild.2021.111053</pub-id>
</mixed-citation>
</ref>
<ref id="B6">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Gao</surname> <given-names>Y.</given-names></name>
<name><surname>Miyata</surname> <given-names>S.</given-names></name>
<name><surname>Akashi</surname> <given-names>Y.</given-names></name>
</person-group> (<year>2022</year>). 
<article-title>Interpretable deep learning models for hourly solar radiation prediction based on graph neural network and attention</article-title>. <source>Appl. Energy</source> <volume>321</volume>, <elocation-id>119288</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.apenergy.2022.119288</pub-id>
</mixed-citation>
</ref>
<ref id="B7">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Geng</surname> <given-names>Q.</given-names></name>
<name><surname>Wang</surname> <given-names>L.</given-names></name>
<name><surname>Li</surname> <given-names>Q.</given-names></name>
</person-group> (<year>2024</year>). 
<article-title>Soil temperature prediction based on explainable artificial intelligence and LSTM</article-title>. <source>Front. Environ. Sci.</source> <volume>12</volume>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fenvs.2024.1426942</pub-id>
</mixed-citation>
</ref>
<ref id="B8">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ghosh</surname> <given-names>A.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>Nexus between agriculture and photovoltaics (agrivoltaics, agriphotovoltaics) for sustainable development goal: A review</article-title>. <source>Sol. Energy</source> <volume>266</volume>, <elocation-id>112146</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.solener.2023.112146</pub-id>
</mixed-citation>
</ref>
<ref id="B9">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Giudici</surname> <given-names>P.</given-names></name>
<name><surname>Gramegna</surname> <given-names>A.</given-names></name>
<name><surname>Raffinetti</surname> <given-names>E.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>Machine learning classification model comparison</article-title>. <source>Socio-Econ. Plan. Sci.</source> <volume>87</volume>, <elocation-id>101560</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.seps.2023.101560</pub-id>
</mixed-citation>
</ref>
<ref id="B10">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Gnayem</surname> <given-names>N.</given-names></name>
<name><surname>Magadley</surname> <given-names>E.</given-names></name>
<name><surname>Haj-Yahya</surname> <given-names>A.</given-names></name>
<name><surname>Masalha</surname> <given-names>S.</given-names></name>
<name><surname>Kabha</surname> <given-names>R.</given-names></name>
<name><surname>Abasi</surname> <given-names>A.</given-names></name>
<etal/>
</person-group>. (<year>2024</year>). 
<article-title>Examining the effect of different photovoltaic modules on cucumber crops in a greenhouse agrivoltaic system: A case study</article-title>. <source>Biosyst. Eng.</source> <volume>241</volume>, <fpage>83</fpage>&#x2013;<lpage>94</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.biosystemseng.2024.03.012</pub-id>
</mixed-citation>
</ref>
<ref id="B11">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Gong</surname> <given-names>W.</given-names></name>
<name><surname>Zhang</surname> <given-names>L.</given-names></name>
<name><surname>Gong</surname> <given-names>J.</given-names></name>
<name><surname>Geng</surname> <given-names>X.</given-names></name>
<name><surname>Wang</surname> <given-names>L.</given-names></name>
<name><surname>Deng</surname> <given-names>L.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Regulatory effect of agriphotovoltaic systems with different panel heights on the thermal environment</article-title>. <source>Sci. Rep.</source> <volume>15</volume>, <fpage>11196</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41598-025-96166-5</pub-id>, PMID: <pub-id pub-id-type="pmid">40169686</pub-id>
</mixed-citation>
</ref>
<ref id="B12">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Guo</surname> <given-names>Z.</given-names></name>
<name><surname>Feng</surname> <given-names>L.</given-names></name>
</person-group> (<year>2024</year>). 
<article-title>Multi-step prediction of greenhouse temperature and humidity based on temporal position attention LSTM</article-title>. <source>Stochastic Environ. Res. Risk Assess.</source> <volume>38</volume>, <fpage>4907</fpage>&#x2013;<lpage>4934</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1007/s00477-024-02840-x</pub-id>
</mixed-citation>
</ref>
<ref id="B13">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>He</surname> <given-names>Z.</given-names></name>
<name><surname>Jiang</surname> <given-names>T.</given-names></name>
<name><surname>Jiang</surname> <given-names>Y.</given-names></name>
<name><surname>Luo</surname> <given-names>Q.</given-names></name>
<name><surname>Chen</surname> <given-names>S.</given-names></name>
<name><surname>Gong</surname> <given-names>K.</given-names></name>
<etal/>
</person-group>. (<year>2022</year>). 
<article-title>Gated recurrent unit models outperform other Machine learning models in prediction of minimum temperature in greenhouse Based on local weather data</article-title>. <source>Comput. Electron. Agric.</source> <volume>202</volume>, <elocation-id>107416</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.compag.2022.107416</pub-id>
</mixed-citation>
</ref>
<ref id="B14">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Hochreiter</surname> <given-names>S.</given-names></name>
<name><surname>Schmidhuber</surname> <given-names>J.</given-names></name>
</person-group> (<year>1997</year>). 
<article-title>Long short-term memory</article-title>. <source>Neural Comput.</source> <volume>9</volume>, <fpage>1735</fpage>&#x2013;<lpage>1780</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1162/neco.1997.9.8.1735</pub-id>, PMID: <pub-id pub-id-type="pmid">9377276</pub-id>
</mixed-citation>
</ref>
<ref id="B15">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Huang</surname> <given-names>H.</given-names></name>
<name><surname>Wang</surname> <given-names>Z.</given-names></name>
<name><surname>Liao</surname> <given-names>Y.</given-names></name>
<name><surname>Gao</surname> <given-names>W.</given-names></name>
<name><surname>Lai</surname> <given-names>C.</given-names></name>
<name><surname>Wu</surname> <given-names>X.</given-names></name>
<etal/>
</person-group>. (<year>2024</year>). 
<article-title>Improving the explainability of CNN-LSTM-based flood prediction with integrating SHAP technique</article-title>. <source>Ecol. Inform.</source> <volume>84</volume>, <elocation-id>102904</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.ecoinf.2024.102904</pub-id>
</mixed-citation>
</ref>
<ref id="B16">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Jiang</surname> <given-names>B.</given-names></name>
<name><surname>Gong</surname> <given-names>H.</given-names></name>
<name><surname>Qin</surname> <given-names>H.</given-names></name>
<name><surname>Zhu</surname> <given-names>M.</given-names></name>
</person-group> (<year>2022</year>). 
<article-title>Attention-LSTM architecture combined with Bayesian hyperparameter optimization for indoor temperature prediction</article-title>. <source>Build. Environ.</source> <volume>224</volume>, <elocation-id>109536</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.buildenv.2022.109536</pub-id>
</mixed-citation>
</ref>
<ref id="B17">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Jiang</surname> <given-names>Y.</given-names></name>
<name><surname>Zhang</surname> <given-names>L.</given-names></name>
<name><surname>Wang</surname> <given-names>C.</given-names></name>
<name><surname>Chen</surname> <given-names>L.</given-names></name>
<name><surname>Zhang</surname> <given-names>W.</given-names></name>
<name><surname>Weng</surname> <given-names>H.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Multi-step prediction of dissolved oxygen in fish pond aquaculture using feature reconstruction-based deep neural network</article-title>. <source>Comput. Electron. Agric.</source> <volume>232</volume>, <elocation-id>109997</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.compag.2025.109997</pub-id>
</mixed-citation>
</ref>
<ref id="B18">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Joseph</surname> <given-names>V.</given-names></name>
<name><surname>Baptiste</surname> <given-names>B.</given-names></name>
<name><surname>Baptiste</surname> <given-names>A.</given-names></name>
<name><surname>Sylvain</surname> <given-names>E.</given-names></name>
<name><surname>Martin</surname> <given-names>F.</given-names></name>
<name><surname>Eric</surname> <given-names>D.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>An innovative method based on CFD to simulate the influence of photovoltaic panels on the microclimate in agrivoltaic conditions</article-title>. <source>Sol. Energy</source> <volume>297</volume>, <elocation-id>113571</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.solener.2025.113571</pub-id>
</mixed-citation>
</ref>
<ref id="B19">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Kong</surname> <given-names>X.</given-names></name>
<name><surname>Du</surname> <given-names>X.</given-names></name>
<name><surname>Xue</surname> <given-names>G.</given-names></name>
<name><surname>Xu</surname> <given-names>Z.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>Multi-step short-term solar radiation prediction based on empirical mode decomposition and gated recurrent unit optimized via an attention mechanism</article-title>. <source>Energy</source> <volume>282</volume>, <elocation-id>128825</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.energy.2023.128825</pub-id>
</mixed-citation>
</ref>
<ref id="B20">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Landi</surname> <given-names>F.</given-names></name>
<name><surname>Baraldi</surname> <given-names>L.</given-names></name>
<name><surname>Cornia</surname> <given-names>M.</given-names></name>
<name><surname>Cucchiara</surname> <given-names>R.</given-names></name>
</person-group> (<year>2021</year>). 
<article-title>Working memory connections for LSTM</article-title>. <source>Neural Networks</source> <volume>144</volume>, <fpage>334</fpage>&#x2013;<lpage>341</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.neunet.2021.08.030</pub-id>, PMID: <pub-id pub-id-type="pmid">34547671</pub-id>
</mixed-citation>
</ref>
<ref id="B21">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Li</surname> <given-names>L.</given-names></name>
<name><surname>Liu</surname> <given-names>L.</given-names></name>
<name><surname>Gu</surname> <given-names>Z.</given-names></name>
<name><surname>Sun</surname> <given-names>Z.</given-names></name>
<name><surname>Zhang</surname> <given-names>Q.</given-names></name>
</person-group> (<year>2022</year>a). 
<article-title>Examining the relationships between carbon emissions and land supply in China</article-title>. <source>Ecol. Inform.</source> <volume>70</volume>, <elocation-id>101744</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.ecoinf.2022.101744</pub-id>
</mixed-citation>
</ref>
<ref id="B22">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Li</surname> <given-names>M.</given-names></name>
<name><surname>Liu</surname> <given-names>Y.</given-names></name>
<name><surname>Zhang</surname> <given-names>F.</given-names></name>
<name><surname>Zhang</surname> <given-names>X.</given-names></name>
<name><surname>Zhang</surname> <given-names>Z.</given-names></name>
<name><surname>Omer</surname> <given-names>A. A. A.</given-names></name>
<etal/>
</person-group>. (<year>2021</year>). 
<article-title>Design of multi-passband polymer multilayer film and its application in photovoltaic agriculture</article-title>. <source>Chin. Opt. Lett.</source> <volume>19</volume>, <elocation-id>112201</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3788/col202119.112201</pub-id>
</mixed-citation>
</ref>
<ref id="B23">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Li</surname> <given-names>M.</given-names></name>
<name><surname>Wang</surname> <given-names>W.</given-names></name>
<name><surname>Li</surname> <given-names>H.</given-names></name>
<name><surname>Yang</surname> <given-names>Z.</given-names></name>
<name><surname>Li</surname> <given-names>J.</given-names></name>
</person-group> (<year>2025</year>). 
<article-title>Monitoring of vegetation chlorophyll content in photovoltaic areas using UAV-mounted multispectral imaging</article-title>. <source>Front. Plant Sci.</source> <volume>16</volume>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fpls.2025.1643945</pub-id>, PMID: <pub-id pub-id-type="pmid">40880871</pub-id>
</mixed-citation>
</ref>
<ref id="B24">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Li</surname> <given-names>Z.</given-names></name>
<name><surname>Wang</surname> <given-names>P.</given-names></name>
<name><surname>Zhang</surname> <given-names>J.</given-names></name>
<name><surname>Mu</surname> <given-names>S.</given-names></name>
</person-group> (<year>2022</year>b). 
<article-title>A strategy of improving indoor air temperature prediction in HVAC system based on multivariate transfer entropy</article-title>. <source>Build. Environ.</source> <volume>219</volume>, <elocation-id>109164</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.buildenv.2022.109164</pub-id>
</mixed-citation>
</ref>
<ref id="B25">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ma</surname> <given-names>S.</given-names></name>
<name><surname>Ding</surname> <given-names>W.</given-names></name>
<name><surname>Zheng</surname> <given-names>Y.</given-names></name>
<name><surname>Zhou</surname> <given-names>L.</given-names></name>
<name><surname>Yan</surname> <given-names>Z.</given-names></name>
<name><surname>Xu</surname> <given-names>J.</given-names></name>
</person-group> (<year>2024</year>). 
<article-title>Edge-cloud collaboration-driven predictive planning based on LSTM-attention for wastewater treatment</article-title>. <source>Comput. Ind. Eng.</source> <volume>195</volume>, <elocation-id>110425</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.cie.2024.110425</pub-id>
</mixed-citation>
</ref>
<ref id="B26">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ma Lu</surname> <given-names>S.</given-names></name>
<name><surname>Zainali</surname> <given-names>S.</given-names></name>
<name><surname>Stridh</surname> <given-names>B.</given-names></name>
<name><surname>Avelin</surname> <given-names>A.</given-names></name>
<name><surname>Amaducci</surname> <given-names>S.</given-names></name>
<name><surname>Colauzzi</surname> <given-names>M.</given-names></name>
<etal/>
</person-group>. (<year>2022</year>). 
<article-title>Photosynthetically active radiation decomposition models for agrivoltaic systems applications</article-title>. <source>Sol. Energy</source> <volume>244</volume>, <fpage>536</fpage>&#x2013;<lpage>549</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.solener.2022.05.046</pub-id>
</mixed-citation>
</ref>
<ref id="B27">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Mao</surname> <given-names>X.</given-names></name>
<name><surname>Ren</surname> <given-names>N.</given-names></name>
<name><surname>Dai</surname> <given-names>P.</given-names></name>
<name><surname>Jin</surname> <given-names>J.</given-names></name>
<name><surname>Wang</surname> <given-names>B.</given-names></name>
<name><surname>Kang</surname> <given-names>R.</given-names></name>
<etal/>
</person-group>. (<year>2024</year>). 
<article-title>A variable weight combination prediction model for climate in a greenhouse based on BiGRU-Attention and LightGBM</article-title>. <source>Comput. Electron. Agric.</source> <volume>219</volume>, <elocation-id>108818</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.compag.2024.108818</pub-id>
</mixed-citation>
</ref>
<ref id="B28">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Moon</surname> <given-names>H.-W.</given-names></name>
<name><surname>Ku</surname> <given-names>K.-M.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>The effect of additional shading utilizing agriphotovoltaic structures on the visual qualities and metabolites of broccoli</article-title>. <source>Front. Plant Sci.</source> <volume>14</volume>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fpls.2023.1111069</pub-id>, PMID: <pub-id pub-id-type="pmid">36938023</pub-id>
</mixed-citation>
</ref>
<ref id="B29">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Nandi</surname> <given-names>A.</given-names></name>
<name><surname>De</surname> <given-names>A.</given-names></name>
<name><surname>Mallick</surname> <given-names>A.</given-names></name>
<name><surname>Middya</surname> <given-names>A. I.</given-names></name>
<name><surname>Roy</surname> <given-names>S.</given-names></name>
</person-group> (<year>2022</year>). 
<article-title>Attention based long-term air temperature forecasting network: ALTF Net</article-title>. <source>Knowl-Based Syst.</source> <volume>252</volume>, <elocation-id>109442</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.knosys.2022.109442</pub-id>
</mixed-citation>
</ref>
<ref id="B30">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Niu</surname> <given-names>Z.</given-names></name>
<name><surname>Zhong</surname> <given-names>G.</given-names></name>
<name><surname>Yu</surname> <given-names>H.</given-names></name>
</person-group> (<year>2021</year>). 
<article-title>A review on the attention mechanism of deep learning</article-title>. <source>Neurocomputing</source> <volume>452</volume>, <fpage>48</fpage>&#x2013;<lpage>62</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.neucom.2021.03.091</pub-id>
</mixed-citation>
</ref>
<ref id="B31">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Pandey</surname> <given-names>G.</given-names></name>
<name><surname>Lyden</surname> <given-names>S.</given-names></name>
<name><surname>Franklin</surname> <given-names>E.</given-names></name>
<name><surname>Millar</surname> <given-names>B.</given-names></name>
<name><surname>Harrison</surname> <given-names>M. T.</given-names></name>
</person-group> (<year>2025</year>). 
<article-title>A systematic review of agrivoltaics: Productivity, profitability, and environmental co-benefits</article-title>. <source>Sustain. Prod. Consumption</source> <volume>56</volume>, <fpage>13</fpage>&#x2013;<lpage>36</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.spc.2025.03.006</pub-id>
</mixed-citation>
</ref>
<ref id="B32">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Peng</surname> <given-names>Y.</given-names></name>
<name><surname>Ma</surname> <given-names>X.</given-names></name>
<name><surname>Wang</surname> <given-names>Y.</given-names></name>
<name><surname>Li</surname> <given-names>M.</given-names></name>
<name><surname>Gao</surname> <given-names>F.</given-names></name>
<name><surname>Zhou</surname> <given-names>K.</given-names></name>
<etal/>
</person-group>. (<year>2023</year>). 
<article-title>Energy performance assessment of photovoltaic greenhouses in summer based on coupled optical-electrical-thermal models and plant growth requirements</article-title>. <source>Energy Convers. Manage.</source> <volume>287</volume>, <elocation-id>117086</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.enconman.2023.117086</pub-id>
</mixed-citation>
</ref>
<ref id="B33">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Ritter</surname> <given-names>F.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>Technical note: A procedure to clean, decompose, and aggregate time series</article-title>. <source>Hydrol. Earth Syst. Sci.</source> <volume>27</volume>, <fpage>349</fpage>&#x2013;<lpage>361</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.5194/hess-27-349-2023</pub-id>
</mixed-citation>
</ref>
<ref id="B34">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>&#x15e;ener</surname> <given-names>&#x130;.F.</given-names></name>
<name><surname>Tu&#x11f;al</surname> <given-names>&#x130;.</given-names></name>
</person-group> (<year>2025</year>). 
<article-title>Optimized CNN-LSTM with hybrid metaheuristic approaches for solar radiation forecasting</article-title>. <source>Case Stud. Therm. Eng.</source> <volume>72</volume>, <elocation-id>106356</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.csite.2025.106356</pub-id>
</mixed-citation>
</ref>
<ref id="B35">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Sakib</surname> <given-names>S.</given-names></name>
<name><surname>Mahadi</surname> <given-names>M. K.</given-names></name>
<name><surname>Abir</surname> <given-names>S. R.</given-names></name>
<name><surname>Moon</surname> <given-names>A. M.</given-names></name>
<name><surname>Shafiullah</surname> <given-names>A.</given-names></name>
<name><surname>Ali</surname> <given-names>S.</given-names></name>
<etal/>
</person-group>. (<year>2024</year>). 
<article-title>Attention-based models for multivariate time series forecasting: Multi-step solar irradiation prediction</article-title>. <source>Heliyon</source> <volume>10</volume>, <elocation-id>e27795</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.heliyon.2024.e27795</pub-id>, PMID: <pub-id pub-id-type="pmid">38496905</pub-id>
</mixed-citation>
</ref>
<ref id="B36">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Singh</surname> <given-names>D.</given-names></name>
<name><surname>Singh</surname> <given-names>B.</given-names></name>
</person-group> (<year>2020</year>). 
<article-title>Investigating the impact of data normalization on classification performance</article-title>. <source>Appl. Soft Comput.</source> <volume>97</volume>, <elocation-id>105524</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.asoc.2019.105524</pub-id>
</mixed-citation>
</ref>
<ref id="B37">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Stid</surname> <given-names>J. T.</given-names></name>
<name><surname>Shukla</surname> <given-names>S.</given-names></name>
<name><surname>Kendall</surname> <given-names>A. D.</given-names></name>
<name><surname>Anctil</surname> <given-names>A.</given-names></name>
<name><surname>Hyndman</surname> <given-names>D. W.</given-names></name>
<name><surname>Rapp</surname> <given-names>J.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Impacts of agrisolar co-location on the food&#x2013;energy&#x2013;water nexus and economic security</article-title>. <source>Nat. Sustain.</source> <volume>8</volume>, <fpage>702</fpage>&#x2013;<lpage>713</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41893-025-01546-4</pub-id>
</mixed-citation>
</ref>
<ref id="B38">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Tan</surname> <given-names>Y.</given-names></name>
<name><surname>Liu</surname> <given-names>J.</given-names></name>
<name><surname>Li</surname> <given-names>W.</given-names></name>
<name><surname>Yin</surname> <given-names>J.</given-names></name>
<name><surname>Chen</surname> <given-names>H.</given-names></name>
<name><surname>Peng</surname> <given-names>Y.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Agrivoltaics development progresses: From the perspective of photovoltaic impact on crops, soil ecology and climate</article-title>. <source>Environ. Res.</source> <volume>266</volume>, <elocation-id>120540</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.envres.2024.120540</pub-id>, PMID: <pub-id pub-id-type="pmid">39667483</pub-id>
</mixed-citation>
</ref>
<ref id="B39">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Wang</surname> <given-names>J.</given-names></name>
<name><surname>Chen</surname> <given-names>Y.</given-names></name>
</person-group> (<year>2021</year>). 
<article-title>Adaboost-based integration framework coupled two-stage feature extraction with deep learning for multivariate exchange rate prediction</article-title>. <source>Neural Process Lett.</source> <volume>53</volume>, <fpage>4613</fpage>&#x2013;<lpage>4637</lpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1007/s11063-021-10616-5</pub-id>
</mixed-citation>
</ref>
<ref id="B40">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Williams</surname> <given-names>H. J.</given-names></name>
<name><surname>Hashad</surname> <given-names>K.</given-names></name>
<name><surname>Wang</surname> <given-names>H.</given-names></name>
<name><surname>Max Zhang</surname> <given-names>K.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>The potential for agrivoltaics to enhance solar farm cooling</article-title>. <source>Appl. Energy</source> <volume>332</volume>, <elocation-id>120478</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.apenergy.2022.120478</pub-id>
</mixed-citation>
</ref>
<ref id="B41">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Wu</surname> <given-names>S.</given-names></name>
<name><surname>Dong</surname> <given-names>Z.</given-names></name>
<name><surname>Guzm&#xe1;n</surname> <given-names>S. M.</given-names></name>
<name><surname>Conde</surname> <given-names>G.</given-names></name>
<name><surname>Wang</surname> <given-names>W.</given-names></name>
<name><surname>Zhu</surname> <given-names>S.</given-names></name>
<etal/>
</person-group>. (<year>2024</year>). 
<article-title>Two-step hybrid model for monthly runoff prediction utilizing integrated machine learning algorithms and dual signal decompositions</article-title>. <source>Ecol. Inform.</source> <volume>84</volume>, <elocation-id>102914</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.ecoinf.2024.102914</pub-id>
</mixed-citation>
</ref>
<ref id="B42">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Yajima</surname> <given-names>D.</given-names></name>
<name><surname>Toyoda</surname> <given-names>T.</given-names></name>
<name><surname>Kirimura</surname> <given-names>M.</given-names></name>
<name><surname>Araki</surname> <given-names>K.</given-names></name>
<name><surname>Ota</surname> <given-names>Y.</given-names></name>
<name><surname>Nishioka</surname> <given-names>K.</given-names></name>
</person-group> (<year>2023</year>). 
<article-title>Agrivoltaic system: Estimation of photosynthetic photon flux density under solar panels based on solar irradiation data using all-climate solar spectrum model</article-title>. <source>Cleaner Eng. Technol.</source> <volume>12</volume>, <elocation-id>100594</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.clet.2022.100594</pub-id>
</mixed-citation>
</ref>
<ref id="B43">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Yang</surname> <given-names>Y.</given-names></name>
<name><surname>Gao</surname> <given-names>P.</given-names></name>
<name><surname>Sun</surname> <given-names>Z.</given-names></name>
<name><surname>Wang</surname> <given-names>H.</given-names></name>
<name><surname>Lu</surname> <given-names>M.</given-names></name>
<name><surname>Liu</surname> <given-names>Y.</given-names></name>
<etal/>
</person-group>. (<year>2023</year>). 
<article-title>Multistep ahead prediction of temperature and humidity in solar greenhouse based on FAM-LSTM model</article-title>. <source>Comput. Electron. Agric.</source> <volume>213</volume>, <elocation-id>108261</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.compag.2023.108261</pub-id>
</mixed-citation>
</ref>
<ref id="B44">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zainali</surname> <given-names>S.</given-names></name>
<name><surname>Lu</surname> <given-names>S. M.</given-names></name>
<name><surname>Fern&#xe1;ndez-Solas</surname> <given-names>&#xc1;.</given-names></name>
<name><surname>Cruz-Escabias</surname> <given-names>A.</given-names></name>
<name><surname>Fern&#xe1;ndez</surname> <given-names>E. F.</given-names></name>
<name><surname>Zidane</surname> <given-names>T. E. K.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Modelling, simulation, and optimisation of agrivoltaic systems: A comprehensive review</article-title>. <source>Appl. Energy</source> <volume>386</volume>, <elocation-id>125558</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.apenergy.2025.125558</pub-id>
</mixed-citation>
</ref>
<ref id="B45">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zhang</surname> <given-names>L.</given-names></name>
<name><surname>Gong</surname> <given-names>J.</given-names></name>
<name><surname>Yang</surname> <given-names>Z.</given-names></name>
<name><surname>Wu</surname> <given-names>X.</given-names></name>
<name><surname>Wang</surname> <given-names>W.</given-names></name>
<name><surname>Yang</surname> <given-names>C.</given-names></name>
<etal/>
</person-group>. (<year>2025</year>). 
<article-title>Evaluating the contribution of decreasing heights of photovoltaic panels on light environment and agricultural production in agrivoltaic systems</article-title>. <source>J. Cleaner Prod.</source> <volume>495</volume>, <elocation-id>145091</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.jclepro.2025.145091</pub-id>
</mixed-citation>
</ref>
<ref id="B46">
<mixed-citation publication-type="journal">
<person-group person-group-type="author">
<name><surname>Zhang</surname> <given-names>L.</given-names></name>
<name><surname>Yang</surname> <given-names>Z.</given-names></name>
<name><surname>Wu</surname> <given-names>X.</given-names></name>
<name><surname>Wang</surname> <given-names>W.</given-names></name>
<name><surname>Yang</surname> <given-names>C.</given-names></name>
<name><surname>Xu</surname> <given-names>G.</given-names></name>
<etal/>
</person-group>. (<year>2023</year>). 
<article-title>Open-field agrivoltaic system impacts on photothermal environment and light environment simulation analysis in Eastern China</article-title>. <source>Agronomy</source> <volume>13</volume>, <elocation-id>1820</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/agronomy13071820</pub-id>
</mixed-citation>
</ref>
</ref-list>
<fn-group>
<fn id="n1" fn-type="custom" custom-type="edited-by">
<p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3066487">Changkai Wen</ext-link>, China Agricultural University, China</p></fn>
<fn id="n2" fn-type="custom" custom-type="reviewed-by">
<p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/319030">Yi Zhang</ext-link>, Shanxi Agricultural University, China</p>
<p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3299577">Hongjun Xu</ext-link>, Xinjiang Agricultural University, China</p>
<p><ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/3326385">Yanfei Cao</ext-link>, Northwest A&amp;F University, China</p></fn>
</fn-group>
</back>
</article>