Method for generating a regional price index for construction materials based on transaction data

By combining multi-source data fusion and intelligent matching technologies with graph neural networks and reinforcement learning optimization, the problems of single data source, low matching accuracy, and coarse regional division in the generation of building material price indices have been solved, achieving high-precision and real-time generation of regional price indices.

CN123160201APending Publication Date: 2026-11-24LIZHU (SHANGHAI) TRADING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611419628.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-14
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods for generating building material price indices suffer from problems such as a single data source, low matching accuracy, coarse regional division, lack of transmission modeling, and fixed weights, resulting in insufficient representativeness, low accuracy, and poor spatial correlation of the price indices.

Method used

By employing multi-source data fusion, intelligent homogeneous matching, adaptive regional division, price transmission modeling, and dynamic weight optimization, the system utilizes isolated forest and VAE cascaded anomaly detection, specification-material-standard ternary semantic structure matching, HDBSCAN algorithm for regional division, graph attention network and graph convolutional network for price transmission modeling, and transitive safety constraint reinforcement learning to optimize weights. Finally, a regional price index is generated through multi-level index aggregation.

Benefits of technology

It improves the data coverage, matching accuracy, regional segmentation precision, and transmission modeling capabilities of the price index, reduces the error in weight adjustment, and achieves high-precision and real-time generation of regional price indices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160201A_ABST
    Figure CN123160201A_ABST
Patent Text Reader

Abstract

This invention discloses a method for generating regional price indices for building materials based on transaction data, comprising: collecting building material transaction data from multiple sources including e-commerce platforms, bidding documents, logistics waybills, enterprise ERP systems, and market monitoring; performing anomaly detection and removal using a two-stage method of isolated forest and VAE cascade; achieving product homogeneity matching using specification-material-standard ternary semantic matching and BMKG knowledge graph; calculating the price index based on a deep feature price model and Siamese network; performing adaptive region partitioning using HDBSCAN; modeling regional price transmission using GAT and GCN; optimizing regional weights using transitive security constraint reinforcement learning; and achieving multi-level index aggregation through multilateral comparison chain connections. This invention improves the representativeness, accuracy, and timeliness of the price index.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of building materials market price monitoring technology, specifically to a method for generating regional price indices for building materials based on transaction data. Background Technology

[0002] Building material price indices are important economic indicators reflecting the trends and extent of price changes in the building materials market, and are widely used in areas such as project cost estimation, macroeconomic analysis, investment decision-making, and supply chain management. However, existing methods for generating building material price indices have the following technical problems: 1. Existing building material price indices rely on a single data source, depending solely on manual price inquiries. Traditional methods primarily depend on manual price inquiries or data collection from fixed sampling points. Data sources are limited to a few building material markets or distributors, failing to comprehensively reflect the overall price level of the regional market. This results in insufficient representativeness of the price index and an inability to capture the true changes in market prices.

[0003] 2. Low product matching accuracy and insufficient semantic understanding of specifications and models. Building materials are characterized by numerous specifications, diverse materials, and inconsistent implementation standards. Existing methods often rely on keyword matching or simple classification coding for homogenization, which cannot accurately identify products with similar specifications but different materials or standards. This leads to the inclusion of heterogeneous products in the price index calculation, affecting the accuracy of the index.

[0004] 3. The regional divisions are crude, relying on fixed administrative divisions rather than data-driven clustering. Existing methods often use administrative divisions as the basis for regional division, failing to reflect the actual reach and trade connections of the building materials market. The boundaries of administrative divisions often do not align with the market's reach, resulting in regional price indices that cannot accurately reflect the true spatial distribution of market prices.

[0005] 4. Lack of modeling for price transmission relationships between regions. Existing methods treat each region as an independent entity, failing to model the price transmission effect between regions. This results in the inability to reflect the transmission path and intensity of building material prices between different regions, leading to a lack of spatial correlation and transmission prediction capabilities in regional price indices.

[0006] 5. Fixed index weights fail to adapt to dynamic market changes. Existing methods often employ fixed weights or simple weighting based on consumption scale, failing to comprehensively consider multi-dimensional factors such as regional market activity, price influence, and data quality. When market structure changes, fixed weights cannot be adjusted in a timely manner, causing the index to deviate from actual price trends. Summary of the Invention

[0007] To address the technical problems of existing technologies, such as single data source, low matching accuracy, coarse regional division, lack of transmission modeling, and fixed weights, this invention provides a method for generating regional price indices for building materials based on transaction data. Through multi-source data fusion, intelligent homogeneous matching, adaptive regional division, price transmission modeling, and dynamic weight optimization, this method achieves high-precision regional generation and real-time updating of building material price indices.

[0008] To achieve the above objectives, the present invention provides the following technical solution: A method for generating a regional price index for building materials based on transaction data includes the following steps S0 to S8: S0. Multi-source transaction data collection: Collect transaction records of building materials products from multiple data sources, including e-commerce platform transaction data, bidding and procurement data, logistics waybill data, enterprise ERP transaction data, and market monitoring data. Each record includes fields such as product name, specifications, material, implementation standard, brand, place of origin, transaction quantity, transaction unit price, transaction time, and transaction location. The multi-source data is adapted to the format and aligned to the schema using an adapter mode through a unified data access framework. It is then accessed into the building materials transaction data ontology BMTO in a semantic mapping manner and stored in the data lake.

[0009] S1. Data Preprocessing and Quality Control: Field alignment, format standardization, and encoding unification are performed on the collected multi-source transaction data to construct the Building Materials Transaction Data Ontology (BMTO). Then, a two-stage method combining an isolated forest and a variational autoencoder (VAE) is used for anomaly detection and removal. The first stage uses the isolated forest for fast filtering in O(n) time complexity, calculating the anomaly score for each transaction record. Abnormal scores exceeding the threshold , which is an abbreviation of THRESHold, where s represents the score threshold, and records with are marked as suspected anomalies; in the second stage, VAE is used to finely identify the reconstruction error of suspected anomaly records, and records with reconstruction errors exceeding the normal distribution quantile are confirmed as real anomalies and removed, while records that do not exceed the quantile are judged as normal long-tail transactions and retained.

[0010] S2. Intelligent Product Classification and Homogeneous Matching: A specification-material-standard ternary semantic structure matching method is adopted. Through domain-adaptive tokenizer, Sentence-BERT semantic encoding, and BERT-NER attribute extraction, building material products are mapped to a ternary joint embedding space. Cosine similarity is used to calculate the matching similarity between products. Homogeneity determination is achieved through two-factor matching decision-making, and missing fields are filled in using the BMKG domain knowledge graph.

[0011] S3. Price Index Calculation: Based on the homogeneous matching results, the feature price index is calculated using a deep feature price model with economic constraints regularization. Homogeneity regularization terms are introduced to ensure that the model satisfies the axiom of homogeneity in economics. At the same time, a quality level tolerance twin network is used to identify repeat transactions and construct a repeat transaction price index, which is then linked by a multilateral comparison method.

[0012] S4. Adaptive Region Partitioning: The density-based HDBSCAN algorithm is used to adaptively cluster the spatial distribution of transaction data. A minimum spanning tree and a hierarchical clustering tree are constructed using reachability as a metric, and stable clusters are extracted as the region partitioning results. HDBSCAN automatically determines the number of clusters based on density reachability. The core density calculation formula is: Output the centroid, radiation radius, and region number of the output region.

[0013] S5. Regional Price Transmission Modeling: A dynamic adjacency matrix between regions is constructed based on logistics and trade data. A graph attention network (GAT) is used to learn the strength of price transmission between regions. Regional price information is aggregated through a multi-layer graph convolutional network (GCN). The GNN feature propagation formula is as follows: To achieve quantitative modeling of price transmission effects between regions.

[0014] S6. Intelligent Optimization of Regional Weights: Employing a transitive safety-constrained reinforcement learning method, regional consumption scale, market activity, price influence, and data quality are used as state features. Regional weights are output through a policy network, and the weight update formula is as follows: By using transitivity constraints to verify and tiered reward calculations to guide network updates, transitivity safety constraints ensure that weight adjustments do not violate the transitivity axiom of price transmission.

[0015] S7. Multi-level Exponential Aggregation: Employing an exponential chain-linking method based on multilateral comparisons, the method automatically selects GEKS, Geary-Khamis, or TPDH to calculate multilateral exponents based on the characteristics of the rolling window data. The exponential aggregation formula is as follows: A continuous index sequence is generated through chain connections, enabling the aggregation of price indices at multiple levels: category, region, and comprehensive. Category-level and region-level indices are weighted and aggregated to generate a comprehensive price index, with the weights dynamically determined based on the transaction volume of each category and the market share of each region.

[0016] S8. Index Release and Update: Employing multi-model parallel computing and a three-layer progressive arbitration mechanism, the system determines the deviation between the calculation results of the primary and backup methods. The final result is determined sequentially through data quality attribution, model stability attribution, and expert arbitration. The generated regional price index is released to the public through API services and visualization, and supports dynamic updates driven by incremental data.

[0017] The beneficial effects of this invention are: First, multi-source data fusion enhances the representativeness of the price index and overcomes the shortcomings of relying on a single data source. This invention integrates five types of data sources—e-commerce platforms, bidding documents, logistics waybills, enterprise ERP systems, and market monitoring—through a unified data access framework, constructing the building materials transaction data ontology BMTO to achieve semantic alignment. Compared to traditional single-data-source methods, this improves data coverage by more than 60%.

[0018] Second, ternary semantic matching improves the accuracy of homogeneity determination and overcomes the defect of low matching accuracy. This invention uses a specification-material-standard ternary joint embedding space, combined with FAISS approximate retrieval and two-factor matching decision, to achieve a homogeneity matching accuracy of 96.8%, which is 18.6 percentage points higher than the 78.2% of the keyword matching method.

[0019] Third, adaptive regional division more accurately reflects the market's reach and overcomes the shortcomings of crude regional division. This invention uses the HDBSCAN density clustering method to automatically determine regional boundaries based on the spatial distribution of transaction data. Compared with administrative division methods, price dispersion within the region is reduced by 35%.

[0020] Fourth, graph neural network modeling quantifies the price transmission relationship between regions, overcoming the shortcomings of incomplete transmission modeling. This invention models the price transmission effect between regions using GAT and GCN, achieving a price transmission direction prediction accuracy of 92.5%, effectively capturing the price spillover effect between regions.

[0021] Fifth, the reinforcement learning weight optimization achieves adaptive adjustment of regional weights, overcoming the shortcomings of fixed weights. This invention ensures that weight adjustments do not violate the transitivity axiom of price transmission through transitivity security constraints, and the hierarchical reward mechanism balances index accuracy and stability. Compared with the fixed weight method, the index tracking error is reduced by 42%. Attached Figure Description

[0022] Figure 1 This is a schematic diagram of the overall system architecture of the present invention, illustrating a six-layer structure from the data access layer to the application service layer. Figure 2 This is a schematic diagram of the multi-source data acquisition process of the present invention, showing the structure of two sets of data sources, namely transaction data sources and management data sources, converging upwards to a unified data access framework. Figure 3 This is a schematic diagram of the data fusion architecture of the present invention, showing a four-layer structure consisting of a data source layer, an access layer, an ontology layer, and a storage layer. Figure 4 This is a schematic diagram of the abnormal transaction detection cascade structure of the present invention, illustrating the cascade process of isolated forest screening and VAE fine-tuning. Figure 5 This is a schematic diagram of the ternary semantic matching structure of the present invention, illustrating the joint embedding matching process of specification vector, material vector, and standard vector. Figure 6 This is a schematic diagram of the HDBSCAN adaptive region partitioning method of the present invention, illustrating the processing flow from feature extraction to clustering results. Figure 7 This is a schematic diagram of the GNN price transmission model of the present invention, illustrating the regional price transmission structure of GAT attention and GCN convolution. Figure 8 This is a schematic diagram of the dynamic weight optimization structure of the present invention, illustrating the closed-loop structure of PPO decision-making and reward feedback. Figure 9 This is a schematic diagram of the multi-level index aggregation structure of the present invention, illustrating the hierarchical aggregation of regional indices, city indices, and national indices. Figure 10 This is a schematic diagram illustrating the basic principle of the invention, showing the core process of cleaning and matching transaction data to calculate the index. Figure 11 This is a basic application diagram of the present invention, illustrating the application of price indices in cost management, macroeconomic monitoring, and supply chain management. Figure 12 This is a schematic diagram illustrating commonly used replacement methods of the present invention, showing the relationship between the standard method and two replacement methods. Figure 13 This is a schematic diagram of the extended replacement scheme of the present invention, illustrating the relationship between the basic system and the two extended replacement modules. Figure 14 This is a schematic diagram illustrating the component embedding of the present invention, showing the structure of the component as an independent module embedded in the system. Figure 15 This is a schematic diagram of the multi-system collaborative architecture of the present invention, illustrating the structure of four business systems converging into a shared data center via a data exchange bus. Detailed Implementation

[0023] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. The basic principles, basic applications, common substitutions, extended substitutions, component embedding, multi-system joint use, comparative analysis, and other embodiments involved in the present invention are as follows.

[0024] Synergistic effects and technological contributions The technical solution of this invention is not a simple combination or scenario transfer of known algorithms, but rather produces unexpected technical effects through the synergistic effect between each step. First, the cascading of isolated forest and VAE produces nonlinear synergistic enhancement: isolated forest quickly filters out only 15% of suspected anomalies and sends them to VAE, reducing computational load by 85%. After cascading, the anomaly detection rate increases from 76.8% / 81.3% with a single algorithm to 94.2%. Second, the synergy between ternary semantic matching and deep feature pricing model: the matching accuracy is increased to 95.6%, reducing the model's prediction mean square error by 75%.

[0025] Third, the synergy between HDBSCAN region partitioning and GNN propagation modeling: adaptive partitioning improves propagation prediction accuracy from 67.2% to 91.3%. Fourth, the synergy between transitive safety constraints and reinforcement learning: constraint verification reduces the mean squared error from 0.0823 to 0.0312, demonstrating the deep coupling between algorithmic and technical features. These synergistic effects indicate that the overall technical effect of this invention is superior to the simple summation of the independent effects of each step, demonstrating non-obviousness.

[0026] Glossary To make the technical solution of this invention clearer and more complete, the following explanations are provided for the technical terms and well-known technologies involved in the specification.

[0027] Isolation Forest: An anomaly detection algorithm based on random partitioning, which measures the degree of anomaly by path length.

[0028] Variational Autoencoder (VAE): A generative deep learning model that detects anomalies by reconstructing errors.

[0029] HDBSCAN Hierarchical Density Clustering: A density clustering algorithm based on hierarchical structure that automatically determines the number and boundaries of clusters.

[0030] Graph Attention Network (GAT): A graph neural network based on an attention mechanism that automatically learns the importance weights of neighbors.

[0031] Graph Convolutional Network (GCN): A graph neural network based on frequency domain convolution that captures long-distance dependencies.

[0032] BMKG Knowledge Graph: A knowledge graph for the building materials field, containing entities such as product ontology, specification system, and material classification, and learning vector representations through TransE.

[0033] Transitivity safety constraint: In the process of regional weight optimization, if there is a price transmission relationship between region A and region B, and there is also a price transmission relationship between region B and region C, then there must be a price transmission relationship between region A and region C.

[0034] GEKS Index: A multilateral price index calculation method that uses a geometric mean of bilateral indices to solve the transitivity problem in multi-regional comparisons.

[0035] Deep Feature Pricing Model: A feature pricing model based on deep residual networks, which learns the mapping from product features to transaction prices, eliminating the impact of feature differences on prices.

[0036] I. Basic Principles like Figure 10 As shown, the basic principle of this invention is to drive a dynamic adjacency matrix using logistics and trade data, and to model the price transmission effect between regions using a graph neural network (GNN). After building material transaction data is collected from multiple data sources, it undergoes seven core processes: data governance, homogeneous matching, price index calculation, regional division, transmission modeling, weight optimization, and index aggregation, ultimately generating a regionalized building material price index.

[0037] The core principle lies in combining the spatial distribution characteristics of building material transaction data with price transmission relationships. Price transmission between regions is modeled through the feature propagation mechanism of GNN, where each region is a node in the graph, and the logistics and trade volume between regions is used as the edge weight. GNN updates the price feature representation of the current region by aggregating the price information of neighboring regions, thereby capturing the transmission path and strength of prices in the regional network.

[0038] HDBSCAN density clustering automatically determines the number of regions by defining the reachability distance, eliminating the need for pre-setting the number of regions and accurately reflecting the spatial reach of the building materials market. Transitivity-based safety-constrained reinforcement learning dynamically adjusts region weights through a policy network, ensuring that weight adjustments do not violate the transitivity axiom of price transmission, thus achieving adaptive optimization of region weights.

[0039] The basic principle of this invention can be derived from known techniques. Traditional methods for generating building material price indices use a single data source and fixed weights; the calculation formula is a weighted arithmetic average. Here, represents the fixed weight, and represents the price. This method suffers from two technical problems: a single data source and fixed weights. To address the single data source problem, this invention introduces a multi-source data fusion mechanism, thereby obtaining a unified format of the transaction dataset. To address the fixed weight problem, this invention replaces the fixed weights with dynamic weights based on transitive security constraint reinforcement learning, allowing the weights to adaptively adjust according to market conditions. To model price transmission relationships between regions, this invention replaces the independent region assumption of traditional methods with a graph structure assumption, thus introducing a Generative Neural Network (GNN) for price transmission modeling. Based on the above derivations, this invention forms a complete technical solution from data collection to index generation.

[0040] II. Basic Applications like Figure 11 As shown, the basic application scenario of this invention is the generation of a building materials price index within a certain province. The system collects building materials transaction data in real time from five data sources: e-commerce platforms, bidding platforms, logistics enterprise systems, enterprise ERP systems, and market monitoring systems, processing approximately 150,000 transaction records per day, with a price index generation delay of less than 30 minutes.

[0041] In basic applications, the transitive safety constraint reinforcement learning method uses regional consumption scale, market activity, price influence, and data quality as state features, and outputs regional weights through a policy network. A hierarchical reward function comprehensively considers index accuracy and transitive constraint satisfaction, guiding the policy network to progressively optimize weight allocation. The final generated regional price index is published externally via a RESTful API service and a web visualization dashboard, supporting index queries and displays at daily, weekly, and monthly granularities.

[0042] Basic applications have verified the effectiveness of the method of this invention in the actual building materials market. The tracking error of the regional price index is reduced by 42% compared with the traditional fixed weight method, and the anomaly detection rate reaches 94.2%, which can effectively support application scenarios such as engineering cost management and macroeconomic monitoring.

[0043] III. Common Replacements like Figure 12 As shown, this invention supports multiple algorithm replacements in different application scenarios. In the anomaly detection stage, the isolated forest-VAE cascade can be replaced with a single isolated forest or a combination of autoencoders. In the homogeneity matching stage, Sentence-BERT can be replaced with RoBERTa or ALBERT. In the price index calculation stage, the deep feature price model can be replaced with Hedonic regression. In the region partitioning stage, HDBSCAN can be replaced with DBSCAN or OPTICS. In the transmission modeling stage, GAT can be replaced with GraphSAGE.

[0044] In the exponential aggregation stage, the GEKS method can be replaced by the Geary-Khamis or TPDH method. These substitutions do not affect the overall technical solution of this invention; only the parameters of the corresponding modules need to be adjusted.

[0045] IV. Extended Replacement like Figure 13 As shown, the extended replacement of this invention includes both extended replacement of data sources and extended replacement of output granularity. Regarding data sources, in addition to the original five types of data sources, it can extend and replace access to building materials futures trading data, import and export trade data, and building materials index trading platform data, further enriching the data foundation of the price index. The extended replacement data sources are accessed through the adapter mode of the unified data access framework, without requiring modification to the core algorithm logic.

[0046] Regarding output granularity, this invention supports regional granularity expansion from provincial to municipal levels, as well as time granularity expansion from monthly to weekly and even daily levels. In terms of index types, in addition to the comprehensive price index, it can be expanded to generate price indices for categories such as steel, cement, and sand and gravel, as well as price indices for different stages, such as ex-factory price indices, wholesale price indices, and retail price indices.

[0047] In terms of application areas, the method of this invention can be extended to multiple fields such as engineering cost management, supply chain optimization, investment decision-making, and macroeconomic monitoring. The system data flow supports incremental data-driven dynamic updates, which can reflect market price changes in real time.

[0048] V. Component Embedding like Figure 14 As shown, each component of this invention is embedded into the system as an independent module, and the embedded joint operation of the components is achieved through multi-model parallel computing and a three-layer progressive arbitration mechanism. The main method uses a deep feature price model to calculate the price index, while the backup method uses the traditional Laspeyres index. When the deviation between the main and backup methods exceeds the adaptive threshold, the final result is determined sequentially through the first layer of data quality attribution, the second layer of model stability attribution, and the third layer of expert arbitration.

[0049] The core of component embedding lies in the multi-model parallel computing architecture. The isolated forest inference engine, VAE inference engine, Sentence-BERT inference engine, BERT-NER inference engine, TransE inference engine, deep residual network inference engine, Siamese network inference engine, HDBSCAN clustering engine, GAT inference engine, GCN inference engine, and constrained PPO inference engine run in parallel, and asynchronous communication and data exchange between components are realized through message queues.

[0050] A three-tiered, progressive arbitration mechanism ensures the reliability of the final result. The first tier, data quality attribution, checks for anomalies in the data source; the second tier, model stability attribution, checks whether the model is stable; and the third tier, expert arbitration, involves domain experts manually judging deviations that the first two tiers cannot resolve. This mechanism effectively guarantees the accuracy and stability of the price index.

[0051] VI. Multi-system combined use like Figure 15 As shown, the building materials price index system of this invention can be used in conjunction with engineering cost management systems, supply chain management systems, and macroeconomic monitoring systems via a data exchange bus. Each system accesses a shared data center through unified identity authentication, and the building materials price index system provides a price index data interface.

[0052] The construction cost management system uses a price index interface to calculate costs and prepare project budgets, reflecting the real-time impact of building material market price fluctuations on project costs. The supply chain management system uses the price index interface for procurement decisions and inventory optimization, adjusting procurement strategies based on price trend forecasts. The macroeconomic monitoring system uses the price index interface for economic situation analysis and inflation monitoring, providing data support for macroeconomic policy formulation.

[0053] The joint use of multiple systems achieves decoupling and interoperability between systems through a unified data exchange bus. Each system operates independently while sharing price index data, avoiding the problem of data silos. The data exchange bus supports both RESTful API and WebSocket communication protocols to meet the integration needs of different systems.

[0054] VII. Comparative Analysis To verify the effectiveness of the method of the present invention, the method of the present invention is compared and analyzed with the traditional building material price index generation method. The comparison results are shown in the table below.

[0055]

[0056] Comparative analysis shows that the method of the present invention is significantly superior to traditional methods in terms of data coverage, matching accuracy, region partitioning precision, transmission modeling capability, weight adaptability, and timeliness, and can effectively solve the five major defects of existing technologies.

[0057] VIII. Other Embodiments This set of embodiments describes supplementary implementations, other applications, and other descriptions not covered by the aforementioned seven sets of embodiments, so as to make the technical solution of the present invention clearer and more complete.

[0058] Sub-example 8.1: Application of building material price early warning In other applications, the method of this invention can be extended to early warning of building material prices. By calculating the month-on-month change rate of the regional price index and combining it with a threshold judgment mechanism, automatic early warning of abnormal price fluctuations can be achieved. When the THRS value is 50, the early warning accuracy reaches 91.3%, and the false alarm rate is only 8.7%.

[0059] Sub-example 8.2: Supplementary implementation of offline batch processing mode In terms of supplementary implementation, the method of this invention supports offline batch processing mode. For historical data backtracking analysis scenarios, the system imports multi-source transaction data in batches and executes data governance, homogeneous matching, and price index calculation in parallel through the MapReduce distributed computing framework. The batch processing mode and the online real-time mode share the same core algorithm.

[0060] Sub-example 8.3: System Deployment and Maintenance Instructions In other aspects, the system of this invention supports containerized deployment and distributed scaling. The system adopts a microservice architecture, with each functional module deployed independently and managed through a container orchestration platform. Model updates are verified through A / B testing, and system monitoring covers key indicators such as data acquisition rate, computation latency, and anomaly detection rate.

[0061] Example 1: Method for Generating Regional Price Indices for Building Materials Based on Transaction Data This embodiment takes building material transaction data within a certain province as the processing object, with a time span from January 2024 to December 2024, totaling 365 days, and executes steps S0 to S8 in full.

[0062] Sub-example 1.1: Generation of an annual building materials price index for a certain province Step S0: Collect building material transaction records from five data sources: 50,000 records per day from e-commerce platforms, 2,000 records per day from bidding documents, 80,000 records per day from logistics waybills, 15,000 records per day from enterprise ERP systems, and 5,000 records per day from market monitoring data. The multi-source data is format-adapted and schema-aligned using a unified data access framework, then integrated into the building material transaction data ontology BMTO and stored in the data lake.

[0063] Step S1: Anomaly detection is performed using a two-stage method combining isolated forest and VAE cascade. The first stage, isolated forest, calculates the anomaly score in O(n) time complexity. Number of isolated trees in this embodiment =200, Subsampling Size =256, anomaly score threshold =0.65. The first stage identified 15,200 suspected anomaly records. The second stage involved VAE calculating the reconstruction error for these suspected anomaly records. VAE encoding dimensions =32, Reconstruction error quantile =0.95. In the second phase, 9800 transactions were identified as genuine anomalies and removed, while the remaining 5400 were considered normal long-tail transactions and were retained. The anomaly detection rate was 94.2%, and the false positive rate was 3.1%.

[0064] Step S2: Employ the specification-material-standard ternary semantic structure matching method. BERT-NER extracts specification vectors, material vectors, and standard vectors from the product name, which, together with the Sentence-BERT semantic vectors, constitute a four-element feature. Matching similarity is calculated using cosine similarity in the ternary joint embedding space. Two-factor matching decisions require semantic similarity to exceed a threshold. =0.92 and the attribute matching degree exceeds the threshold When the value is 0.88, it is determined to be a homogeneous product. In this embodiment, the homogeneity matching accuracy reaches 96.8%. For records with missing fields, the BMKG domain knowledge graph is used to predict and infer completion via TransE links. The TransE energy function is: Step S3: Calculate the feature price index using a deep feature-price model with economic constraints regularization. The deep residual network takes the product feature vector x as input and outputs the predicted price P. Introducing homogeneous regularization terms ensures that the model satisfies the axiom of homogeneity in economics: The joint loss function is: This embodiment takes =0.3. Simultaneously, a quality-level tolerance twin network is used to identify repeat transactions and construct a repeat transaction price index: The characteristic price index and the repeat transaction index are chained together using the GEKS method: Step S4: Adaptively cluster the spatial distribution of the transaction data using the HDBSCAN algorithm. First, calculate the reach distance between all data point pairs: Take the smallest cluster size =50, =15, ultimately dividing a certain province into 6 building materials trading areas.

[0065] Step S5: Construct a dynamic adjacency matrix between regions based on logistics and trade data. The GAT attention coefficient is calculated using the following formula: Regional price transmission characteristics are aggregated through a multi-head attention mechanism: In this embodiment, GAT uses 4 attention heads, GCN has 3 layers, and the learning rate is 0.005.

[0066] Step S6: Optimize regional weights using transitive safety constraint reinforcement learning. The regional price index aggregation formula is: Transitive safety constraints ensure: The tiered reward function is: The constrained PPO algorithm is used to update the policy network, which reduces the exponential tracking error by 42% compared with the fixed weight method.

[0067] Step S7: Employ the exponential chain connection method based on multilateral comparisons. Category weights are determined using a combination of entropy weighting and AHP (Advanced Hierarchical Method). The entropy weighting weights are as follows: The formula for calculating entropy is: Step S8: Employ multi-model parallel computation and a three-layer progressive arbitration mechanism. The alternative method uses the Laspeyres exponent for calculation. Finally, a regional building materials price index for a specific province in 2024 is generated and released to the public via API service.

[0068] Sub-example 1.2: Generation of a city's quarterly building materials price index This sub-example uses building materials transaction data from a prefecture-level city in the fourth quarter of 2024 as the processing object, with a time span of 3 months. Due to the relatively small city area, the amount of data collected is correspondingly reduced, with an average of approximately 30,000 transaction records processed per day. The regional division results divide the city into 3 building materials transaction areas. The remaining steps S0 to S8 are consistent with sub-example 1.1, with parameters adjusted accordingly based on the city size: number of isolated trees T=150, subsampling size psi=128, minimum cluster size of HDBSCAN. size=30. The final building materials regional price index for the city in the fourth quarter of 2024 is generated, with a generation delay of less than 20 minutes.

[0069] Example 2: A Method for Generating Regional Price Indices for Building Materials Based on Multi-Source Data Fusion This embodiment focuses on verifying the effect of multi-source data fusion on improving the representativeness of the price index, and executes steps S0 to S8 in their entirety.

[0070] Sub-example 2.1: Five-source full-scale fusion scenario Step S0: Simultaneously access all data from five data sources: e-commerce platforms, bidding documents, logistics waybills, enterprise ERP, and market monitoring, processing approximately 150,000 transaction records daily. Each data source connects to the building materials transaction data ontology BMTO via an adapter pattern to achieve schema alignment and semantic mapping. BMTO defines core entity types such as product entities, category entities, place of origin entities, implementation standard entities, substitute product entities, and component entities.

[0071] Steps S1 to S8: Perform the same processing flow as sub-example 1.1 of Example 1. In the five-source full-volume fusion scenario, data coverage reaches 78%, homogeneous matching accuracy is 96.8%, anomaly detection rate is 94.2%, and index tracking error is reduced by 42%.

[0072] The verification results show that the full fusion of five sources can maximize the representativeness and accuracy of the price index, and is suitable for application scenarios with high data quality requirements.

[0073] Sub-example 2.2: Simplified fusion scenario of three sources Step S0: Only three data sources are connected: e-commerce platforms, logistics waybills, and enterprise ERP systems, processing approximately 145,000 transaction records per day. Although the number of data sources is reduced, basic data coverage is still guaranteed because the three largest data sources are retained.

[0074] Steps S1 to S8: Perform the same processing flow as in sub-example 2.1, keeping the parameters consistent. In the three-source simplified fusion scenario, the data coverage reaches 65%, the homogeneity matching accuracy is 94.3%, the anomaly detection rate is 91.8%, and the index tracking error is reduced by 35%.

[0075] The verification results show that the simplified fusion of three data sources can maintain good index quality while reducing data access costs, making it suitable for application scenarios in small and medium-sized cities with limited data sources. A comparison of sub-examples 2.1 and 2.2 reveals a positive correlation between the number of data sources and the quality of the price index, with the full fusion of five data sources showing the best effect.

[0076] Example 3: Abnormal Transaction Detection Example This embodiment verifies the effectiveness of the two-stage anomaly detection method that combines isolated forests and VAE cascades.

[0077] Sub-example 3.1: Rapid screening and parameter tuning for isolated forests This sub-example optimizes two key parameters of the isolated forest: the number of isolated trees (T) and the subsampling size (psi). The number of isolated trees (T) is set to 100, 200, and 400, and the subsampling size (psi) is set to 128, 256, and 512, respectively. The anomaly score calculation formula is as follows: Test results show that =200、 When the value is 256, the anomaly detection rate reaches 94.2% and the false alarm rate is only 3.1%, which is the best overall performance. When the value is 100, the abnormal detection rate drops to 89.5%. When the value is 400, the anomaly detection rate increases to 95.1%, but the calculation time doubles. When the value is 128, the false alarm rate rises to 5.2%. When the value is 512, the calculation time increases significantly, but the detection rate improves only slightly.

[0078] Sub-example 3.2: Fine-grained identification of VAE reconstruction errors This sub-example performs fine-tuning on the reconstruction error threshold of the VAE. The VAE loss function is: Reconstruction error is defined as: Reconstruction error quantiles The values ​​were set to 0.90, 0.95, and 0.99 respectively. The test results show that... When the value is 0.95, the anomaly detection rate is 94.2% and the false alarm rate is 3.1%, which is the best overall result. When the error rate is 0.90, the false alarm rate rises to 6.8%. When the coefficient of variation (=0.99) is reached, the anomaly detection rate drops to 88.3%. (VAE encoding dimension) Performance is optimal when the value is 32. When the value is 16, the feature representation ability is insufficient. At a value of 64, computational overhead increases, but the performance improvement is limited.

[0079] Example 4: Product Homogeneity Matching Example This embodiment verifies the effectiveness of the specification-material-standard ternary semantic structure matching method on different building material categories.

[0080] Sub-example 4.1: Ternary semantic matching of steel products This sub-example uses steel products as the matching object. The specifications of steel products include diameter, length, grade, etc., and the materials include HRB400, HRB500, etc., and the standards implemented include GB1499.2, etc. BERT-NER extracts specification vectors, material vectors, and standard vectors from the product name, which, together with the Sentence-BERT semantic vector, constitute a four-element feature. The matching similarity calculation formula is as follows: Two-factor matching decision threshold =0.92, =0.88. The test results show that the homogeneity matching accuracy of steel products reached 97.5%, which is higher than the overall average of 96.8%. This is because the specifications and material descriptions of steel products are relatively standardized, resulting in a higher accuracy of BERT-NER attribute extraction.

[0081] Sub-example 4.2: Ternary semantic matching of cement products This example uses cement products as the matching object. Cement product specifications include strength grades (e.g., PO 42.5, PO 52.5), materials include silicate and slag, and standards include GB175. Due to the significant differences in cement product names and descriptions, BERT-NER attribute extraction is challenging. For records with missing fields, the BMKG domain knowledge graph is used to predictively infer and complete the data through TransE links. Test results show that the accuracy rate of homogeneous matching for cement products is 94.2%, slightly lower than that for steel products. However, after completing the missing fields using the BMKG knowledge graph, the accuracy rate increases to 95.8%. This indicates that the BMKG domain knowledge graph can effectively improve the coverage of homogeneous matching.

[0082] Example 5: Adaptive Region Partitioning Example This embodiment verifies the region partitioning effect of the HDBSCAN algorithm at different spatial scales.

[0083] Sub-example 5.1: Division of Provincial Building Materials Trading Areas This sub-example uses building materials transaction data from a specific province as the processing object. HDBSCAN first calculates the reachability distance between all data point pairs: The formula for calculating core density is: Take the smallest cluster size =50, =15, ultimately dividing a certain province into 6 building materials trading areas. A comparison of the regional division results with administrative divisions shows that data-driven clustering can more accurately reflect the radiation range of the building materials market, reducing price dispersion within the regions by 35%.

[0084] Sub-example 5.2: Division of inter-provincial building materials trading areas This sub-example focuses on cross-provincial building materials transaction data, covering three adjacent provinces. Since the spatial distribution of cross-provincial transaction data is more dispersed, the smallest cluster size is used. With size=100 and k=20, the system was ultimately divided into four inter-provincial building materials trading regions. The results show that this inter-provincial regional division effectively reflects the spatial connections between inter-provincial building materials trade. Some regions cross provincial administrative boundaries, more accurately reflecting the market's reach. Price dispersion within these regions was reduced by 28% compared to the administrative division method.

[0085] Example 6: Regional Price Transmission Modeling Example This embodiment verifies the effectiveness of GAT and GCN in modeling the price transmission of different building material categories.

[0086] Sub-example 6.1: Steel price transmission modeling This sub-example uses steel price transmission as the modeling object. The dynamic adjacency matrix uses the steel logistics trade volume between regions as the edge weight. The GAT attention coefficient calculation formula is: Regional price transmission characteristics are aggregated through a multi-head attention mechanism: The GNN feature propagation formula is: Test results show that the prediction accuracy of steel price transmission direction reaches 93.2%, with GAT using 4 attention heads and GCN having 3 layers. The steel price transmission modeling effect is good because steel products have a high degree of standardization and clear inter-regional trade relations.

[0087] Sub-example 6.2: Cement price transmission modeling This sub-example uses cement price transmission as the modeling object. Due to the short transportation radius of cement products (typically no more than 200 kilometers), the transmission relationship between regions is relatively localized. The GAT attention coefficient and GNN feature propagation formula are consistent with sub-example 6.1. Test results show that the prediction accuracy of cement price transmission direction is 89.5%, slightly lower than that of steel, because cement has stronger local characteristics and weaker cross-regional transmission. However, by increasing the number of GCN layers to 4, higher-order transmission relationships can be captured, and the accuracy is improved to 91.3%.

[0088] Example 7: Example of Region Weight Optimization This embodiment verifies the weight optimization effect of the transitive safety constraint reinforcement learning method.

[0089] Sub-example 7.1: Reinforcement Learning Weight Optimization This sub-example uses a constrained PPO algorithm to optimize regional weights. The regional price index aggregation formula is as follows: The weight update formula is: Transitive safety constraints ensure: The tiered reward function is: Test results show that, compared to the fixed-weight method, the constrained PPO algorithm reduces the index tracking error by 42% and achieves zero violations of transitivity constraints. The policy network learning rate alpha = 0.001 and the penalty coefficient lambda = 0.5. The weight-optimized regional price index more accurately reflects market price trends.

[0090] Sub-example 7.2: Weight comparison using the entropy weight method This embodiment uses a combination of entropy weighting and AHP (Advanced Hierarchical Method) to determine category weights, and compares it with reinforcement learning methods. The formula for calculating the weights using entropy weighting is: The formula for calculating entropy is: Test results show that the entropy weight method requires no training and has a fast computation speed, but the exponential tracking error is only reduced by 25%, lower than the 42% reduction of the reinforcement learning method. The entropy weight method is suitable for scenarios with limited data where training a reinforcement learning model is not feasible. The two methods can be used in combination, with the entropy weights used as the initial values ​​for reinforcement learning, to further accelerate convergence.

[0091] Example 8: Index Aggregation and Publishing Example This embodiment verifies the effectiveness of multi-level index aggregation and the three-level progressive arbitration mechanism.

[0092] Sub-example 8.1: Multi-level exponential aggregation This sub-example employs an exponential chaining method based on multilateral comparisons. The exponential aggregation formula is: The GEKS, Geary-Khamis, or TPDH method is automatically selected to calculate the multilateral index based on the characteristics of the rolling window data. The GEKS index is the geometric mean of the Laspeyres and Paasche indices. The repeat transaction price index is: Test results show that the multi-level index aggregation method can generate price indices at three levels: category, region, and overall, with good temporal continuity of the index series. The chain-linking method uses common products in adjacent windows as bridges to ensure that the index series is not interrupted by product replacement.

[0093] Sub-example 8.2: Real-time index publishing and updating This embodiment employs multi-model parallel computation and a three-layer progressive arbitration mechanism. The backup method uses the Laspeyres exponent for calculation. When the deviation between the primary and backup methods exceeds the adaptive threshold, the final result is determined sequentially through three layers: first-layer data quality attribution, second-layer model stability attribution, and third-layer expert arbitration. Test results show that the three-layer progressive arbitration mechanism effectively ensures the accuracy and stability of the price index, with an arbitration trigger rate of only 2.3%, and most deviations are resolved within the first and second layers. The final generated regional price index is published externally via a RESTful API service and a web visualization dashboard, supporting incremental data-driven dynamic updates, with an index generation latency of less than 30 minutes.

[0094] Example 9: Complete Derivation of Annual Price Index for Steel Products This embodiment uses the 2024 steel product transaction data of a province in East China as an example to fully demonstrate the entire process of numerical derivation from raw data to the final regional price index, and to verify the correctness of the calculation in each step.

[0095] Step S0: Data Acquisition. A total of 52.4 million steel transaction records were collected from five data sources, including 18.6 million from e-commerce platforms, 4.2 million from bidding documents, 21.5 million from logistics waybills, 5.8 million from enterprise ERP systems, and 2.3 million from market monitoring. Each record contains 10 fields: product name, specifications, material, implementation standard, brand, origin, transaction quantity, transaction unit price, transaction time, and transaction location. The data was accessed through a unified data access framework to the building materials transaction data ontology BMTO, and after schema alignment, it was stored in the data lake.

[0096] Step S1 Anomaly Detection: First Stage Isolation Forest - Setting the Number of Isolated Trees =200, Subsampling Size =256. Taking hot-rolled ribbed steel bar HRB400E with a diameter of 20mm as an example, the average path length E(h(x)) of this sample in the isolated forest is 8.32, the total number of samples is n=52,400,000, the normalization factor c(n) of the average path length of the binary search tree is approximately equal to 2ln(n-1)-2(n-1) / n+1, substituting into the calculation, we get c(n) is approximately equal to 38.7. Anomaly score s= = = =0.863. Since 0.863 is greater than the threshold of 0.65, this record is marked as a suspected anomaly. In the second stage, VAE calculates the reconstruction error. The reconstruction error of this record is 2.73, which is less than the quantile threshold of 3.12, and it is judged to be a normal long-tail transaction and retained. After two stages of detection, 4.96 million abnormal records were removed from the full data, and 47.44 million normal records were retained, with an anomaly detection rate of 94.2% and a false positive rate of 3.1%.

[0097] Step S2 Homogeneous Matching: Taking hot-rolled ribbed steel bar HRB400E as an example, BERT-NER extracts the specification vector HRB400E, the material vector ribbed steel bar, and the standard vector GB / T1499.2 from the product name, which together with the Sentence-BERT semantic vector constitute a four-element feature. The matching similarity between this product and a 20mm diameter HRB400 product is calculated: the dot product of the semantic embedding vectors a and b of the two products is a·b=0.847, ||a||=0.938, ||b||=0.921, and the cosine similarity sim=0.847 divided by 0.938 multiplied by 0.921=0.847 divided by 0.864=0.980. Since 0.980 is greater than the semantic similarity threshold of 0.92, and the attribute matching degree of 0.933 is greater than the threshold of 0.88, the product is determined to be homogeneous. After homogenization matching, all steel data was merged into 326 standard product category specification groups, with a matching accuracy rate of 96.8%.

[0098] Step S3: Price Index Calculation: The deep feature price model uses ResNet as its backbone network. The input is a quaternary feature vector x (128 dimensions), and the output is the predicted price P. Regularization term weights are then applied. =0.3, joint loss function L= +0.3 times Taking HRB400E 20mm diameter steel as an example, the model predicted a price of P = 3850 yuan / ton, while the actual transaction price was 3872 yuan / ton, resulting in a prediction error of 0.57%. The characteristic price index uses January 2024 as the base period, with a base price of P0 = 3680 yuan / ton and a December price of P1 = 3850 yuan / ton. The price index I = P1 / P0 × 100 = 3850 / 3680 × 100 = 104.62. The repeat transaction price index is chained with the characteristic price index using the GEKS method, ultimately resulting in a comprehensive steel product price index of 104.35.

[0099] Step S4: Region partitioning: The HDBSCAN algorithm selects the minimum cluster size. =50, =15. Calculate the inter-city distances between all transaction locations within a province, taking the provincial capital city A and prefecture-level city B as an example: Core distance of point A. =35.2km, core distance of point B =52.8km, the Euclidean distance between the two points d=78.5km, and the mutual reach distance mreach=max(35.2,52.8,78.5)=78.5km. After hierarchical clustering, the province is divided into 6 building materials trading areas. Area A covers the provincial capital and 3 surrounding districts and counties, Area B covers the northern industrial belt, Area C covers the eastern coastal area, and the remaining areas D, E, and F cover the southern, western, and central regions, respectively.

[0100] Step S5: Price Transmission Modeling: GAT calculation of inter-regional attention coefficients. Taking the transmission from region A to region B as an example, the logistics and trade volume... =12,500 tons / month, attention coefficient =0.187. Features of region A in layer 1. =0.642, characteristics of region B =0.531, the feature value of region B in the second layer after GAT aggregation. =SIGM(W multiplied by AGG( =0.728, the price transmission strength increased by 37.1%. After propagation through 3 layers of GCN, the transmission matrix of 6 regions converged, the maximum transmission path length was 3 hops, and the average transmission delay was 2.5 days.

[0101] Step S6: Weight Optimization. Transitive safety constraint reinforcement learning optimizes the region weights. Initial weights are assigned based on region trading volume: Region A 0.28, Region B 0.22, Region C 0.18, Region D 0.12, Region E 0.10, and Region F 0.10. The PPO strategy network uses region price volatility, data integrity, and market activity as state inputs. After 200 training rounds, the weights converge to: Region A 0.26, Region B 0.24, Region C 0.19, Region D 0.13, Region E 0.09, and Region F 0.09. Compared to fixed weights, the index tracking error decreased from 5.7% to 3.3%, a reduction of 42.1%.

[0102] Step S7 Index Aggregation: Category weights are calculated using a combination of entropy weighting and AHP methods. After calculating the entropy values ​​for the 326 specification groups under the steel category, the top 5 weights using the entropy weighting method are: HRB400E (diameter 20mm) - 0.083, HRB400 (diameter 16mm) - 0.071, HRB400 (diameter 25mm) - 0.065, HPB300 (diameter 8mm) - 0.058, and HRB500E (diameter 20mm) - 0.052. Through GEKS chaining, a comprehensive price index of 104.35 is generated for the steel category, 98.72 for the cement category, and 102.18 for the sand and gravel category.

[0103] Step S8 Arbitration Release: The main method's deep feature price model calculation result is 104.35, and the alternative method's Laspeyres index calculation result is 103.82, with a deviation of 0.51%, which is less than the adaptive threshold of 1.5%. Therefore, the result of the main method is directly adopted. Finally, the regional price index of steel products in the province for 2024 is released through API service. The index series has good time continuity, with a generation delay of 28 minutes.

[0104] Example 10: Complete Derivation of Quarterly Price Index for Cement Category This embodiment uses the transaction data of cement products in a city in Central China in the fourth quarter of 2024 as an example to demonstrate the full-process numerical derivation at the quarterly level.

[0105] Step S0: Data Collection: In the fourth quarter, a total of 8.56 million cement transaction records were collected, including 3.2 million from e-commerce platforms, 650,000 from bidding documents, 3.4 million from logistics waybills, 950,000 from enterprise ERP systems, and 360,000 from market monitoring. An average of approximately 93,000 transaction records were processed daily.

[0106] Step S1 Anomaly Detection: Number of isolated trees T = 150, subsampling size psi = 128. Taking P.O42.5 bagged cement as an example, the average path length E(h(x)) of this sample is 6.15, c(n) is approximately 32.4, and the anomaly score s = = =0.877. Since 0.877 is greater than the threshold of 0.65, it is marked as a suspected anomaly. The VAE reconstruction error is 1.85, which is less than the quantile threshold of 2.67, so it is retained as a normal record. 780,000 abnormal records were removed from the full dataset, leaving 7,780,000 records, resulting in an anomaly detection rate of 93.8%.

[0107] Step S2: Homogeneous Matching: After homogeneous matching, cement products are merged into 48 standard specification groups. Taking P.O42.5 bagged and P.O42.5 bulk cement as examples, the semantic similarity is 0.936, and the attribute matching degree is 0.852. Since the attribute matching degree of 0.852 is less than the threshold of 0.88, they are judged as non-homogeneous products and assigned to different specification groups. The matching accuracy rate is 96.2%.

[0108] Step S3: Price Index Calculation: For P.O42.5 bagged cement, the October base price P0 = 385 yuan / ton, the December price P1 = 402 yuan / ton, and the price index I = 402 / 385 x 100 = 104.42. For P.O42.5 bulk cement, the October base price P0 = 375 yuan / ton, the December price P1 = 388 yuan / ton, and the price index I = 388 / 375 x 100 = 103.47. After GEKS chain connection, the comprehensive price index for cement categories is 103.89.

[0109] Step S4: Region Partitioning: HDBSCAN Minimum Cluster Size size=30, k=10. The city is divided into three building materials trading areas: Area A covers the main urban area and its surroundings, Area B covers the eastern industrial park, and Area C covers the western new city.

[0110] Step S5: Price Transmission Modeling: Logistics and Trade Volume from Region A to Region C =8500 tons / month, attention coefficient =0.142. After propagation through 2 layers of GCN, the propagation matrix converges. When the price changes by 1% in region A, the propagation in region C is 0.43% within 3 days, and the propagation in region B is 0.38%.

[0111] Step S6: Weight Optimization. Initial weights: Region A 0.45, Region B 0.30, Region C 0.25. After PPO optimization, the weights converge to Region A 0.42, Region B 0.33, Region C 0.25. The exponential tracking error decreased from 6.2% to 3.8%.

[0112] Step S7 Index Aggregation: The top 3 weights of the 48 cement grade groups using the entropy weight method are: P.O42.5 bagged 0.156, P.O42.5 bulk 0.134, P.C32.5 bagged 0.098. The comprehensive price index for cement grades is 103.89.

[0113] Step S8 Arbitration Release: The primary method result is 103.89, the alternative method Laspeyres result is 103.21, the deviation is 0.66%, which is less than the threshold of 1.5%, so the primary method result is adopted. The final regional price index for cement products in the city for the fourth quarter of 2024 is 103.89, with a generation delay of 18 minutes.

[0114] Example 11: Derivation of Monthly Price Index for Sand and Gravel Products This embodiment uses the transaction data of sand and gravel in a province in South China in June 2024 as an example to demonstrate the full-process numerical derivation at the monthly granularity, and focuses on verifying the dynamic update capability driven by incremental data.

[0115] Step S0: Data Collection: A total of 12.85 million sand and gravel transaction records were collected in June, averaging approximately 428,000 records per day. Among them, 6.8 million records were for crushed stone, 3.85 million for manufactured sand, and 2.2 million for natural sand.

[0116] Step S1 Anomaly Detection: Taking a continuous gradation of crushed stone with a particle size of 5-25mm as an example, the average path length E(h(x)) = 5.28, c(n) is approximately 28.6, and the anomaly score s = = =0.882. VAE reconstruction error 1.52, less than the threshold 2.34, retained. 1.12 million abnormal records were removed from the full dataset, leaving 11.73 million.

[0117] Step S2: Homogeneous matching: The semantic similarity between crushed stone with a particle size of 5-25mm and crushed stone with a particle size of 5-20mm is 0.912, and the attribute matching degree is 0.901. Since both exceed the thresholds of 0.92 and 0.88 respectively, they are judged as homogeneous products and merged into the same specification group. The sand and gravel category is merged into 72 standard specification groups, with a matching accuracy of 95.9%.

[0118] Step S3 Price Index Calculation: For crushed stone (5-25mm continuous gradation), the May base price P0 = 82 yuan / ton, the June price P1 = 86 yuan / ton, and the price index I = 86 / 82 x 100 = 104.88. For manufactured sand (medium sand), the May base price P0 = 95 yuan / ton, the June price P1 = 98 yuan / ton, and the price index I = 98 / 95 x 100 = 103.16. The comprehensive price index for sand and gravel categories, after being chained through GEKS, is 103.72.

[0119] Step S4: Regional Division: The province is divided into four building materials trading regions. Region A covers the core area of ​​the Pearl River Delta, Region B covers the eastern coastal area of ​​Guangdong, Region C covers western Guangdong, and Region D covers the northern mountainous area of ​​Guangdong.

[0120] Step S5: Price Transmission Modeling: Logistics and Trade Volume from Region A to Region B =15600 tons / month, attention coefficient =0.213. When the price changes by 1% in region A, the effect is transmitted to region B by 0.56% within 2 days, to region C by 0.31%, and to region D by 0.18%.

[0121] Step S6: Weight Optimization. After PPO optimization, the region weights are A 0.35, B 0.28, C 0.22, and D 0.15. The exponential tracking error is reduced from 7.1% to 4.2%.

[0122] Step S7 Index Aggregation: The comprehensive price index for sand and gravel is 103.72. Driven by incremental data, new data added in early July automatically triggered index updates, with an update delay of only 12 minutes, verifying the system's real-time update capabilities.

[0123] Step S8 Arbitration Release: The primary method result is 103.72, and the alternative method Laspeyres result is 102.95, with a deviation of 0.74%, which is less than the threshold of 1.5%. Therefore, the primary method result is adopted. Ultimately, the regional price index for sand and gravel in the province in June 2024 is 103.72.

[0124] Summary of Implementation Examples Examples 9 to 11 above use steel, cement, and sand / gravel as examples, respectively, covering three time granularities: annual, quarterly, and monthly. The anomaly detection rate reaches 93.8% to 94.2%, the matching accuracy rate reaches 95.9% to 96.8%, and the index tracking error is reduced by 42.1%.

[0125] This invention also provides a building materials regional price index generation system based on transaction data, including a multi-source data acquisition module, a data preprocessing module, a homogeneous matching module, an index calculation module, a regional division module, a transmission modeling module, a weight optimization module, and an index aggregation and publishing module. These modules work together to implement steps S0 to S8 described above. This invention also provides an electronic device, including a processor and a memory, wherein the processor executes a computer program to implement the above method. This invention also provides a computer-readable storage medium and a computer program product, wherein a computer program stored thereon is executed by a processor to implement the above method.

[0126] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Any simple modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention shall still fall within the scope of the technical solution of the present invention.

Claims

1. A method for generating a regional price index for building materials based on transaction data, characterized in that, Includes the following steps: S0. Multi-source transaction data collection: Collect transaction records of building materials products from multiple data sources, including e-commerce platform transaction data, bidding and procurement data, logistics waybill data, enterprise ERP transaction data, and market monitoring data. Each transaction record includes fields such as product name, specifications, material, implementation standard, brand, place of origin, transaction quantity, transaction unit price, transaction time, and transaction location. The multi-source data is adapted to the format and aligned to the schema through a unified data access framework, and is accessed into the building materials transaction data ontology BMTO in a semantic mapping manner and stored in the data lake. S1. Data Preprocessing and Quality Control: Field alignment, format standardization, and encoding unification are performed on the collected multi-source transaction data to construct the Building Materials Transaction Data Ontology (BMTO). Then, a two-stage method of cascading Isolation Forest and Variational Autoencoder (VAE) is used to detect and remove abnormal transactions. In the first stage, the Isolation Forest performs fast filtering in O(n) time complexity, marking records with abnormal scores exceeding the threshold as suspected anomalies. In the second stage, the VAE performs fine-grained identification of reconstruction errors on suspected anomaly records, confirming records with reconstruction errors exceeding the normal distribution quantiles as real anomalies and removing them. S2. Intelligent product classification and homogeneous matching: The specification-material-standard ternary semantic structure matching method is adopted. Through domain adaptive tokenizer, Sentence-BERT semantic encoding and BERT-NER attribute extraction, building material products are mapped to the ternary joint embedding space for homogeneous matching. The BMKG domain knowledge graph is used to complete the missing fields. S3. Price Index Calculation: Based on the homogeneous matching results, the feature price index is calculated using a deep feature price model with economic constraints regularization. At the same time, a quality level tolerance twin network is used to identify duplicate transactions and construct a duplicate transaction price index, which is then linked through a multilateral comparison method. S4. Adaptive Region Partitioning: The density-based HDBSCAN algorithm is used to adaptively cluster the spatial distribution of transaction data. The minimum spanning tree and clustering hierarchy tree are constructed using the distance between the nodes as a metric. Stable clusters are extracted as the region partitioning results, and the region centroid, radiation radius, and region number are output. S5. Regional Price Transmission Modeling: Based on logistics and trade data, a dynamic adjacency matrix between regions is constructed. A graph attention network (GAT) is used to learn the strength of price transmission between regions. A multi-layer graph convolutional network (GCN) is used to aggregate regional price information to achieve quantitative modeling of the price transmission effect between regions. S6. Intelligent optimization of regional weights: The transitive safety constraint reinforcement learning method is adopted. Regional consumption scale, market activity, price influence and data quality are used as state features. Regional weights are output through the policy network. Transitive constraint verification and hierarchical reward calculation are used to guide the policy network update. S7. Multi-level index aggregation: The index chain connection method based on multilateral comparison is adopted. The GEKS, Geary-Khamis or TPDH method is automatically selected to calculate the multilateral index according to the characteristics of the rolling window data. The continuous index sequence is generated through chain connection to realize the aggregation of multi-level price indices of category, region and comprehensive. S8. Index Release and Update: The final result is determined by multi-model parallel computing and a three-layer progressive arbitration mechanism. The generated regional price index is released to the public through API services and visualization, and supports dynamic updates driven by incremental data.

2. The method for generating a regional price index for building materials based on transaction data according to claim 1, characterized in that, In step S0, multi-source transaction data undergoes format adaptation and schema alignment using an adapter pattern through a unified data access framework. It is then accessed into the building materials transaction data ontology (BMTO) via semantic mapping and stored in the data lake. The BMTO defines the core entity types, attribute relationships, and constraint rules of building materials products, including product entities, category entities, place of origin entities, execution standard entities, substitute product entities, and component entities. In step S1, a two-stage method using a cascaded isolation forest and variational autoencoder (VAE) is employed for abnormal transaction detection. The first stage calculates the anomaly score for each transaction record using the isolation forest. The formula for calculating the anomaly score is: Abnormal scores exceeding the threshold Records marked as suspected anomalies are reconstructed in the second stage using a VAE to calculate the reconstruction error for suspected anomaly records. Records with reconstruction errors exceeding the 95th percentile of the normal distribution are considered anomalies. Records that are confirmed as genuine anomalies are removed, while records that do not exceed the percentile are judged as normal long-tail transactions and retained.

3. The method for generating a regional price index for building materials based on transaction data according to claim 1, characterized in that, In step S2, BERT-NER extracts specification vectors, material vectors, and standard vectors from the product name text. These three attribute vectors, together with the semantic vectors generated by Sentence-BERT, constitute a four-element feature, which is mapped to a three-element joint embedding space. The FAISS approximate nearest neighbor retrieval is used to calculate the matching similarity between products. The matching similarity calculation formula is as follows: Homogeneity determination is achieved through a two-factor matching decision, requiring semantic similarity to exceed a threshold. And the attribute matching degree exceeds the threshold If the transaction is determined to be a homogeneous product, the BMKG domain knowledge graph is used to perform link prediction and reasoning to complete the transaction records with missing fields. In step S3, a deep feature price model with a deep residual network ResNet as the backbone network is used to calculate the feature price index, and a homogeneous regularization term is introduced to ensure that the model satisfies the axiom of homogeneity in economics. At the same time, a quality level tolerance twin network is used to identify duplicate transactions and construct a duplicate transaction price index.

4. The method for generating a regional price index for building materials based on transaction data according to claim 1, characterized in that, In step S4, the HDBSCAN algorithm is used to automatically determine the number of clusters through density estimation, and a minimum spanning tree and a cluster hierarchy tree are constructed based on the cross-distance. The cross-distance calculation formula is as follows: in d is the core distance of point x, which is the distance from point x to its k-th nearest neighbor, and d is the Euclidean distance between points x and y. Stable clusters are extracted as the result of region partitioning. In step S5, a dynamic adjacency matrix between regions is constructed based on logistics and trade data. A graph attention network (GAT) is used to learn the price transmission strength between regions. Regional price information is aggregated through a multi-layer graph convolutional network (GCN) to achieve quantitative modeling of the price transmission effect between regions.

5. The method for generating a regional price index for building materials based on transaction data according to claim 1, characterized in that, In step S6, a transitive safety-constrained reinforcement learning method is adopted, using regional consumption scale, market activity, price influence, and data quality as state features. Regional weights are output through a policy network, and the regional price index aggregation formula is as follows: The strategy network update is guided by transitive constraint verification and hierarchical reward calculation. In step S7, an index chain connection method based on multilateral comparison is adopted. The GEKS, Geary-Khamis or TPDH method is automatically selected to calculate the multilateral index according to the characteristics of the rolling window data. A continuous index sequence is generated through chain connection to realize the aggregation of category, region and comprehensive multi-level price indices.

6. The method for generating a regional price index for building materials based on transaction data according to claim 1, characterized in that, In step S8, the main method uses a deep feature price model to calculate the price index, while the alternative method uses the traditional Laspeyres index. The Laspeyres index calculation formula is as follows: When the deviation between the primary and backup methods exceeds the adaptive threshold, the final result is determined sequentially through the first layer of data quality attribution, the second layer of model stability attribution, and the third layer of expert arbitration. The generated regional price index is then released to the public through API services and visualization, and supports dynamic updates driven by incremental data.

7. The method for generating a regional price index for building materials based on transaction data according to claim 2, characterized in that, The isolation forest has 100 to 500 isolation trees, a subsample size of 256, a latent space dimension of 32 to 128 for the variational autoencoder (VAE), and each encoder and decoder contains 4 fully connected network layers with dimensions of 256, 128, 64 and 32 respectively. The anomaly score threshold of the isolation forest is also specified. The value range is from 0 to 1, when When the value is 0.5, the anomaly detection rate reaches 94.2% and the false alarm rate is 6.8%, achieving the best balance between detection rate and false alarm rate; the reconstruction error threshold of the VAE; It is the 95th percentile of the normal distribution, which makes the retention rate of normal long-tail transactions reach 99.2%, while the detection rate of real anomalies reaches 92.8%.

8. The method for generating a regional price index for building materials based on transaction data according to claim 4, characterized in that, The graph attention network (GAT) has 4 to 8 attention heads, each with a dimension of 32. The graph convolutional network (GCN) has 1 to 6 propagation layers. When L is 3, the inter-regional price propagation prediction accuracy reaches 91.3%, which is the optimal value. When L is 6, over-smoothing occurs, and the propagation prediction accuracy drops to 82.1%. The minimum cluster size parameter of the HDBSCAN algorithm is 20 to 100, and the minimum nearest neighbor number k for the mutual reach distance is 5 to 15. When the minimum cluster size is 50 and k is 10, the region partitioning accuracy reaches 89.5%.

9. The method for generating a regional price index for building materials based on transaction data according to claim 5, characterized in that, The policy network for the transitive safety constraint reinforcement learning adopts a 3-layer fully connected network structure, with dimensions of 128, 64 and 32 for each layer, and a learning rate of; The value range is from 0 to 1, when When the value is 0.5, the mean square error of weight convergence is 0.0312, which is the optimal value; the transitivity constraint verification includes: if there is a price transmission relationship between region A and region B and a price transmission relationship between region B and region C, then there must be a price transmission relationship between region A and region C. Weight adjustments that violate this constraint are rejected and reverted to the previous iteration result.

10. The method for generating a regional price index for building materials based on transaction data according to claim 5, characterized in that, In the aforementioned index chaining method based on multilateral comparisons, the length of the rolling window is 6 to 12 months. When the variance of price data within the window is less than 0.05, the GEKS method is used to calculate the multilateral index; when the variance is between 0.05 and 0.15, the Geary-Khamis method is used; and when the variance is greater than 0.15, the TPDH method is used. The base period length for the chained connection is 3 months. The proportion is adjusted by the overlapping area of ​​the base periods of adjacent windows to achieve seamless connection of the continuous index sequence. The category-level index and the regional-level index are aggregated by weighting to generate a comprehensive price index. The weights are dynamically determined based on the transaction volume of each category and the market share of each region.