Introduction

Food nutritional and organoleptic characteristics, as well as food origin and hygienic-sanitary conditions, are fundamental requirements for quality assessment and safety, with a direct impact in healthy eating and social wellness.

Identity and origin of a product from a peculiar and valuable geographical area are recognized by the European Community with the labels “Protected Geographical Indication” (PGI) and “Protected Designation of Origin” (PDO). These labels aim to safeguard the names of specific products to promote their unique characteristics connected with their geographical origin.

It is already known in literature that the presence in vegetables of various bioactive compounds such as flavonoids, tannins and other polyphenolic constituents1,2 as well as of aromatic compounds, which are mainly responsible for the organoleptic properties of food, often identifies the product genuineness and healthiness. These are strictly related to the specific features of the territory of origin. Thus, checking food origin by determining the characterizing elements becomes extremely important for traceability and in fighting food fraud during the whole production, processing and marketing chain. In this context, food authentication is especially necessary for branded products, like PDO and PGI labelled ones, which are more susceptible to fraud than other products, due to their higher economic value.

The characterizing and trace elements in biological and environmental samples are usually identified by using traditional methods, such as atomic spectrometry techniques, including ICP-OES (Inductively Coupled Plasma Optical Emission Spectrometry) and ICP-MS (Inductively Coupled Plasma Mass Spectrometry)3. Despite the widespread use of the classical analytical instruments, non-destructive techniques have recently been introduced, with the double advantage to speed up the analysis and to avoid damages to the analyzed biological matrix. Moreover they require a minimum sample amount and can be used for online measurements at various stages of the industrial processing. Among these, the X-Ray Fluorescence (XRF) spectrometry is often used. It allows to identify and quantify the elements of a homogeneous or not homogeneous sample (solid or liquid) by measuring the fluorescent X-ray emitted from atomic shell de-excitation, following a primary X-ray irradiation (see4 and reference therein). XRF spectrometry has the advantage of being a relatively cheap technique, easy to implement (also on the field) and very fast, since it allows to determine presence and concentrations of lots of chemical elements in few minutes, with high accuracy and precision. However, this technique presents a great difficulty in determining chemical elements having an atomic weight lower than that of Na (Z \(\leqslant\) 11). As a matter of fact, the incident X-ray beam is mainly scattered and poorly absorbed by organic samples particularly rich in light elements, such as C, H, O and N. In this case, a more extensive knowledge of chemical composition of a sample could be achieved by working in other spectral regions and using scattering-based spectrometric techniques, such as Rayleigh, Compton and Raman ones.5,6.

The present work aims to determine a reliable and fast procedure based on a portable XRF device to reveal “fingerprint” patterns, identifying the provenance of fresh and dried vegetables, in order to establish a reproducible analysis protocol, supporting alimentary certification and traceability. Recently XRF spectrometry, in combination with multivariate analysis of the elemental fingerprint patterns, has been successfully used to verify the geographical origin of different products, including paprika powder, honey, soybean seeds and extra virgin olive oils7,8,9,10,11,12,13, to discriminate organic foodstuffs from conventional ones, verifying the agronomic production system14, and to authenticate similar food commodities (sugars, oils) originating from different vegetable crops13,15. In this study, the XRF analysis preliminary validated in4 was applied to detect the presence of characterizing and trace elements in cherry tomato fruits (Lycopersicon esculentum L.) cultivated in different greenhouses falling into the Pachino district, an area located in the south-east of Sicily (Italy), in the provinces of Syracuse and Ragusa, that includes the entire municipality of Pachino and Portopalo di Capo Passero and part of the territories of Noto and Ispica.

In a preliminary step of this study we experimentally verified the reliability and robustness of the experimental method and analysis. The validation of the methodology was performed by tomato samples collected in the Pachino district (PGI sites). The elemental profiles and yields obtained by different XRF apparatus set-up (use of different filters) and sample preparation methodologies (presence/absence of tomato skin in the samples) were compared with each other in the framework of multivariate analysis (Principal Component Analysis, PCA) by using raw XRF spectra and the element yields, improving and simplifying the analysis. The innovative approach of a direct spectral analysis by PCA was validated, together with its robustness, with respect to the different experimental/sample conditions. This opens the possibility to implement an unsupervised analysis procedure to be used by non specialized operators directly on the field or along the chain of distribution, establishing a breakthrough in the agri-food certification methodology. Consequently, as a further step, XRF measurements were extended to tomato samples coming from greenhouses located in non-PGI sites of south-eastern Sicily and Etna region, in Ragusa and Catania provinces, in order to identify the elemental markers (within the categories of macro- and micro-elements) able of discriminating PGI tomato fruits within the full data set. Fingerprint markers were disentangled in association with the production area. Finally, the differences in tomato elemental composition were further investigated through the Discriminant Analysis (DA) and correlated to the soil physico-chemical properties.

Figure 1
figure 1

Tomato greenhouse production distribution within Sicily in 202216 (production distribution in 2021 is reported in17). Province of Ragusa has the highest tomato production rate. Yellow stars indicate the sampled sites of the present study. The figure has been created by using Microsoft Excel Bing Maps, Bing \(\copyright\), GeoNames, Tom Tom (https://www.geonames.org).

Area of origin and sample characteristics

In Sicily, fresh market tomato is a major greenhouse vegetable crop, covering over almost 3038 hectares with a total production of 203,223 tons16 (Fig. 1 and17). Approximately 80% of the Sicilian greenhouse tomato production is located in the south-east of Sicily, in Ragusa and Syracuse provinces, known worldwide for the production of PGI Pachino tomato. Due to its strong connection with the peculiar features (soil and irrigation) of its territory, it was the first Italian tomato to obtain the European PGI certification of quality.

The peculiar nutritional and organoleptic features of PGI tomato of Pachino result from the combination of various environmental factors (pedological and microclimatic conditions, cultivation techniques, saltwater irrigation), which differ with respect other Sicilian geographical areas devoted to tomato crops. The area of origin of the present sampling campaign is reported into Fig. 1. Tomato fruits with PGI certification were collected from five farms located in Pachino and Ispica municipalities, in Syracuse and Ragusa provinces. In these farms, tomato plants were grown on unheated glasshouses assembled by using plastic films and they were watered by drip-irrigation, by using groundwater with a salinity level ranging from 1500 to 10 000 \(\upmu\)S/cm, according with the standard agronomical practices18. As concerning tomato fruits without PGI certification, they were harvested from five farms located in Acate, Scicli, Vittoria and Aci St. Antonio municipalities, in Ragusa and Catania provinces. In these farms, tomato plants were grown on unheated greenhouses covered with polyethylene sheets, by using an irrigation water with a salinity level lower than the Pachino district.

Portions of dried pulp with and without skin were prepared for XRF analysis according to the procedure used in4. A total of 24 samples belonging to three typologies (cherry, plum and miniplum) and to eight cultivars of tomato (Creativo, Ciringuito, Lavico, Mozia, Paskaleto, Pixel, Prodigio and Rokito) were analyzed. Samples were harvested at full ripeness stage (fully red skin), as usually occurs for marketing. Table 1 summarizes geographical origin, tomato typology and cultivar of the samples.

Microbiological analyses were also performed on tomato samples harvested in the Pachino district during the same campaign19.

Table 1 Experimental campaign: sample origin (origin), farm, greenhouse (GH), tomato typology (Typ.), cultivar (Cv.), site typology (site), sample identifier (ID), measurements M1 (filter Ti/Al/Cu and “pulp” sample), M2 (Ti/Al filter and “pulp” sample) and M3 (Ti/Al filter and “pulp + skin” sample).

XRF measurements and analysis

XRF measurements were performed by using the Bruker portable spectrometer (Tracer IV-SD) as in4. The handheld spectrometer, equipped with an X-ray tube (Rh anode) having a X-ray beam collimated at 3 mm in diameter, was set to operate at an anodic voltage and current of 40 kV and 17 \(\upmu\)A, respectively. For all the tomato samples, measurement time was set to 120 s.

The reliability and robustness of the measurement were tested on a sample subset (PGI samples, Table 1) by coupling two different filters to the apparatus, Ti/Al/Cu and Ti/Al, and by preparing two dried sample typologies, “Pulp” and “Pulp + Skin”. Then, the measurements were extended to the full sample set (PGI and non-PGI samples, Table 1), implementing only the Ti/Al filter and “Pulp + Skin” sample typology.

XRF spectra were acquired by using the S1PXRF software and the fit was performed by using the PyMca software20. Before the fitting procedure, spectra were energy calibrated. The peaks associated to the K\(\alpha\), K\(\beta\) and L X-ray transitions, characterizing each element, were fitted by the Mca Hypermet fit function. Background subtraction was performed through the PyMca “strip” algorithm by using a width of 25 channels; reduced \(\chi ^2\) values of the fit were ranging from 1.02 to 1.48.

In order to assess the best methodology in disentangling tomato samples according to their geographical origin, three different data-sets were obtained from each measurement on a given sample which were subsequently used in the statistical analysis: “original spectrum”, including background signal, “net spectrum”, without background component and “element yields”, net peak integrals associated with characterizing and in-trace elements.

Reliability test

The performances of the XRF apparatus were studied by making use of the two different filter configurations in order to validate the robustness of the measurement with respect to the experimental conditions. For this purpose, the “Pulp” samples were irradiated by an X-ray beam hardened by Cu/Ti/Al (0.006” Cu, 0.001” Ti, 0.012” Al) (measurement M1, Table 1) or Ti/Al (0.001” Ti, 0.012” Al) filters (measurement M2, Table 1). Raw spectra belonging to the same sample (pulp of sample D1) obtained after irradiation by the two filters are shown in Fig. 2A,B. As expected, the spectra exhibit different backgrounds, in particular at X-ray energies larger than 7.5 keV. The main background component is originating from Compton and Rayleigh scattering. A further background component is due to the interaction between the characteristic X-rays of the sample and the detection instrument, including internally generated instrument noise. It is worthwhile to stress that, especially in the detection of trace elements, the background signal may have a significant effect on the detection limit and precision; thus, performing the same measurement with different background is crucial to assess that the spectroscopic information is preserved in spite of different experimental conditions.

Figure 2
figure 2

XRF spectra associated to the “pulp” and the “pulp + skin” of D1 sample. The spectra referred to the “D1—pulp” sample, obtained by configuring the Bruker spectrometer with Cu/Ti/Al (0.006” Cu, 0.001” Ti, 0.012” Al) and Ti/Al (0.001” Ti, 0.012” Al) filters, are plotted in (A) and (B), whereas XRF spectrum associated to “D1—pulp + skin” sample, measured with Ti/Al filter, is plotted in (C). In (A), (B) and (C), the raw spectra are reported in black, data global fit and background evaluation in red and green, respectively. In (D) the comparison of XRF spectra after background subtraction for the “pulp” of D1 sample obtained by using Ti/Al/Cu and Ti/Al filters (blue and red line, respectively) is shown; in the same plot, net XRF spectrum for the “pulp + skin” of D1 sample measured with Ti/Al filters is reported as a green line. Finally, plot (E) reports the extracted element yield distributions concerning the three experimental configurations M1, M2 and M3. Statistical error bars are included.

For each sample, the net spectra (after background subtraction) have been normalized to the sum of the counts, while the obtained element yield distributions have been normalized to the total sum of the yields. The results are reported in Fig. 2D,E, respectively. Negligible differences, within the error bars, appear for the two filter configurations (see blue and red lines in Fig. 2D,E). This indicates that the choice of the filter used in the XRF apparatus does not significantly affect the obtained element distribution, thus validating the overall fit and background subtraction procedure.

A further analysis of the elements profile was performed with respect to the change of the sample texture by comparing the XRF measurements obtained from the “Pulp” samples (measurements M1 and M2) with those obtained from the “Pulp + Skin” ones (measurement M3, Table 1). In this way, it was possible to evaluate differences on the deduced element pattern related to the sample preparation methodology and to the skin presence. XRF measurements were performed on the “Pulp + Skin” samples by using the Ti/Al filter. The analysis procedures, curve fitting, background subtraction and elemental identification in the “Pulp + Skin” samples spectra were carried out by the same procedure previously described (Fig. 2C,D,E). Element profiles of the “Pulp + Skin” samples agree within the error bars with those obtained by using “Pulp” ones.

The elemental profiles of the three sets of measurements M1, M2 and M3, obtained by using the two filters and the two sample preparation methodologies used for the PGI samples (Table 1), were then analysed by the Principal Component Analysis (PCA) as implemented in the MATLAB software package21. The multivariate statistical analysis is usually associated to spectroscopic techniques, as it highlights correlations and/or differences among data-sets22,23,24. In order to disentangle differences introduced by using different analysis methodologies, for each set of measurements, PCA was performed on the three derived data-sets described above: raw XRF spectra, net spectra (background subtracted) and element yield distributions.

The first two PCA data matrices (size 14x840), obtained from raw and background subtracted spectra, were built by simply reporting in the rows the counts corresponding to the ADC channels (for a total number of 840 channels) and labelling the columns by the fourteen PGI tomato samples, originating from Pachino and Ispica growing areas. The third data matrix (size 14 \(\times\) 29) was built by reporting in the rows the yields of the 29 obtained elements extracted after the fit and background subtraction procedure. The PCA was performed on the standardized matrices.

As expected, for all the evaluated data-sets, the highest percentage of the total variance is associated to the first Principal Component (PC1) which ranges from 83.5% to 92.6% and, consequently, it hardly contains information for discriminating among the investigated tomato growing areas. On the other hand, large PC1 values confirm the overall data set consistency related to the average elemental composition of the tomato fruit; this overall consistency was further confirmed also in4 by using different analytical techniques and data-sets. Remarkably, PC2 and PC3 values make, instead, possible to disentangle tomato samples by their provenance, as the data set clustered into different groups related to the farms. The biplots of the second and third components (PC2 vs PC3) extracted by the three different data-sets were compared in Fig. 3A,B,C for the three sets of measurements M1 (left side), M2 (center) and M3 (right side). All the nine biplots shown in the figure, although obtained from three different data-sets, derived in turn from two different filter configurations and two sample preparation methodologies, clearly show five different clusters, which correspond to the five different farms surveyed within the Pachino district. Moreover, as it can be seen by the elemental analysis (Fig. 3), K is the most characterizing element in samples collected in the territory of Ispica (farms 4 and 5), while Sr and Rb mainly characterize the tomato collected in farm 3 located in Pachino. Finally Br is the dominant element in the tomatoes grown in farm 1 located in Pachino.

In this framework, it is important to remark that the results highlighted by the nine PCA analyses are fully consistent with each other (Fig. 3) and they do not vary significantly as a function of the filter used for the setting of the spectrometer, the texture of the sample or the spectrum analysis methodology. This confirms, from one side, the reliability of the XRF technique in detecting the chemical elements in a sample regardless of the instrumental conditions and the correctness of the fitting procedure and background subtraction carried out on the spectra. From the other side, it suggests the possibility of discriminating the samples on the basis of their “elemental profile” by a direct information retrieval based on the bare spectrum, bypassing the procedure of background subtraction and spectroscopic fit determining the element yields. This unique analysis procedure, which represents a step forward with respect to the work presented in4, has the further advantage of preserving all the information contained in the spectrum, often defined by the trace elements present in such small quantities that they cannot be disentangled from the background. The pragmatic consequence leads to consider just the raw spectra as the most meaningful and complete pattern in order to perform a quick and easy authentication. This kind of analysis protocol can be extended well beyond the biological case study.

Concerning the PCA made on “Pulp + Skin” samples, it confirmed the results previously highlighted by PCA carried out on the corresponding “Pulp” samples, although some differences were unveiled concerning the classification of the samples into groups. Specifically, samples of “Pulp + Skin” (Fig. 3, biplots on the right side) appeared to achieve a better discrimination than the samples of “Pulp” without skin (biplots on the center). Indeed, as shown in the right side of the Fig. 3, the clustering obtained by using the “Pulp + Skin” samples persisted even after the subtraction of the background and in the analysis of the element yields (see for instance the different position of the vectors M1 and C1 in the biplots representing the “Pulp” and the “Pulp + Skin” samples). Due to the presence of the skin, it is also possible to reveal a clear discrimination of the farms located in Pachino with respect to those located in Ispica, since they are populating different quadrants in the PC3 versus PC2 biplots. This result is related to the skin trace elements content; in fact, Ca and Sr are present in smaller quantities in the pulp. To this regard, as expected, the skin appears to be a valuable constituent when authenticating a food product. The analysis of fruit not subjected to peeling procedure provides important information that could be used for subsequent studies, laying the foundations for more extensive XRF applications, to be carried out directly in the field or on fresh market fruit.

Figure 3
figure 3

Comparisons of PC3 versus PC2 biplots obtained by analyzing “original spectra” with background (A), “net spectra” without background (B) and “element yields” (C) of “pulp” samples irradiated by an X-ray beam reduced by using Ti/Al/Cu filter (plots in the left side), Ti/Al filter (plots in the center) and of “pulp +skin” samples and Ti/Al filter (plots in the right side). Samples were obtained by PGI-tomatoes coming from the Pachino district (Pachino and Ispica municipalities). The variables, represented trough vectors, are the tomato samples collected from Pachino (samples A1, A2, A3, A4, P1, P2 from farm 1; B1, B2 from farm 2; C1, M1 from farm 3) and Ispica (D1, D2 from farm 4; L1, L2 from farm 5) (for details see Table 1).

Full sample-set measurements and analysis

In the final step of this study, XRF measurements were extended to the non-PGI tomato samples originating from Ragusa and Catania provinces. Since, as previously demonstrated, the “Pulp + Skin” samples provide a better discrimination, requiring also shorter preparation times, the subsequent analyses regarding the non-PGI tomato samples were performed exclusively on the “Pulp + Skin” samples. Experimental data including the data-sets of tomato samples collected in the Pachino district and ten non-PGI tomato samples coming from five farms, located in Acate, Scicli, Vittoria and Aci St. Antonio (see Table 1), for a total of 24 samples, were analysed by PCA. The PCA data matrix (size 24 \(\times\) 840) was built by reporting—in the rows—the ADC counts and—in the columns—the twenty-four tomato samples coming from Syracuse, Ragusa and Catania provinces. Statistical analysis was performed on the bare spectra data-set, containing also information of trace elements that cannot be disentangled from the background. As expected, being the samples of the same nature, with similar degree of ripeness and obtained by the same drying procedure, most of the information from XRF data is included in the first two PC. In detail, PC1 alone explained 93.2% of the total variance and PC2 explained 5.7%; consequently, to discriminate the different investigated tomato growing areas, PC3 and PC4 values have to be used (Supplementary Fig. S1, left side). Moreover, it was observed that the samples from the first greenhouse of farm 1 in Pachino (A1–A4) were lying between the non-PGI samples collected in the province of Ragusa, far away from the PGI-samples group, preventing the formation of two distinct groups (Supplementary Fig. S1,B,C).

The peculiar position assumed by A1–A4 samples in the different biplots must be attributed to the dominant presence of Br element (such that can be directly inferred by inspecting the XRF spectra), whose concentrations differ significantly with respect to the value deduced for the other samples. In order to proceed to a data rejection for A1–A4 samples, we infer that the high yields of Br found in the samples from the greenhouse n. 1 could be related to anthropogenic causes (specific soil treatment, use of particular pesticides before harvesting, etc.). This conclusion can be deduced also by our previous study concerning the epiphytic and endophytic microbial populations isolated from the samples A1–A419. These samples, although coming from farm 1 in the Pachino area, separated from the other samples creating a third cluster. Thus, according to their large differences with respect to the other samples, they can be considered as outliers.

For this reason, a new statistical analysis was performed excluding the samples collected from greenhouse 1, thus finding a full coherence in the context of the PCA. The results are shown in Fig. 4. Such results are also reported in Supplementary Fig. S1 (right side) to directly compare the clustering in presence and in absence of the outliers.

In all new biplots, most of the tomato samples coming from the same farm were located close to each other. Moreover, excluding A1–A4 tomato samples from greenhouse 1, samples originating from the Pachino district (PGI samples) and from Ragusa and Catania provinces (non-PGI samples) were well separated from each other by the PCs of higher order, as you can see in detail in the Fig. 4A,B. In particular, “Pulp + Skin” samples clustered into three distinct groups, linearly separated, based on their PC3 and PC4 values: the PGI-tomato samples coming from Pachino and Ispica are characterized by positive PC3 scores, the non-PGI samples from Ragusa province are characterized by negative PC3 scores, whereas the tomatoes produced around the Mt. Etna had again values with positive scores on PC4 (Fig. 4). As shown by PC3-PC4 biplot, exclusion of outliers leads to a full and coherent discrimination of the different geographical areas of origin. This result confirms the previous analysis reported in the feasibility study4 and suggests that the XRF technique is able to discriminate tomato coming from different geographical origins with reasonable accuracy. Since the measured XRF patterns can be associated to the specific features of the tomato growing areas (soil composition, agronomical practices and microclimatic conditions establishing inside the greenhouses), XRF analysis can be successfully used to assess the geographical origin and the quality of foodstuffs and, consequently, to detect counterfeit products.

Figure 4
figure 4

PCA carried out on “pulp + skin” samples obtained from tomatoes with PGI and non-PGI certification (in A, biplot PC3 vs PC2; in B, biplot PC4 vs. PC3). The biplots were obtained by the raw spectra data-sets, made excluding A1–A4 samples (outliers). The variables (vectors symbolizing tomato samples coming from PGI- and non-PGI sites) were distinguished by using different colours (in green, PGI samples from Pachino district; in blue, non-PGI samples from Ragusa; in red, non-PGI samples from Aci St. Antonio).

These results were confirmed by a further analysis of the element yields obtained by the overall fit of the spectra (see Supplementary material, Fig. S2), as previously done in Fig. 3. However, in this case, the clustering was less evident, due to the effect of the raw data filtering. Only the tomato samples from Aci St. Antonio (Catania) kept their position unchanged, remaining well apart from all the others. So, it is possible to infer, as expected, that the background subtraction resulted in a loss of information. All in all, elemental differences of tomato samples from Ragusa, Ispica and Pachino are sometime revealed by the presence of trace elements in such a small quantities that, having an unfavorable signal/background ratio, cannot be disentangled by using the fitting procedure and, therefore, are washed out by the background subtraction.

Element analysis and relationship with soil characteristics

As already stated in the introduction, the peculiar nutritional and organoleptic features of a foodstuff are the result of various external environmental factors, including pedological and micro-climatic conditions and cultivation techniques.

Considering the pedological conditions, it is worthwhile to stress that soil properties influence the biochemical composition and the bio-availability of soil trace elements, affecting their absorption and accumulation in plant tissues. Moreover, concentrations of trace elements in the soil are influenced by the layer in which they develop and by the lithology of pedogenic rock25. Therefore, different plants grown on different geological types of rock and on different soils may exhibit different chemical composition. In this context, accumulation rates of elements have been found correlated, in fruit and wine samples, with the soil composition of different geographical areas25,26,27.

Given that premise, assuming the existence of strong interrelationships within the plant-soil system, we started investigating on the origin of the different chemical composition of the analyzed tomatoes, evaluating the characteristics of the Sicilian soil, in particular for Catania, Ragusa and Syracuse provinces. To this end, we used the ‘Land Use and Coverage Area frame statistical Survey Soil’, LUCAS, database28, which reports the physical and chemical properties of soil samples collected in the European Union29. In detail, data related to the elemental composition of tomato samples can be correlated with some physical and chemical properties of soil29, namely Soil Texture, Calcium Carbonate (CaCO\(_3\)) content, Organic Carbon (CO) content, Cation Exchange Capacity (CEC), Soil pH in water, Nitrogen (N) content and Extractable Potassium (K) content as reported in the LUCAS Soil database, by considering the same surveyed geographical areas (sampling sites).

Before proceeding to fruit-soil comparison, the local changes in tomato elemental composition, previously highlighted by PCA, were further evaluated and validated through supervised multi-parametric analysis tools (Discriminant Analysis). For this purpose, the element yields previously extracted from XRF spectra associated to the tomato “Pulp + Skin” samples were analysed, excluding the samples collected from the greenhouse n. 1 (considered outliers as described in the previous paragraph; see Table 1). The XLSTAT package30 was used in order to perform the Discriminant Analysis (DA). The input data matrix was reporting—in the columns (variables)—the element yields associated to nine elements, previously normalized to the Ar yield, and labelling the rows (observations) by the twenty tomato samples originating from the different surveyed farms (see Table 1). The nine elements reported in the matrix were selected in order to have the yield ratio to Argon greater than one, consequently the dimension of the input data matrix was 9x20. Since it is supervised, DA requires a class membership assignment for each sample. So, in order to proceed with the analysis, six different classes corresponding to the six different surveyed municipalities—Pachino, Ispica, Acate, Scicli, Vittoria and Aci St. Antonio, see Table 1—were defined; subsequently, each tomato sample was labelled according to its class, respecting the geographical area of provenance.

The discrimination of tomato samples (observations) achieved on the basis of the first two discriminant functions and the contribution of each element (variables) in discriminating the analyzed samples are reported in Fig. 5A,B, respectively. In addition to DA plots, Fig. 5C shows the averaged “element yields to Ar yield ratio” obtained for each geographical area (the class). The correlation matrix between the used variables, the classification functions and the group comparison after the DA statistical analysis, which highlight that all observations were correctly classified, are shown in Supplementary Table S1, S2 and S3. As expected, DA correctly discriminates the sample clusters in relation to their geographical origin (Fig. 5). The two discrimination functions described 94.6\(\%\) (F1) and 3.7\(\%\) (F2) of the total variance, respectively. The cluster discrimination is fully consistent with the PCA biplots shown in Fig. 4. As shown by the DA plot reporting the observations, six different clusters are fully disentangled by using the first two discrimination functions, which correspond to the six different growing areas surveyed (Fig. 5A). Tomatoes from Aci St. Antonio showed the greatest differences in terms of elemental composition compared to the tomato average composition, as they are placed far away from the plot center and from the other five groups. On the opposite, the two classes concerning tomatoes harvested in Pachino and Ispica, as well as those representing the tomatoes from Acate e Vittoria were close to each other, indicating that their elemental profiles are similar. The squared distance values reported in Supplementary Table 3 show, in detail, how the observations distribute around each group mean value. This result agrees and further confirms PCA results, which clearly discriminated between PGI and non-PGI samples (see PC3 vs PC4 in Fig.  4B and 5A). The variables involved to a greater extent in discriminating tomato samples according to the geographical origin were mainly Rb, Br and Zn, whereas Cu, Sr and Cl showed the least ability in discriminating (Fig. 5B). In conclusion, as previously found in the feasibility study4, the most significant XRF yields were obtained for K, Ca, Fe, Cu, Zn, Br, Rb and Sr elements. The tomato samples coming from Scicli and Pachino district (Ispica and Pachino) differed from the other samples for the greater content of the elements Ca, Zn and Sr. Finally, a strongly characterizing content of Rb was found in the samples collected at the foot of Mt. Etna (Fig. 5B,C).

As a final step of our study, in addition to the statistical analysis carried out on the element yields, we proceeded to qualitatively analyze some soil physico-chemical parameters characterizing the sampling sites under study, in order to evaluate possible correlations between the tomato elemental composition and the territory. The Sicilian soil properties were extracted by the LUCAS Soil database and are plotted in Fig. 6. The surveyed farms were also localized on a pedological map of Sicily31 (Fig. 7). Unveiling the complex biochemical motivations leading to a direct or indirect correlation between the fruit elemental profile and the soil characteristic lies well beyond the purpose of the present work. Here we are limiting the analysis to detect ex-post correlations (phenomenological) between the elemental profile and the soil composition for the six investigated sites on the basis of the parameters reported by the LUCAS database.

Figure 5
figure 5

On the left, DA plots obtained by using nine variables including the elements with larger yield (element to Argon ratio larger than one): observations are plot in (A) and variables are plot in (B). In (C), averaged element yields detected in the “pulp + skin” samples obtained from tomatoes with PGI and non-PGI certification harvested in Pachino (P1, P2, B1, B2, C1, M1), Ispica (D1, D2, L1 and L2), Scicli (SC1, SC2, SC3 and SC4), Vittoria (V1, V2), Acate (AC1, AC2) and Aci St. Antonio (ET1, ET2). Yields have been normalized to Argon yield for each region before being averaged. In correspondence of each element, bars show the standard deviations.

The growing areas falling in the Pachino district are characterized by clay-loam soils, with a prevalence of silt, high salinity conditions and favorable climatic conditions that permit extra seasonal productions of different vegetal crops. Moreover, the Pachino and Ispica farmlands are particularly rich in calcium carbonates (CaCO\(_3\)) and contain a moderate content of organic carbon (CO) (Fig. 6). The presence of free CaCO\(_3\) generally reduces the solubility of elements in the soil, increasing the pH; moreover, bicarbonate ions form element carbonates sparingly soluble32. On the contrary, CO content improves the nutrient availability, the activity of soil microorganisms and the soil fertility33. Naturally-occurring organic carbon forms are linked to the soil organic matter, represented by undecomposed or partially decomposed plant and animal residues and by substances synthesized by soil organisms as a result of decomposition processes. Soil organic matter is made by different fractions, including simple molecules (amino acids, monomeric sugars), polymeric molecules (cellulose, protein, nucleic acids, lignin, etc.) and highly decomposed compounds such as humus34.

The farmlands under study falling in the Ragusa and Catania provinces, intended for the cultivation of tomato fruits without PGI certification, have different characteristics than those in the Pachino district: the farmlands in Scicli are mainly loamy, rich in N and CO content and poor in calcium carbonates, the ones in Vittoria and Acate are sandy-loamy and poor in N and CO content, while the soil around Mt. Etna is volcanic, with a prevalence of sand28,29. Some of these soil characteristics are reported in the Fig. 6.

Figure 6
figure 6

Bubble maps extracted from LUCAS database for Sicily concerning the values of CaCO\(_3\) (g/kg), CO (g/kg), CEC (cmol(+)/kg), pH in H\(_2\)O, N (g/kg) and K (g/kg) in soils. Maps have been created by using the software GPS Visualizer (https://www.gpsvisualizer.com)35. Map data were obtained from OpenStreetMap (https://www.openstreetmap.org).

The soils formed in volcanic areas have properties that clearly distinguish them from other soils of different origins: in particular, they have a variable electric charge and a high anion exchange capacity36. In addition, data processing from the LUCAS database highlighted in the Etna region a significantly lower content of calcium carbonates and organic matter than that found in other areas of Sicily (Fig. 6). The content of soil organic matter (expressed as CO concentration in g/kg of soil) and the humus fractions, such as humic and fulvic acids, as well as imogolite-type materials and crystalline Fe-oxyhydroxides, decrease with increasing altitude37, affecting the vegetation systems and the soil fertility.

As shown in Fig. 6, the growing areas monitored in this study differed from each other also for the cation exchange capacity (CEC), whose values were particularly high in the soils falling in the Pachino district and in the territory of Scicli. The cation exchange capacity (CEC) is a critical and dynamic component of soil chemical systems. It is considered an indicator of soil fertility, as it represents the total amount of exchangeable cations that the soil particles can retain on their surface in plant-available form (38 and references therein).The positively charged ions (cations), such as Na, K, Mg, Ca, Mn, Cu, Zn and Fe, are typically adsorbed and held on the negatively charges present on the surfaces of clay minerals and organic matter of soils by electrostatic forces and this allows exchanges with other positively charged particles in the surrounding soil water. The CEC values are influenced by pH and soil texture, as well as by the type of clay and the organic matter content; in detail, they are typically higher in soils with a high organic matter and clay content and under alkaline pH conditions38,39.

On the basis of these premises, it is reasonable to assume that the higher content of Ca, Zn and Sr elements found in tomato samples coming from farms sited in Pachino, Ispica and Scicli is due to the higher CEC and CO values characterizing the soil samples from these geographical areas, that increase the availability of elements in the soil. In this regard, it is known that a trace element will be accumulated in the plant according to a sigmoid-type function as its concentration in the soil is increased40. As for the tomato samples harvested in Mt. Etna, the content of some elements found in them, such as Rb, could be instead related to volcanic soil. In fact, as reported in literature, large amounts of Mn, Co, Ni, Pb, Rb, Zn, As, Cd, Ti and Se were reported in volcanic soils and in the groundwater system around the Mt. Etna; some of these elements, in particular the most volatile elements, derive from emission of gases and magmatic degassing, while others are constituents of hot magma and magmatic rocks41,42,43. The correlations between the elemental composition of tomatoes and their geographical origin were also highlighted by overlapping the sampling sites on the pedological map of Sicily reported by31 (Fig. 7).

Figure 7
figure 7

On the left, sampling sites (yellow stars) are overlapped on the pedological map from31; on the right, PCA results obtained from the full sample-set measurements (already shown in Fig. 4). In the biplot, the samples are plotted with the same color code used to indicate the pedological zones of provenance: fuchsia for ET1, ET2 samples (zone n. 32 in the map); red for SC1, SC2, SC3, SC4, D1, D2, L1, L2, M1, C1 samples (zone n. 40); orange for B1, B2, P1, P2 samples (zone n. 41); beige for AC1, AC2, V1, V2 samples (zone n. 44). Map reproduces, with appropriate modifications, the Soil Map of Italy reported in31.

As shown, it was possible to attribute the provenance of the tomato samples to four different pedological zones (Fig. 7, left side) which correspond to the four clusters revealed by PCA on the XRF spectra (Fig. 7, right side). To better visualize the correlation between the clustering obtained by PCA and the surveyed tomato growing areas, the vectors corresponding to samples were marked by using the same color legend present in the map.

Once again the overall chemical composition of fruit reflects the geochemical composition of the soil, as reported in literature25,26,27.

Plant collection

This experimental research does not involve plant species at risk of extinction. Tomato samples for this study were kindly provided by farms’ owners, without any payment and formal request for the collection of plant material.

Ethics statement

The collection and use of any plant materials in this study are carried out in accordance with EU and Italian guidelines and regulations.

Conclusions

The XRF measurements and analysis carried out on tomatoes grown in different PGI and non-PGI sites confirmed the results achieved through the previous feasibility study, demonstrating that XRF analytical technique is a reliable tool to authenticate products based on their geographical origin. The measured XRF spectroscopic pattern can be associated to features of the tomato growing areas connected to soil composition, to company management and to microclimatic conditions in the greenhouses. The PCA, corroborated by DA, evidenced the presence of characterizing elements such as Cl, K, Ca, Fe, Br, Cu, Zn, Rb and Sr in all the analyzed samples, albeit at different concentrations. In particular, Rb characterizes the samples collected in the volcanic soils, whereas Ca, Zn and Sr can be considered as chemical markers of tomatoes from Scicli, Pachino and Ispica. The results confirm the strong relationship between the quality of agri-food products and their territory of origin, highlighting, on the other hand, the complexity of the system under study (plant-man-environment). Like a complex system, the correlation between food quality and territory of origin can be sometime unpredictable, as it can be affected by exogenic events or by more invasive practices altering the nutritional composition of the fruit, compromising the natural equilibrium between plant and environment. Such unforeseeable events, generating “outliers” samples (well treated by the present multivariate approach), also make it difficult to authenticate products, as evidenced by our results. The XRF technique exhibits high reliability in detecting the chemical elements present in the tomato samples regardless of the instrumental conditions and the type of sample analyzed (pulp with and without skin). The presence of the skin made it possible to obtain a better discrimination of the samples, due to the greater presence in it of some trace elements, such as Ca and Sr, characterizing the tomato fruit composition. According to this finding, including all the parts of fruit in the analysis leads to a better characterization, due to the inclusion of a larger number of in-trace elements.

The elemental signature, thanks to which we were able to uniquely associate the tomato samples to their territory of origin, was mainly highlighted by the analysis of the full data-sets of spectra including the background signal. The spectral analysis carried out as a whole, minimizing the filtering related to the identification of the chemical elements, allowed to better reveal the clustering within a non-homogeneous set of samples, thanks to the inclusion of a more reliable and complete spectrometric information, enriched by the contribution of microelements present in negligible concentration (often removed by background subtraction). The possibility of discriminating fruit and vegetables on the basis of their elemental profiles through rapid and non-destructive analysis techniques, such as the XRF technique, has very important implications in the agri-food sector, which result in large-scale applications of XRF spectrometry aimed at controlling the food quality, preventing food counterfeiting. Moreover, the use of the full data-sets of spectra, including the background, simplify the analysis protocol, making information easily accessible by people not specialized in quantitative XRF analysis, as it allows to bypass the critical procedures related to the background subtraction leading to the extraction of the element yields. Finally, these results corroborate the application of the XRF measurements directly on-the-field, bypassing the sample preparation procedure and the quantitative analysis of the spectra. At present, we have carried out some preliminary measurements on fresh tomato fruit, not dried, which give solid perspectives for a future use of this technique in all the stages of the food chain (production, processing and marketing), supporting the traceability system. In fact, the spectra obtained from freshly picked tomato fruits contained the same characterizing and trace elements identified in the dried “Pulp + Skin” samples. Further analyses are in progress. In the future, we will extend the analysis on cherry tomato samples produced in other agricultural areas of Sicily, as initial step towards the implementation of a database to be used for a fast and non destructive on-the-field fruit identification.