Skip to Content
MineralsMinerals
  • Article
  • Open Access

25 November 2026

37 Pages

High-Resolution Mineralogical Mapping of Heterogeneous Carbonate Reservoirs: An Automated µ-EDXRF-GMM Workflow Applied to the Jandaíra Formation (Potiguar Basin, Brazil)

,
,
,
,
,
and
1
University of Brasilia, Institute of Geosciences, Graduate Program in Geology Brasília 70910-900, Brazil
2
Centro de Tecnologia Mineral (CETEM), Rio de Janeiro 21941-908, Brazil
3
Petrobras, Rio de Janeiro 20035-900, Brazil
4
Faculdade de Ciências e Tecnologia, Federal University of Goiás, Aparecida de Goiânia 74971-451, Brazil

Abstract

The characterisation of heterogeneous carbonate reservoirs is often constrained by sub-millimetre mineralogical variability arising from depositional and diagenetic processes. Conventional techniques, such as bulk XRD and automated SEM-EDS, are limited by slow throughput or small analytical areas. This study introduces an automated workflow that integrates µ-EDXRF elemental mapping with unsupervised machine learning to classify and quantify minerals in thin and thick sections from the hybrid siliciclastic–carbonate succession of the Jandaíra Formation (Potiguar Basin, NE Brazil). The elemental maps were variance-stabilised using a square-root transformation and reduced by principal component analysis (PCA), with minerals assigned probabilistically via a Gaussian Mixture Model (GMM). Comparison with XRD/Rietveld data for 17 mapped sections yielded a pooled RMSE of 3.3 wt.% (95% confidence interval: 2.6–3.9 wt.%) and a concordance correlation coefficient of 0.991; five sections mapped after calibration produced 3.9 wt.% (2.5–4.7 wt.%). The workflow resolved a Mixed Carbonate–Siliciclastic Facies (MCSF) containing 22–45 wt.% detrital minerals (quartz, K-feldspar, and kaolinite, using XRD) and an overlying Carbonate-Dominated Facies (CDF) with less than 2 wt.% quartz, dominated by fabric-destructive dolomite and sparry calcite cements. Moran’s I indicated spatially coherent domains of minor and detrital phases, while the Shannon entropy of the GMM posteriors revealed higher uncertainty between minerals in the MCSF. This workflow provides an automated approach for analysing spatial heterogeneity and mapping areas of interest in carbonate reservoirs.

1. Introduction

Carbonate rocks host a significant proportion of the world’s oil and gas accumulations [1]. Their heterogeneity develops across scales from basin to pore as a result of diagenesis [1,2,3,4]. Consequently, porosity and permeability in carbonates display greater variability than in sandstones, and reservoir models developed for siliciclastic rocks are only partially applicable to carbonates [4,5]. In mixed carbonate–siliciclastic successions, detrital grains and carbonate constituents occur in varying proportions from bed to laminar scale [6,7,8,9]. The spatial distribution of these constituents influences diagenetic pathways and pore networks [8]; however, quantification at the scale of individual grains and cement remains uncommon.
Bulk X-ray diffraction (XRD) with the Rietveld method provides quantitative phase abundances [10,11], but it requires powdered samples and eliminates spatial relationships among grains, cements, and pores. Automated mineralogical analysis based on scanning electron microscopy with energy-dispersive spectrometry (SEM-EDS), including QEMSCAN [12], MLA [13], AMICS, or TIMA, enables phase mapping at micrometre resolution. However, its classification in these systems depends on phase libraries or training spectra, and phases with variable composition, such as solid solutions, are frequently misclassified unless the library is adapted for each sample set [14,15].
Micro-energy-dispersive X-ray fluorescence (µ-EDXRF) enables mapping major and minor elements across centimetre-scale areas of polished sections under low vacuum conditions [16]. Elemental maps have traditionally been employed for modal analysis [17]. Recent studies have converted µ-EDXRF maps of thick sections from Li granite into modal mineralogy using element masks, with results compared to normative proportions derived from whole-rock chemistry [16]. Additionally, neural networks trained on paired µ-EDXRF and micro-XRD data have classified synchrotron µ-EDXRF maps of shales spanning a few millimetres [18].
Unsupervised clustering methods, such as hierarchical clustering, k-means, and Gaussian mixture models (GMM), eliminate the need for a phase library; the number of GMM components can be selected using the Bayesian information criterion. These approaches have been applied to µ-EDXRF maps of secondary raw materials to delineate compositional domains [19]. However, these studies did not convert the resulting classes into mineral abundances [19], and they evaluated agreement with bulk analyses qualitatively or by proportionality [16,18] rather than using quantitative metrics. The conversion process is challenging because pixels at phase boundaries are difficult to assign [17], and the signal recorded in a pixel may combine emissions from multiple phases within the excitation volume [20].
Hard-clustering methods such as k-means assign each pixel to a single class. In contrast, Gaussian mixture models (GMM) provide the posterior probability that each pixel belongs to each component [21] and have been used to decompose the mixed X-ray spectra of SEM-EDS spectral maps [20]. However, when the operator selects the number of classes and assigns mineral labels, others cannot reproduce the results, and comparisons with bulk analyses depend on these choices.
To our knowledge, no spatially resolved µ-EDXRF-based mineral quantification of mixed carbonate–siliciclastic rocks has been reported that is free from operator input and validated against XRD and whole-rock XRF with an error metric and its uncertainty. Two issues are specific to these rocks: dolomite and calcite are differentiated based on their Mg/Ca ratio (using the weak Mg Kα line), and fine detrital quartz can coexist with carbonate in the same pixel. It is also unclear whether 30 µm thin sections are required or whether thicker polished sections give the same result.
The Jandaíra Formation (Turonian–Campanian), Potiguar Basin, northeastern Brazil, reaches up to 600 m in thickness and is well exposed in the western part of the basin [22]. Its outcrops have been studied as analogues of fractured and karstified carbonate reservoirs [23,24]; this study considers mineralogy and geochemical characterisation. At the Roncador site, a 24 m thick mixed carbonate–siliciclastic succession was studied (Section 2), in which changes in relative sea level, climate and tectonics are expected to modify the balance between siliciclastic supply and carbonate production [8].
This study aims to (i) quantify the mineral composition and spatial distribution of 17 thin and thick section configurations with a fixed µ-EDXRF–PCA–GMM workflow, in which the number of components is selected with the Bayesian information criterion and the labelling rules are set before any comparison with reference data; (ii) evaluate the agreement of the resulting abundances with XRD (Rietveld method) and with whole-rock chemistry (XRF), including a test in which the calibration is made on half of the configurations and applied to the other half, and a comparison between thin and thick sections; and (iii) describe the vertical change in mineralogy between the facies associations and what it indicates about depositional conditions and early diagenesis. Two hypotheses were tested: (1) a probabilistic classification of µ-EDXRF maps, with fixed rules and objective model-order selection, reproduces bulk XRD mineralogy while resolving the spatial distribution of the phases; and (2) partitioning pixels that contain both quartz and carbonate between the two minerals reduces the error with respect to assigning each pixel to a single phase.

2. Geological Settings

The Potiguar Basin is on the Equatorial Atlantic Margin of NE Brazil and consists of both onshore and offshore portions [25,26]. The onshore portion corresponds to an aborted Neocomian rift, and the basin became a transform-dominated continental margin during the rifting and opening of the Equatorial Atlantic Ocean [23,25]. After the early Albian breakup unconformity (~110 Ma), the drift stage was characterised by a major transgressive–regressive cycle: a transgressive phase from the early Albian to the early Campanian, which culminated in the deposition of the Jandaíra Formation, and a regressive phase from the late Campanian to the Holocene [23,26,27].
The Jandaíra Formation (Turonian–Campanian) comprises marine carbonates deposited on a tide-dominated carbonate ramp. Its thickness varies from several tens of metres in the western basin to approximately 600 m [23,26]. The stratigraphic succession is composed of shallowing-upward cycles grouped into transgressive and highstand system tracts, forming three depositional sequences (SEQ-1 to SEQ-3) bounded by regional unconformities [22,23,24]. The study area is in the western basin, within the Apodi River valley, where the Jandaíra Formation is well exposed (Figure 1b,c). The crystalline basement borders the basin to the south, east, and west [26], and is directly overlain by alluvial-fan and fluvial sandstones of the Açu Formation along the outcrop belt [28]. Basement highs acted as sources of siliciclastic detritus during intervals of increased fluvial or deltaic influence [29,30].
In the Felipe Guerra area, two depositional sequences are separated by a regional subaerial unconformity (SB-1) [24]. The lower sequence (SEQ-1) consists of dolomitic peritidal deposits, including dolomitic mudstones, bindstones, and fenestral carbonates, organised in shallowing-upward cycles. These deposits exhibit pronounced early dolomitization and subaerial exposure features such as mudcracks and fenestral porosity [24]. The upper sequence (SEQ-2) comprises calcite-cemented subtidal deposits, primarily bioclastic and peloidal grainstones and packstones, which were deposited in high-energy sand–shoal and lagoonal environments [22,23,24].
Within this study, three sampling transects were delineated on the UAV orthomosaic: A–A’ and C–C’, oriented NW–SE, and B–B’, oriented SW–NE. These transects represent sampling traverses in map view rather than stratigraphic cross-sections. Due to the sub-horizontal bedding, the stratigraphic position of each sample was determined by its elevation in the stratigraphic log. The sampled segments were laterally correlated to construct a 24 m composite section, which was subdivided a posteriori into lower, middle, and upper intervals based on the vertical variation in siliciclastic proxies (SiO2, Al2O3 and TiO2) in whole-rock XRF. Transect A–A’ corresponds to the lower interval (MCSF), while transect B–B’ covers the middle interval and the base of the upper interval (CDF01–CDF05), and transect C–C’ the rest of the upper interval (CDF06–CDF08).
The succession transitions upward from a lower interval characterised by siliciclastic input to a carbonate-dominated middle interval, with the uppermost facies exhibiting localised diagenetic overprint. According to the regional sequence-stratigraphic log, the Roncador section is part of SEQ-1, which consists of dolomitic peritidal deposits formed during a late regressive phase and is bounded at the top by a regional subaerial unconformity (SB-1) [24]. The vertical arrangement at Roncador is analogous to the peritidal cycles described in the Felipe Guerra area, where siliciclastic-bearing dolomudstones are present at the base of shallowing-upward cycles, and early dolomitization and exposure features become more prominent toward the cycle tops [24]. No subtidal facies of SEQ-2 occur above 24 m at the outcrop.
Lower Interval (0–8.1 m): This interval comprises sandy dolomudstones to dolomitic boundstones of the Mixed Carbonate–Siliciclastic Facies (MCSF), containing detrital quartz, K-feldspar and kaolinite (22–45 wt.%, XRD). Samples from this interval include MCSF01 (~0.2 m), MCSF02 (~0.6 m), MCSF03 (~1.5 m), MCSF04a/b (~2.6 m), MCSF05 (~3.8 m), MCSF06 (~5.2 m), MCSF07 (~5.9 m), and MCSF08 (~8.0 m).
Middle Interval (8.1–18.1 m): This interval is marked by a sharp reduction in terrigenous input (less than 2 wt.% quartz) and predominance of dolomitized mudstones and wackestone of the Carbonate-Dominated Facies (CDF). Samples from this interval include CDF01 (~8.4 m), CDF02 (~13.0 m), CDF03 (~13.7 m), and CDF04 (~15.8 m).
Upper Interval (18.1–24.0 m): This interval exhibits greater facies heterogeneity and a pronounced diagenetic overprint, including dolostones, dolocretes, and tufa/limestones. Samples from this interval are CDF05 (~18.2 m), CDF06 (~22.0 m), CDF07 (~23.2 m), and CDF08 (~23.9 m). This binary subdivision reflects the primary mineralogical contrast in the dataset and does not indicate that the upper interval is depositionally equivalent to the middle carbonate interval.
The Jandaíra Formation has undergone a complex diagenetic history, including pervasive dolomitization of peritidal deposits and extensive calcite cementation of the subtidal deposits, which reduced primary porosity [24,31]. During Miocene to Quaternary uplift and exhumation, the regional stress field produced the gentle, NE-trending Apodi fold by inverting an extensional fault and reactivating pre-existing fractures, veins, and stylolites [23,32]. These structures acted as conduits for meteoric water, leading to intense epigenic karstification concentrated along fracture corridors in the fold hinge and below regional subaerial unconformities [23,24,33]. Karstification generated caves, enlarged fractures, and vuggy porosity, resulting in a secondary pore system that controls reservoir-scale permeability in the carbonate succession [23,24].
Figure 1. Location and geological setting of the Roncador outcrop (Potiguar Basin, NE Brazil). (a) Location of Rio Grande do Norte (RN) in Brazil. (b) Geological map of RN [34] showing the area of (c) (black box); the red dot marks the Roncador outcrop. (c) Geological map of the study area (Apodi sheet SB.24-X-C-VI, 1:100,000 [35]); the star marks the Roncador outcrop in the Jandaíra Formation (K2j). Shaded relief from TOPODATA [36]; cartographic base from IBGE [37]. Geographic coordinates, SIRGAS 2000 datum.

3. Materials and Methods

3.1. Description of the Sample and Its Geological Setting

A total of 59 regional rock samples were collected from the Roncador outcrop to cover the 24 m thick stratigraphic section (Figure 2d). Field sampling occurred in two stages: an initial campaign using a geological hammer yielded 38 hand samples, followed by a second campaign using a portable field core drill (plugger) to extract 21 cylindrical field plugs (3.8 cm in diameter) from hard, unweathered outcrop faces (Figure 3). Bedding surfaces, fractures, karst features, and sedimentary structures were documented in the field.
Figure 2. Field sampling framework at the Roncador outcrop. (a) Cliff top along traverse C–C′, upper interval, where CDF06–CDF08 were collected. (b) Cliff along traverse B–B′ (middle interval and base of the upper interval); the white dashed line marks the limit between the middle and upper intervals (18.13 m). CDF01–CDF05 were collected on this cliff. (c) Stepped exposure of centimetre-thick ledges along traverse A–A′ (lower interval), where MCSF01, MCSF02, MCSF03, MCSF04a/b, MCSF05, MCSF06, MCSF07 and MCSF08 were collected. (d) Simplified log of the 24 m studied section, showing the heights of the 17 µ-EDXRF-mapped configurations (red) and the other samples analysed by XRD (black ticks), plus quartz content from XRD (Rietveld). The dashed line marks the 7 wt.% quartz cutoff used to separate the two facies associations, CDF (carbonate-dominated) and MCSF (mixed carbonate–siliciclastic), which are defined by bulk mineralogy (Section 3.1). (e) UAV orthomosaic showing traverses A–A′, B–B′ and C–C′ and the extent of (f). (f) Positions of the 17 µ-EDXRF-mapped configurations on the orthomosaic (UTM zone 24S, SIRGAS 2000). MCSF samples (ochre) cluster on the stepped ledges, and CDF samples (blue) are along the cliff. CDF02, CDF03, CDF05, and CDF06 are positioned by interpolating their logged heights. MCSF04a and MCSF04b are a thick and a thin section (300 and 30 µm) of the same sample.
Figure 3. Representative macroscopic sample morphology and lithological textures of field-drilled core plugs from the Jandaíra Formation. The drill cores (3.8 cm in diameter) illustrate the main lithofacies and diagenetic features across the section: fine-grained laminated dolostones and other carbonates, sandy dolostones, dolocretes containing secondary dissolution cavities with crystalline calcite and quartz infills, and highly porous vuggy limestones. (a) Fine-grained, laminated dolostone with a vug lined by drusy crystals. (b) Sandy dolostone with a patch of white crystals (pencil tip); the plug is broken along a bedding plane. (c) Dolocrete with a secondary dissolution cavity lined by crystals. (d) Highly porous, vuggy limestone composed almost entirely of calcite. (e) Light grey, faintly laminated, fine-grained carbonate crossed by a fracture. (f) Fine-grained, finely laminated carbonate with an oblique fracture and a crystal-filled cavity near the base.
Field sampling spanned distinct geomorphological features across the exposure: the upper interval (Figure 2a), the middle interval, which represents the main vertical cliff face (Figure 2b), and the lower interval, characterised by centimetre-scale bedding (Figure 2c).
All 59 samples were integrated into a unified analytical collection and subjected to petrographic screening, whole-rock XRF, and bulk quantitative XRD using the Rietveld method. The field plugs were acquired using an outcrop sampling technique to recover intact, unweathered rock material and were processed identically to hand samples (i.e., sectioned for petrographic thin/thick sections and powdered matching offcuts for XRD) rather than for plug-scale petrophysical flow testing.
Sixteen of these samples were selected, covering the range of composition and texture observed in the section, for µ-EDXRF mapping (Figure 2d,f). One of them (MCSF04) was prepared as both a thick and a thin section, yielding 17 mapped configurations: eight CDF and nine MCSF. Five MCSF configurations (MCSF01, MCSF02, MCSF03, MCSF06 and MCSF08) were not used to calibrate the reference intensities and form the independent test (Section 3.7). For each configuration, one part of the sample was prepared as a thin (30 µm) or thick (300 µm) section. The matching offcut was analysed by XRD/Rietveld method and whole-rock XRF.
Based on bulk XRF and XRD/Rietveld mineralogy, the mapped samples were assigned to two facies associations, defined here as groups of facies with a similar bulk mineralogy: (i) Carbonate-Dominated Facies (CDF), of the middle and upper intervals, with whole-rock SiO2 below 7.1 wt.%, detrital quartz below 2 wt.% and dolomite and calcite as dominant phases; and (ii) Mixed Carbonate–Siliciclastic Facies (MCSF), of the lower interval, with whole-rock SiO2 above 15.3 wt.% and 18–42 wt.% quartz alongside K-feldspar, Al-phyllosilicate, and carbonate contents.
This binary classification was adopted because it reflects the principal mineralogical contrast in the dataset and is necessary for evaluating the µ-EDXRF-GMM workflow. Although diagenetically distinct, samples from the upper interval (CDF05–CDF08) share the same dominant carbonate mineralogy as the CDF and were grouped accordingly for comparison with XRD. In mixed systems, the diagenetic evolution of a rock is determined by the proportions and types of its siliciclastic and carbonate grains [8].

3.2. X-Ray Diffraction and Rietveld Refinement

Bulk-rock mineralogy was determined by powder XRD at the Regional Centre for Technological Development and Innovation (Centro Regional para o Desenvolvimento Tecnológico e Inovação, CRTI), Goiânia, Brazil. Before analysis, 3 g of each sample was micronised in a McCrone Micronising Mill (Retsch GmbH, Haan, Germany) as a suspension in 15 mL of deionised water for 10 min, dried at 60 °C, and loaded into backloading sample holders to minimise preferred orientation. Data were collected on a Bruker D8 Discover diffractometer (Bruker AXS GmbH, Karlsruhe, Germany) in Bragg–Brentano (θ–2θ) geometry, using Cu Kα1 radiation (λ = 1.5406 Å; 40 kV, 40 mA) selected by a Johansson monochromator and a one-dimensional LynxEye detector (Bruker AXS GmbH, Karlsruhe, Germany), from 7 to 100° 2θ with a step size of 0.01° and a counting time of 1 s per step.
The mineral phases were identified using Diffrac.EVA® 4.2 software (Bruker AXS GmbH, Karlsruhe, Germany) with the ICDD PDF-2 database (International Centre for Diffraction Data, Newtown Square, PA, USA). Quantitative phase analysis was performed using the Rietveld method [10,11] in Diffrac.TOPAS® 5.0 software (Bruker AXS GmbH, Karlsruhe, Germany). The starting crystal structures were used from files supplied by Bruker. A March–Dollase preferred-orientation correction, with (104) as the preferred-orientation plane, was applied to the carbonate phases where required. Refinement quality was assessed from the expected residual (Rexp), the weighted-profile residual (Rwp), the profile residual (Rp), and the goodness of fit (GOF = Rwp/Rexp), which are reported for all samples in Table S1 (Supplementary Materials).

3.3. X-Ray Fluorescence

Bulk-rock major-element compositions were determined by X-ray fluorescence (XRF) at the CRTI. The samples were calcined at 1000 °C for 2 h, and loss on ignition (LOI) was determined from mass loss. The calcined powders were then fused with lithium tetraborate (Li2B4O7) in platinum crucibles at a sample-to-flux ratio of 1:9 (1 g sample to 9 g flux). The fused beads were analysed on a Bruker S8 Tiger wavelength-dispersive spectrometer (WDS) (Bruker AXS GmbH, Karlsruhe, Germany) equipped with a Rh-anode tube and calibrated with rock reference materials. Major elements were reported as oxides (SiO2, TiO2, Al2O3, Fe2O3 as total iron, MnO, MgO, CaO, Na2O, K2O, P2O5 and SO3) together with LOI, in wt.%. The analytical totals ranged from 99.25 to 101.07 wt.%, and the analyses are presented in Table S10.

3.4. Electron Microprobe, SEM and Cathodoluminescence

Dolomite was analysed by wavelength-dispersive spectrometry (WDS) on a JEOL JXA-8230 electron microprobe (EPMA) (JEOL Ltd., Tokyo, Japan) at the CRTI, equipped with five WDS spectrometers (LDE1, LDE2, TAP, PET and LIF crystals), on sections carbon-coated in a JEOL JEE-420 vacuum evaporator (JEOL Ltd., Tokyo, Japan). Point analyses were performed at 15 kV and 10 nA, with a beam diameter of 5–10 µm and counting times of 20–60 s per element; the standards are listed with the analyses in the Supplementary Materials. The CaCO3 content of dolomite was calculated as 100·Ca/(Ca + Mg + Fe + Mn + Sr) (molar), and analyses with MgO ≥ 5 wt.% were treated as dolomite. SEM cathodoluminescence images (panchromatic; 10 kV, 5 nA, dwell time of 550 µs per pixel) were acquired on a Tescan Amber-X (TESCAN GROUP, a.s., Brno, Czech Republic) field-emission scanning electron microscope with a Delmic SPARC (Delmic B.V., Delft, Netherlands) cathodoluminescence system at the CRTI. Backscattered-electron (BSE) mosaics (15 kV, 3 nA, 320× per image) and energy-dispersive spectra of fine grains (SEM-EDS; 20 kV, high vacuum, carbon-coated section) were obtained at CETEM on a Zeiss Sigma 300 VP field-emission scanning electron microscope (Carl Zeiss Microscopy GmbH, Oberkochen, Germany) with a Bruker Quantax 400 EDS system (two detectors) (Bruker Nano GmbH, Berlin, Germany). Optical cathodoluminescence images were obtained with a CITL cold-cathode system (Cambridge Image Technology Ltd., Cambridge, UK) coupled to a Zeiss Axio Imager M2m reflected-light microscope (Carl Zeiss Microscopy GmbH, Oberkochen, Germany), with a spectrometer for the emitted light, at the Museu Nacional, Universidade Federal do Rio de Janeiro (UFRJ).

3.5. µ-EDXRF Mapping

Elemental maps were acquired at the Centre for Mineral Technology (Centro de Tecnologia Mineral, CETEM), Rio de Janeiro, Brazil, with a Bruker M4 Tornado Plus micro-energy dispersive X-ray fluorescence spectrometer (Bruker Nano GmbH, Berlin, Germany) equipped with a Rh-anode tube operated at 50 kV and 600 µA. The polychromatic tube radiation (Rh characteristic lines and bremsstrahlung) was focused by polycapillary optics onto a spot with a nominal width of 20 µm at the sample surface at an incidence angle of 51° to the sample plane (about 39° from the surface normal). The fluorescence signal was collected by two Bruker Nano Analytics VH50LE silicon drift detectors (Bruker Nano GmbH, Berlin, Germany) (60 mm2 active area each, SLEW windows), placed on opposite sides of the sample at azimuths of 90° and 270° with a take-off angle of 51° to the sample plane under a chamber pressure of 2 mbar. The maps were acquired over polished thin (30 µm) or thick (300 µm) sections with a step size of 25 µm, a single frame, and a dwell time of 14 or 17 milliseconds per pixel (Table S2). The maps comprised (0.82–1.99) × 106 pixels and 515–1243 mm2 per configuration.
The intensities of the Kα lines of Mg, Al, Si, P, K, Ca, Ti, Mn and Fe were exported from the raw hyperspectral data in Esprit 2.5 software (Bruker Nano GmbH, Berlin, Germany) as raw counts in the energy window of each line, without background subtraction, peak deconvolution or quantification, and exported as one text file per element, each containing a two-dimensional array of counts (rows × columns) with one value per pixel. We estimated the information depth of each analytical line with the xraylib library (version 4.3) [38], using the Kα1 line energies and the total mass attenuation coefficients of dolomite, calcite, and quartz obtained with its compound parser. Assuming a homogeneous, semi-infinite matrix in which the fluorescence is generated uniformly with depth, the fraction of the detected signal that originates below a depth t is exp(−μfρt/sinψ), where μf is the mass attenuation coefficient of the matrix at the energy of the fluorescence line, ρ is its density and ψ is the take-off angle (51°). This expression includes only the attenuation of the fluorescence on its way out of the sample. The attenuation of the incident beam, which reduces the fluorescence generated at depth, is neglected, so the calculated contributions from depth are upper bounds. The resulting information depths are given in Table S4a and the attenuation coefficients and model parameters in Table S4b. Detection limits per pixel were estimated from single-pixel spectra as three times the square root of the background counts in a mineral matrix devoid of the element of interest. These values were then converted to wt.% using the measured counts and the ideal stoichiometry of the host mineral (Table S11).

3.6. Automated Multivariate Classification Workflow

The elemental maps were classified using a workflow that combines principal component analysis (PCA), a Gaussian mixture model (GMM), and rule-based mineral labelling (Figure 4). All workflow parameters were fixed (Table 1 and Table S3) before comparing the classification with the XRD and XRF data, except for the majority rule for the hard assignment of quartz and carbonate components, which was added after the five additional maps were inspected and does not affect the mixed-pixel quantification (Section 5.2). They were applied identically to every sample, so no step depended on operator decisions. The workflow was implemented in Python 3.13.14 with scikit-learn 1.9.1 [39], NumPy 2.5.4 [40], SciPy 1.18.1 [41], and pandas 3.0.6 [42]; a hash of the parameter set was stored with every result to ensure all samples were processed with the same configuration.
Figure 4. µ-EDXRF–PCA–GMM mineral classification workflow: (1) integration of the elemental maps; (2) square-root transformation and z-score standardisation; (3) PCA retaining ≥95% of the variance; (4) selection of the number of components from the BIC curve; (5) GMM clustering; (6) rule-based mineral labelling; (7) dolomite sub-domains; (8) reconstruction of the mineral maps, followed by validation against XRD and bulk XRF. k*, number of components selected by the BIC; MAP, maximum a posteriori; q, estimated quartz fraction; REF, reference intensities; LUT, look-up table; Ilm, ilmenite; Kfs, K-feldspar; Ms, muscovite; Kln, kaolinite; Qz, quartz; Dol, dolomite; Cal, calcite; Al-phyl., Al-phyllosilicate; cal., calibration set; indep., independent test.
Table 1. Labelling rules (Step 6) and dolomite sub-domains (Step 7). The rules are tested in the order listed; element ratios are count ratios; q, estimated quartz fraction (Section 3.7). The other workflow parameters are listed in Table S3.
The GMM was chosen because it is a probabilistic (soft) clustering method. Each pixel receives a posterior probability of belonging to every component rather than a single deterministic label. This property suits µ-EDXRF data, where the beam’s excitation volume mixes signals from adjacent phases at grain boundaries and in fine intergrowths [17]. Deterministic algorithms such as k-means or hierarchical clustering impose sharp boundaries in these situations [21,43], whereas the GMM posteriors quantify the uncertainty of each assignment. The workflow comprises the following steps.
Step 1: Data integration. The nine elemental maps for each sample were combined into a single matrix with one row per pixel and one column per element (N pixels × 9 elements).
Step 2: Variance stabilisation and standardisation. A square-root transformation was applied to the counts, which approximately stabilises the variance of Poisson-distributed data and reduces the leverage of high-intensity pixels [44]. Each transformed channel was then standardised to zero mean and unit variance (z-score), so that elements with low count rates (e.g., Mg and Al) and high-count rates (e.g., Ca) contribute equally to the PCA:
z ij = I ij − I j ¯ s j
where zij is the standardised value of element j in pixel i, Iij is the intensity (counts) of element j in pixel i, and the mean (indicated by the overbar) and the standard deviation sj of I ij are computed over all pixels of the map.
Step 3: Dimensionality reduction. PCA was performed on the standardised matrix and retained the smallest number of principal components (PCs) that accounted for at least 95% of the cumulative variance [45,46]. The GMM was fitted with diagonal covariance matrices, which reduces the number of covariance parameters per component from d(d + 1)/2 to d, where d is the number of retained PCs, and prevents singular covariance matrices during expectation–maximisation (EM) [21,47]. Although the PCs are uncorrelated over the whole map, they may remain correlated within individual components; the effect of this simplification was therefore tested by refitting the final model with full covariance matrices (Section 3.7).
Step 4: Selection of the number of components. GMMs with k = 1 to 40 components were fitted to a random subset of 100,000 pixels of each map (two EM initialisations per k), and, instead of the Akaike information criterion [48], the Bayesian information criterion (BIC) [49], which penalises the number of parameters more strongly, was computed for each k:
BIC k = − 2 ln   L ^ k + p k ln   n
where L ^ k is the maximised likelihood, pk is the number of free parameters, and n is the number of pixels in the subset. Because the BIC of µ-EDXRF maps decreases slowly even for large k, due to the very large number of observations, its absolute minimum does not identify a meaningful model order. The number of components was therefore defined as the smallest k that achieves 95% of the total BIC reduction between k = 1 and k = 40:
k * = min { k : B 1 − B k B 1 − B 40 ≥ 0.95 }
where Bk is the running minimum of the BIC up to k, B1 is the running minimum at k = 1, and B40 is the running minimum at k = 40. The selection uses only elemental maps; XRD and XRF data are not used, keeping the subsequent validation independent of model order.
Step 5: Probabilistic clustering. A GMM with k* components (diagonal covariance, regularisation of 1 × 10−5 added to the diagonal, convergence tolerance of 10−3 on the change in the log-likelihood lower bound, maximum of 500 EM iterations, five initialisations, random seed 42) was fitted to a random subset of 300,000 pixels and then applied to all pixels of the map. Each pixel was assigned to the component with the highest posterior probability.
Step 6: Rule-based mineral labelling. Each GMM component was labelled as a mineral phase using a fixed sequence of rules applied to its mean elemental intensities (Table 1). For each component, the mean raw intensity of each element, in counts per pixel, was divided by its reference intensity, that is, the intensity of the element in the phase in which it dominates. The resulting values were rescaled to sum to one (normalised fractions, c). The standardised values of Step 2 were used only for the PCA and the GMM. Because the rules use normalised fractions and count ratios, a factor common to all elements of a map, such as a different dwell time, does not affect them. Differences between maps in the low-energy lines are not removed in this way and are discussed in Section 5.1. The reference intensities were not set manually: because the GMM fit and k* do not depend on them, all maps were fitted first, and the reference intensity of each element was defined as the largest mean intensity of that element among the GMM components (≥0.01% of the map area) of the calibration maps, i.e., the intensity of the component most enriched in that element, without any mineral label. The calibration set comprised the twelve configurations mapped first; the five configurations mapped afterwards were labelled with these reference intensities and were not used to derive them.
In the hard-assignment map, each quartz or carbonate component was attributed to the phase that dominates its estimated quartz fraction q (Section 3.7): quartz when q ≥ 0.5 and carbonate otherwise. This prevents components with a weak Si signal, such as the rims of Fe–Ti oxide grains and pores, from being labelled as quartz. Where the glass slide was exposed over a large area, the exposed region was outlined on the map and excluded as a preparation defect (MCSF03, 4.5% of the mapped area).
For the elements hosted by minor phases (Si, Al, K, Fe, Ti and P), the calibration was accepted only if the reference intensity was at least eight times the median intensity of the element in the calibration maps, which verifies that the host phase is represented in the calibration set (Ca and Mg, hosted by the carbonate matrix, were not subject to this criterion). Components with a total normalised signal below 25% of the map median were assigned the porosity label. The remaining components were tested, in this order, for titanium phases (cTi ≥ 0.25; ilmenite if cFe ≥ 0.15, otherwise titanium oxides), apatite (cP ≥ 0.25) and iron oxides (cFe ≥ 0.50). Components in which cSi + cAl + cK exceeded cCa + cMg were classified as K-feldspar (cK ≥ 0.20 and K/Al count ratio ≥ 2.5), muscovite (cAl ≥ 0.20 and K/Al ≥ 0.5), kaolinite (cAl ≥ 0.20 and K/Al < 0.5) or, otherwise, quartz.
Carbonate components were classified as dolomite when the Mg/Ca count ratio was ≥0.010 and as calcite otherwise. Because accessory minerals occupy few pixels and rarely form a component of their own, the titanium, phosphate, and iron rules were also applied to each pixel, and pixels that satisfied them were reassigned to the corresponding accessory phase. Contiguous regions (eight-connected) of pixels with the porosity label of 1000 pixels (0.625 mm2) or more were labelled as preparation defects (exposed glass or resin) and, together with porosity, were excluded from all quantitative comparisons.
Step 7: Dolomite sub-domains. Dolomite components were further subdivided according to their enrichment relative to the baseline dolomite of the same sample, defined as the area-weighted median of each element/Ca ratio over all dolomite components (Table 1): dolomite + Fe-rich II (mixed; Fe/Ca ≥ 5 × baseline), dolomite + quartz (mixed; estimated quartz fraction ≥ 0.15, Section 3.7), dolomite + Fe-rich I (mixed; Fe/Ca ≥ 2.2 × baseline), dolomite + Al-phyllosilicate (mixed; Al/Ca ≥ 3 × baseline), dolomite + P-rich (P/Ca ≥ 3 × baseline) and dolomite + Mn-rich (Mn/Ca ≥ 3 × baseline), tested in this order. No component met the P-rich criterion in any map. The sub-domains describe compositional variability within dolomite and do not change the mineral quantification.
Step 8: Map reconstruction. Mineral and sub-domain maps were rendered directly from the pixel assignments using a defined colour table [50], verified to remain distinguishable under simulated deuteranopia and protanopia. A binary mask of each class and a composite image in which each pixel holds the index of its class were exported, so that the same maps can be reproduced in Fiji (ImageJ 2.16.0/1.54p) by applying the corresponding look-up table.

3.7. Validation and Quantitative Analysis

Mineral abundances. The area fraction of each mineral class was taken as an estimate of its volume fraction, following the stereological principle of Delesse [51], which holds for random planar sections of texturally isotropic rocks and has been applied in previous µ-EDXRF-based modal analyses [16,18]. The volume fractions were then converted into weight per cent using ideal mineral densities (dolomite 2.85, calcite 2.71, quartz 2.65, K-feldspar 2.56, kaolinite 2.60, muscovite 2.83, iron oxides 5.26 (all iron oxides treated as hematite), ilmenite 4.72, titanium oxides 3.90 (treated as anatase) and apatite 3.20 g cm−3). Porosity and preparation defects such as glass were excluded, and the remaining fractions were normalised to 100 wt.%.
Two quantifications were calculated. In the hard-assignment quantification, every pixel of a component was assigned to the mineral of that component. In the mixed-pixel quantification, the area of each carbonate and quartz component was partitioned between quartz and carbonate according to its estimated quartz fraction:
q = I Si I Si , ref ×   s
where q is limited to the interval [0–1], ISi is the mean Si intensity of the component, ISi,ref is the reference Si intensity of quartz and s is a sample-specific intensity scale obtained from the area-weighted median Mg intensity of the dominant carbonate (or from its Ca intensity when calcite is dominant, which occurs only in CDF05). The Mg was chosen for this scaling because, like Si, its low-energy Kα line originates only from the uppermost micrometres of the section (90% of the signal from < 10 µm; Table S4a), whereas the Ca Kα signal integrates over a larger depth. The same scale is applied to all carbonate components of a map, including calcite in dolomite-dominated maps. Like the reference intensities, q uses no XRD data: the reference Si intensity comes from the calibration maps, and s is measured on each map.
Agreement with XRD. The GMM-derived abundances were compared with the Rietveld method results by the root mean square error (RMSE):
RMSE = 1 n ∑ i = 1 n ( y i − y ˆ i ) 2
where n is the number of mineral phases detected by at least one of the two methods in the sample, yi is the abundance (wt.%) of phase i determined by Rietveld method refinement; and y ^ i is the corresponding GMM-derived abundance. A phase detected by only one method was assigned 0 wt.% in the other, regardless of its abundance. The RMSE was calculated for both quantifications, over all phases and over the major phases only (≥1 wt.% in at least one method), because the latter excludes minor phases that the map detects but XRD does not quantify. For the facies associations and the whole dataset, a pooled RMSE was calculated from the sums of the squared differences and of the number of phases over all samples:
RMSE pooled = ∑ j ∑ i ( y ^ ij −   y ij ) 2 ∑ j   n j  
where nj is the number of phases compared in sample j. Because it weights each phase–sample pair equally, the pooled RMSE was used as the primary agreement metric; we also report the arithmetic mean of the sample-level RMSE values for comparison with previous studies.
Agreement metrics and uncertainty. In addition to the sample-level RMSE, the agreement between the GMM and XRD abundances of all samples was described by the mean bias of each phase (GMM–XRD), the mean absolute error, the slope and intercept of the least-squares regression of the GMM abundances on the XRD abundances, and Lin’s concordance correlation coefficient (CCC) [52]. Because the abundances of both methods sum to 100 wt.%, the bias averaged over all phases is zero by construction and was therefore reported per phase. The phases in one sample are not independent observations, so p-values were not computed; instead, 95% confidence intervals for the slope, intercept, and CCC were obtained by bootstrap resampling (2000 replicates, percentile intervals), in which all phases of a resampled sample enter together [53].
Agreement with bulk chemistry. As a second reference, independent of the XRD, the mineral abundances were converted into oxide concentrations using ideal stoichiometries (dolomite CaMg(CO3)2; calcite CaCO3; quartz SiO2; K-feldspar KAlSi3O8; kaolinite Al2Si2O5(OH)4; muscovite KAl2(AlSi3O10)(OH)2; hematite Fe2O3; ilmenite FeTiO3, with Fe expressed as Fe2O3; titanium oxides TiO2; apatite Ca5(PO4)3F). Volatiles (CO2 and structural H2O) were summed as LOI. The oxide compositions calculated from the GMM and XRD were compared with the bulk XRF analyses (SiO2, TiO2, Al2O3, Fe2O3, MgO, CaO, K2O, P2O5, and LOI) using the same agreement metrics. Because the calculated oxides and the XRF analyses both sum to approximately 100 wt.%, bias was reported per oxide.
Sensitivity to the number of components. For every k from 1 to 40 of the BIC curves (Step 4), the subset of pixels was labelled with the same rules, and the mineral abundances and the RMSE were recalculated. The sensitivity of the result to the model order was summarised, for k between 10 and 40, by the largest standard deviation of a mineral abundance and by the range of the RMSE.
Stability. The final model (random seed 42) was refitted with the selected k* and five additional random seeds (1–5), which change both the subset of pixels used for fitting and the EM initialisation. The range of each mineral abundance and the RMSE across these five fits was used as a measure of the classification’s stochastic stability.
Sensitivity to the labelling rules. To test whether agreement with XRD depends on fine-tuning the rules in Step 6, we changed each threshold and each reference intensity by −20% and +20%, one at a time, and relabelled the same GMM fit. The largest change in mineral abundance and the range of the RMSE over these 36 perturbations were reported for each sample.
Held-out test. To verify that the calibrated reference intensities are not specific to the samples used to derive them, the 17 configurations were divided into two by facies association (at least one sample of each association in each half, and the two preparations of MCSF04 always kept together). The reference intensities were calibrated on one half and used to label the other, with the same GMM fits. Distinct random divisions were drawn until twenty of them satisfied the coverage criterion in both halves; divisions in which one half lacked the host phase of an element were discarded.
Independent test. The five configurations mapped after the calibration (MCSF01, MCSF02, MCSF03, MCSF06 and MCSF08) were labelled with the reference intensities derived from the first twelve configurations, and their pooled RMSE was compared with that of the calibration set. As a sensitivity test, the reference intensities were also derived from all 17 configurations, and the labelling was repeated with the same GMM fits.
Covariance structure. The final model was also refitted with full covariance matrices (same k*, same pixels, and same initialisations), and the BIC on the fitting pixels, the number of free parameters, and the mineral abundances of the two models were compared.
Dolomite–calcite separability. Because the Mg Kα signal is strongly attenuated at 2 mbar, the separation between dolomite and calcite was verified on the per-pixel log10(Mg/Ca) count ratios of the pixels assigned to each mineral. The overlap of the two distributions was quantified with Ashman’s D (D > 2 indicates a clean separation) [54], together with the fraction of pixels of each mineral on the opposite side of the Mg/Ca threshold (Table 1).
Spatial coherence. The global Moran’s I [55] was calculated for the binary map of each component (1 for pixels of the component, 0 otherwise) with rook contiguity (four neighbours) and binary weights:
I   =   N W   ⋅   ∑ i ∑ j w ij ( x i −   x ¯ )   ( x j − x ¯ ) ∑ i ( x i − x ¯ ) 2
where N is the number of pixels, wij is the spatial weight between pixels i and j (wij = 1 for adjacent pixels and 0 otherwise), W is the sum of the weights, xi and xj are the binary values of the component at pixels i and j, respectively, and x ¯ is the mean value of x across the map. The z-scores were computed with the variance under the randomisation assumption [56], which is appropriate for a binary variable. Because each map contains (0.8–2.0) × 106 pixels, practically any departure from spatial randomness is statistically significant (p < 0.001). Spatial coherence was therefore judged from the magnitude of I, and components with I ≥ 0.30 were considered spatially coherent. We reported the fraction of the mapped area occupied by coherent components for each sample. We also visually compared the mineral maps with photomicrographs of the same areas to verify that bioclast outlines, blocky calcite cement, and detrital-grain alignment along laminations were preserved.
Classification uncertainty. For each pixel, the Shannon entropy [57] of the GMM posterior probabilities was calculated as:
H = −   ∑ c = 1 k p c ln   p c
where pc is the probability of component c. H is expressed in nats (natural logarithm); it is zero when the assignment is certain and reaches lnk when all components are equally likely. It was computed per pixel and summarised as the mean and standard deviation for each map. The entropy was also calculated after summing the posterior probabilities of components assigned to the same mineral, which measures uncertainty between minerals rather than between components within the same mineral. Entropy maps were used to locate transitional zones and sub-pixel mixtures, and the fraction of pixels with a maximum posterior probability below 0.5 was reported.
Compositional affinity. To evaluate whether the dolomite sub-domains are compositionally distinct or statistical subdivisions of the same phase, the centroid of each class (dolomite sub-domains and the other mineral phases) was calculated as the mean of the standardised square-root intensities (Step 2) of the nine elements over its pixels. The distance between centroids was measured as the correlation distance (1 − r), and the centroids were grouped by hierarchical clustering with average linkage (UPGMA) [58]. The fidelity of each dendrogram was assessed with the cophenetic correlation coefficient [59]. The distance matrices of all samples were combined into a mean matrix (mean ± sample standard deviation of each pair of classes over the samples in which both occur). A supplementary dendrogram of the individual GMM components, based on the Euclidean distance between their centroids, was used to identify components that differ only by noise.

4. Results

4.1. Geochemical Characterisation by µ-EDXRF

In the CDF maps, Ca and Mg were the dominant elements, with Mg distribution closely following that of Ca; in SEM images, these samples consist of fabric-destructive dolomite (Figure S1a–c). Sub-millimetre to millimetre patches exhibiting higher Ca and lower Mg intensities were observed in moldic pores, vugs and microfractures. Fe and Mn were present at low intensities, with localised enrichments along dissolution seams and microstylolites. In the MCSF maps, Si, Al, K, Fe, and Ti intensities varied over short distances. Si, Al, and K co-occurred in millimetre-thick parallel laminae and in burrow fills, while Fe and Ti were associated with the Al- and K-bearing phases. In BSE images, quartz and dolomite have nearly the same mean atomic number and cannot be distinguished by contrast; the quartz grains of MCSF07 were therefore co-localised by registering the µ-EDXRF Si map onto the BSE mosaic (Figure S1d).

4.2. Automated Mineral Classification (µ-EDXRF-GMM)

4.2.1. Number of Components and Model Fit

Between six and nine principal components were required to retain at least 95% of the variance (95.4%–100%; Table S2). The Bayesian Information Criterion (BIC) selected k* = 19–25 components for the CDF configurations and k* = 19–31 for the MCSF configurations (Table 2). MCSF05 required the highest number of components (k* = 31). The expectation-maximisation (EM) algorithm converged in all configurations after 10–45 iterations. In MCSF02, MCSF03, MCSF04b, MCSF05, MCSF07, and MCSF08, the BIC continued to decrease at k = 40 components (Figure S2). In these maps, k* marks the point of diminishing returns rather than a minimum of the BIC.
Table 2. Agreement between the GMM-derived and the XRD/Rietveld phase abundances for each configuration. k*, number of GMM components selected by the BIC criterion; n, number of phases compared; ΣD2, sum of squared differences (wt.%2); RMSE, root-mean-square error (wt.%). Mixed, mixed-pixel partition; hard, hard assignment. Pooled RMSE = √(ΣΣD2/Σn), with the 95% confidence interval from bootstrap resampling of configurations (2000 replicates). MCSF04a and MCSF04b are the same sample prepared as a thick and a thin section and were compared with the same XRD analysis. In the hard assignment, quartz in CDF06 is absent from both the XRD analysis and the map; the hard-assignment RMSE values of CDF06 and of the pooled rows that include it are therefore computed with one phase fewer than the n shown. a Configurations mapped after the calibration of the reference intensities and not used to derive them (independent test); the calibration set comprises the other twelve configurations.
Dolomite was represented by 6–22 components per map, calcite by zero to four components (21 in CDF05, which is calcite-dominated), and quartz by up to ten. Each accessory phase was typically represented by a single component. Each component was assigned to a mineral using the fixed rules in Table 1 based on mean intensities normalised by the calibrated reference intensities. Neither XRD results nor visual inspection of the maps was used at this stage. Because the rules operate on component means, the number of components influences map segmentation but does not affect the assigned mineral classes.
Phase abundances exhibited minimal variation with changes in k. Between k = 10 and k = 40, the standard deviation of any phase abundance did not exceed 3.2 wt.%, and the RMSE for each configuration varied by 0.1–3.9 wt.% (Table S5). The widest ranges were observed in MCSF01 (2.38–6.29 wt.%) and MCSF08 (3.65–5.85 wt.%). Refitting the final model with five additional random seeds altered any phase abundance by no more than 5.1 wt.% (dolomite in MCSF01, with a complementary change in calcite). The largest change in quartz abundance was 1.6 wt.%. Across seeds, RMSE varied by less than 0.5 wt.%, except in CDF07 (3.03–4.10 wt.%), MCSF01 (3.07–5.66 wt.%), MCSF02 (0.80–1.51 wt.%), and MCSF08 (4.05–4.59 wt.%); in CDF07 and MCSF01, part of the carbonate area alternated between dolomite and calcite.

4.2.2. GMM Mineral Maps

The MCSF maps of mineral classes and dolomite sub-domains are presented in Figure 5, and those of the CDF maps in Figure 6. Porosity and preparation defects occupy up to 1.0% and 4.5% of the mapped area, respectively (Table S2), and were excluded prior to quantification. The reported porosity values represent lower bounds, as pores smaller than a pixel and pixels at pore margins were assigned to the surrounding mineral components. The maps, entropy maps, dendrograms and sensitivity plots of each configuration are given in Data S1.
Figure 5. Maps of mineral classes and dolomite sub-domains for the MCSF configurations, which include samples MCSF01, MCSF02, MCSF03, MCSF04a/b (prepared as a thick section 300 µm, for MCSF04a, and a thin section 30 µm, for MCSF04b), MCSF05, MCSF06, MCSF07, and MCSF08. Dolomite sub-domains, as defined in Table 1, are grouped with dolomite for quantification. Colours correspond to the legend; the scale bar shown in one panel applies to all panels, which are at the same scale. Each panel covers an 18 × 18 mm area of the respective map. All quantitative results are based on the full maps (Table S2; full maps in Figure S3). Al-phyl, Al-phyllosilicate. (a) MCSF01; (b) MCSF02; (c) MCSF03; (d) MCSF04a (thick section); (e) MCSF04b (thin section); (f) MCSF05; (g) MCSF06; (h) MCSF07; (i) MCSF08.
Figure 6. Maps of mineral classes and dolomite sub-domains for the CDF configurations, which include samples CDF01, CDF02, CDF03, CDF04, CDF05, CDF06, CDF07, and CDF08. Dolomite sub-domains, as defined in Table 1, are grouped with dolomite for quantification. Colours correspond to the legend; the scale bar shown in one panel applies to all panels, which are at the same scale. Each panel covers an 18 × 18 mm area of the respective map. All quantitative results are based on the full maps (Table S2; full maps in Figure S3). Al-phyl, Al-phyllosilicate. (a) CDF01; (b) CDF02; (c) CDF03; (d) CDF04; (e) CDF05; (f) CDF06; (g) CDF07; (h) CDF08.
The MCSF maps comprise dolomite (41.7–71.6 wt.%), quartz (20.5–38.3 wt.%), calcite (0.0–22.4 wt.%), K-feldspar (0.8–2.9 wt.%), muscovite (0.0–1.9 wt.%), and kaolinite (0.0–0.8 wt.%). Iron and titanium oxides, ilmenite, and apatite each account for less than 1 wt.%. XRD analysis detected no muscovite in the MCSF configurations. The 1.3–1.9 wt.% assigned to muscovite in MCSF04a, MCSF04b, MCSF05, and MCSF06 coincided with an underestimation of K-feldspar (0.8–1.5 vs. 2.1–3.0 wt.%), and the combined content of the two K-bearing phases (2.0–3.4 wt.%) closely matched the XRD K-feldspar content (2.1–3.0 wt.%).
The CDF maps (Figure 6) are dominated by dolomite (82.1–97.5 wt.%) in seven configurations and by calcite (93.3 wt.%) in CDF05. In the maps, quartz accounts for 1.0–9.9 wt.% (mixed-pixel partition), whereas XRD gives less than 2 wt.% in all CDF configurations. In CDF02, CDF03, and CDF04, the mixed-pixel partition assigned 9.3–9.9 wt.% to quartz, whereas XRD measured 1.7–1.9 wt.%. In these maps, 9.2%–9.9% of the area corresponds to carbonate components with an elevated Si signal (dolomite + quartz (mixed)). Hard assignment attributes this area entirely to dolomite, resulting in 0 wt.% quartz in these three maps. XRD detected 4.9–6.2 wt.% of silicates in these samples (quartz, K-feldspar, kaolinite and muscovite), so part of this Si signal is consistent with fine-grained silicates that are not resolved in the maps and are assigned to quartz by the partition. XRD detected both dolomite and calcite in 16 configurations. The GMM produced separate dolomite and calcite components in 13 of these. In CDF06 (0.75 wt.% calcite by XRD), MCSF03 (7.10 wt.%), and MCSF04a (5.43 wt.%), no calcite component was formed, and the calcite was included within the dolomite components. In the 13 configurations with both components, Ashman’s D ranged from 2.2 to 5.5, and 0.3%–7.6% of the dolomite pixels fell below the Mg/Ca threshold. In CDF01, CDF03, CDF07, MCSF02, MCSF06, and MCSF08, 15%–43% of the pixels assigned to calcite were above the threshold. These pixels belong to calcite components whose mean Mg/Ca lies below but close to the threshold (0.005–0.010 per map; threshold 0.010), so part of their pixel distribution extends into the dolomite field.

4.3. Quantitative Validation by XRD

Area fractions were converted to weight per cent using the ideal mineral densities in Section 3.7, excluding porosity and preparation defects, and then compared with the XRD/Rietveld abundances (Table 2 and Table S6, Figure 7).
Figure 7. GMM-derived versus XRD/Rietveld phase abundances (wt.%) for all phases of the 17 configurations (145 phase–configuration pairs): (a) hard assignment; (b) mixed-pixel partition. The dashed line is the 1:1 line. RMSE, pooled root-mean-square error (wt.%); slope and intercept of the least-squares regression of the GMM on the XRD abundances; CCC, Lin’s concordance correlation coefficient. Both panels use the same pairs; Table 2 excludes from the hard assignment the one pair that is zero in both the XRD analysis and the hard-assignment map (quartz in CDF06), which gives a pooled RMSE of 3.98 instead of 3.97 wt.%.
Agreement with XRD. Using the mixed-pixel partition, the pooled RMSE between the GMM-derived and XRD/Rietveld abundances was 3.26 wt.% (95% CI: 2.56–3.88 wt.%; n = 145 phase–configuration pairs). By facies association, the pooled RMSE was 3.10 wt.% for CDF and 3.38 wt.% for MCSF (Table 2). The mean configuration RMSE was 2.89 wt.%. The least-squares regression line had a slope of 1.028 (1.008–1.052) and an intercept of −0.33 wt.% (−0.60 to −0.09), with Lin’s concordance correlation coefficient of 0.991 (0.986–0.995) (Figure 7b). Hard assignment produced a pooled RMSE of 3.97 wt.% (Figure 7a), primarily because quartz present in carbonate components with q < 0.5 was classified as carbonate (quartz bias −2.5 wt.%, dolomite bias +7.5 wt.%). In the MCSF, the pooled RMSE was 4.25 wt.% with hard assignment and 3.38 wt.% with partition.
The configuration RMSE ranged from 0.80 wt.% (MCSF02) to 5.57 wt.% (CDF03). In CDF03, dolomite was overestimated (82.1 vs. 73.9 wt.%), and calcite was underestimated (8.6 vs. 21.1 wt.%), consistent with the proportion of calcite pixels exceeding the Mg/Ca threshold (Section 4.2.2). Across the dataset, the mean bias was +3.9 wt.% for dolomite, −4.2 wt.% for calcite, +1.6 wt.% for quartz, −1.2 wt.% for K-feldspar, and −0.8 wt.% for kaolinite. The bias for each accessory phase was less than 0.2 wt.%. When analysis was restricted to major phases (≥1 wt.% in either method), the pooled RMSE was 4.75 wt.%.
Agreement with XRF. Oxide compositions calculated from the GMM abundances reproduced the bulk XRF analyses with a pooled RMSE of 2.20 wt.% (1.54–2.88 wt.%; 153 pairs) and a concordance coefficient of 0.989 (Figure S4). Oxides calculated from the XRD/Rietveld abundances yielded a pooled RMSE of 1.88 wt.% (1.58–2.15 wt.%). Both calculations overestimated MgO (by 2.0 wt.% from the GMM and 1.2 wt.% from XRD) and underestimated CaO (by 3.5 and 2.3 wt.%).
Held-out test. To assess whether the reference intensities depend on the calibration configurations, the 17 configurations were divided into two halves, stratified by facies association. Reference intensities were calibrated on one half and used to classify the other. Across twenty such held-out tests, the pooled RMSE was 4.28 ± 0.30 wt.% (range 3.72–4.64 wt.%): 2.94 ± 0.06 wt.% for CDF and 5.07 ± 0.47 wt.% for MCSF. Two random splits were excluded because one half lacked the host mineral of at least one element.
Independent test. The five configurations not used for calibration yielded a pooled RMSE of 3.87 wt.% (95% CI: 2.47–4.72 wt.%), compared with 2.93 wt.% (2.18–3.68 wt.%) for the twelve calibration configurations (Table 2). When reference intensities were derived from all 17 configurations, the pooled RMSE increased to 4.66 wt.% (3.64–5.52 wt.%): 2.91 wt.% for CDF and 5.64 wt.% for MCSF. In this scenario, the reference intensities of Si, Al, K, and Mg were set using a single map (MCSF08), which exhibited the highest low-energy line intensities in the dataset. The raw intensities of these lines varied between maps by up to a factor of two: the Mg/Ca count ratio of the dolomite components ranged from 0.018 to 0.034, including maps acquired with the same dwell time. The ratio between the Si intensity of the purest quartz component and the Mg intensity of the dolomite in the same map remained nearly constant (19.4–22.7 in eight of the nine MCSF configurations).
Sensitivity to the labelling rules. Each threshold and each reference intensity of Table 1 was adjusted by −20% and +20%, one at a time. In six CDF configurations, the largest change ranged from 0.45 to 2.51 wt.%. In the nine MCSF configurations, the largest change ranged from 2.7 to 4.8 wt.%, mainly due to the Mg reference intensity (seven cases). CDF03 and CDF05 were the most sensitive (8.7 wt.% for the Mg/Ca threshold and 9.3 wt.% for the Al reference intensity), as a large component of each map lies close to a classification boundary (Table S5).
Covariance type. The final models were refitted using full rather than diagonal covariance matrices, with the same k*, pixels, and initialisations. The full models exhibited a lower BIC in all configurations (by 1.4%–55%), as expected due to their greater number of parameters, but did not improve agreement with XRD. Phase abundances changed by at most 4.8 wt.%, and the pooled RMSE was 3.31 wt.% (CDF: 3.20 wt.%; MCSF: 3.38 wt.%), compared with 3.26 wt.% for the diagonal models.
Section thickness. The information depth of the analysed lines in dolomite, calcite and quartz is shown in Figure 8. MCSF04a and MCSF04b are maps of the same sample prepared as a thick (300 µm) and a thin (30 µm) section (Figure 5d,e) and were compared with the same XRD analysis. Their RMSE values were 3.32 and 2.98 wt.% for the thick and thin sections, respectively. When grouped by preparation, the eight 300 µm configurations yielded a pooled RMSE of 3.07 wt.% (configuration RMSE 1.48–5.57 wt.%), and the nine 30 µm configurations yielded 3.41 wt.% (0.80–4.94 wt.%) (Table 2). Excluding CDF03, whose error results from the Mg/Ca overlap of the carbonates (Section 4.2.2), the remaining seven 300 µm configurations yielded 2.44 wt.%.
Figure 8. Information depth (λ·sin ψ, ψ = 51°) as a function of photon energy for dolomite (2.85 g cm−3), calcite (2.71 g cm−3) and quartz (2.65 g cm−3), calculated with xraylib 4.3 total mass attenuation coefficients. Squares mark the Kα1 energies of the analysed elements; the dashed line marks the thin-section thickness (30 µm). Both axes are logarithmic.

4.4. Spatial Coherence and Classification Uncertainty

Moran’s I of components ranged from 0.26 to 0.39 per map in the CDF and from 0.35 to 0.61 in the MCSF (Table 3). Spatially coherent components (I ≥ 0.30) covered 10–24% of the mapped area in the CDF and 23%–100% in the MCSF. The highest I values were observed for the detrital and accessory phases: K-feldspar (median 0.81; 0.54–0.83), apatite and iron oxides (median 0.72), and quartz (median 0.51); preparation defects (glass) reached 0.95–0.99. The dolomite components exhibited lower values (median 0.24; range 0.01–0.85).
Table 3. Spatial coherence and classification uncertainty of the GMM classification. Moran’s I was computed for the binary map of each component (rook contiguity); coherent components have I ≥ 0.30, and the coherent area is the fraction of the map they cover. H, Shannon entropy of the posterior probabilities (mean ± standard deviation over the pixels of each map), between components (maximum lnk*) and between minerals (posteriors summed by mineral). pmax < 0.5, fraction of pixels whose largest posterior probability is below 0.5.
In every dolomite-bearing map (all except CDF05), dolomite was divided into 6–22 components interleaved in space, subdividing the intensity distribution of a single phase rather than delimiting separate domains. As each map contains about 106 pixels (0.8–2.0 × 106), all components except one apatite component of CDF08 (5 × 10−5% of area) were significant at p < 0.001, so the p-value did not discriminate between components, and coherence was assessed based on Moran’s I from I ≥ 0.30 (Section 3.7).
The mean Shannon entropy between components ranged from 0.77 to 1.24 nats in CDF and from 0.40 to 0.75 nats in MCSF (maximum lnk* = 2.9–3.4 nats). The fraction of pixels with a maximum posterior probability below 0.5 was 16%–43% in CDF and 5%–17% in MCSF (Table 3). This uncertainty primarily occurs between components representing the same mineral. When the posterior probabilities were summed by mineral, the mean entropy decreased to at most 0.05 nats in the CDF and to 0.08–0.22 nats in the MCSF. The uncertainty between minerals was therefore higher in the mixed facies, where carbonate and siliciclastic grains coexist at the same pixel scale.

4.5. Compositional Affinity of the Mineral Classes

The mean dendrogram of the mineral classes (Figure 9) includes the 14 classes for which the mean distance matrix is complete (Table S7). Its cophenetic correlation coefficient was 0.84, and those of the individual configurations ranged from 0.71 to 0.98 (Table S2). Three pairs of classes exhibit nearly identical element profiles and join at correlation distances of 0.03–0.08: glass and porosity, titanium oxides and ilmenite, and dolomite + Fe-rich II (mixed) and iron oxides. Dolomite + Fe-rich I (mixed) join this last pair at 0.26, and muscovite and K-feldspar join at 0.24. The Fe-rich dolomite sub-domains therefore follow the profile of the iron oxides, which is consistent with pixel-scale mixtures of dolomite with Fe-bearing grains rather than with distinct carbonate phases.
Figure 9. Compositional affinity of the mineral classes. (a) Mean dendrogram (correlation distance, average linkage; cophenetic correlation coefficient 0.84). (b) Mean correlation distance between the class centroids (Table S7), with the rows in the order of the dendrogram leaves; the classes below and to the right of the dashed lines were excluded from the mean dendrogram because at least one of their pairs was not observed (–). Mineral symbols after Warr [60]; Fe-ox, iron oxides; Ti-ox, titanium oxides; Al-phyl, Al-phyllosilicate; Por, porosity; Def, preparation defects (exposed glass slide); Dol + Fe I and Dol + Fe II, dolomite + Fe-rich I and II (mixed).
In the silicate branch, quartz joins glass and porosity at 0.49, consistent with the Si signal of the glass slide, and muscovite and K-feldspar join this group at 0.64. Dolomite + quartz (mixed) joins the silicates at 0.70, and titanium oxides and ilmenite join them at 0.80. The Fe-bearing group (iron oxides and the two Fe-rich sub-domains) merges with the silicate branch at 0.98. In the carbonate branch, calcite and apatite join at 0.52, and dolomite joins this pair at 0.94. The two branches merge at 1.25. The three classes excluded from the mean dendrogram occur in one to four configurations; their closest classes in Table S7 are K-feldspar for dolomite + Al-phyllosilicate (mixed) (0.24), dolomite + Al-phyllosilicate (mixed) for kaolinite (0.37), and porosity for dolomite + Mn-rich (0.64).

5. Discussion

5.1. Agreement with XRD and Sources of Error

The µ-EDXRF-GMM workflow enabled mineralogical mapping of 17 thin and thick sections from the Jandaíra Formation at a 25 µm step, covering 515–1243 mm2 per map. Bulk XRD provides quantitative mineral abundances but removes spatial relationships among phases due to sample powdering. Automated SEM-EDS requires carbon coating, high vacuum, and extended acquisition times, which typically limit the analytical area [14,15]. In contrast, µ-EDXRF mapping covers centimetre-scale areas. It preserves the textural context of each phase, although with lower spatial resolution and limited sensitivity to light elements, as outlined in Section 5.2.
Agreement with XRD was evaluated using the pooled RMSE of the mixed-pixel partition, defined as RMSE = √(ΣΣD2/Σn), where D is the difference between the GMM and XRD/Rietveld abundances for each solid phase present in either method, summed over all phases and configurations. The RMSE was 3.26 wt.% (95% confidence interval: 2.56–3.88 wt.%; n = 145 phase–configuration pairs). The least-squares regression of GMM on XRD abundances yielded a slope of 1.028 (1.008–1.052) and an intercept of −0.33 wt.% (−0.60 to −0.09), with Lin’s concordance correlation coefficient of 0.991 (0.986–0.995). As neither interval includes the 1:1 line (slope 1, intercept 0), a small proportional (approximately 3%) and constant (−0.3 wt.%) bias was present, both smaller than the phase-specific bias. Dolomite was overestimated by 3.9 wt.% and quartz by 1.6 wt.% on average, while calcite, K-feldspar, and kaolinite were underestimated by 4.2, 1.2, and 0.8 wt.%, respectively. The mean bias for each accessory phase was below 0.2 wt.%. All other RMSE values in this study represent sensitivity analyses of this metric, including hard assignment (3.97 wt.%), major phases only (4.75 wt.%), full covariance (3.31 wt.%), and the held-out and independent tests described below.
Because the reference intensities were calibrated using the mapped sections, there is potential for circularity in the agreement. Two tests were performed to address this. In the independent test, five MCSF configurations mapped after calibration (MCSF01, MCSF02, MCSF03, MCSF06, and MCSF08) were classified using the reference intensities from the first twelve configurations. Their pooled RMSE was 3.87 wt.% (95% CI: 2.47–4.72 wt.%), compared to 2.93 wt.% (2.18–3.68 wt.%) for the calibration set; the confidence intervals overlap. In the held-out test, the 17 configurations were divided into two halves stratified by facies association. Reference intensities were calibrated on one half and used to classify the other. Of 22 random splits, 20 were valid; two were excluded because one half lacked the host mineral for at least one element. Across the 20 valid splits, the RMSE was 4.28 ± 0.30 wt.% (3.72–4.64 wt.%): 2.94 ± 0.06 wt.% for the CDF and 5.07 ± 0.47 wt.% for the MCSF. Calibration had minimal effect on the CDF and a greater effect on the MCSF. Calibrating on all 17 configurations gave a pooled RMSE of 4.66 wt.% (CDF 2.91 wt.%, MCSF 5.64 wt.%). In this scenario, the reference intensities for Si, Al, K, and Mg were determined by a single map (MCSF08), which exhibited the highest low-energy line intensities in the dataset. The effect on the maps is illustrated for MCSF03 in Figure S5: with the higher Si reference intensity, part of the quartz grains was labelled as dolomite. These tests do not address the thresholds in Table 1, which were not recalibrated (Section 5.2).
The sensitivity of the MCSF results is attributable to variations in the raw intensities of the low-energy lines, which differed between maps by up to a factor of two. For example, the Mg/Ca count ratio of the dolomite components ranged from 0.018 to 0.034, even among maps acquired with the same dwell time. Within each map, the ratio between the Si intensity of the purest quartz component and the Mg intensity of dolomite remained nearly constant (19.4–22.7 in eight of the nine MCSF configurations), indicating that the variation affects the entire map rather than being a sample property. Calibration based on internal-standard ratios, such as normalising low-energy lines by the Mg intensity of dolomite in each map, could reduce dependence of reference intensities on the calibration set composition. This correction was not implemented here, as it was identified after the independent test. Agreement is further limited by the differing volumes analysed: a map covers 5–12 cm2 of a section surface, with the Mg, Al, Si, and P signals originating from the uppermost 10 µm, whereas the XRD powder represents a much larger sample volume. In heterogeneous rocks, this discrepancy is unavoidable and is expected to introduce scatter around the 1:1 line in both directions. The two sections of MCSF04, compared with the same XRD analysis, differed by less than 1.5 wt.% for every phase but deviated from the XRD values in the same direction, suggesting that part of the difference is systematic rather than due to sampling.
The largest discrepancies can be attributed to specific causes. In CDF03 (configuration RMSE 5.57 wt.%), dolomite was overestimated (82.1 vs. 73.9 wt.%), and calcite underestimated (8.6 vs. 21.1 wt.%). The calcite components in this map exhibit a mean Mg/Ca intensity ratio of 0.010 at the dolomite–calcite threshold, with 43% of pixels assigned to calcite lying above this threshold. Adjusting this threshold by ±20% altered the abundances by up to 8.7 wt.% (Table S5). Thus, the error arises from overlap between the two carbonates in Mg/Ca rather than from the GMM fit. In MCSF04a, XRD measured 5.43 wt.% calcite, but the GMM identified no calcite component and assigned 0 wt.%; in MCSF04b, the thin section of the same sample, it assigned 1.40 wt.%. A similar pattern occurred in MCSF03 (7.10 wt.% calcite by XRD). In these sections, variance is dominated by Si, Al, and K, and the Mg intensity is low (100 counts vs. 1351 counts for Si), allowing a minor calcite population to be merged with dolomite components (Section 5.2). Quartz displays the opposite trend in the CDF: the partition assigned 9.3–9.9 wt.% quartz in CDF02, CDF03 and CDF04, whereas XRD measured 1.7–1.9 wt.%. This discrepancy arises because the quartz fraction of a carbonate component is estimated from its Si intensity, and Si present in other phases, such as clay minerals or fine silica, is counted as quartz.
Published µ-EDXRF-based quantifications have not been evaluated using an error metric against bulk XRD, so the pooled RMSE of 3.26 wt.% reported here cannot be directly compared with previous studies. Kahou et al. [16] converted 20 µm µ-EDXRF maps of thick sections of a Li granite into modal mineralogy using element masks, then converted volume fractions into weight fractions with mineral densities and compared these with normative proportions calculated from whole-rock chemistry via regressions forced through the origin, which assess proportionality rather than error. Kim et al. [18] classified synchrotron µ-EDXRF maps of shales (2–5 µm per pixel, a few millimetres across) using a neural network trained on paired µ-EDXRF and µXRD data and qualitatively compared the resulting weight fractions with powder XRD. In both studies, the phases of interest differ in several major elements. In the Roncador samples, the dominant phases, dolomite and calcite, differ only in Mg/Ca, and the Mg signal is weak (Section 5.2), making carbonate rocks a less favourable case for µ-EDXRF classification than granite. Kim et al. [18] also observed that assigning a single mineral to each pixel underestimated minor phases, consistent with the higher error of the hard assignment in this study (3.97 vs. 3.26 wt.%).
The oxide balance serves as an independent check apart from XRD. Oxides calculated from the GMM abundances agreed with bulk XRF, yielding a pooled RMSE of 2.20 wt.% (95% CI: 1.54–2.88 wt.%; 153 oxide–configuration pairs), compared to 1.88 wt.% (1.58–2.15 wt.%) for oxides calculated from XRD/Rietveld abundances. Both calculations overestimated MgO (by 2.0 and 1.2 wt.%) and underestimated CaO (by 3.5 and 2.3 wt.%). Since the same offset affects both, it originates not from the µ-EDXRF classification but from the assumption of ideal CaMg(CO3)2 dolomite. This is consistent with a Ca excess in the dolomite lattice, a common feature in sedimentary dolomite [61,62]. Electron microprobe (EPMA) point analyses of dolomite in seven mapped samples (Table S8) yielded 50.0–57.9 mol% CaCO3 (mean 54.0 ± 2.4 mol%; n = 197). Dolomite was near-stoichiometric in CDF06 and CDF08 (mean 50.8 and 51.8 mol% CaCO3), intermediate in CDF07 (53.0 mol%) and non-stoichiometric in CDF01, CDF03, MCSF04 and MCSF05 (55.3–56.7 mol%). The d104 spacing of the bulk XRD patterns, converted into CaCO3 content with the calibration of Lumsden [63] (mol% CaCO3 = 333.33 d104 − 911.99, with d104 in Å), gave the same distinction: non-stoichiometric (55.6–56.7 mol% CaCO3) and near-stoichiometric (51.2–53.2 mol%) dolomite in most configurations, but only near-stoichiometric dolomite in CDF06 and CDF08. In CDF07, dolomite crystals exhibited near-stoichiometric cores (52.2 ± 1.6 mol% CaCO3; n = 27) and Ca-rich rims (54.3 ± 1.7 mol%; n = 17), with core and rim positions from the BSE images. This zoning is consistent with the two dolomite 104 reflections of this configuration and with the concentric zoning of the dolomite rhombs in SEM cathodoluminescence (Figure S6a). The mean EPMA composition closely matches the 53.9–56.1 mol% CaCO3 required to offset the mean MgO discrepancy in the XRD and GMM-derived oxides, respectively.

5.2. Methodological Choices and Limitations

Number of components. The number of GMM components represents a modelling decision rather than the actual number of mineral phases. The selection criterion was established prior to analysis: k* is defined as the smallest k that achieves 95% of the BIC reduction between k = 1 and an upper limit of k = 40. This approach identifies the point of diminishing returns, rather than the BIC minimum. In six MCSF configurations (MCSF02, MCSF03, MCSF04b, MCSF05, MCSF07 and MCSF08), the BIC continued to decrease at k = 40, indicating that k* is influenced by this upper limit and may also be affected by the random initialisation of the BIC curve, which was computed once per map. However, phase abundances remained relatively stable in most configurations: between k = 10 and 40, the standard deviation of any phase did not exceed 3.2 wt.% (MCSF01), and the RMSE for each configuration varied by 0.1–3.9 wt.% (Table S5). This stability is anticipated, as each component is labelled independently and a phase such as dolomite is distributed among 6–22 components. The largest variations, observed in MCSF01, occurred where portions of the carbonate area alternated between dolomite and calcite.
Labelling rules. The labelling rules use two types of parameters. The reference intensities were calculated from the maps alone, without the XRD data, and were tested in Section 5.1. The thresholds in Table 1 were set manually on three configurations used to develop the protocol (CDF01, CDF04 and MCSF07), which together contain the main phases of the data set (dolomite, calcite, quartz, K-feldspar, muscovite and kaolinite by XRD). They were placed within the intervals between the compositions of the pure minerals observed in these configurations and were fixed before the remaining configurations were processed.
For example, the Mg/Ca threshold (0.010) was positioned between the count ratios of calcite (approximately 0.002) and dolomite (approximately 0.033) in these configurations. The origin of each threshold and the range of the component means of the 17 configurations around it are given in Table S9. The factors defining the dolomite sub-domains were adjusted based on visual inspection of the maps and do not influence quantification and were subsequently fixed in the protocol. An additional rule was introduced after reviewing five further maps: the hard assignment of a quartz or carbonate component follows the majority phase of its quartz fraction (Section 3.6), as the rims of Fe–Ti oxide grains were labelled as quartz in these maps. This rule alters the hard-assignment maps but does not affect mixed-pixel quantification. Since these rules were established with knowledge of the relevant sections, a residual circularity persists that is not addressed by held-out or independent tests. The ±20% test constrains its impact. Adjusting a single threshold or reference intensity at a time altered the largest phase abundance by 0.45–2.51 wt.% in six CDF configurations and by 2.7–4.8 wt.% in nine MCSF configurations, with the Mg reference intensity being the most sensitive parameter in seven cases. CDF03 and CDF05 were the most sensitive configurations (8.7 wt.% for the Mg/Ca threshold; 9.3 wt.% for the Al reference intensity), as a significant component of each map is near a classification boundary (Table S5). These thresholds should be validated on independent sections before applying the protocol to other formations.
Covariance model. The final models were refitted using full covariance matrices instead of diagonal ones, maintaining the same k*, pixels, and initialisations. This adjustment reduced the BIC in all configurations (by 1.4%–55%), as anticipated due to the larger number of parameters. The full models altered phase abundances by no more than 4.8 wt.% and resulted in a pooled RMSE of 3.31 wt.%, compared to 3.26 wt.% with diagonal matrices. Therefore, the diagonal model, which uses fewer parameters per component, was adequate for this data.
From area to mass. The conversion of area fractions into weight fractions is based on the principle of Delesse [51], with weighting by mineral densities. This method is an approximation rather than an equivalence, as it assumes the mapped surface accurately represents the rock volume and that grains are randomly oriented relative to the section. The laminated MCSF does not fully satisfy the second assumption, so discrepancies with XRD may arise from section sampling rather than classification. For grouped classes, iron oxides were assumed to be hematite (5.26 g cm−3), and titanium oxides anatase (3.90 g cm−3). Since these classes constitute less than 1 wt.% of each map, the specific mineral choice has minimal impact: replacing anatase with rutile (4.25 g cm−3), or hematite with magnetite (5.18 g cm−3) or goethite (4.27 g cm−3), altered phase abundances by at most 0.12 wt.% and the pooled RMSE by at most 0.002 wt.%.
Light elements and the dolomite–calcite separation. Sodium was not measured, and the Mg, Al, and Si signals originate from the uppermost few micrometres (90% from less than 10 µm; Table S4a) and exhibit low count rates. Dolomite and calcite were distinguished using the Mg/Ca intensity ratio. Ashman’s D [54], which quantifies the separation between two populations, was calculable in 13 configurations (2.2–5.5). In the remaining four, it was not: CDF05 contains no dolomite, and in CDF06, MCSF03, and MCSF04a, no calcite component formed, although XRD detected 0.75, 7.10, and 5.43 wt.% calcite, respectively. Thus, the D values pertain only to maps where separation was successful. In these three maps, the GMM likely merged minor calcite with dolomite components, consistent with the underestimation of calcite in MCSF03 and MCSF04a (Section 5.1). Increasing the light-element count rate, for example by using vacuum or helium flushing, would enhance the separation of carbonates and phyllosilicates. The element maps represent raw counts in each Kα energy window, without background subtraction or peak deconvolution, and therefore include continuum and overlapping lines. As a result, they are proportional to, but not equivalent to, element concentrations. The workflow therefore uses relative patterns rather than absolute concentrations. The PCA and the GMM use the standardised square-root intensities (Steps 2–5), and the labelling rules use raw count ratios and fractions normalised by reference intensities calibrated on the same maps (Step 6).
Phyllosilicates. Muscovite and kaolinite are differentiated only by potassium content, and fine-grained Al-phyllosilicates dispersed within dolomite constitute a mixed sub-domain rather than a distinct mineral class (Table 1). Pixels located at K-feldspar–clay boundaries exhibit intermediate K/Al ratios and may be labelled as muscovite. XRD did not detect muscovite in the MCSF, whereas the maps assigned 1.3–1.9 wt.% to muscovite in MCSF04a, MCSF04b, MCSF05, and MCSF06, and K-feldspar was underestimated (0.8–1.5 vs. 2.1–3.0 wt.%). Therefore, the muscovite identified in the maps should be interpreted as a K-bearing phyllosilicate or as mixed K-feldspar–clay pixels, rather than as a definitive identification. Grouping K-feldspar and muscovite did not reduce the pooled RMSE (3.35 vs. 3.26 wt.%; Table S5), indicating that the issue pertains to phase identification rather than quantification. The rules were not modified to address this.

5.3. Sample Preparation: Thin Versus Thick Polished Sections

Thick polished sections were prepared to assess whether µ-EDXRF mapping requires 30 µm thin sections, which are more time-consuming to produce. In dolomite, the information depths of the Kα lines used range from 1.3 µm for Mg to 30 µm for Fe (Figure 8; Table S4a), which is shallow compared to 300 µm but not to 30 µm. Ninety per cent of the Mg, Al, Si, and P signal originates from the uppermost 10 µm, indicating that the light-element lines sample similar volumes in both preparations. Additionally, 99% of the signal from the most penetrating line, Fe Kα in quartz, is derived from less than approximately 195 µm. A 300 µm section is therefore effectively infinitely thick for all lines used. However, 8% (Ti) to 37% (Fe) of the heavier-line signal in dolomite, and up to 49% for Fe in quartz, originates below 30 µm, from grains beneath the exposed surface in a 300 µm section, and from the resin and glass slide in a 30 µm section. Agreement with XRD does not indicate a systematic thickness effect. The eight 300 µm configurations yielded a pooled RMSE of 3.07 wt.% (configuration RMSE 1.48–5.57 wt.%), while the nine 30 µm configurations yielded 3.41 wt.% (0.80–4.94 wt.%) (Table 2). The two groups are not compositionally comparable: six of the nine thin sections are MCSF, including the five configurations of the independent test, compared to three of the eight thick sections. Excluding CDF03, whose error results from Mg/Ca overlap in the carbonates, the remaining seven 300 µm configurations yielded 2.44 wt.%. In the only paired comparison, MCSF04a (300 µm) and MCSF04b (30 µm) yielded 3.32 and 2.98 wt.%, respectively, a difference smaller than the spread between configurations. These two maps originate from the same sample and were analysed with the same XRD, so they are not independent, and the comparison is based on a single sample. The result is therefore preliminary. The data indicate that a flat, polished surface thicker than approximately 0.2 mm, such as a thick section or a polished slab, is sufficient for µ-EDXRF mineral mapping. Further confirmation with additional paired samples is required.

5.4. Spatial Coherence and Classification Uncertainty

Moran’s I was calculated for the binary map of each GMM component using rook contiguity (four neighbours), binary weights, and variance under randomisation [55,56]. Because each map contains (0.8–2.0) × 106 pixels, coherence was assessed by the value of I, with a threshold of 0.30. The minor and detrital classes form coherent domains: glass (I = 0.95–0.99), K-feldspar (median 0.81), and the medians of porosity (0.76), ilmenite (0.73), apatite and iron oxides (0.72), titanium oxides (0.55), muscovite (0.53), and quartz (0.51). Calcite (median 0.46) and dolomite (0.24; range 0.01–0.85) have lower values. Dolomite is divided into 6–22 components per map, subdividing its intensity distribution and interleaved in space. Its low I results from the GMM partition of a single phase and does not indicate a discontinuous dolomite fabric. For the same reason, components with I ≥ 0.30 cover a larger fraction of the MCSF maps (23%–100%) than of the CDF maps (10%–24%).
The Shannon entropy [57] was calculated per pixel from the GMM posterior probabilities (in nats) and averaged over each map (Table 3). The mean entropy among components was 0.77–1.24 nats in the CDF and 0.40–0.75 nats in the MCSF, both below the theoretical maximum lnk* (2.9–3.4 nats). Additionally, 16%–43% of pixels in the CDF and 5–17% in the MCSF had a maximum posterior probability below 0.5. This uncertainty is primarily between components of the same mineral. When the posterior probabilities were summed by mineral, the entropy decreased to at most 0.05 nats in the CDF and to 0.08–0.22 nats in the MCSF. The uncertainty between minerals is therefore higher in the MCSF, which is consistent with detrital grains smaller than a pixel dispersed in the carbonate matrix. Maps of this entropy delineate areas where mineral boundaries are least reliable and can be used to weight mineral maps for rock typing.
The mean dendrogram of the mineral classes (Figure 9) groups the classes by the similarity of their element profiles, using correlation distance between class centroids and average linkage (UPGMA) [58]. The cophenetic correlation coefficient is 0.84 (0.71–0.98 for the individual configurations) [59]. Proximity in the dendrogram indicates compositional similarity only and does not indicate that the classes formed together or at the same time. Three pairs join at 0.03–0.08 (glass and porosity, titanium oxides and ilmenite, and dolomite + Fe-rich II (mixed) and iron oxides). Dolomite + Fe-rich I (mixed) joins the last pair at 0.26.
The EPMA analyses (Section 5.1; Table S8) do not support a ferroan dolomite. Among 197 dolomite analyses from the seven mapped samples, including bioclasts mapped as dolomite + Fe-rich I and Fe-rich II (mixed) in MCSF05, FeO contents reached at most 0.11 wt.%. The Fe Kα intensity of the Fe-rich I and Fe-rich II components of MCSF05 was approximately 4 to 28 times that of the dolomite components. In this study, the terms Fe-rich I and Fe-rich II denote a relative enrichment in Fe Kα intensity, not a ferroan dolomite. In transmitted light, these dolomitized constituents appear as dark brown to nearly opaque micritic grains, some with brown patches, set in clear dolomite cement with quartz grains. In BSE images of MCSF05, bright grains a few micrometres in size occur along the margin of a dolomitized bioclast. EPMA points were placed in the bioclast and in the adjacent blocky cement (Figure S6b). In SEM cathodoluminescence of the same area, the blocky cement shows fine concentric bands, whereas the microcrystalline bioclast exhibits a weaker, mottled luminescence (Figure S6c). In optical cathodoluminescence of MCSF07, a dolomitized bioclast of the same type showed a dull, homogeneous red luminescence, while the surrounding dolomite cement displayed brighter, concentrically zoned orange-red luminescence (Figure S6d). In SEM cathodoluminescence, the dolomite rhombs of this sample show fine concentric bands (Figure S6e). This contrast is consistent with differences in trace-element composition between the bioclasts and the cement. Bright grains a few micrometres across in BSE images were analysed by SEM-EDS in the thick section of MCSF04 (Figure S7). These grains fill an intercrystalline pore between dolomite crystals; one grain showed Fe and S peaks, consistent with an iron sulphide, probably pyrite, and another showed Fe and O without S, which suggests an Fe oxide or oxyhydroxide (Figure S7d–f). None of the EPMA points was placed on these grains, which are much smaller than the 20 µm µ-EDXRF spot. The Fe-rich I and Fe-rich II sub-domains are therefore consistent with dolomite pixels that include Fe-bearing grains, rather than with two types of dolomite. Fe hosted in grains of this size would also escape both the mineral maps and the XRD, which is consistent with the underestimation of Fe2O3 by the calculated oxides in 16 of the 17 configurations (mean 0.12 compared to 0.53 wt.% in the XRF). The origin of the Fe-rich sub-domains in the CDF configurations was not determined. In MCSF05, the dolomitized bioclast contained 1.1–2.0 wt.% SiO2 (EPMA; Figure S6b), compared to at most 0.33 wt.% in the blocky cement, which is consistent with the dolomite + quartz (mixed) class.
Porosity. The quantification was renormalised to 100% solids, excluding porosity and preparation defects. The porosity class covered at most 1.04% of the mapped area (CDF05; Table S2). This value represents a lower bound because the rules label components rather than pixels. Pores smaller than the 25 µm step, such as those between fine dolomite crystals (<20 µm), and pore-margin pixels, were assigned to the surrounding minerals. In the CDF, sparry calcite fills primary intergranular pores and microfractures, while intercrystalline and moldic pores occur in the dolomite. Integration of the µ-EDXRF-GMM maps with SEM-BSE images or X-ray microtomography (µCT) would enable quantification of these pores.

5.5. Stratigraphic Evolution and Reservoir Implications

The mineral maps show a vertical change in the Jandaíra Formation, from a basal Mixed Carbonate–Siliciclastic Facies association (MCSF), in which quartz, K-feldspar, and kaolinite make up 22–45 wt.% (XRD), to an overlying Carbonate-Dominated Facies association (CDF) with less than 2 wt.% quartz. This change is consistent with reduced continental siliciclastic supply during the transgressive–regressive cycle of the Jandaíra carbonate ramp [27,28]. Other controls could produce the same vertical pattern. They cannot be separated with these data: a rise in relative sea level or accommodation that moved the siliciclastic source landward, an increase in carbonate productivity that diluted the detrital input, and diagenetic redistribution of carbonate during dolomitization. Distinguishing between them requires combining the stratigraphic position of the samples (Section 2 and Section 3.1) with regional data.
The element maps support this evolution (Section 4.1). In the CDF, the close match between the Mg and Ca distributions is consistent with fabric-destructive dolomitization observed in BSE images (Figure S1a–c), and the Ca-rich, Mg-poor patches are consistent with late calcite cements in moldic pores, vugs, and microfractures. The Fe and Mn enrichments along dissolution seams and microstylolites may be related to pressure dissolution, which produces solution seams and stylolites in carbonate successions [64], and to Fe- and Mn-bearing burial fluids, which have been invoked for Fe- and Mn-rich dolomite elsewhere [65].
In the MCSF, the concentration of Si, Al and K in laminae and burrow fills is consistent with episodic siliciclastic inputs. On mixed carbonate–siliciclastic ramps, such inputs have been related to regressive cycles of relative sea level and to nearby emergent areas [66]. The association of Fe and Ti with the Al- and K-bearing phases suggests that Fe and Ti were supplied with fine detrital fractions, as heavy minerals and clay-hosted iron oxides. In mixed tidal-flat successions, facies heterogeneity also results from autogenic tidal processes and not only from relative sea-level change [67].
In carbonate reservoirs, sub-millimetre mineralogical variations are expected to influence porosity and permeability. As this study did not measure petrophysical properties, any link between the mapped mineralogy and flow properties remains a hypothesis that should be tested with porosity and permeability data from the same samples. For the configurations studied, the workflow required only a flat, polished surface, and its mineral and uncertainty maps could support such tests and the screening of thick sections or polished slabs.
These conclusions apply only to the 17 configurations (16 samples) and the dolomite–calcite–quartz–feldspar–clay assemblage studied here. The main limitations are the approximation of the rock volume by a 2D surface, the small number of samples, the dependence of k* on the upper limit of k, the incomplete separation of the phyllosilicates and of minor calcite, the omission of pores smaller than about 20 µm, and the absence of permeability data.

6. Conclusions

An automated workflow integrating µ-EDXRF mapping, principal component analysis, and Gaussian mixture modelling (GMM) mapped the mineralogy of 17 thin and thick sections from 16 samples of the Jandaíra Formation (515–1243 mm2 per map) at a 25 µm step.
With the mixed-pixel partition, the GMM abundances agreed with bulk XRD/Rietveld data with a pooled RMSE of 3.3 wt.% (95% confidence interval: 2.6–3.9 wt.%; 145 phase–configuration pairs), a slope of 1.03 and a concordance correlation coefficient of 0.991. Five configurations mapped after the calibration of the reference intensities gave 3.9 wt.% (2.5–4.7 wt.%). The RMSE was 4.3 ± 0.3 wt.% (2.9 wt.% in the CDF and 5.1 wt.% in the MCSF) when the reference intensities were calibrated on half of the configurations, and 4.0 wt.% when each pixel was assigned to a single class.
The eight 300 µm polished sections gave a pooled RMSE of 3.1 wt.% (2.4 wt.% without CDF03, whose error results from the Mg/Ca overlap of the carbonates), and the nine 30 µm thin sections gave 3.4 wt.%, six of which are MCSF. The two preparations of MCSF04 gave 3.3 and 3.0 wt.%. Because 99% of the signal of the most penetrating line used comes from less than about 0.2 mm, a polished section thicker than this, such as the 300 µm sections used here, behaves as infinitely thick for all lines. These results suggest that a 30 µm thin section is not required for µ-EDXRF mineral mapping, although this should be confirmed on more paired samples.
The mineral maps show the change from a basal Mixed Carbonate–Siliciclastic Facies association (MCSF; 18–42 wt.% quartz by XRD) to an overlying Carbonate-Dominated Facies association (CDF; less than 2 wt.% quartz by XRD), which is consistent with a decrease in terrigenous supply.
Moran’s I indicated that the detrital and accessory phases form spatially coherent domains (median I = 0.51–0.81), whereas the low values of dolomite (median 0.24) result from the subdivision of a single phase into several GMM components. The uncertainty between minerals, measured by the Shannon entropy of the posterior probabilities, was higher in the MCSF (0.08–0.22 nats) than in the CDF (at most 0.05 nats), which is consistent with detrital grains smaller than the 25 µm pixels.
The main limitations are the low signal of the light elements, which hinders the separation of the phyllosilicates and leads to an overestimation of quartz in the CDF (up to 9.9 wt.% by GMM against less than 2 wt.% by XRD); the variation of the low-energy line intensities between maps, which made the error of the MCSF depend on the calibration set; and the assumption of ideal dolomite in the oxide balance. EPMA and d104 data indicate a Ca-rich dolomite (mean 54.0 mol% CaCO3 by EPMA; Table S8), which is consistent with the overestimation of MgO in the calculated oxides.
The µ-EDXRF-GMM workflow provides an automated, non-destructive method to quantify the mineralogy of mixed carbonate–siliciclastic rocks and their spatial heterogeneity. These conclusions are restricted to the 17 configurations analysed.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/min16121228/s1, Figure S1: Fabric-destructive dolomite in BSE images (a–c) and location of the quartz of MCSF07 on the BSE mosaic (d); Figure S2: BIC curves of the GMM fits for the 17 configurations; Figure S3: Full maps of mineral classes and dolomite sub-domains of the MCSF (a) and CDF (b) configurations; Figure S4: Oxide compositions calculated from the GMM and XRD/Rietveld abundances against bulk XRF; Figure S5: Effect of the calibration set on the maps of MCSF03; Figure S6: Dolomite and dolomitized bioclasts in BSE and cathodoluminescence images; Figure S7: SEM-EDS analysis of the Fe-bearing grains in the thick section of MCSF04; Table S1: Quality indices of the Rietveld refinements; Table S2: Acquisition, model and summary results per configuration; Table S3: Parameters of the classification and validation workflow; Table S4a: Information depth of the µ-EDXRF Kα lines in the main host minerals; Table S4b: Total mass attenuation coefficients (xraylib) and model parameters used to calculate the information depths in Table S4a; Table S5: Robustness of the mixed-pixel quantification per configuration; Table S6: Phase abundances from the GMM classification and from XRD/Rietveld refinement for each configuration; Table S7: Mean correlation distance between the centroids of the mineral classes; Table S8: Electron microprobe point analyses of carbonates and dolomite composition; Table S9: Origin of the classification thresholds of Table 1; Table S10: Bulk-rock major-oxide compositions (XRF) of the mapped samples; Table S11: Detection limits of the mapped elements per pixel, estimated from single-pixel spectra; Data S1: Per-configuration figures (maps of mineral classes, dolomite sub-domains and classification uncertainty, dendrograms and sensitivity to the number of components); Data S2: Raw µ-EDXRF element maps of the 17 configurations and the input tables (sample list, XRD and XRF data) for the processing code (see Data Availability Statement).

Author Contributions

Conceptualization, F.E.A.A., F.G.S., R.N., J.A.B., F.L.B., M.G. and M.M.E.; methodology, F.E.A.A. and R.N.; software, F.E.A.A., R.N. and F.G.S.; validation, F.E.A.A., R.N. and F.G.S.; formal analysis, R.N., F.E.A.A., F.G.S. and J.A.B.; investigation, F.E.A.A., R.N. and F.G.S.; resources, F.E.A.A., R.N. and J.A.B.; data curation, F.G.S., F.E.A.A., M.M.E. and F.L.B.; writing—original draft preparation, F.E.A.A., F.G.S. and R.N.; writing—review and editing, F.E.A.A., R.N., J.A.B., F.G.S., F.L.B. and M.G.; visualization, F.G.S., F.E.A.A., R.N., F.L.B., M.M.E., J.A.B. and M.G.; supervision, F.E.A.A. and R.N.; funding acquisition, R.N., F.E.A.A. and J.A.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—Brasil (CAPES), Finance Code 001; Petrobras, within the CARBLAB project (contract no. 5850.0108736.18.9); and the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq), process no. 311681/2026-3.

Data Availability Statement

The source code used in this study, together with a script that generates a synthetic example dataset, is archived on Zenodo under the MIT licence at https://doi.org/10.5281/zenodo.24138931. The measurement data supporting the results are provided in the Supplementary Materials (Data S2).

Acknowledgments

This study was financed in part by the Coordenação de Aperfeiçoamento de Pessoal de Nível Superior—Brasil (CAPES)—Finance Code 001. R. Neumann acknowledges CNPq for financial support (process no. 311681/2026-3). The authors are grateful to all those who took part in the field campaigns of the CARBLAB project, funded by Petrobras (contract no. 5850.0108736.18.9), whose help was essential for sample collection. We especially thank Marcelo Torres Borges for compiling and processing the GIS and UAV data, and David Willyan P. Gomides and Josimar F. de Lima for the careful preparation of the samples. The XRD, XRF and EPMA analyses were carried out within the CARBLAB project at the Regional Centre for Technological Development and Innovation (Centro Regional para o Desenvolvimento Tecnológico e Inovação—CRTI), Universidade Federal de Goiás (UFG), where the SEM cathodoluminescence images were also obtained. The µ-EDXRF and SEM-EDS analyses were performed at the Multiuser Laboratory of Technological Characterisation (Laboratório Multiusuário de Caracterização Tecnológica—LMCT), Setor de Caracterização Tecnológica (SCT), Centro de Tecnologia Mineral (CETEM/MCTI), which we thank for access to the equipment. Both facilities are registered in the National Platform of Research Infrastructure (PNIPE/MCTI). The optical cathodoluminescence analyses were performed at the Museu Nacional, Universidade Federal do Rio de Janeiro (UFRJ). The authors thank the anonymous reviewers and the academic editor, whose comments improved the final version of this manuscript. During the preparation of this manuscript, the authors used Grammarly Pro to review the text, and Claude Code (Anthropic) to check the Python code for errors before it was applied to the samples and to assist in formatting tables. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

Fábio Luiz Bagni and Marcelle Marques Erthal are employees of Petrobras. The paper reflects the views of the scientists and not the company.

Abbreviations

The following abbreviations are used in this manuscript:
2DTwo-Dimensional
AMICSAdvanced Mineral Identification and Characterization System
BICBayesian Information Criterion
BSEBackscattered Electron Imaging
CCCConcordance Correlation Coefficient
CDFCarbonate-Dominated Facies
CIConfidence Interval
EDSEnergy Dispersive X-ray Spectroscopy
EDXRFEnergy Dispersive X-ray Fluorescence
EMExpectation–Maximisation
EPMAElectron Probe Microanalysis
GMMGaussian Mixture Model
LOILoss on Ignition
MCSFMixed Carbonate–Siliciclastic Facies
MLAMineral Liberation Analyzer
PCAPrincipal Component Analysis
QEMSCANQuantitative Evaluation of Minerals by Scanning Electron Microscopy
RMSERoot-Mean-Square Error
SEMScanning Electron Microscopy
SEM-EDSScanning Electron Microscopy coupled with Energy Dispersive X-ray Spectroscopy
TIMATESCAN Integrated Mineral Analyzer
UAVUnmanned Aerial Vehicle
UPGMAUnweighted Pair Group Method with Arithmetic Mean
WDSWavelength Dispersive Spectroscopy
XRDX-ray Diffraction
XRFX-ray Fluorescence
µCTX-ray Micro-Computed Tomography
µ-EDXRFMicro-Energy-Dispersive X-ray Fluorescence

References

  1. Flügel, E. Microfacies of Carbonate Rocks: Analysis, Interpretation and Application, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2010. [Google Scholar] [CrossRef] [Scilit]
  2. Lucia, F.J. Carbonate Reservoir Characterization: An Integrated Approach, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar] [CrossRef] [Scilit]
  3. Swart, P.K. The geochemistry of carbonate diagenesis: The past, present and future. Sedimentology 2015, 62, 1233–1304. [Google Scholar] [CrossRef] [Scilit]
  4. Ahr, W.M. Geology of Carbonate Reservoirs: The Identification, Description and Characterization of Hydrocarbon Reservoirs in Carbonate Rocks; John Wiley & Sons: Hoboken, NJ, USA, 2008. [Google Scholar] [CrossRef] [Scilit]
  5. Nadeau, P.H.; Ehrenberg, S.N. Sandstone vs. carbonate petroleum reservoirs: A global perspective on porosity-depth and porosity-permeability relationships: Reply. AAPG Bull. 2006, 90, 811–813. [Google Scholar] [CrossRef] [Scilit]
  6. Mount, J.F. Mixing of siliciclastic and carbonate sediments in shallow shelf environments. Geology 1984, 12, 432–435. [Google Scholar] [CrossRef] [Scilit]
  7. Doyle, L.J.; Roberts, H.H. (Eds.) Carbonate–Clastic Transitions; Developments in Sedimentology 42; Elsevier: Amsterdam, The Netherlands, 1988. [Google Scholar]
  8. Chiarella, D.; Longhitano, S.G.; Tropeano, M. Types of mixing and heterogeneities in siliciclastic-carbonate sediments. Mar. Pet. Geol. 2017, 88, 617–627. [Google Scholar] [CrossRef] [Scilit]
  9. García-Hidalgo, J.F.; Gil, J.; Segura, M.; Domínguez, C. Internal anatomy of a mixed siliciclastic–carbonate platform: The Late Cenomanian–Mid Turonian at the southern margin of the Spanish Central System. Sedimentology 2007, 54, 1245–1271. [Google Scholar] [CrossRef] [Scilit]
  10. Rietveld, H.M. A profile refinement method for nuclear and magnetic structures. J. Appl. Crystallogr. 1969, 2, 65–71. [Google Scholar] [CrossRef] [Scilit]
  11. Bish, D.L.; Post, J.E. Quantitative mineralogical analysis using the Rietveld full-pattern fitting method. Am. Mineral. 1993, 78, 932–940. [Google Scholar]
  12. Pirrie, D.; Butcher, A.R.; Power, M.R.; Gottlieb, P.; Miller, G.L. Rapid quantitative mineral and phase analysis using automated scanning electron microscopy (QemSCAN); potential applications in forensic geoscience. Geol. Soc. Lond. Spec. Publ. 2004, 232, 123–136. [Google Scholar] [CrossRef] [Scilit]
  13. Fandrich, R.; Gu, Y.; Burrows, D.; Moeller, K. Modern SEM-based mineral liberation analysis. Int. J. Miner. Process. 2007, 84, 310–320. [Google Scholar] [CrossRef] [Scilit]
  14. Su, A.; Tian, W.; Wang, Z.; Wang, W.R.; Gong, T.N. Examining the quantification capability of automated mineralogy system: A machine learning approach. J. Geophys. Res. Mach. Learn. Comput. 2025, 2, e2024JH000476. [Google Scholar] [CrossRef] [Scilit]
  15. Kearney, L.I.; Christy, A.G.; Belousova, E.A.; Hines, B.R.; Kontonikas-Charos, A.; de Bruyn, M.; Cathey, H.E.; Lisitsin, V. Automated, not autonomous: Integrating automated mineralogy with complementary techniques to refine and validate phase libraries in complex mineral systems. Minerals 2025, 15, 1118. [Google Scholar] [CrossRef] [Scilit]
  16. Kahou, Z.S.; Cathelineau, M.; Bonzi, W.M.-E.; Salsi, L.; Fullenwarth, P. Micro-XRF-based quantitative mineralogy of the Beauvoir Li granite: A tool for facies characterization and ore processing optimization. Minerals 2026, 16, 29. [Google Scholar] [CrossRef] [Scilit]
  17. Cossio, R.; Borghi, A.; Ruffini, R. Quantitative modal determination of geological samples based on X-ray multielemental map acquisition. Microsc. Microanal. 2002, 8, 139–149. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Kim, J.J.; Ling, F.T.; Plattenberger, D.A.; Clarens, A.F.; Peters, C.A. Quantification of mineral reactivity using machine learning interpretation of micro-XRF data. Appl. Geochem. 2022, 136, 105162. [Google Scholar] [CrossRef] [Scilit]
  19. Barbosa, S.; Catalão-Moura, P.; Dias, A.; Pessanha, S. Synthetic multivariate µ-EDXRF elemental domain mapping for advanced characterization of secondary raw materials. Minerals 2026, 16, 803. [Google Scholar] [CrossRef] [Scilit]
  20. Tung, P.-Y.; Sheikh, H.A.; Ball, M.; Nabiei, F.; Harrison, R.J. SIGMA: Spectral interpretation using Gaussian mixtures and autoencoder. Geochem. Geophys. Geosyst. 2023, 24, e2022GC010530. [Google Scholar] [CrossRef] [Scilit]
  21. Fraley, C.; Raftery, A.E. Model-based clustering, discriminant analysis, and density estimation. J. Am. Stat. Assoc. 2002, 97, 611–631. [Google Scholar] [CrossRef] [Scilit]
  22. Córdoba, V.C. A Evolução da Plataforma Carbonática Jandaíra Durante o Neocretáceo na Bacia Potiguar: Análise Paleoambiental, Diagenética e Estratigráfica. Ph.D. Thesis, Universidade Estadual Paulista, Rio Claro, Brazil, 2001. (In Portuguese) [Google Scholar]
  23. Bagni, F.L.; Bezerra, F.H.; Balsamo, F.; Maia, R.P.; Dall’Aglio, M. Karst dissolution along fracture corridors in an anticline hinge, Jandaíra Formation, Brazil: Implications for reservoir quality. Mar. Pet. Geol. 2020, 115, 104249. [Google Scholar] [CrossRef] [Scilit]
  24. Bagni, F.L.; Erthal, M.M.; Tonietto, S.N.; Maia, R.P.; Bezerra, F.H.; Balsamo, F.; Córdoba, V.C.; de Souza, F.G.; Brod, J.A.; Fernandes, C.P.; et al. Karstified layers and caves formed by superposed epigenic dissolution along subaerial unconformities in carbonate rocks—Impact on reservoir-scale permeability. Mar. Pet. Geol. 2022, 138, 105523. [Google Scholar] [CrossRef] [Scilit]
  25. Matos, R.M.D. Tectonic evolution of the equatorial South Atlantic. In Atlantic Rifts and Continental Margins; Mohriak, W., Talwani, M., Eds.; Geophysical Monograph Series 115; American Geophysical Union: Washington, DC, USA, 2000; pp. 331–354. [Google Scholar] [CrossRef] [Scilit]
  26. Pessoa Neto, O.C.; Soares, U.M.; Silva, J.G.F.; Roesner, E.H.; Florencio, C.P.; Souza, C.A.V. Bacia Potiguar. Bol. Geociências Petrobras 2007, 15, 357–369. (In Portuguese) [Google Scholar]
  27. Pessoa Neto, O.C. Estratigrafia de seqüências da plataforma mista neogênica na Bacia Potiguar, margem equatorial brasileira. Rev. Bras. Geociências 2003, 33, 263–278. (In Portuguese) [Google Scholar] [CrossRef] [Scilit]
  28. Araripe, P.T.; Feijó, F.J. Bacia Potiguar. Bol. Geociências Petrobras 1994, 8, 127–141. (In Portuguese) [Google Scholar]
  29. Maia, R.P.; Bezerra, F.H.R. Potiguar Basin: Diversity of landscapes in the Brazilian equatorial margin. In Landscapes and Landforms of Brazil; Vieira, B.C., Salgado, A.A.R., Santos, L.J.C., Eds.; World Geomorphological Landscapes; Springer: Dordrecht, The Netherlands, 2015; pp. 135–144. [Google Scholar] [CrossRef] [Scilit]
  30. Maia, R.P.; Bezerra, F.H.R. Karstic geomorphology. In Structural Geomorphology in Northeastern Brazil; SpringerBriefs in Latin American Studies; Springer: Cham, Switzerland, 2020; pp. 85–100. [Google Scholar] [CrossRef] [Scilit]
  31. DeGraaf, S.; Reijmer, J.J.G.; Bertotti, G.V.; Bezerra, F.H.R.; Cazarin, C.L.; Bisdom, K.; Vonhof, H.B. Fracturing and calcite cementation controlling fluid flow in the shallow-water carbonates of the Jandaíra Formation, Brazil. Mar. Pet. Geol. 2017, 80, 382–393. [Google Scholar] [CrossRef] [Scilit]
  32. Bezerra, F.H.; de Castro, D.L.; Maia, R.P.; Sousa, M.O.L.; Moura-Lima, E.N.; Rossetti, D.F.; Bertotti, G.; Souza, Z.S.; Nogueira, F.C.C. Postrift stress field inversion in the Potiguar Basin, Brazil—Implications for petroleum systems and evolution of the equatorial margin of South America. Mar. Pet. Geol. 2020, 111, 88–104. [Google Scholar] [CrossRef] [Scilit]
  33. Silva, O.L.; Bezerra, F.H.R.; Maia, R.P.; Cazarin, C.L. Karst landforms revealed at various scales using LiDAR and UAV in semi-arid Brazil: Consideration on karstification processes and methodological constraints. Geomorphology 2017, 295, 611–630. [Google Scholar] [CrossRef] [Scilit]
  34. Dantas, E.P.; Medeiros, V.C.; Cavalcante, R. Mapa Geológico do Estado do Rio Grande do Norte e Mapa de Recursos Minerais do Estado do Rio Grande do Norte, Escala 1:500.000; CPRM: Recife, Brazil, 2021. Available online: https://rigeo.sgb.gov.br/handle/doc/22401 (accessed on 11 October 2026). (In Portuguese)
  35. Galindo, A.C.; Srivastava, N.K.; Souza, L.C.; Maia, H.N.; Sá, J.M.; Araújo, A.G.S.; Oliveira, M.T.D.; Fillippi, R.R. Geologia e Recursos Minerais da Folha Apodi: SB.24-X-C-VI: Estado do Rio Grande do Norte [Technical Report and GIS Vector Data], Escala 1:100.000; CPRM: Recife, Brazil, 2017. Available online: https://rigeo.sgb.gov.br/handle/doc/17718 (accessed on 20 October 2026). (In Portuguese)
  36. Valeriano, M.M.; Rossetti, D.F. Topodata: Brazilian full coverage refinement of SRTM data. Appl. Geogr. 2012, 32, 300–309. [Google Scholar] [CrossRef] [Scilit]
  37. IBGE—Instituto Brasileiro de Geografia e Estatística. Base Cartográfica Contínua do Brasil, Escala 1:250.000—BC250, Versão 2025; IBGE: Rio de Janeiro, Brazil, 2025. Available online: https://www.ibge.gov.br/geociencias/downloads-geociencias.html (accessed on 11 October 2026). (In Portuguese)
  38. Schoonjans, T.; Brunetti, A.; Golosio, B.; del Rio, M.S.; Solé, V.A.; Ferrero, C.; Vincze, L. The xraylib library for X-ray–matter interactions. Recent developments. Spectrochim. Acta Part B 2011, 66, 776–784. [Google Scholar] [CrossRef] [Scilit]
  39. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  40. Harris, C.R.; Millman, K.J.; van der Walt, S.J.; Gommers, R.; Virtanen, P.; Cournapeau, D.; Wieser, E.; Taylor, J.; Berg, S.; Smith, N.J.; et al. Array programming with NumPy. Nature 2020, 585, 357–362. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  41. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272, Erratum in Nat. Methods 2020, 17, 352. https://doi.org/10.1038/s41592-019-0686-2. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  42. McKinney, W. Data structures for statistical computing in Python. In Proceedings of the 9th Python in Science Conference, Austin, TX, USA, 28 June–3 July 2010; pp. 56–61. [Google Scholar] [CrossRef] [Scilit]
  43. Tarabalka, Y.; Benediktsson, J.A.; Chanussot, J. Spectral–spatial classification of hyperspectral imagery based on partitional clustering techniques. IEEE Trans. Geosci. Remote Sens. 2009, 47, 2973–2987. [Google Scholar] [CrossRef] [Scilit]
  44. Anscombe, F.J. The transformation of Poisson, binomial and negative-binomial data. Biometrika 1948, 35, 246–254. [Google Scholar] [CrossRef] [Scilit]
  45. Jolliffe, I.T. Principal Component Analysis, 2nd ed.; Springer: New York, NY, USA, 2002. [Google Scholar] [CrossRef] [Scilit]
  46. Abdi, H.; Williams, L.J. Principal component analysis. WIREs Comput. Stat. 2010, 2, 433–459. [Google Scholar] [CrossRef] [Scilit]
  47. Bishop, C.M. Pattern Recognition and Machine Learning; Springer: New York, NY, USA, 2006. [Google Scholar]
  48. Akaike, H. A new look at the statistical model identification. IEEE Trans. Autom. Control 1974, 19, 716–723. [Google Scholar] [CrossRef] [Scilit]
  49. Schwarz, G. Estimating the dimension of a model. Ann. Stat. 1978, 6, 461–464. [Google Scholar] [CrossRef] [Scilit]
  50. Glasbey, C.; van der Heijden, G.; Toh, V.F.K.; Gray, A. Colour displays for categorical images. Color Res. Appl. 2007, 32, 304–309. [Google Scholar] [CrossRef] [Scilit]
  51. Delesse, A. Procédé mécanique pour déterminer la composition des roches. C. R. Hebd. Séances Acad. Sci. 1847, 25, 544–545. [Google Scholar]
  52. Lin, L.I.-K. A concordance correlation coefficient to evaluate reproducibility. Biometrics 1989, 45, 255–268. [Google Scholar] [CrossRef] [Scilit]
  53. Efron, B.; Tibshirani, R.J. An Introduction to the Bootstrap; Chapman & Hall: New York, NY, USA, 1993. [Google Scholar] [CrossRef] [Scilit]
  54. Ashman, K.M.; Bird, C.M.; Zepf, S.E. Detecting bimodality in astronomical datasets. Astron. J. 1994, 108, 2348–2361. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  55. Moran, P.A.P. Notes on continuous stochastic phenomena. Biometrika 1950, 37, 17–23. [Google Scholar] [CrossRef] [Scilit]
  56. Cliff, A.D.; Ord, J.K. Spatial Processes: Models & Applications; Pion: London, UK, 1981. [Google Scholar]
  57. Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef] [Scilit]
  58. Sokal, R.R.; Michener, C.D. A statistical method for evaluating systematic relationships. Univ. Kans. Sci. Bull. 1958, 38, 1409–1438. [Google Scholar]
  59. Sokal, R.R.; Rohlf, F.J. The comparison of dendrograms by objective methods. Taxon 1962, 11, 33–40. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  60. Warr, L.N. IMA–CNMNC approved mineral symbols. Mineral. Mag. 2021, 85, 291–320. [Google Scholar] [CrossRef] [Scilit]
  61. Warren, J. Dolomite: Occurrence, evolution and economically important associations. Earth-Sci. Rev. 2000, 52, 1–81. [Google Scholar] [CrossRef] [Scilit]
  62. Gregg, J.M.; Bish, D.L.; Kaczmarek, S.E.; Machel, H.G. Mineralogy, nucleation and growth of dolomite in the laboratory and sedimentary environment: A review. Sedimentology 2015, 62, 1749–1769. [Google Scholar] [CrossRef] [Scilit]
  63. Lumsden, D.N. Discrepancy between thin-section and X-ray estimates of dolomite in limestone. J. Sediment. Petrol. 1979, 49, 429–436. [Google Scholar] [CrossRef] [Scilit]
  64. Abbasi, R.; Mehrabi, H.; Yahyaei, E.; Rahimpour-Bonab, H. Diagenetic evolution of Upper Cretaceous carbonate sequences (Sarvak Formation) in the Abadan Plain, Iran: Evidence from petrographic, elemental, stable, and strontium isotopic data. Int. Geol. Rev. 2024, 66, 3793–3813. [Google Scholar] [CrossRef] [Scilit]
  65. Saleem, M.; Rehman, F.; Khan, E.U.; Sajjad, S.W.; Azeem, T.; Jadoon, A.; Naseem, A.A. Multiphase dolomitization in Devonian Shogram Formation, Chitral, Karakorum ranges, Pakistan: Evidence from outcrop analogue, petrography, and geochemistry. ScienceAsia 2022, 48, 317–325. [Google Scholar] [CrossRef] [Scilit]
  66. Schröder, S.; Neame, O.; Finch, A.; Poyatos-Moré, M. Eustatic and tectonic controls on mixed carbonate–siliciclastic ramp deposits in the South Pyrenean foreland basin: The Eocene Alveolina Limestone. Depos. Rec. 2025, 11, 1132–1165. [Google Scholar] [CrossRef] [Scilit]
  67. Hême de Lacotte, V.J.P.; Davies, C.H.C.; Bowler, B.J.; Clarke, S.M.; Leslie, A.G.; Sprinkel, D.A. Facies mosaic distribution and stratigraphic disorder of a mixed carbonate–siliciclastic tidal succession. Sedimentology 2026, 73, 40–82. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.