Debris zircon source discrimination method and system based on XGboost algorithm
Through the method based on the XGBoost algorithm, the problem that existing technology cannot effectively distinguish between A1 and A2 types of detrital zircons has been achieved, and a higher accuracy of zircon provenance identification has been achieved, which is suitable for global research and expanded the scope of geology. Learn research methods and ideas.
Patent Information
- Application Number
- CN202410690525.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing zircon provenance identification methods cannot effectively distinguish A1 and A2 type detrital zircons with different tectonic environments and chemical compositions, resulting in low accuracy in research on the geological history and paleogeographic environment of the early Earth.
A method based on the XGBoost algorithm is used to collect and preprocess zircon trace element data to construct geologically significant element ratios, and use the XGBoost model for training to improve the discrimination accuracy, which is suitable for detrital zircon materials in various regions around the world. Source identification.
It improves the accuracy and precision of the source identification of detrital zircons, can indicate the geological background of their source areas in more detail, is suitable for global research, and expands the methods and ideas of geological research.
Smart Images

Figure CN118626833A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of geological information science and technology, and in particular to a detrital zircon provenance identification method and system based on an XGboost algorithm. Background Art
[0002] Zircon has a high closure temperature and stable physical and chemical properties. Therefore, detrital zircon can still stably record the properties and age information of the source area after multiple sedimentation, magma or metamorphism. The provenance study of detrital zircon is a powerful tool for understanding the sedimentary diffusion system and the tectonic environment of the sedimentary area. It is often used to explore the geological history of the early Earth and reconstruct the paleogeographic environment. In previous studies, the Eu / Eu*-(Nb / Pb) N or other two-dimensional diagrams, or by building a machine learning model to identify the provenance of detrital zircon.
[0003] However, Eu / Eu*-(Nb / Pb) N Two-dimensional diagrams, such as these, can only use two or three elements and cannot fully exploit trace element information, resulting in low accuracy. Furthermore, two-dimensional diagrams and machine learning methods are limited to distinguishing detrital zircons from I-, S-, and A-type granites. They struggle to distinguish detrital zircons from A1 and A2 provenances, which have different tectonic environments and chemical compositions. These issues have hampered research into the early Earth's geological history and paleogeographic environment.
[0004] Therefore, it is of great significance to develop a widely used and high-accuracy discrimination method that can be applied to both A1 and A2 granites. Summary of the Invention
[0005] In view of the shortcomings of the prior art, the present invention provides a method and system for identifying the provenance of detrital zircon based on the XGboost algorithm.
[0006] In order to achieve the above object of the invention, the technical solution adopted by the present invention is as follows:
[0007] A method for identifying detrital zircon provenance based on the XGboost algorithm includes the following steps:
[0008] Step 1: Data Collection
[0009] Trace element data of zircon in four different granites, namely S-type, I-type, A1-type and A2-type, were collected.
[0010] Use Python to summarize and label data from Excel files.
[0011] Elements with relatively concentrated data were screened out, including: Ce, Nd, Sm, Eu, Gd, Dy, Ho, Er, Yb, Lu, Th, and U.
[0012] Step 2: Data Preprocessing
[0013] The detection limit was used to fill in the values below the detection limit, and data with missing values were deleted.
[0014] Construct geologically significant element ratios, including Th / U, Ce / U, U / Yb, Eu / Eu*, and Ce / Ce*, and add data information to obtain Dataset 1.
[0015] The central logarithmic transformation (CLR) is used to eliminate the influence of Dataset 1 on the model and make it closer to the normal distribution.
[0016] Train the XGBoost model on Dataset 1, use the feature importance function to filter out low-information features, select the top 9 elements or element ratios as the features of the final training model, and construct a new dataset Dataset 2.
[0017] Step 3: Model building
[0018] The dataset Dataset 2 is divided into 80% training set and 20% test set.
[0019] Select the XGBoost algorithm for training on the training set.
[0020] Use the optimization framework to tune the hyperparameters of the XGBoost model with the goal of maximizing the F1 score.
[0021] Step 4: Model Evaluation
[0022] Make predictions on the test set that did not appear in the training set.
[0023] Compare the predicted results with the actual labels and comprehensively evaluate the algorithm performance using accuracy, recall, and F1 score.
[0024] Step 5: Use the trained XGBoost model to input the preprocessed unknown sample data into the model, make predictions, and output the output results.
[0025] The present invention also discloses a detrital zircon provenance identification system, which can be used to implement the above-mentioned detrital zircon provenance identification method, specifically comprising:
[0026] Data collection module: collects and summarizes the trace element data of zircon in four different granites: S-type, I-type, A1-type, and A2-type, and assigns labels.
[0027] Data preprocessing module: Cleans and processes the data, including filling values below the detection limit, deleting missing data, calculating geologically significant element ratios, and performing centered logarithmic transformation (CLR).
[0028] Feature selection module: trains the XGBoost model on the preprocessed dataset, calculates feature importance, filters low-information features, and selects the top 9 features to construct a new dataset.
[0029] Model training module: The filtered dataset is divided into training and test sets in proportion, trained using the XGBoost algorithm, and hyperparameters are tuned through the optimization framework to maximize the F1 score.
[0030] Model evaluation module: Evaluates the trained model on the test set, calculates and outputs the accuracy, recall rate and F1 score, and comprehensively evaluates the model performance.
[0031] Prediction and discrimination module: Use the trained XGBoost model to predict the preprocessed unknown samples and output the provenance discrimination results.
[0032] Furthermore, the initial data collected in S2 is specifically as follows:
[0033] Collect initial data: including the concentration data of the original elements, namely Ce, Nd, Sm, Eu, Gd, Dy, Ho, Er, Yb, Lu, Th, and U.
[0034] Construct ratio features: Calculate geologically meaningful ratios.
[0035] Extended Feature Set: The raw element concentration data are combined with the calculated ratios to form an extended feature set of 17 features.
[0036] Create Dataset 1: Integrate the above 17 features into a new dataset and name it Dataset 1.
[0037] Furthermore, the Optuna optimization framework is used in S3 to optimize hyperparameters, including: n_estimators, learning_rate, max_depth, gamma, colsample_bytree, and colsample_bylevel.
[0038] The present invention also discloses a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned method for identifying the provenance of detrital zircon is implemented.
[0039] The present invention also discloses a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned method for distinguishing the provenance of detrital zircon is implemented.
[0040] Compared with the prior art, the advantages of the present invention are:
[0041] 1. The present invention provides a more detailed classification standard for the provenance identification of detrital zircons, which helps detrital zircons to more accurately indicate the geological background of their source areas.
[0042] 2. The XGBoost algorithm was used to build a provenance discrimination model, capable of processing high-dimensional data. By integrating multiple decision trees and combining them with the gradient boosting algorithm, the XGBoost algorithm can better capture the complex relationships in trace element data and improve the accuracy of provenance discrimination.
[0043] 3. This method is applicable to the identification of detrital zircon provenance in all regions of the world, regardless of geographic location. This makes the method widely applicable in the field of geology and contributes to the study of early Earth geological history and paleogeographic environment.
[0044] 4. This paper uses a machine learning algorithm (XGBoost) to solve geological problems, actively exploring solutions to geological problems at a high level. This not only improves the efficiency and accuracy of data processing, but also expands the methods and ideas of geological research. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of the method for identifying the provenance of detrital zircon in an embodiment of the present invention.
[0046] Figure 2 This is a graph showing the prediction accuracy of the test set of an embodiment of the present invention for various types of detrital zircons. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and examples.
[0048] like Figure 1 As shown, the present invention is a detrital zircon provenance identification method based on XGboost (Extreme Gradient Boosting).
[0049] Model construction:
[0050] Step 1: Data collection: The present invention collects the trace element data of zircon in four different granites, namely S-type, I-type, A1-type, and A2-type, from published articles. Python is used to summarize and label the data in the Excel file, and to filter out the elements with relatively concentrated data, including Ce, Nd, Sm, Eu, Gd, Dy, Ho, Er, Yb, Lu, Th, and U.
[0051] Step 2: Data preprocessing: ① Use the detection limit to fill the values below the detection limit and delete the data with missing values; ② Construct element ratios with geological significance, Th / U, Ce / U, U / Yb, Eu / Eu*, Ce / Ce*, increase data information, and obtain Dataset 1 with 17 features; ③ Trace elements are composition data, and the influence of composition data on the model is eliminated through central logarithmic transformation to make it closer to the normal distribution; ④ Train the Xgboost model on Dataset 1, use the feature importance function to filter out low-information features, and select the top 9 elements or element ratios Eu / Eu, Ce / U, Ce, U / Yb, Eu, Sm, Ce / Ce*, Th / U, U as the features of the final training model.
[0052] Step 3: Model building: For the new dataset Dataset 2 with 9 features, use Python split to randomly divide the dataset into 80% training set and 20% test set. Select the XGBoost algorithm for training on the training set, and use the optuna optimization framework to optimize the six hyperparameters of n estimators, learning rate, max_depth, gamma, colsamplebytree, and colsamplebylevel. The maximum F1 score is used as the optimization indicator to obtain the best performance model.
[0053] Step 4: Model evaluation: Make predictions for the test set that has not appeared in the training set, compare the predicted results with the actual labels, and comprehensively evaluate the algorithm performance using accuracy, recall rate, and F1 score.
[0054] Provenance discrimination: The dataset of unknown provenance is placed in the preprocessing code for preprocessing, and the obtained data is passed into the constructed discrimination model. The results output by the model are synthesized through hard voting to finally obtain the provenance discrimination results of detrital zircon.
[0055] Example 1: Determining the provenance of Hadean Jack Hills detrital zircons and exploring the tectonic attribution and magma composition of the early crust
[0056] This example collects trace element data for the oldest zircon found to date (4.4-3.3 Ga), totaling 32 data points. The collected samples are aged between 4.3 and 3.3 Ga. The data has no missing values, and due to the complex geological environment, no outlier or missing value processing was performed. Eu / Eu*, Ce / U, U / Yb, Ce / Ce*, and Th / U characteristics were constructed. The chondrite values used for Eu / Eu* and Ce / Ce* calculations are Ce = 1.136, Sm = 0.2582, Eu = 0.0973, and Gd = 0.3300. Finally, Eu / Eu*(0.065~0.623ppm), Ce / U(0.020~0.366), Ce(2.400~28.000), U / Yb(0.145~1.828), Eu(2.060~2.060), Sm(0.628~10.100), Ce / Ce*(4.294~215.838), Th / U(0.256~1.453), and U(32.3~996.000) were obtained, and Clr transformation was performed on them to make the data conform to central symmetry.
[0057] The collected data were input into the classifier of the present invention, and the provenance output result was S-type granite. S-type granite is the product of partial melting of upper crust sedimentary rocks, usually in a continent-continent collision environment. This result provides evidence of a sedimentary cycle related to Hadean subduction activity.
[0058] Example 2: Identification of A1 and A2 type granites at the boundary of the discrimination diagram
[0059] The Yangtze River Basin lies on the northeastern edge of the Yangtze Block, adjacent to the Dabie-Sulu Orogenic Belt and separated from the Cathaysia Block to the south by the Jiangshan-Shaoxing Fault. Its unique characteristics include the coexistence of A1 and A2 granite subgroups. These granites often appear at the boundary of the A1A2 whole-rock discrimination diagrams, making accurate identification difficult. In this study, we collected zircon trace element data from 14 sample locations within the Huayuangong A-type granite, a highly controversial area. The zircons are mostly transparent and prismatic, exhibiting oscillatory zoning in cathodoluminescence images, indicating a magmatic origin. The U-Pb concordance age is 126.7±1.3Ma.
[0060] The collected data have no missing values, and due to the complex geological environment, no outlier and missing value processing was performed to construct Eu / Eu*, Ce / U, U / Yb, Ce / Ce*, and Th / U characteristics. The chondrite values used in the calculation of Eu / Eu* and Ce / Ce* are Ce=1.136, Sm=0.2582, Eu=0.0973, and Gd=0.3300. The final data obtained are Eu / Eu* (0.185-0.351 ppm), Ce / U (0.263-0.701), Ce (52.565-83.827), U / Yb (0.358-0.801), Eu (0.361-0.826), Sm (1.280-4.429), Ce / Ce* (5.329-239.881), Th / U (0.936-1.411), and U (99.455-298.151). Clr transformation was performed on the data to ensure centrosymmetry. The collected data was input into the classifier of the present invention, and the output result was A1 type. Huayuangong granite was further classified as A1 granite, and the whole rock exhibits transitional geochemical characteristics between the A1 and A2 subgroups.
[0061] like Figure 2 As shown in the figure, the performance of the model on the test set has an overall accuracy of 0.84, and the discrimination accuracy rates for A1, A2, I, and S are 0.78, 0.85, 0.88, and 0.84 respectively.
[0062] In another embodiment of the present invention, a detrital zircon provenance identification system is provided. The system can be used to implement the above-mentioned detrital zircon provenance identification method, specifically comprising:
[0063] Data collection module: collects and summarizes the trace element data of zircon in four different granites: S-type, I-type, A1-type, and A2-type, and assigns labels.
[0064] Data preprocessing module: Cleans and processes the data, including filling values below the detection limit, deleting missing data, calculating geologically significant element ratios, and performing centered logarithmic transformation (CLR).
[0065] Feature selection module: trains the XGBoost model on the preprocessed dataset, calculates feature importance, filters low-information features, and selects the top 9 features to construct a new dataset.
[0066] Model training module: The filtered dataset is divided into training and test sets in proportion, trained using the XGBoost algorithm, and hyperparameters are tuned through the optimization framework to maximize the F1 score.
[0067] Model evaluation module: Evaluates the trained model on the test set, calculates and outputs the accuracy, recall rate and F1 score, and comprehensively evaluates the model performance.
[0068] Prediction and discrimination module: Use the trained XGBoost model to predict the preprocessed unknown samples and output the provenance discrimination results.
[0069] Result display module: displays model evaluation results and provenance identification results for users to view and analyze.
[0070] In another embodiment of the present invention, a terminal device is provided, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function; the processor described in the embodiment of the present invention can be used for the operation of the detrital zircon provenance identification method.
[0071] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and, of course, the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space. These instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory.
[0072] One or more instructions stored in a computer-readable storage medium can be loaded and executed by a processor to implement the corresponding steps of the method for identifying the provenance of detrital zircon in the above embodiment; one or more instructions in a computer-readable storage medium are loaded and executed by a processor.
[0073] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0074] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0075] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0076] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0077] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the implementation methods of the present invention, and it should be understood that the scope of protection of the present invention is not limited to such specific descriptions and embodiments. Those skilled in the art can make various other specific variations and combinations based on the technical teachings disclosed in the present invention without departing from the essence of the present invention, and such variations and combinations are still within the scope of protection of the present invention.
Claims
1. A method for identifying the provenance of detrital zircon based on the XGboost algorithm, characterized in that: The following steps are involved: Step 1: Data Collection Collect trace element data of zircon in four different granites: S-type, I-type, A1-type, and A2-type; Use Python to aggregate and label data from Excel files; Elements with relatively concentrated data were screened out, including: Ce, Nd, Sm, Eu, Gd, Dy, Ho, Er, Yb, Lu, Th, and U; Step 2: Data Preprocessing The detection limit was used to fill the values below the detection limit, and the data with missing values were deleted; Construct geologically significant element ratios, including Th / U, Ce / U, U / Yb, Eu / Eu*, Ce / Ce*, add data information, and obtain Dataset 1; The central logarithmic transformation (CLR) is used to eliminate the influence of Dataset 1 on the model, making it closer to a normal distribution. Train the XGBoost model on Dataset 1, use the feature importance function to filter out low-information features, select the top 9 elements or element ratios as the features of the final training model, and construct a new dataset Dataset 2; Step 3: Model building Divide the dataset Dataset 2 into 80% training set and 20% test set; Select the XGBoost algorithm for training on the training set; Use the optimization framework to tune the hyperparameters of the XGBoost model with the goal of maximizing the F1 score; Step 4: Model Evaluation Make predictions for the test set that did not appear in the training set; Compare the predicted results with the actual labels and comprehensively evaluate the algorithm performance using accuracy, recall, and F1 score; Step 5: Use the trained XGBoost model to input the preprocessed unknown sample data into the model, make predictions, and output the output results.
2. The method for identifying the provenance of detrital zircon according to claim 1, characterized in that: The initial data collected in S2 is as follows: Collect initial data: including the concentration data of the original elements, namely Ce, Nd, Sm, Eu, Gd, Dy, Ho, Er, Yb, Lu, Th, and U; Construct a ratio feature: Calculate ratios of geological significance; Extended feature set: The original element concentration data are combined with the calculated ratios to form an extended feature set of 17 features; Create Dataset 1: Integrate the above 17 features into a new dataset and name it Dataset 1.
3. The method for identifying the provenance of detrital zircon according to claim 1, characterized in that: The Optuna optimization framework is used in S3 to optimize hyperparameters, including: n_estimators, learning_rate, max_depth, gamma, colsample_bytree, and colsample_bylevel.
4. A detrital zircon provenance identification system, characterized in that: The system can be used to implement the method for identifying the provenance of detrital zircon according to any one of claims 1 to 3, specifically comprising: Data collection module: collects and summarizes the trace element data of zircon in four different granites: S-type, I-type, A1-type, and A2-type, and assigns labels; Data preprocessing module: cleaning and processing data, including filling values below the detection limit, deleting missing data, calculating geologically significant element ratios, and performing central logarithmic transformation (CLR); Feature selection module: train the XGBoost model on the preprocessed dataset, calculate feature importance, filter low-information features, and select the top 9 features to build a new dataset; Model training module: divide the filtered data set into training set and test set in proportion, use XGBoost algorithm for training, and tune hyperparameters through optimization framework to maximize F1 score; Model evaluation module: evaluates the trained model on the test set, calculates and outputs the accuracy, recall and F1 score, and comprehensively evaluates the model performance; Prediction and discrimination module: Use the trained XGBoost model to predict the preprocessed unknown samples and output the source discrimination results.
5. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for identifying the provenance of detrital zircon as described in one of claims 1 to 3 when executing the program.
6. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for identifying the provenance of detrital zircon as described in one of claims 1 to 3.
Citation Information
Patent Citations
Ore deposit type identification method and system based on XGBoost
CN115148299A
Method for discriminating zircon host rock and metallogenic environment by adopting machine learning modeling
CN117272181A
Method and system for identifying granite type based on machine learning and zircon component
CN118039029A
