Post-processing of seasonal forecasts in a semi-arid river basin through artificial intelligence

&amp;lt;p&amp;gt;The use of artificial intelligence is growing in many science areas boosted by an unprecedent increase in data availability and the improvements in computer hardware. Its application in Earth system sciences is particularly relevant due to the existence of complex behavioural patterns whose reproduction with traditional methods is challenging. Its use in seasonal forecasting is favoured by the existence of large amounts of open meteorological data.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;This study showcases the potential of artificial intelligence to downscale and post-process seasonal meteorological forecasts in semiarid river basin. The artificial intelligence methodology used is fuzzy logic. Daily raw seasonal forecasts correspond to the ECMWF SEAS5 seasonal forecasts from the Copernicus Climate Change Service (CS3), available at a 1&amp;amp;#186; grid, while daily ERA5 reanalysis, available at a 0.25&amp;amp;#186; grid through the C3S, is employed as observational data. The meteorological variables used are precipitation; 2-meter mean, minimum and maximum temperatures; incident shortwave solar radiation and wind speed.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The artificial intelligence algorithm is coded in a Python script. The script requires the coordinates of a target grid (that may coincide or not with the grid of observational data). For each point it performs the post-processing with the following process: 1) extracts the observational and forecast data for the closest point available; 2) computes the cdf&amp;amp;#8217;s of both datasets per month; 3) builds and trains fuzzy logic systems to match the forecasts cdfs to the observational cdfs; and 4) obtains the post-processed forecasts for the target grid provided. The script admits any meteorological variable, seasonal forecasting system from the C3S and observational dataset (it has been successfully tested with ERA5Land and the Spain02 gridded dataset).&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;The script has been applied to the semi-arid upper Tagus and Segura river basins. The Segura river basin suffers a severe overexploitation alleviated by a water transfer from the upper Tagus. The fuzzy logic systems chosen were Sugeno of order 1, with two inputs: the raw meteorological forecasts and the month of the year. The same grid as ERA5 was considered, and for each point the fuzzy logic systems were trained so that the forecasts monthly cdfs match the ones from ERA5. The training process took on average 20 minutes per point and variable with a standard computer, and results show that the post-processed cdfs closely match the ERA5 cdfs. Furthermore, the skill of the post-processed forecasts was evaluated using the Mean Absolute Error (MAE) and compared to the skill of raw forecasts to assess the adequacy of the post-processing.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;Acknowledgements:&amp;amp;#160; This study has received funding from the European Union&amp;amp;#8217;s Horizon 2020 research and innovation programme under the GoNEXUS project (grant agreement No 101003722); the eGROUNDWATER project (GA n. 1921), part of the PRIMA programme supported by the European Union&amp;amp;#8217;s Horizon 2020 research and innovation programme; and the &amp;lt;em&amp;gt;subvencions &amp;lt;/em&amp;gt;&amp;lt;em&amp;gt;del Programa per a la promoci&amp;amp;#243; de la investigaci&amp;amp;#243;n cient&amp;amp;#237;fica, el desenvolupament tecnol&amp;amp;#242;gic i la innovaci&amp;amp;#243; a &amp;lt;/em&amp;gt;&amp;lt;em&amp;gt;la Comunitat Valenciana&amp;lt;/em&amp;gt; (PROMETEO) under the WATER4CAST project.&amp;lt;/p&amp;gt;