The invention belongs to the field of
coal analysis, and particularly discloses a multi-
coal-type
coal calorific value measuring method and
system based on NIRS-XRF (
near infrared spectroscopy-X
fluorescence spectroscopy) combination, and the method comprises the following steps: obtaining NIRS spectrum and XRF
energy spectrum of to-be-measured coal; inputting the NIRS spectrum and XRF
energy spectrum data of the coal into the trained coal type identification model, and determining the coal type of the coal; the coal type identification model is an XGBoost model, the XGBoost model is iteratively trained through a Boosting
algorithm, hyper-parameters of the XGBoost model are optimized through a
genetic algorithm GA, an objective function is optimized through an addition model and a forward step-by-step
algorithm, and the XGBoost model determines an optimal
split point of a classification regression tree
CART through a
greedy algorithm in each iteration; and inputting the NIRS spectrum and XRF
energy spectrum data of the coal into the trained subclass model of the corresponding coal type, and determining the calorific value of the coal. According to the invention, coal type identification is carried out through the XGBoost, and then the accuracy of calorific value measurement is significantly improved through the strategy of subclass
model prediction.