<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<article xmlns:ns1="http://www.w3.org/1999/xlink" xmlns:ns3="http://www.w3.org/1998/Math/MathML">
    <front>
        <journal-meta>
            <journal-title-group>
                <journal-title>OENO One</journal-title>
            </journal-title-group>
        </journal-meta>
        <article-meta>
            <title-group>
                <article-title>Vintage Port prediction and climate change scenarios</article-title>
            </title-group>
            <aff id="aff1">
                <sup>
                    <italic>1</italic>
                </sup>Centre for the Research and Technology of Agro-Environmental and Biological Sciences (CITAB), Institute for Innovation, Capacity Building, and Sustainability of Agri-Food Production (Inov4Agro), University of Trás-os-Montes e Alto Douro (UTAD), P.O. Box 1013, 5000-801 Vila Real, Portugal;</aff>
            <contrib-group>
                <contrib contrib-type="author">
                    <name>
                        <surname>Fraga</surname>
                        <given-names>Helder</given-names>
                    </name>
                    <xref ref-type="corresp" rid="cor1">
                        <sup>
                            <italic>*</italic>
                        </sup>
                    </xref>
                    <xref ref-type="aff" rid="aff1">
                        <sup>
                            <italic>1</italic>
                        </sup>
                    </xref>
                </contrib>
                <contrib contrib-type="author">
                    <name>
                        <surname>Guimarães</surname>
                        <given-names>Nathalie</given-names>
                    </name>
                    <xref ref-type="aff" rid="aff1">
                        <sup>
                            <italic>1</italic>
                        </sup>
                    </xref>
                </contrib>
                <contrib contrib-type="author">
                    <name>
                        <surname>Santos</surname>
                        <given-names>JoãoA.</given-names>
                    </name>
                    <xref ref-type="aff" rid="aff1">
                        <sup>
                            <italic>1</italic>
                        </sup>
                    </xref>
                </contrib>
            </contrib-group>
            <author-notes>
                <corresp id="cor1">
                    <sup>
                        <italic>*</italic>
                    </sup>corresponding author: hfraga@utad.pt</corresp>
            </author-notes>
            <abstract>
                <sec id="Abstract">
                    <title>Abstract</title>
                    <p>The Douro region is renowned for its quality wines, particularly for the famous Port Wine. Vintage years, declared approximately 2–3 times per decade, signify exceptional quality linked to optimum climatic conditions driving grape quality attributes. Climate change poses challenges, as rising temperatures and extreme weather events impact viticulture. This study uses machine learning algorithms to assess the climatic influence on vintage years and climate change impacts for the next decades. Historical vintage data were collected from 1850 to 2014. Monthly climatic data for the same period were obtained, including temperature, precipitation, humidity, solar radiation, and wind components. Various machine-learning algorithms were selected for classification, and a statistical analysis helped identify relevant climate variables for differentiation. Cross-validation was used for model training and evaluation, with the hits and misses (confusion matrix) as the performance metric. The best-performing model underwent hyperparameter tuning. Subsequently, future climate projections were acquired for four regional climate models from 2030 until 2099 under different socio-economic scenarios (IPCC SSP2, SSP3, and SSP5). Quantile mapping bias adjustment was applied to correct future climate data and reduce model biases. Past data revealed that vintages occurred 23.6 % of the years, with an average of two vintage years per decade, with a slightly positive trend. Climate variables such as precipitation in March, air temperatures in April and May, humidity in March and April, solar radiation in March, and meridional wind in June were identified as important factors influencing vintage year occurrence. Machine-learning models were employed to predict vintage years based on the climate variables, with the XGBClassifier achieving the highest performance with 76 %/88 % hits for the vintage/non-vintage classes, respectively, and an ROC score of 0.86, demonstrating strong predictive capabilities. Future climate change scenarios under different socio-economic pathways were assessed, and the results indicated a decrease in the occurrence vintage years until 2099 (10.3 % for SSP2, 9.1 % for SSP3, and 5.8 % for SSP5). The study provides valuable insights into the relationship between climate variables and wine vintage years, enabling winemakers to make informed decisions about vineyard management and grape cultivation. The predictions suggest that climate change may challenge the wine industry, emphasising the need for adaptation strategies.</p>
                    <p>Keywords: machine learning, statistical models, wine quality, Douro, Portugal; future projections</p>
                </sec>
            </abstract>
        </article-meta>
    </front>
    <body>
        <sec id="Introduction">
            <title>Introduction</title>
            <p>The Douro region of Portugal is one of the world's oldest and most renowned winemaking regions (<xref ref-type="bibr" rid="ref23">Fraga <italic>et al.</italic>, 2017</xref>). Located in north-eastern Portugal (Figure 1), the region is known for its steep slope and terraced vineyards along the Douro River valley (<xref ref-type="bibr" rid="ref7">Brochado <italic>et al.</italic>, 2021</xref>), yielding exceptional table wines that are gaining recognition worldwide (<xref ref-type="bibr" rid="ref50">Rebelo <italic>et al.</italic>, 2015</xref>). The Douro is also the birthplace of the Port Wine, a fortified wine known for its high quality, which is one of Portugal's most famous products, accounting for approximately 50 % of the total wines exported (<xref ref-type="bibr" rid="ref36">IVV, 2021</xref>). Similar to other wines and regions, Port Wine's quality attributes can vary from one year to the other, largely driven by the prevailing climatic conditions during the grapevine growing season. In the Douro, a year with top-quality Port Wine production is traditionally referred to as a “vintage year”. Each company usually declares vintage years, depending on the quality of the grapes and, consequently, of the wines produced. If all (or nearly all) companies declare it, this consensus translates into a generalised Port vintage year. According to the Port and Douro Wines Institute (IVDP), generalised vintage years are typically declared around 2 or 3 times per decade (on average) from the existing records dating back to 1759. Vintage Port bottles available in the market make up approximately 3 % of the total Port, typically with high prices (<xref ref-type="bibr" rid="ref43">Macedo <italic>et al.</italic>, 2021</xref>; <xref ref-type="bibr" rid="ref49">Panzone and Simões, 2009</xref>). Some of the most famous vintage years include 1945, 1963, 1977, 1994, and 2011.</p>
            <p/>
            <p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 1. The geographical location of the Douro Demarcated Region in mainland Portugal, along with the vineyard land cover areas and main rivers.</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image1.png"/>
                </fig>
            </p>
            <fig>
                <label>Table</label>
                <caption>
                    <title>Figure 1. The geographical location of the Douro Demarcated Region in mainland Portugal, along with the vineyard land cover areas and main rivers.</title>
                    <p/>
                </caption>
                <graphic mimetype="image" ns1:type="simple" ns1:href="image1.png"/>
            </fig>
            <p/>
            <p>As mentioned above, the term vintage year directly relates to the growing season in which the grapes were harvested (<xref ref-type="bibr" rid="ref36">IVV, 2021</xref>; <xref ref-type="bibr" rid="ref47">Mayson and Duff, 2018</xref>). Therefore, the quality of a wine is directly related to the weather patterns during the grapevine's annual cycle, particularly the temperature, amount of precipitation, and solar radiation, amongst other atmospheric variables (<xref ref-type="bibr" rid="ref52">Robinson <italic>et al.</italic>, 2013</xref>; <xref ref-type="bibr" rid="ref58">Smart <italic>et al.</italic>, 1991</xref>). It is traditional knowledge that vintage years are typically declared in years with warm and dry growing seasons, as these conditions allow the grapes to ripen fully and develop complex flavours resulting in high-quality grapes, whereas cooler or wetter growing seasons may produce grapes that are less ripe and less flavourful, resulting in lower quality wines (<xref ref-type="bibr" rid="ref44">Magalhães, 2008</xref>; <xref ref-type="bibr" rid="ref47">Mayson and Duff, 2018</xref>). The Douro region presents typical Mediterranean climatic characteristics, with cool, wet winters followed by warm-to-hot dry summers. These summers are ideal for ripening grapes, conditions that are typically preferred for producing a high-quality vintage. These climatic features allow the grapes to ripen fully and develop complex flavours and aromas. For example, the 2011 vintage in the Douro Valley was considered exceptional, attributed to the hot and dry growing season, conferring complex flavours to the wines. Similarly, the Bordeaux vintages are characterised by warm and dry growing seasons, resulting in high-quality wines (<xref ref-type="bibr" rid="ref52">Robinson <italic>et al.</italic>, 2013</xref>).  </p>
            <p>Despite the general linkage between warm and dry conditions and high-quality wines, it is expected that this relationship is not linear. The changing climate conditions associated with anthropogenic forcing can have profound implications for the characteristics and quality of wines. Rising temperatures, changing precipitation patterns, and altered growing season lengths can impact grapevine development and grape berry sugar accumulation, acidity, phenolic composition, and flavour profiles (Van Leeuwen and Schultz, 2018). The Douro winemaking region is located in a “climate change hotspot”, meaning that the impacts of climate change in this region may be particularly severe (<xref ref-type="bibr" rid="ref26">Fraga <italic>et al.</italic>, 2020</xref>) in terms of viticultural productivity (<xref ref-type="bibr" rid="ref25">Fraga <italic>et al.</italic>, 2022</xref>), particularly due to the increase in extreme weather events (<xref ref-type="bibr" rid="ref21">Fonseca <italic>et al.</italic>, 2023</xref>). Currently, in the Douro, temperatures occasionally exceed 40 °C in the summer, with an intensification projected for the next decades, which may threaten quality wine production (<xref ref-type="bibr" rid="ref31">Gambetta and Kurtural, 2021</xref>). As in many other regions worldwide, the region is also experiencing increasingly frequent extreme weather events, including heavy precipitation and hailstorms, late frosts, and heatwaves (<xref ref-type="bibr" rid="ref8">C3S, 2023</xref>; <xref ref-type="bibr" rid="ref11">Clemente <italic>et al.</italic>, 2022</xref>; <xref ref-type="bibr" rid="ref15">Costa <italic>et al.</italic>, 2019</xref>; <xref ref-type="bibr" rid="ref27">Fraga and Santos, 2017</xref>; <xref ref-type="bibr" rid="ref38">Jones, 2012</xref>). These events have a vast destructive potential for viticulture, leading to losses in yield and quality attributes. As such, under climate change, “vintage years” may become infrequent and less predictable.</p>
            <p>While significant research has been conducted on the impacts of climate change on wine production, several knowledge gaps still need to be addressed. While some studies attempt to assess the linkage between climatic conditions vintage/wine quality and (<xref ref-type="bibr" rid="ref3">Biss and Ellis, 2021</xref>; <xref ref-type="bibr" rid="ref9">Real <italic>et al.</italic>, 2017</xref>; <xref ref-type="bibr" rid="ref17">Davis <italic>et al.</italic>, 2019</xref>; <xref ref-type="bibr" rid="ref55">Salinger <italic>et al.</italic>, 2015</xref>), the knowledge of the occurrence of vintage years under climate change is still vastly unexplored. One of the main challenges is identifying the specific patterns that distinguish the binary vintage year time series (0—non-vintage, 1—vintage). Traditional statistical (linear) models have been widely used for time series prediction, but they often fail to capture the complex non-linear relationships in the data (<xref ref-type="bibr" rid="ref34">Hastie <italic>et al.</italic>, 2013</xref>). In recent years, machine-learning models have emerged as a powerful alternative for time series prediction due to their ability to learn complex patterns (<xref ref-type="bibr" rid="ref34">Hastie <italic>et al.</italic>, 2013</xref>). These models offer several advantages over traditional statistical models for predicting time series, such as high-dimensional data handling and automatic learning of hierarchical representations (<xref ref-type="bibr" rid="ref34">Hastie <italic>et al.</italic>, 2013</xref>). Their ability to learn intricate patterns and relationships in data has led to their superior performance, making them particularly suitable to handle real-world problems, such as analysing vintage year drivers and classifying wine quality.</p>
            <p>The current study aims to overcome this knowledge gap by modelling the occurrence of vintage years in the Douro wine region using machine learning and, subsequently, projecting the potential impacts of climate change based on the developed models. Therefore, the objectives of the present study are five-fold: 1) to examine a long time series of vintage years in the Douro Wine Region (1850–2014, 165 years); 2) to evaluate the existence of periodic behaviour in this series; 3) to train machine-learning models that can be used to explain the variability of the vintage time series; 4) to validate these models and analyse the uniqueness of a vintage year in climatic terms; and 5) to develop projections of vintage years taking into account several future scenarios and assess potential climate change impacts.</p>
        </sec>
        <sec id="Materials-and-methods">
            <title>Materials and methods</title>
            <sec id="1.-Vintage-data-collection-and-pre-processing">
                <title>1. Vintage data collection and pre-processing</title>
                <p>In the present study, we collected vintage classification data from 1850 to 2014 (165 years) from the dataset available on the Portuguese IVDP ("Instituto dos Vinhos do Douro e Porto, I.P.") at https://www.ivdp.pt/pt/vinhos/vinhos-do-porto/vintages/ (while vintage data extends back to 1759, this period was selected for consistency, see section 2.5). The data contained information about the vintages of port wine, including the year of production, a short description of the meteorological conditions of each given year, some tasting notes, and the classification. In our approach, we opted to select only classical vintage years that were declared by the majority of producers for the subsequent analysis. We pre-processed the data by cleaning the text and converting it into structured binary data, where 1 corresponds to a vintage year and 0 corresponds to a non-vintage year. Discrete Fourier Transform analysis was then applied to this binary dataset to isolate possible periodicities in the data. An autocorrelation analysis was also performed to investigate the patterns and relationships within the vintage year time series.</p>
            </sec>
            <sec id="2.-Climatic-data">
                <title>2. Climatic data</title>
                <p>As potential predictors of vintage wine quality, we used climatic data retrieved from the 20<sup>th</sup> Century Reanalysis dataset v3 (henceforth 20CR) from the National Oceanic and Atmospheric Administration (NOAA) over the period from 1850 to 2014 (while 20CR data began in 1836, this period was selected for consistency, see section 2.5). Reanalysis is a methodology that uses state-of-the-art earth models, archived atmospheric analysis, and updated data assimilation techniques to reconstruct past weather and climate conditions. The output of climate reanalysis is a dataset that provides information about atmospheric variables over a specified period, which can then be used to study past weather and climatic trends, variability, and extremes and calibrate and validate climate models for future projections. Climate reanalysis datasets are widely used in a variety of fields, including climate science and meteorology (<xref ref-type="bibr" rid="ref54">Saha <italic>et al.</italic>, 2010</xref>), environmental science (<xref ref-type="bibr" rid="ref30">Fuka <italic>et al.</italic>, 2014</xref>), and agriculture (<xref ref-type="bibr" rid="ref63">Uniyal <italic>et al.</italic>, 2019</xref>). They are particularly useful for studying long-term climate variability, as they provide a consistent and comprehensive record of past climate conditions that can be used to identify trends and patterns over time (<xref ref-type="bibr" rid="ref2">Bengtsson <italic>et al.</italic>, 2004</xref>). The 20CR gridded dataset contains data from the model NCEP GFS v14.0.1(<xref ref-type="bibr" rid="ref12">Compo <italic>et al.</italic>, 2011</xref>) at a resolution of ~75 km at the equator. Data over the Douro Region (40.75º−41.25º N; 6.0º−8.0º W; Figure 1) were selected and spatially averaged (corresponds to 2 grid boxes). The following 20CR variables were retrieved over the Douro region and used as features in the machine-learning models: monthly minimum, mean and maximum temperatures (TN, TM and TX, ºC), precipitation (PR, mm), relative humidity (RH, %), solar radiation (RD, W/m<sup>2</sup>), zonal and meridional wind components (UW and VW, ms<sup>-1</sup>), from January to September (months: 01, 02, …, 09), during grapevine annual growing cycle. The diurnal temperature range (DTR) was also computed for each month (TX minus TN).</p>
            </sec>
            <sec id="3.-Machine-learning-models">
                <title>3. Machine-learning models</title>
                <p>We selected several classical machine-learning classification algorithms included in the scikit-learn v1.3.2 library (<xref ref-type="bibr" rid="ref18">Fabian, 2011</xref>) in Python v3.11, comprising Logistic Regression (LogisticRegression; (<xref ref-type="bibr" rid="ref16">Cox, 1958</xref>)), Decision Trees (DecisionTreeClassifier; (<xref ref-type="bibr" rid="ref19">Fisher, 1936</xref>)), Random Forest (RandomForestClassifier; (<xref ref-type="bibr" rid="ref6">Breiman, 2001</xref>)), Support Vector Machines (SVC; (<xref ref-type="bibr" rid="ref13">Cortes and Vapnik, 1995</xref>)), K-Nearest Neighbor (KNeighborsClassifier; (<xref ref-type="bibr" rid="ref20">Fix and Hodges, 1989</xref>)), Gaussian Naive Bayes (GaussianNB; (<xref ref-type="bibr" rid="ref1">Bayes, 1958</xref>)), Multi-layer Perceptron (MLPClassifier; (<xref ref-type="bibr" rid="ref53">Rumelhart <italic>et al.</italic>, 1987</xref>)), AdaBoost (AdaBoostClassifier; (<xref ref-type="bibr" rid="ref28">Freund and Schapire, 1997</xref>)), Gradient Boosting (GradientBoostingClassifier; (<xref ref-type="bibr" rid="ref29">Friedman, 2001</xref>)), Quadratic Discriminant Analysis (QuadraticDiscriminantAnalysis; (<xref ref-type="bibr" rid="ref19">Fisher, 1936</xref>)), and XGBoost (XGBClassifier; (<xref ref-type="bibr" rid="ref10">Chen <italic>et al.</italic>, 2016</xref>)). These algorithms were chosen based on previous research outcomes, documented in the specialised literature, and their suitability for the nature of our data. A comparison between the strengths and weaknesses of each model can be found in Table 1.</p>
                <p>
                    <table-wrap position="float" orientation="portait">
                        <label>Table</label>
                        <caption>
                            <title>Table 1. Each model/algorithm used in the present study along with the strengths and weaknesses.</title>
                        </caption>
                        <alternatives>
                            <table style="table table-bordered table-striped affichage-tableau">
<col width="25%"/>
<col width="25%"/>
<col width="25%"/>
<col width="25%"/>
<col width="25%"/>
<col width="25%"/>
<col width="25%"/>
<col width="25%"/>
<thead>
    <tr>
        <td xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">titre du tableau </td>
    </tr>
</thead>
<tr>
    <th>
        <bold>Model</bold>
    </th>
    <th>
        <bold>Nature</bold>
    </th>
    <th>
        <bold>Strengths</bold>
    </th>
    <th>
        <bold>Weaknesses</bold>
    </th>
</tr>
<tr>
    <th>Logistic Regression</th>
    <th>Linear</th>
    <th>Simple and interpretable; Efficient for linear relationships</th>
    <th>Limited to linear relationships; May not perform well with complex data patterns</th>
</tr>
<tr>
    <th>Decision Trees</th>
    <th>Non-Linear</th>
    <th>Intuitive and easy to understand; Handles non-linearity well</th>
    <th>Prone to overfitting; Sensitive to small variations in data</th>
</tr>
<tr>
    <th>Random Forest</th>
    <th>Non-Linear</th>
    <th>Reduces overfitting through ensemble; Handles non-linearity well</th>
    <th>Lack of interpretability; Computationally expensive for large datasets</th>
</tr>
<tr>
    <th>Support Vector Machines</th>
    <th>Non-Linear</th>
    <th>Effective in high-dimensional spaces; Versatile kernel functions</th>
    <th>Can be sensitive to choice of kernel parameters; Memory-intensive for large datasets</th>
</tr>
<tr>
    <th>K-Nearest Neighbour</th>
    <th>Non-Linear</th>
    <th>Simple and easy to implement; Non-parametric and adaptable</th>
    <th>Computationally expensive for large datasets; Sensitivity to irrelevant features</th>
</tr>
<tr>
    <th>Gaussian Naive Bayes</th>
    <th>Non-Linear</th>
    <th>Simple and computationally efficient; Works well with high-dimensional data</th>
    <th>Assumes independence between features; May not handle complex relationships well</th>
</tr>
<tr>
    <th>Multi-layer Perceptron</th>
    <th>Non-Linear</th>
    <th>Suitable for complex relationships; Can learn hierarchical features</th>
    <th>Prone to overfitting; Requires careful tuning of hyperparameters</th>
</tr>
<tr>
    <th>AdaBoost</th>
    <th>Non-Linear</th>
    <th>Combines weak learners for improved accuracy; Robust to overfitting</th>
    <th>Sensitive to noisy data; Can be computationally expensive</th>
</tr>
<tr>
    <th>Gradient Boosting</th>
    <th>Non-Linear</th>
    <th>Sequential improvement over weak learners; Handles complex relationships</th>
    <th>Prone to overfitting; Sensitive to hyperparameter tuning</th>
</tr>
<tr>
    <th>Quadratic Discriminant Analysis</th>
    <th>Non-Linear</th>
    <th>Effective for non-linear relationships; Can handle multivariate normal distributions</th>
    <th>Assumes normality and equal covariance for classes; May be sensitive to outliers</th>
</tr>
<tr>
    <th>XGBoost</th>
    <th>Non-Linear</th>
    <th>Scalable and efficient implementation; Improved regularisation for better performance</th>
    <th>Requires careful parameter tuning; Can be computationally expensive</th>
</tr>
                            </table>
                        </alternatives>
                        <table-wrap-foot>
                            <fn>
<p/>
                            </fn>
                        </table-wrap-foot>
                    </table-wrap>
                </p>
            </sec>
            <sec id="4.-Model-Training">
                <title>4. Model Training</title>
                <p>From the historical climate dataset, a set of 64 features are potential candidates for model selection (8 climatic variables × 8 months). A statistical analysis was conducted to identify the most important climate variables that differentiate vintage years from non-vintage years. The Kolmogorov–Smirnov test was applied to compare the distribution of each climate variable between the two groups (<xref ref-type="bibr" rid="ref46">Massey, 1951</xref>). Variables that showed statistical significance at a 5 % significance level (<italic>p</italic> &lt; 0.05) were considered features with discrimination power. Subsequently, all models were run using only this sub-group of features. This preliminary approach is important, taking into account the computational resources needed for the modelling. To assess all possible combinations of the resulting sub-group of features, the bestFeatures v1.0 python package was used (<xref ref-type="bibr" rid="ref22">Fraga, 2023</xref>). To evaluate the performance of each algorithm, this script uses a cross-validation scheme when running each model for each combination of features. Specifically, a <italic>k</italic>-fold cross-validation technique with 5 folds means each algorithm is effectively evaluated multiple times with the split dataset. The <italic>k</italic>-fold method entails partitioning a given dataset into <italic>k</italic> distinct subsets, with one of these subsets designated as the validation set and the remaining <italic>k</italic>-1 subsets serving as the training data (<xref ref-type="bibr" rid="ref59">Stone, 1974</xref>). This process is then repeated <italic>k</italic> times, with each subset being different. As such, there are always parts of the data that are unseen/withheld from the algorithm. The outcomes are then averaged or other prescribed methods to derive a singular estimate of the model's performance. As such, this methodology provides several benefits over other ways of statically train-test splitting the dataset. <italic>k</italic>-fold cross-validation plays a critical role in addressing the issue of overfitting, ensuring a robust evaluation of the model's capacity to generalise to previously unseen data.</p>
                <p>During training, we used the default hyperparameters for each algorithm, which can be found in the scikit-learn library (<xref ref-type="bibr" rid="ref18">Fabian, 2011</xref>). Cross-validation helped us to avoid model overfitting and obtain a more accurate estimate of the model performance. A confusion matrix (hits vs misses) was used to test the performance of each algorithm. This metric is commonly used for evaluating the performance of classification models. Furthermore, confusion matrixes depicting hits and misses for each model were also analysed. The best-performing model was selected based on the overall performance of the metrics. Hyperparameter Tuning was subsequently applied to the best-performing model, as determined by the evaluation metrics. Grid search techniques were employed to find the optimal combination of hyperparameters that maximised the model performance (<xref ref-type="bibr" rid="ref48">Murphy, 2012</xref>). A comparison between the strengths and weaknesses of each model can be found in Table 1.</p>
            </sec>
            <sec id="5.-Future-projections">
                <title>5. Future projections</title>
                <p>The future climate data used in this research was obtained from the Copernicus Climate Change Service (C3S) platform (<xref ref-type="bibr" rid="ref57">Service, 2323</xref>), which provides access to a comprehensive range of climate data and information. The climate data were sourced from four widely recognised climate models: CNRM-CM6-1, CNRM-CM6-1-HR, CNRM-ESM2-1, and IPSL-CM6A-LR (<xref ref-type="bibr" rid="ref4">Boucher <italic>et al.</italic>, 2020</xref>; <xref ref-type="bibr" rid="ref56">Séférian <italic>et al.</italic>, 2019</xref>; <xref ref-type="bibr" rid="ref66">Voldoire <italic>et al.</italic>, 2019</xref>). These models are part of the Earth System Model ensemble provided by the Copernicus Climate Data Store (CDS) (<xref ref-type="bibr" rid="ref57">Service, 2323</xref>). The Copernicus platform is a collaborative initiative of the European Union and the European Space Agency, offering free and open access to climate data and information for research and decision-making purposes. All climatic variables were obtained from each model for the periods 1850<bold>–</bold>2014 and 2030<bold>–</bold>2099 (the former period was obtained for bias-correction reasons, which is explained below). Similarly to the historical climate data, the data from each model were selected and spatially averaged over the Douro Region (40.75º−41.25º N; 6.0º−8.0º W; Figure 1) (spatial resolution differs for each model, resulting in a different number of gridboxes extracted).</p>
                <p>Furthermore, the future climate data were obtained under three different future scenarios. The Shared Socioeconomic Pathway (SSP) was developed by the Intergovernmental Panel on Climate Change (IPCC), namely SSP2, SSP3, and SSP5. These scenarios represent different plausible socio-economic futures and their associated greenhouse gas emissions trajectories (<xref ref-type="bibr" rid="ref35">IPCC, 2021</xref>; <xref ref-type="bibr" rid="ref66">Voldoire <italic>et al.</italic>, 2019</xref>). SSP2 is a middle-of-the-road scenario that assumes moderate population growth, intermediate levels of technological progress, and a balanced approach to economic and environmental goals (<xref ref-type="bibr" rid="ref51">Riahi <italic>et al.</italic>, 2017</xref>). SSP3 portrays a world where regional competition takes precedence over global cooperation (<xref ref-type="bibr" rid="ref32">Gidden <italic>et al.</italic>, 2019</xref>). It assumes high population growth, slow technological progress, and fragmented efforts to address environmental challenges. SSP5 is considered a severe scenario, which projects rapid economic growth, high population, and heavy reliance on fossil fuels (<xref ref-type="bibr" rid="ref41">Kriegler <italic>et al.</italic>, 2017</xref>). Environmental concerns are typically disregarded in favour of economic development.</p>
                <p>It is important to acknowledge that future climate projections are subject to uncertainties inherent to climate modelling, which typically result in bias from the observed climate (<xref ref-type="bibr" rid="ref35">IPCC, 2021</xref>). As such, a quantile mapping bias adjustment method was applied to correct future climate data (<xref ref-type="bibr" rid="ref61">Thrasher <italic>et al.</italic>, 2012</xref>). The quantile mapping bias correction is a widely used statistical method for adjusting biases in climate model projections, including future climate data. It aims to align the empirical distributions and corresponding statistical moments of the model-simulated data with observed data, thereby reducing systematic errors and improving the reliability of climate projections. This bias correction technique involves comparing the cumulative distribution functions of the model-simulated data with those of observed data, as this represents the probability distribution of a variable and provides information about its relative frequency of occurrence at different values. To apply quantile mapping, the cumulative distribution functions of the model-simulated data and observed data are first calculated for the same period (1850<bold>–</bold>2014). The bias correction is then performed by adjusting the model-simulated data to match the observed CDF and then applying the same principle to the modelled future data. This method is currently widespread in climate research studies (<xref ref-type="bibr" rid="ref42">Lafon <italic>et al.</italic>, 2012</xref>; <xref ref-type="bibr" rid="ref45">Martins <italic>et al.</italic>, 2021</xref>). </p>
            </sec>
        </sec>
        <sec id="Results">
            <title>Results</title>
            <sec id="1.-Historical-Vintage-Year-Analysis">
                <title>1. Historical Vintage Year Analysis</title>
                <p>The analysis of the historical dataset revealed an occurrence of a vintage in approximately 23.6 % of the years from 1850 to 2014 (Figure 2). Analysing the occurrence of vintage years per decade (Figure 3), it is clear that there are, on average, two vintage years per decade. The 1920s and 2000s decades had the highest number of vintages (4), while the 1860s, 1880s, and 1950s had no vintage years. A slight positive trend is apparent (+0.01 vintages per decade), indicating a higher occurrence of vintages in the most recent decades, likely being a manifestation of the warming and drying trends in the Douro Wine Region, but also may be due to viticultural and oenological advances since 1990. Regarding the spectral analysis (Figure 4 top), it reveals a leading four-year cycle, i.e., vintage years tend to occur every four years, which is in line with the two vintages per decade. However, the spectral power density is significantly spread over other frequencies, thus also highlighting that vintage years are not a cyclic occurrence. Regarding the autocorrelation (Figure 4 bottom), no clear periodic behaviour is found, which also stresses the irregularity in the occurrence of vintage years.</p>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 2. Occurrence of each vintage year between 1850 and 2019.</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image2.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 2. Occurrence of each vintage year between 1850 and 2019.</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image2.png"/>
                </fig>
                <p/>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 3. Sum of vintage years for each decade from 1850 and 2014. The mean number of vintages for the full period is also shown (red line), along with the linear regression trend line (LT, linear trend).</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image3.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 3. Sum of vintage years for each decade from 1850 and 2014. The mean number of vintages for the full period is also shown (red line), along with the linear regression trend line (LT, linear trend).</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image3.png"/>
                </fig>
                <p/>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 4. (Top panel) Autocorrelation between the lagged timeseries 1850–2014. (Bottom panel) Power spectral density of the occurrence of a vintage year.</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image4.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 4. (Top panel) Autocorrelation between the lagged timeseries 1850–2014. (Bottom panel) Power spectral density of the occurrence of a vintage year.</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image4.png"/>
                </fig>
                <p/>
            </sec>
            <sec id="2.-Climate-influence">
                <title>2. Climate influence</title>
                <p>The Kolmogorov–Smirnov test was performed to identify the climate variables that significantly differentiate vintage years from non-vintage years. The results indicated that several variables showed statistical significance (p &lt; 0.05). These important climate variables include March precipitation (PR03), May mean temperature (TM05), May minimum temperature (TN05), April maximum temperature (TX04), March and April relative humidity (RH03, RH04), March solar radiation (RD03), and June meridional (north-south) wind component (VW06) (Table 2).</p>
                <p>
                    <table-wrap position="float" orientation="portait">
                        <label>Table</label>
                        <caption>
                            <title>Table 2. Climatic variables with statistically significant empirical probability distributions between vintage and non-vintage years, using the Kolmogorov–Smirnov test (p-value &lt; 0.05).</title>
                        </caption>
                        <alternatives>
                            <table style="table table-bordered table-striped affichage-tableau">
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
<col width="33%"/>
<thead>
    <tr>
        <td xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">titre du tableau </td>
    </tr>
</thead>
<tr>
    <th>
        <bold>Climatic variable</bold>
    </th>
    <th>
        <bold>
            <italic>Abbreviation</italic>
        </bold>
    </th>
    <th>
        <bold>
            <italic>p</italic>-value</bold>
    </th>
</tr>
<tr>
    <th>March precipitation</th>
    <th>PR03</th>
    <th>0.019</th>
</tr>
<tr>
    <th>May mean temperature</th>
    <th>TM05</th>
    <th>0.004</th>
</tr>
<tr>
    <th>May minimum temperature</th>
    <th>TN05</th>
    <th>0.017</th>
</tr>
<tr>
    <th>April maximum temperature</th>
    <th>TX04</th>
    <th>0.011</th>
</tr>
<tr>
    <th>March relative humidity</th>
    <th>RH03</th>
    <th>0.008</th>
</tr>
<tr>
    <th>April relative humidity</th>
    <th>RH04</th>
    <th>0.003</th>
</tr>
<tr>
    <th>March solar radiation</th>
    <th>RD03</th>
    <th>0.003</th>
</tr>
<tr>
    <th>June meridional (north-south) wind component</th>
    <th>VW06</th>
    <th>0.006</th>
</tr>
                            </table>
                        </alternatives>
                        <table-wrap-foot>
                            <fn>
<p/>
                            </fn>
                        </table-wrap-foot>
                    </table-wrap>
                </p>
                <p>Figure 5 shows the distribution (left panels), as well as the annual time series (right panels) (1850–2014) of the vintage vs non-vintage years for the significantly different features abovementioned. From the empirical distributions associated with vintage/non-vintage years, it can be concluded that settled and relatively dry weather conditions in early spring tend to be favourable to the occurrence of vintage years. Anomalously low precipitation in March (PR03), anomalously low values of relative humidity in March and April (RH03, RH04), anomalously high values in solar radiation (RD03), and anomalously high values of April maximum temperature (TX04) are coherently associated with the occurrence of vintage years. Conversely, the prevalence of moist air masses driving cloudy, humid, and rainy conditions tends to be unfavourable to wine quality. In May, when grapevine flowering typically develops, mean (TM05) and minimum (TN05) temperatures above average are generally favourable. For June, the meridional (north–south) wind component (VW06) reveals that vintage years are commonly linked to weak winds, which also agrees with the occurrence of settled weather conditions. Northerly winds prevail in Portugal during summer, but strong northerly winds may bring cool and relatively moist air masses from the North Atlantic, thus not being the optimal conditions for grape berry ripening and synthesis of complex compounds.</p>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 5. Distribution plots for the climatic variables with statistically significant differences (p-value &lt; 0.05) in their empirical probability distributions between vintage and non-vintage years (Table 2). The plots include: March precipitation (PR03), May mean temperature (TM05), May minimum temperature (TN05), April maximum temperature (TX04), March and April relative humidity (RH03, RH04), March solar radiation (RD03), and June meridional (north–south) wind component (VW06).</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image5.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 5. Distribution plots for the climatic variables with statistically significant differences (p-value &lt; 0.05) in their empirical probability distributions between vintage and non-vintage years (Table 2). The plots include: March precipitation (PR03), May mean temperature (TM05), May minimum temperature (TN05), April maximum temperature (TX04), March and April relative humidity (RH03, RH04), March solar radiation (RD03), and June meridional (north–south) wind component (VW06).</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image5.png"/>
                </fig>
                <p/>
            </sec>
            <sec id="3.-Machine-Learning-Model-Performance-Comparison">
                <title>3. Machine-Learning Model Performance Comparison</title>
                <p>Various machine-learning classification models were trained and evaluated using the historical vintage year dataset to predict vintage years. As previously explained, model evaluation was performed using a 5-fold cross-validation, while the performance of each model was assessed by analysing the respective confusion matrices, representing the hits and misses. Each matrix details the hits and misses for each vintage class, taking into account the <italic>k</italic>-fold methodology (average percentage for the results of each fold). The results demonstrated that the machine-learning models achieved varying performance levels in predicting vintage years (Figure 6). The XGBClassifier exhibited the highest performance among the models, with 76 % hits for the vintage class and 88 % hits for the non-vintage class. SVC and LogisticRegression also performed adequately, with 74 %/64 % and 71 %/72 %, respectively. All other models performed poorly, not adequately simulating the vintage class. For example, QuadraticDiscriminantAnalysis placed all years as non-vintage, resulting in 100 %/0 % scores. Summarising, the XGBClassifier shows higher performance, predicting both class 0 and 1 (non-vintage and vintage, respectively, with LogisticRegression and SVC also showing relatively good performances. All other models show problems in assessing class 1, which indicates lower performances. Given these results, hyperparameter tuning was applied to the XGBClassifier to optimise its performance further. The hyperparameters were then tuned using the grid search technique (<xref ref-type="bibr" rid="ref48">Murphy, 2012</xref>). The importance of the XGBClassifier feature indicated that the model selects TM05, RH04, and VW06 as the most important predictors (not shown).</p>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 6. Confusion matrix for each model. The percentage of each plot considers all folds in the k-fold validation.</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image6.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 6. Confusion matrix for each model. The percentage of each plot considers all folds in the k-fold validation.</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image6.png"/>
                </fig>
                <p/>
                <p>A ROC curve was then created by varying the classification threshold (0 to 1) of the XGBClassifier model and calculating TPR (true-positive rate) and FPR (false-positive rate) at each threshold. This curve represents the ability to distinguish between two classes by displaying the trade-off between sensitivity and specificity at various decision thresholds, with a better model producing a curve closer to the top-left corner and having a higher Area Under the Curve (AUC) value. The ideal classifier would have a TPR of 1 and an FPR of 0, while a random classifier would have a score of 0.5. XGBClassifier achieved an ROC score of 0.86. From Figure 7, the curve starts at the bottom left corner of the graph and moves steadily upwards and to the right, indicating that as the FPR increases, the TPR also increases. This is what we would expect to see for a classifier that is good at distinguishing between vintage and non-vintage years.</p>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 7. ROC AUC curve (true versus false positive rate) for the XGBclassifier model.</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image7.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 7. ROC AUC curve (true versus false positive rate) for the XGBclassifier model.</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image7.png"/>
                </fig>
                <p/>
            </sec>
            <sec id="4.-Predictions-for-Future-Climate-Change-Scenarios">
                <title>4. Predictions for Future Climate Change Scenarios</title>
                <p>Considering the most important climatic features for the XGBClassifier algorithm (TM05, RH04, and VW06), these were analysed regarding their future anomalies (differences between future and present). Three IPCC Shared Socioeconomic Pathway (SSP) scenarios: SSP2, SSP3, and SSP5, were analysed, and changes were assessed for each scenario. Figure 8 shows that the climatic conditions will change, with stronger modifications in the most severe future scenarios (SSP5). TM05 points to a warming trend from 3.4 °C (SSP2) to 4.9 °C (SSP5). RH4 will decrease in all future scenarios, ranging from –7 to –8 %. VW06 suggests a strong northerly wind influence in the future (except in SSP2, where changes are small).</p>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 8. Differences between future (a) SSP2, (b) SSP3, (c) SSP5 and present (in % relative to the present) for each variable selected by XGBclassifier model. Differences in original units are also shown.</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image8.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 8. Differences between future (a) SSP2, (b) SSP3, (c) SSP5 and present (in % relative to the present) for each variable selected by XGBclassifier model. Differences in original units are also shown.</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image8.png"/>
                </fig>
                <p/>
                <p>The tuned XGBClassifier model was then applied to future climate change projections under these scenarios. These projections aimed to assess the potential impact of climate change on vintage year occurrence from 2030 to 2099. The results indicated a decrease in the occurrence of vintage years under all three climate change scenarios compared to the historical period (Figure 9). Considering the Ensemble mean of the 4 climate models, the vintage year occurrence rates were estimated to be 10.3 % for SSP2, 9.1 % for SSP3, and 5.8 % for SSP5. The CNRM-CM6-1-HR model generally presents the highest percentages of vintage years per decade, while the IPSL-CM6A-LR shows the lowest. These outputs show the importance of using future climate data sources to consider the uncertainty tied to models. Nonetheless, all models point to a decrease in vintage occurrence in relation to the historical data. These findings suggest that climate change is expected to reduce the number of vintage years, posing challenges to the wine industry and emphasising the need for adaptation strategies. Overall, the results demonstrate the effectiveness of machine-learning models in predicting vintage years based on climate variables. The tuned XGBClassifier model exhibited the highest performance and captured the relationships between climate variables and vintage year occurrence. The predictions for future climate change scenarios highlight the potential impacts of climate change on wine vintage patterns.</p>
                <p/>
                <p>
                    <fig>
                        <label>Table</label>
                        <caption>
                            <title>Figure 9. Projections for the percentage of vintage years in the future period (2030–2100), for the three selected SSP scenarios (SSP2, SSP3 and SSP5) and the four outlined climate models (see legend).</title>
                            <p/>
                        </caption>
                        <graphic mimetype="image" ns1:type="simple" ns1:href="image9.png"/>
                    </fig>
                </p>
                <fig>
                    <label>Table</label>
                    <caption>
                        <title>Figure 9. Projections for the percentage of vintage years in the future period (2030–2100), for the three selected SSP scenarios (SSP2, SSP3 and SSP5) and the four outlined climate models (see legend).</title>
                        <p/>
                    </caption>
                    <graphic mimetype="image" ns1:type="simple" ns1:href="image9.png"/>
                </fig>
                <p/>
            </sec>
        </sec>
        <sec id="Discussion">
            <title>Discussion</title>
            <p>The results of this study provide valuable insights into the relationship between climate variables and wine vintage years. The identification of important features (potential predictors), such as mean temperature in May (TM05), relative humidity in April (RH04), and meridional wind component in June (VW06), highlights the key climate factors that contribute to vintage year occurrence. These findings align with previous research that has emphasised the significance of these variables in determining wine quality and vintage suitability (<xref ref-type="bibr" rid="ref3">Biss and Ellis, 2021</xref>; <xref ref-type="bibr" rid="ref9">Real <italic>et al.</italic>, 2017</xref>; <xref ref-type="bibr" rid="ref17">Davis <italic>et al.</italic>, 2019</xref>). <xref ref-type="bibr" rid="ref37">Jones (2005)</xref> conducted a study in the Douro Valley, Portugal, and identified mean temperature in May as a crucial factor influencing vintage quality. Similarly, <xref ref-type="bibr" rid="ref62">Tonietto and Carbonneau (2004)</xref> emphasised the importance of temperature and precipitation during the growing season in determining wine quality and vintage characteristics. <xref ref-type="bibr" rid="ref9">Real <italic>et al.</italic> (2017)</xref> identified that the growing season mean temperatures (April–September) above the region's average, warm winters, cool July through veraison, and cool temperatures during ripening are important factors for vintage quality. Nonetheless, the previous study was based on a 30-year time window (1980–2009), and longer periods should be analysed to understand and confirm the relationships between vintage quality and climatic parameters. Interestingly, <xref ref-type="bibr" rid="ref17">Davis <italic>et al.</italic> (2019)</xref> indicate that the most important climatic factor in distinguishing high-quality Burgundy vintages is the growing season temperature, especially the high diurnal temperature range (for red wines) and high average maximum temperatures (for white wines). <xref ref-type="bibr" rid="ref3">Biss and Ellis (2021)</xref> modelled the Chablis vintage score using the growing season mean temperature, minimum temperature, and rainfall during the ripening period. Our results enhance the understanding of the relationship and connection between vintage quality and climate factors, using a much longer time series than the mentioned studies. </p>
            <p>Three machine-learning models employed in this study, SVC, LogisticRegression, and particularly the XGBClassifier, demonstrated strong predictive capabilities, detecting both classes (vintage and non-vintage). This high performance indicates the effectiveness of the selected climate variables in distinguishing between vintage and non-vintage years. Similar studies using modelling techniques have reported promising results in predicting wine quality (<xref ref-type="bibr" rid="ref3">Biss and Ellis, 2021</xref>; <xref ref-type="bibr" rid="ref14">Cortez <italic>et al.</italic>, 2009</xref>). <xref ref-type="bibr" rid="ref14">Cortez <italic>et al.</italic> (2009)</xref> employed machine-learning algorithms to predict wine quality parameters. Their study highlighted the effectiveness of machine-learning models in assessing wine quality. </p>
            <p>The findings of this research may have significant implications for the wine industry and vineyard management. Understanding the influence of climate variables on vintage years enables winemakers to make informed decisions regarding grape cultivation, harvesting, and winery management. The predicted decrease in vintage year occurrence under future climate change scenarios raises concerns about the potential challenges wine producers face. The prospect of higher temperatures in May, lower humidity in April, and stronger northerly winds in June present a complex set of challenges for viticulture in the future. Traditionally, grapevines have thrived within specific atmospheric conditions, particularly optimum temperatures, ensuring ideal ripening. However, as temperatures increase, the pace of ripening accelerates, potentially pushing grapes ahead of their optimum conditions for flavour and balance (<xref ref-type="bibr" rid="ref67">White <italic>et al.</italic>, 2006</xref>). Elevated May temperatures may also pose risks of sunburn and heat stress for the vines and grape berries if not carefully managed. Lower humidity in April may increase water stress, affecting vine health and grape development. Furthermore, the combination of lower humidity and stronger northerly winds in June may contribute to increased evaporation rates and water loss from the soil, exacerbating the risk of drought conditions.</p>
            <p>These shifts may also lead to imbalances in sugar content, acidity, and the development of flavour compounds, which are the hallmarks of high-quality wines (<xref ref-type="bibr" rid="ref67">White <italic>et al.</italic>, 2006</xref>). Our study indicates that a tipping point may be close or already passed, manifesting in terms of fewer vintage years in the future. These results align with <xref ref-type="bibr" rid="ref40">Jones <italic>et al.</italic> (2005)</xref>, which projected that in regions currently producing high-quality wines, such as the Douro, climate change impacts may point toward unbalanced ripening of grapes, resulting in an overall quality loss and difficulty maintaining wine styles. Hence, by considering the identified important climatic factors, winemakers can adapt their practices to optimise wine quality in specific vintages. Adaptation strategies, such as implementing new viticultural techniques, adjusting grape varieties, and exploring alternative wine regions, may be necessary to maintain wine quality and sustainability under changing climatic conditions (<xref ref-type="bibr" rid="ref33">Hannah <italic>et al.</italic>, 2013</xref>; <xref ref-type="bibr" rid="ref64">van Leeuwen and Darriet, 2016</xref>; <xref ref-type="bibr" rid="ref65">van Leeuwen <italic>et al.</italic>, 2019</xref>). For example, <xref ref-type="bibr" rid="ref5">Bramley (2005)</xref> suggested that grape quality sensing technology should be invested in. These findings support the growing consensus among researchers and industry professionals that climate change poses significant risks to wine production (<xref ref-type="bibr" rid="ref24">Fraga <italic>et al.</italic>, 2016</xref>; <xref ref-type="bibr" rid="ref39">Jones and Alves, 2012</xref>).</p>
            <p>The present study builds upon these earlier works by modelling wine vintage years over a broader temporal scale and incorporating future climate change scenarios. By using a wider range of machine-learning models and assessing the impact of different climate scenarios, this research provides a comprehensive understanding of vintage year prediction and its implications for wine production under changing climatic conditions. Despite the valuable insights gained from this study, some limitations should be acknowledged. Firstly, it is important to recognise the potential limitations of using reanalysis data for climate analysis, as discussed by <xref ref-type="bibr" rid="ref60">Thorne and Vose (2010)</xref>. While reanalysis data are not the ideal choice for trend analysis, our research primarily focuses on characterising the climate disparities between vintage and non-vintage years, minimising the impact of this issue on our research. Additionally, the analysis focused primarily on monthly climate variables, overlooking other possible important factors, such as soil characteristics, viticultural practices, and vineyard management techniques. Future research may consider incorporating these additional variables to enhance the accuracy and robustness of the predictive models. Moreover, this study specifically focuses on the Douro wine region and its historical and future climate data. The extrapolation of the findings to other wine-growing regions may be hampered by variations in climate, grape varieties, and viticultural practices. Future research may explore the applicability of the developed models and their performance across different wine regions on a global scale. Additionally, the analysis considered a limited number of climate models for future climate projections. Expanding the scope to include a broader range of climate models and scenarios would provide a more comprehensive assessment of the potential impacts of climate change on wine vintage occurrence, thus incorporating a wider spectrum of uncertainties.</p>
            <p>Despite the above-stated limitations, this study contributes to the existing body of knowledge by advancing our understanding of the relationship between climate variables and wine vintage years. The findings also underscore the importance of proactive measures to adapt to changing climatic conditions, as climatic variables play a key role in wine quality. These measures should envision the maintenance of the long-term socioeconomic sustainability of the wine sector, promoting the production of high-quality wines, but always allied with environmental protection and sustainable use of natural resources, such as soils, water, and biodiversity.</p>
        </sec>
        <sec id="Conclusions">
            <title>Conclusions</title>
            <p>This research successfully modelled wine vintage years using monthly climate variables as predictors. The machine-learning models, particularly the XGBClassifier, demonstrated strong predictive performance, enabling a clear differentiation between vintage and non-vintage years. The identified driving climate variables, namely mean temperature in May (TM05), relative humidity in April (RH04), and northerly wind in June (VW06), significantly contribute to the vintage year occurrence. The findings have practical implications for winemakers and vineyard managers, aiding in decision-making related to grape cultivation, harvesting, and wine production. Furthermore, the predictions for future climate change scenarios suggest a decrease in vintage year occurrence, highlighting the need for adaptation strategies to mitigate the potential impacts of climate change on wine production. This research expands upon previous studies by incorporating machine-learning techniques, assessing a wider range of climate models and scenarios, and modelling vintage years over a longer historical period. Despite its limitations, the study improves our understanding of wine vintage prediction potential and its implications for the wine industry under changing climatic conditions.</p>
        </sec>
        <sec id="Acknowledgements">
            <title>Acknowledgements</title>
            <p>This work was financed by the CoaClimateRisk “O impacto das alterações climáticas e medidas de adaptação para as principais culturas agrícolas na região do Vale do Côa” project (COA/CAC/0030/2019) financed by National Funds by the Portuguese Foundation for Science and Technology (FCT). We thank the project UIDB/04033/2020, LA/P/0126/2020 and 2022.04553.PTDC. NG thanks the financial support provided by national funds through FCT – Portuguese Foundation for Science and Technology (UI/BD/150727/2020), under the Doctoral Programme “Agricultural Production Chains – from fork to farm” (PD/00122/2012) and from the European Social Funds and the Regional Operational Programme Norte 2020. HF thanks the FCT for 2022.02317.CEECIND.</p>
        </sec>
    </body>
    <back>
        <ref-list>
            <ref id="ref1">
                <label>1</label>
                <mixed-citation>
                    <name>
                        <surname>Bayes</surname>
                        <given-names>T.</given-names>
                    </name>, <year>1958</year>. <article-title>An Essay Towards Solving A Problem In The Doctrine Of Chances</article-title>. <source>Biometrika, 45(3-4): 296-315. https://doi.org/10.1093/biomet/45.3-4.296</source>.</mixed-citation>
            </ref>
            <ref id="ref2">
                <label>2</label>
                <mixed-citation>
                    <name>
                        <surname>Bengtsson</surname>
                        <given-names>L.</given-names>
                    </name>, <name>
                        <surname>Hagemann</surname>
                        <given-names>S.</given-names>
                    </name>, <name>
                        <surname>Hodges</surname>
                        <given-names>K.I.</given-names>
                    </name>, <year>2004</year>. <article-title>Can climate trends be calculated from reanalysis data? Journal of Geophysical Research-Atmospheres, 109(D11)</article-title>. <source>https://doi.org/10.1029/2004JD004536</source>.</mixed-citation>
            </ref>
            <ref id="ref3">
                <label>3</label>
                <mixed-citation>
                    <name>
                        <surname>Biss</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Ellis</surname>
                        <given-names>R.</given-names>
                    </name>, <year>2021</year>. <article-title>Modelling Chablis vintage quality in response to inter-annual variation in weather</article-title>. <source>OENE One, 55(3): 209-228. https://doi.org/10.20870/oeno-one.2021.55.3.4709</source>.</mixed-citation>
            </ref>
            <ref id="ref4">
                <label>4</label>
                <mixed-citation>
                    <name>
                        <surname>Boucher</surname>
                        <given-names>O.</given-names>
                    </name>, <name>
                        <surname>Servonnat</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Albright</surname>
                        <given-names>A. L.</given-names>
                    </name>, <name>
                        <surname>Aumont</surname>
                        <given-names>O. […]</given-names>
                    </name>, <year>2020</year>. <article-title>Presentation and Evaluation of the IPSL-CM6A-LR Climate Model</article-title>. <source>Journal of Advances in Modeling Earth Systems, 12(7): e2019MS002010.</source>.</mixed-citation>
            </ref>
            <ref id="ref5">
                <label>5</label>
                <mixed-citation>
                    <name>
                        <surname>Bramley</surname>
                        <given-names>R.G.V.</given-names>
                    </name>, <year>2005</year>. <article-title>Understanding variability in winegrape production systems - 2</article-title>. <source>Within vineyard variation in quality over several vintages. Australian Journal of Grape and Wine Research, 11(1): 33-42. https://doi.org/10.1111/j.1755-0238.2005.tb00277.x</source>.</mixed-citation>
            </ref>
            <ref id="ref6">
                <label>6</label>
                <mixed-citation>
                    <name>
                        <surname>Breiman</surname>
                        <given-names>L.</given-names>
                    </name>, <year>2001</year>. <article-title>Random forests</article-title>. <source>Machine Learning, 45(1): 5-32. https://doi.org/10.1023/A:1010933404324</source>.</mixed-citation>
            </ref>
            <ref id="ref7">
                <label>7</label>
                <mixed-citation>
                    <name>
                        <surname>Brochado</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Stoleriu</surname>
                        <given-names>O.</given-names>
                    </name>, <name>
                        <surname>Lupu</surname>
                        <given-names>C.</given-names>
                    </name>, <year>2021</year>. <article-title>Wine tourism: a multisensory experience</article-title>. <source>Current Issues in Tourism, 24(5): 597-615. https://doi.org/10.1080/13683500.2019.1649373</source>.</mixed-citation>
            </ref>
            <ref id="ref8">
                <label>8</label>
                <mixed-citation>
                    <name>
                        <surname>C3S</surname>
                        <given-names>2023. Copernicus Climate Change Service (C3S)</given-names>
                    </name>, <year>2023</year>. <article-title>: European State of the Climate 2022, Summary.</article-title>.  .</mixed-citation>
            </ref>
            <ref id="ref9">
                <label>9</label>
                <mixed-citation>
                    <name>
                        <surname>Real</surname>
                        <given-names>A. C.</given-names>
                    </name>, <name>
                        <surname>Borges</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Cabral</surname>
                        <given-names>J.S.</given-names>
                    </name>, <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <year>2017</year>. <article-title>A climatology of Vintage Port quality</article-title>. <source>International Journal of Climatology, 37(10): 3798-3809. https://doi.org/10.1002/joc.4953</source>.</mixed-citation>
            </ref>
            <ref id="ref10">
                <label>10</label>
                <mixed-citation>
                    <name>
                        <surname>Chen</surname>
                        <given-names>T.Q.</given-names>
                    </name>, <name>
                        <surname>Guestrin</surname>
                        <given-names>C.</given-names>
                    </name>, <name>
                        <surname>Assoc Comp</surname>
                        <given-names>M.</given-names>
                    </name>, <year>2016</year>. <article-title>XGBoost: A Scalable Tree Boosting System, 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), San Francisco, CA, pp</article-title>. <source>785-794. https://doi.org/10.1145/2939672.2939785</source>.</mixed-citation>
            </ref>
            <ref id="ref11">
                <label>11</label>
                <mixed-citation>
                    <name>
                        <surname>Clemente</surname>
                        <given-names>N.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J. A.</given-names>
                    </name>, <name>
                        <surname>Fontes</surname>
                        <given-names>N.</given-names>
                    </name>, <name>
                        <surname>Graça</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Gonçalves</surname>
                        <given-names>I.</given-names>
                    </name>, <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <year>2022</year>. <article-title>Grapevine Sugar Concentration Model (GSCM): A Decision Support Tool for the Douro Superior Winemaking Region</article-title>. <source>Agronomy, 12(6). https://doi.org/10.3390/agronomy12061404</source>.</mixed-citation>
            </ref>
            <ref id="ref12">
                <label>12</label>
                <mixed-citation>
                    <name>
                        <surname>Compo</surname>
                        <given-names>G.P.</given-names>
                    </name>, <name>
                        <surname>Whitaker</surname>
                        <given-names>J. S.</given-names>
                    </name>, <name>
                        <surname>Sardeshmukh</surname>
                        <given-names>P. D.</given-names>
                    </name>, <name>
                        <surname>Matsui</surname>
                        <given-names>N.</given-names>
                    </name>, <name>
                        <surname>[…]</surname>
                        <given-names></given-names>
                    </name>, <year>2011</year>. <article-title>The Twentieth Century Reanalysis Project</article-title>. <source>Quarterly Journal of the Royal Meteorological Society, 137(654): 1-28. https://doi.org/10.1002/qj.776</source>.</mixed-citation>
            </ref>
            <ref id="ref13">
                <label>13</label>
                <mixed-citation>
                    <name>
                        <surname>Cortes</surname>
                        <given-names>C.</given-names>
                    </name>, <name>
                        <surname>Vapnik</surname>
                        <given-names>V.</given-names>
                    </name>, <year>1995</year>. <article-title>SUPPORT-VECTOR NETWORKS</article-title>. <source>Machine Learning, 20(3): 273-297. https://doi.org/10.1007/BF00994018</source>.</mixed-citation>
            </ref>
            <ref id="ref14">
                <label>14</label>
                <mixed-citation>
                    <name>
                        <surname>Cortez</surname>
                        <given-names>P.</given-names>
                    </name>, <name>
                        <surname>Cerdeira</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Almeida</surname>
                        <given-names>F.</given-names>
                    </name>, <name>
                        <surname>Matos</surname>
                        <given-names>T.</given-names>
                    </name>, <name>
                        <surname>Reis</surname>
                        <given-names>J.</given-names>
                    </name>, <year>2009</year>. <article-title>Modeling wine preferences by data mining from physicochemical properties</article-title>. <source>Decision Support Systems, 47(4): 547-553. https://doi.org/10.1016/j.dss.2009.05.016</source>.</mixed-citation>
            </ref>
            <ref id="ref15">
                <label>15</label>
                <mixed-citation>
                    <name>
                        <surname>Costa</surname>
                        <given-names>R.</given-names>
                    </name>, <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Fonseca</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>García de Cortázar-Atauri</surname>
                        <given-names>I.</given-names>
                    </name>, <name>
                        <surname>Val</surname>
                        <given-names>M. C. […]</given-names>
                    </name>, <year>2019</year>. <article-title>Grapevine Phenology of cv</article-title>. <source>Touriga Franca and Touriga Nacional in the Douro Wine Region: Modelling and Climate Change Projections. Agronomy-Basel, 9(4). https://doi.org/10.3390/agronomy9040210</source>.</mixed-citation>
            </ref>
            <ref id="ref16">
                <label>16</label>
                <mixed-citation>
                    <name>
                        <surname>Cox</surname>
                        <given-names>D.R.</given-names>
                    </name>, <year>1958</year>. <article-title>THE REGRESSION-ANALYSIS OF BINARY SEQUENCES</article-title>. <source>Journal of the Royal Statistical Society, Series B, 20(2): 215-242. https://doi.org/10.1111/j.2517-6161.1958.tb00292.x</source>.</mixed-citation>
            </ref>
            <ref id="ref17">
                <label>17</label>
                <mixed-citation>
                    <name>
                        <surname>Davis</surname>
                        <given-names>R.E.</given-names>
                    </name>, <name>
                        <surname>Dimon</surname>
                        <given-names>R.A.</given-names>
                    </name>, <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <name>
                        <surname>Bois</surname>
                        <given-names>B.</given-names>
                    </name>, <year>2019</year>. <article-title>The effect of climate on Burgundy vintage quality rankings</article-title>. <source>OENE One, 53(1): 60-74. https://doi.org/10.20870/oeno-one.2019.53.1.2359</source>.</mixed-citation>
            </ref>
            <ref id="ref18">
                <label>18</label>
                <mixed-citation>
                    <name>
                        <surname>Fabian</surname>
                        <given-names>P.</given-names>
                    </name>, <year>2011</year>. <article-title>Scikit-learn: Machine learning in Python</article-title>. <source>Journal of machine learning research, 12: 2825.</source>.</mixed-citation>
            </ref>
            <ref id="ref19">
                <label>19</label>
                <mixed-citation>
                    <name>
                        <surname>Fisher</surname>
                        <given-names>R.A.</given-names>
                    </name>, <year>1936</year>. <article-title>The use of multiple measurements in taxonomic problems</article-title>. <source>Annals of Eugenics, 7: 179-188. https://doi.org/10.1111/j.1469-1809.1936.tb02137.x</source>.</mixed-citation>
            </ref>
            <ref id="ref20">
                <label>20</label>
                <mixed-citation>
                    <name>
                        <surname>Fix</surname>
                        <given-names>E.</given-names>
                    </name>, <name>
                        <surname>Hodges</surname>
                        <given-names>J.L.</given-names>
                    </name>, <year>1989</year>. <article-title>DISCRIMINATORY ANALYSIS - NONPARAMETRIC DISCRIMINATION - CONSISTENCY PROPERTIES</article-title>. <source>International Statistical Review, 57(3): 238-247. https://doi.org/10.2307/1403797</source>.</mixed-citation>
            </ref>
            <ref id="ref21">
                <label>21</label>
                <mixed-citation>
                    <name>
                        <surname>Fonseca</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2023</year>. <article-title>Exposure of Portuguese viticulture to weather extremes under climate change</article-title>. <source>Climate Services, 30. https://doi.org/10.1016/j.cliser.2023.100357</source>.</mixed-citation>
            </ref>
            <ref id="ref22">
                <label>22</label>
                <mixed-citation>
                    <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <year>2023</year>. <article-title>bestFeatures - A python script that exhaustively searches through all possible combinations of features for assessing model performance.</article-title>.  .</mixed-citation>
            </ref>
            <ref id="ref23">
                <label>23</label>
                <mixed-citation>
                    <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Costa</surname>
                        <given-names>R.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2017</year>. <article-title>Multivariate Clustering of Viticultural Terroirs in the Douro Winemaking Region</article-title>. <source>Ciência e Técnica Vitivinícola, 32(2): 142-153. https://doi.org/10.1051/ctv/20173202142</source>.</mixed-citation>
            </ref>
            <ref id="ref24">
                <label>24</label>
                <mixed-citation>
                    <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>García de Cortázar Atauri</surname>
                        <given-names>I.</given-names>
                    </name>, <name>
                        <surname>Malheiro</surname>
                        <given-names>A.C.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2016</year>. <article-title>Modelling climate change impacts on viticultural yield, phenology and stress conditions in Europe</article-title>. <source>Global Change Biology, 22(11): 3774-3788. https://doi.org/10.1111/gcb.13382</source>.</mixed-citation>
            </ref>
            <ref id="ref25">
                <label>25</label>
                <mixed-citation>
                    <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Guimarães</surname>
                        <given-names>N.</given-names>
                    </name>, <name>
                        <surname>Freitas</surname>
                        <given-names>T.R.</given-names>
                    </name>, <name>
                        <surname>Malheiro</surname>
                        <given-names>A.C.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2022</year>. <article-title>Future Scenarios for Olive Tree and Grapevine Potential Yields in the World Heritage C&amp;ocirc;a Region, Portugal</article-title>. <source>Agronomy, 12(2): 350. https://doi.org/10.3390/agronomy12020350</source>.</mixed-citation>
            </ref>
            <ref id="ref26">
                <label>26</label>
                <mixed-citation>
                    <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Molitor</surname>
                        <given-names>D.</given-names>
                    </name>, <name>
                        <surname>Leolini</surname>
                        <given-names>L.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2020</year>. <article-title>What Is the Impact of Heatwaves on European Viticulture? A Modelling Assessment</article-title>. <source>Applied Sciences, 10(9): 3030. https://doi.org/10.3390/app10093030</source>.</mixed-citation>
            </ref>
            <ref id="ref27">
                <label>27</label>
                <mixed-citation>
                    <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2017</year>. <article-title>Daily prediction of seasonal grapevine production in the Douro wine region based on favourable meteorological conditions</article-title>. <source>Australian Journal of Grape and Wine Research, 23(2): 296 - 304. https://doi.org/10.1111/ajgw.12278</source>.</mixed-citation>
            </ref>
            <ref id="ref28">
                <label>28</label>
                <mixed-citation>
                    <name>
                        <surname>Freund</surname>
                        <given-names>Y.</given-names>
                    </name>, <name>
                        <surname>Schapire</surname>
                        <given-names>R.E.</given-names>
                    </name>, <year>1997</year>. <article-title>A decision-theoretic generalization of on-line learning and an application to boosting</article-title>. <source>Journal of Computer and System Sciences, 55(1): 119-139. https://doi.org/10.1006/jcss.1997.1504</source>.</mixed-citation>
            </ref>
            <ref id="ref29">
                <label>29</label>
                <mixed-citation>
                    <name>
                        <surname>Friedman</surname>
                        <given-names>J.H.</given-names>
                    </name>, <year>2001</year>. <article-title>Greedy function approximation: A gradient boosting machine</article-title>. <source>Annals of Statistics, 29(5): 1189-1232. https://doi.org/10.1214/aos/1013203451</source>.</mixed-citation>
            </ref>
            <ref id="ref30">
                <label>30</label>
                <mixed-citation>
                    <name>
                        <surname>Fuka</surname>
                        <given-names>D.R.</given-names>
                    </name>, <name>
                        <surname>Todd Walter</surname>
                        <given-names>M.</given-names>
                    </name>, <name>
                        <surname>MacAlister</surname>
                        <given-names>C.</given-names>
                    </name>, <name>
                        <surname>Degaetano</surname>
                        <given-names>A. T. […]</given-names>
                    </name>, <year>2014</year>. <article-title>Using the Climate Forecast System Reanalysis as weather input data for watershed models</article-title>. <source>Hydrological Processes, 28(22): 5613-5623. https://doi.org/10.1002/hyp.10073</source>.</mixed-citation>
            </ref>
            <ref id="ref31">
                <label>31</label>
                <mixed-citation>
                    <name>
                        <surname>Gambetta</surname>
                        <given-names>G.A.</given-names>
                    </name>, <name>
                        <surname>Kurtural</surname>
                        <given-names>S.K.</given-names>
                    </name>, <year>2021</year>. <article-title>Global warming and wine quality: are we close to the tipping point? OENE One, 55(3): 353-361</article-title>. <source>https://doi.org/10.20870/oeno-one.2021.55.3.4774</source>.</mixed-citation>
            </ref>
            <ref id="ref32">
                <label>32</label>
                <mixed-citation>
                    <name>
                        <surname>Gidden</surname>
                        <given-names>M. J.</given-names>
                    </name>, <name>
                        <surname>Riahi</surname>
                        <given-names>K.</given-names>
                    </name>, <name>
                        <surname>Smith</surname>
                        <given-names>S. J.</given-names>
                    </name>, <name>
                        <surname>Fujimori</surname>
                        <given-names>S. […]</given-names>
                    </name>, <year>2019</year>. <article-title>Global emissions pathways under different socioeconomic scenarios for use in CMIP6: a dataset of harmonized emissions trajectories through the end of the century</article-title>. <source>Geosci. Model Dev., 12(4): 1443-1475. https://doi.org/10.5194/gmd-12-1443-2019</source>.</mixed-citation>
            </ref>
            <ref id="ref33">
                <label>33</label>
                <mixed-citation>
                    <name>
                        <surname>Hannah</surname>
                        <given-names>L.</given-names>
                    </name>, <name>
                        <surname>Roehrdanz</surname>
                        <given-names>P. R.</given-names>
                    </name>, <name>
                        <surname>Ikegami</surname>
                        <given-names>M.</given-names>
                    </name>, <name>
                        <surname>Hijmans</surname>
                        <given-names>R. J</given-names>
                    </name>, <year>2013</year>. <article-title>Climate change, wine, and conservation</article-title>. <source>Proceedings of the National Academy of Sciences of the United States of America, 110(17): 6907-12. https://doi.org/10.1073/pnas.1210127110</source>.</mixed-citation>
            </ref>
            <ref id="ref34">
                <label>34</label>
                <mixed-citation>
                    <name>
                        <surname>Hastie</surname>
                        <given-names>T.</given-names>
                    </name>, <name>
                        <surname>Tibshirani</surname>
                        <given-names>R.</given-names>
                    </name>, <name>
                        <surname>Friedman</surname>
                        <given-names>J.</given-names>
                    </name>, <year>2013</year>. <article-title>The Elements of Statistical Learning: Data Mining, Inference, and Prediction</article-title>. <source>Springer New York.</source>.</mixed-citation>
            </ref>
            <ref id="ref35">
                <label>35</label>
                <mixed-citation>
                    <name>
                        <surname>IPCC</surname>
                        <given-names></given-names>
                    </name>, <year>2021</year>. <article-title>Climate Change 2021: Impacts, Adaptation, and Vulnerability</article-title>. <source>Part B: Regional Aspects. Contribution of Working Group II to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change [Barros, V.R., C.B. Field, D.J. Dokken, M.D. Mastrandrea, K.J. Mach, T.E. Bilir, M. Chatterjee, K.L. Ebi, Y.O. Estrada, R.C. Genova, B. Girma, E.S. Kissel, A.N. Levy, S. MacCracken, P.R. Mastrandrea, and L.L. White (eds.)]. Cambridge University Press, Cambridge, United Kingdom and New York, NY, USA.</source>.</mixed-citation>
            </ref>
            <ref id="ref36">
                <label>36</label>
                <mixed-citation>
                    <name>
                        <surname>IVV</surname>
                        <given-names></given-names>
                    </name>, <year>2021</year>. <article-title>Vinhos e Aguardentes de Portugal, Instituto da Vinha e do Vinho, I.P., Lisbon, Portugal.</article-title>.  .</mixed-citation>
            </ref>
            <ref id="ref37">
                <label>37</label>
                <mixed-citation>
                    <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <year>2005</year>. <article-title>Climate change in the western united states grape growing regions</article-title>. <source>Proceedings of the Seventh International Symposium on Grapevine Physiology and Biotechnology, 689: 41-59. https://doi.org/10.17660/ActaHortic.2005.689.2</source>.</mixed-citation>
            </ref>
            <ref id="ref38">
                <label>38</label>
                <mixed-citation>
                    <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <year>2012</year>. <article-title>A Climate Assessment for the Douro Wine Region: An Examination for the Past, Present and Future Conditions for Wine Production</article-title>. <source>ADVID, Peso da Régua, Portugal.</source>.</mixed-citation>
            </ref>
            <ref id="ref39">
                <label>39</label>
                <mixed-citation>
                    <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <name>
                        <surname>Alves</surname>
                        <given-names>F.</given-names>
                    </name>, <year>2012</year>. <article-title>Impact of climate change on wine production: a global overview and regional assessment in the Douro Valley of Portugal</article-title>. <source>International Journal of Global Warming, 4(3/4): 383-406. https://doi.org/10.1504/IJGW.2012.049448</source>.</mixed-citation>
            </ref>
            <ref id="ref40">
                <label>40</label>
                <mixed-citation>
                    <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <name>
                        <surname>White</surname>
                        <given-names>M.A.</given-names>
                    </name>, <name>
                        <surname>Cooper</surname>
                        <given-names>O.R.</given-names>
                    </name>, <name>
                        <surname>Storchmann</surname>
                        <given-names>K.</given-names>
                    </name>, <year>2005</year>. <article-title>Climate Change and Global Wine Quality</article-title>. <source>Climatic Change, 73(3): 319-343. https://doi.org/10.1007/s10584-005-4704-2</source>.</mixed-citation>
            </ref>
            <ref id="ref41">
                <label>41</label>
                <mixed-citation>
                    <name>
                        <surname>Kriegler</surname>
                        <given-names>E.</given-names>
                    </name>, <name>
                        <surname>Bauer</surname>
                        <given-names>N.</given-names>
                    </name>, <name>
                        <surname>Popp</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Humpenöder</surname>
                        <given-names>F. […]</given-names>
                    </name>, <year>2017</year>. <article-title>Fossil-fueled development (SSP5): An energy and resource intensive scenario for the 21st century</article-title>. <source>Global Environmental Change, 42: 297-315. https://doi.org/10.1016/j.gloenvcha.2016.05.015</source>.</mixed-citation>
            </ref>
            <ref id="ref42">
                <label>42</label>
                <mixed-citation>
                    <name>
                        <surname>Lafon</surname>
                        <given-names>T.</given-names>
                    </name>, <name>
                        <surname>Dadson</surname>
                        <given-names>S.</given-names>
                    </name>, <name>
                        <surname>Buys</surname>
                        <given-names>G.</given-names>
                    </name>, <name>
                        <surname>Prudhomme</surname>
                        <given-names>C.</given-names>
                    </name>, <year>2012</year>. <article-title>Bias correction of daily precipitation simulated by a regional climate model: a comparison of methods</article-title>. <source>International Journal of Climatology: n/a-n/a. https://doi.org/10.1002/joc.3518</source>.</mixed-citation>
            </ref>
            <ref id="ref43">
                <label>43</label>
                <mixed-citation>
                    <name>
                        <surname>Macedo</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Gouveia</surname>
                        <given-names>S.</given-names>
                    </name>, <name>
                        <surname>Rebelo</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <year>2021</year>. <article-title>International trade, non-tariff measures and climate change: insights from Port wine exports</article-title>. <source>Journal of Economic Studies, 48(6): 1228-1243. https://doi.org/10.1108/JES-04-2020-0161</source>.</mixed-citation>
            </ref>
            <ref id="ref44">
                <label>44</label>
                <mixed-citation>
                    <name>
                        <surname>Magalhães</surname>
                        <given-names>N.</given-names>
                    </name>, <year>2008</year>. <article-title>Tratado de viticultura: a videira, a vinha e o terroir</article-title>. <source>Chaves Ferreira, Lisboa, Portugal, 605 pp.</source>.</mixed-citation>
            </ref>
            <ref id="ref45">
                <label>45</label>
                <mixed-citation>
                    <name>
                        <surname>Martins</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Fraga</surname>
                        <given-names>H.</given-names>
                    </name>, <name>
                        <surname>Fonseca</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Santos</surname>
                        <given-names>J.A.</given-names>
                    </name>, <year>2021</year>. <article-title>Climate Projections for Precipitation and Temperature Indicators in the Douro Wine Region: The Importance of Bias Correction</article-title>. <source>Agronomy, 11(5). https://doi.org/10.3390/agronomy11050990</source>.</mixed-citation>
            </ref>
            <ref id="ref46">
                <label>46</label>
                <mixed-citation>
                    <name>
                        <surname>Massey</surname>
                        <given-names>F.J.</given-names>
                    </name>, <year>1951</year>. <article-title>THE KOLMOGOROV-SMIRNOV TEST FOR GOODNESS OF FIT</article-title>. <source>Journal of the American Statistical Association, 46(253): 68-78. https://doi.org/10.1080/01621459.1951.10500769</source>.</mixed-citation>
            </ref>
            <ref id="ref47">
                <label>47</label>
                <mixed-citation>
                    <name>
                        <surname>Mayson</surname>
                        <given-names>R.</given-names>
                    </name>, <name>
                        <surname>Duff</surname>
                        <given-names>L.</given-names>
                    </name>, <year>2018</year>. <article-title>Port and the Douro</article-title>. <source>Infinite Ideas Limited.</source>.</mixed-citation>
            </ref>
            <ref id="ref48">
                <label>48</label>
                <mixed-citation>
                    <name>
                        <surname>Murphy</surname>
                        <given-names>K.P.</given-names>
                    </name>, <year>2012</year>. <article-title>Machine Learning: A Probabilistic Perspective</article-title>. <source>MIT Press.</source>.</mixed-citation>
            </ref>
            <ref id="ref49">
                <label>49</label>
                <mixed-citation>
                    <name>
                        <surname>Panzone</surname>
                        <given-names>L.A.</given-names>
                    </name>, <name>
                        <surname>Simões</surname>
                        <given-names>O.M.</given-names>
                    </name>, <year>2009</year>. <article-title>The Importance of Regional and Local Origin in the Choice of Wine: Hedonic Models of Portuguese Wines in Portugal</article-title>. <source>Journal of Wine Research, 20(1): 27-44. ttps://doi.org/10.1080/09571260902978527</source>.</mixed-citation>
            </ref>
            <ref id="ref50">
                <label>50</label>
                <mixed-citation>
                    <name>
                        <surname>Rebelo</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Caldas</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Guedes</surname>
                        <given-names>A.</given-names>
                    </name>, <year>2015</year>. <article-title>The Douro Region: Wine and Tourism</article-title>. <source>Almatourism-Journal of Tourism Culture and Territorial Development, 6(11): 75-90.</source>.</mixed-citation>
            </ref>
            <ref id="ref51">
                <label>51</label>
                <mixed-citation>
                    <name>
                        <surname>Riahi</surname>
                        <given-names>K.</given-names>
                    </name>, <name>
                        <surname>van Vuuren</surname>
                        <given-names>D. P.</given-names>
                    </name>, <name>
                        <surname>Kriegler</surname>
                        <given-names>E. […]</given-names>
                    </name>, <year>2017</year>. <article-title>The Shared Socioeconomic Pathways and their energy, land use, and greenhouse gas emissions implications: An overview</article-title>. <source>Global Environmental Change, 42: 153-168. https://doi.org/10.1016/j.gloenvcha.2016.05.009</source>.</mixed-citation>
            </ref>
            <ref id="ref52">
                <label>52</label>
                <mixed-citation>
                    <name>
                        <surname>Robinson</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Harding</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Vouillamoz</surname>
                        <given-names>J.</given-names>
                    </name>, <year>2013</year>. <article-title>Wine Grapes: A complete guide to 1,368 vine varieties, including their origins and flavours</article-title>. <source>Penguin Books Limited.</source>.</mixed-citation>
            </ref>
            <ref id="ref53">
                <label>53</label>
                <mixed-citation>
                    <name>
                        <surname>Rumelhart</surname>
                        <given-names>D.E.</given-names>
                    </name>, <name>
                        <surname>Mcclelland</surname>
                        <given-names>J.L.</given-names>
                    </name>, <name>
                        <surname>Group</surname>
                        <given-names>P.D.P.R.</given-names>
                    </name>, <year>1987</year>. <article-title>Parallel Distributed Processing, Volume 1: Explorations in the Microstructure of Cognition: Foundations</article-title>. <source>MIT Press. https://doi.org/10.7551/mitpress/5237.001.0001</source>.</mixed-citation>
            </ref>
            <ref id="ref54">
                <label>54</label>
                <mixed-citation>
                    <name>
                        <surname>Saha</surname>
                        <given-names>S.</given-names>
                    </name>, <name>
                        <surname>Moorthi</surname>
                        <given-names>S.</given-names>
                    </name>, <name>
                        <surname>Pan</surname>
                        <given-names>H.-L. […]</given-names>
                    </name>, <year>2010</year>. <article-title>THE NCEP CLIMATE FORECAST SYSTEM REANALYSIS</article-title>. <source>Bulletin of the American Meteorological Society, 91(8): 1015-1057.</source>.</mixed-citation>
            </ref>
            <ref id="ref55">
                <label>55</label>
                <mixed-citation>
                    <name>
                        <surname>Salinger</surname>
                        <given-names>M.J.</given-names>
                    </name>, <name>
                        <surname>Baldi</surname>
                        <given-names>M.</given-names>
                    </name>, <name>
                        <surname>Grifoni</surname>
                        <given-names>D.</given-names>
                    </name>, <name>
                        <surname>Jones</surname>
                        <given-names>G. […]</given-names>
                    </name>, <year>2015</year>. <article-title>Seasonal differences in climate in the Chianti region of Tuscany and the relationship to vintage wine quality</article-title>. <source>International Journal of Biometeorology, 59(12): 1799-1811. https://doi.org/10.1007/s00484-015-0988-8</source>.</mixed-citation>
            </ref>
            <ref id="ref56">
                <label>56</label>
                <mixed-citation>
                    <name>
                        <surname>Séférian</surname>
                        <given-names>R.</given-names>
                    </name>, <name>
                        <surname>Nabat</surname>
                        <given-names>P.</given-names>
                    </name>, <name>
                        <surname>Michou</surname>
                        <given-names>M.</given-names>
                    </name>, <name>
                        <surname>Saint-Martin</surname>
                        <given-names>D. […]</given-names>
                    </name>, <year>2019</year>. <article-title>Evaluation of CNRM Earth System Model, CNRM-ESM2-1: Role of Earth System Processes in Present-Day and Future Climate</article-title>. <source>Journal of Advances in Modeling Earth Systems, 11(12): 4182-4227. https://doi.org/10.1029/2019MS001791</source>.</mixed-citation>
            </ref>
            <ref id="ref57">
                <label>57</label>
                <mixed-citation>
                    <name>
                        <surname>Service</surname>
                        <given-names>C.C.C.</given-names>
                    </name>, <year>2323</year>. <article-title>Copernicus Climate Data Store (CDS)</article-title>. <source>Retrieved from https://cds.climate.copernicus.eu/.</source>.</mixed-citation>
            </ref>
            <ref id="ref58">
                <label>58</label>
                <mixed-citation>
                    <name>
                        <surname>Smart</surname>
                        <given-names>R.E.</given-names>
                    </name>, <name>
                        <surname>Robinson</surname>
                        <given-names>M.D.</given-names>
                    </name>, <name>
                        <surname>Robinson</surname>
                        <given-names>M.</given-names>
                    </name>, <year>1991</year>. <article-title>Sunlight Into Wine: A Handbook for Winegrape Canopy Management</article-title>. <source>Winetitles Pty Limited, 88 pp.</source>.</mixed-citation>
            </ref>
            <ref id="ref59">
                <label>59</label>
                <mixed-citation>
                    <name>
                        <surname>Stone</surname>
                        <given-names>M.</given-names>
                    </name>, <year>1974</year>. <article-title>Cross-Validatory Choice and Assessment of Statistical Predictions</article-title>. <source>Journal of the Royal Statistical Society, Series B, 36(2): 111-147. https://doi.org/10.1111/j.2517-6161.1974.tb00994.x</source>.</mixed-citation>
            </ref>
            <ref id="ref60">
                <label>60</label>
                <mixed-citation>
                    <name>
                        <surname>Thorne</surname>
                        <given-names>P.W.</given-names>
                    </name>, <name>
                        <surname>Vose</surname>
                        <given-names>R.S.</given-names>
                    </name>, <year>2010</year>. <article-title>Reanalyses Suitable for Characterizing Long-Term Trends</article-title>. <source>Bulletin of the American Meteorological Society, 91(3): 353-362. https://doi.org/10.1175/2009BAMS2858.1</source>.</mixed-citation>
            </ref>
            <ref id="ref61">
                <label>61</label>
                <mixed-citation>
                    <name>
                        <surname>Thrasher</surname>
                        <given-names>B.</given-names>
                    </name>, <name>
                        <surname>Maurer</surname>
                        <given-names>E.P.</given-names>
                    </name>, <name>
                        <surname>McKellar</surname>
                        <given-names>C.</given-names>
                    </name>, <name>
                        <surname>Duffy</surname>
                        <given-names>P.B.</given-names>
                    </name>, <year>2012</year>. <article-title>Technical Note: Bias correcting climate model simulated daily temperature extremes with quantile mapping</article-title>. <source>Hydrology and Earth System Sciences, 16(9): 3309-3314. https://doi.org/10.5194/hess-16-3309-2012</source>.</mixed-citation>
            </ref>
            <ref id="ref62">
                <label>62</label>
                <mixed-citation>
                    <name>
                        <surname>Tonietto</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Carbonneau</surname>
                        <given-names>A.</given-names>
                    </name>, <year>2004</year>. <article-title>A multicriteria climatic classification system for grape-growing regions worldwide</article-title>. <source>Agricultural and Forest Meteorology, 124(1-2): 81-97. https://doi.org/10.1016/j.agrformet.2003.06.001</source>.</mixed-citation>
            </ref>
            <ref id="ref63">
                <label>63</label>
                <mixed-citation>
                    <name>
                        <surname>Uniyal</surname>
                        <given-names>B.</given-names>
                    </name>, <name>
                        <surname>Dietrich</surname>
                        <given-names>J.</given-names>
                    </name>, <name>
                        <surname>Vu</surname>
                        <given-names>N.Q.</given-names>
                    </name>, <name>
                        <surname>Jha</surname>
                        <given-names>M.K.</given-names>
                    </name>, <name>
                        <surname>Arumi</surname>
                        <given-names>J.L.</given-names>
                    </name>, <year>2019</year>. <article-title>Simulation of regional irrigation requirement with SWAT in different agro-climatic zones driven by observed climate and two reanalysis datasets</article-title>. <source>Science of the Total Environment, 649: 846-865. https://doi.org/10.1016/j.scitotenv.2018.08.248</source>.</mixed-citation>
            </ref>
            <ref id="ref64">
                <label>64</label>
                <mixed-citation>
                    <name>
                        <surname>van Leeuwen</surname>
                        <given-names>C.</given-names>
                    </name>, <name>
                        <surname>Darriet</surname>
                        <given-names>P.</given-names>
                    </name>, <year>2016</year>. <article-title>The Impact of Climate Change on Viticulture and Wine Quality</article-title>. <source>Journal of Wine Economics, 11(1): 150-167. https://doi.org/10.1017/jwe.2015.21</source>.</mixed-citation>
            </ref>
            <ref id="ref65">
                <label>65</label>
                <mixed-citation>
                    <name>
                        <surname>van Leeuwen</surname>
                        <given-names>C.</given-names>
                    </name>, <name>
                        <surname>Destrac-Irvine</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Dubernet</surname>
                        <given-names>M.</given-names>
                    </name>, <name>
                        <surname>Duchêne</surname>
                        <given-names>E. […]</given-names>
                    </name>, <year>2019</year>. <article-title>An Update on the Impact of Climate Change in Viticulture and Potential Adaptations</article-title>. <source>Agronomy, 9(9). https://doi.org/10.3390/agronomy9090514</source>.</mixed-citation>
            </ref>
            <ref id="ref66">
                <label>66</label>
                <mixed-citation>
                    <name>
                        <surname>Voldoire</surname>
                        <given-names>A.</given-names>
                    </name>, <name>
                        <surname>Saint-Martin</surname>
                        <given-names>D.</given-names>
                    </name>, <name>
                        <surname>Sénési</surname>
                        <given-names>S.</given-names>
                    </name>, <name>
                        <surname>Decharme</surname>
                        <given-names>B. […]</given-names>
                    </name>, <year>2019</year>. <article-title>Evaluation of CMIP6 DECK Experiments With CNRM-CM6-1</article-title>. <source>Journal of Advances in Modeling Earth Systems, 11(7): 2177-2213. https://doi.org/10.1029/2019MS001683</source>.</mixed-citation>
            </ref>
            <ref id="ref67">
                <label>67</label>
                <mixed-citation>
                    <name>
                        <surname>White</surname>
                        <given-names>M.A.</given-names>
                    </name>, <name>
                        <surname>Diffenbaugh</surname>
                        <given-names>N.S.</given-names>
                    </name>, <name>
                        <surname>Jones</surname>
                        <given-names>G.V.</given-names>
                    </name>, <name>
                        <surname>Pal</surname>
                        <given-names>J.S.</given-names>
                    </name>, <name>
                        <surname>Giorgi</surname>
                        <given-names>F.</given-names>
                    </name>, <year>2006</year>. <article-title>Extreme heat reduces and shifts United States premium wine production in the 21st century</article-title>. <source>Proceedings of the National Academy of Sciences of the United States, 103(30): 11217-22. https://doi.org/10.1073/pnas.0603230103</source>.</mixed-citation>
            </ref>
        </ref-list>
    </back>
</article>
