Medical insurance cost prediction and optimization method based on big data analysis
By building a multi-source heterogeneous data collection module and a dynamic prediction model, combined with knowledge graph and blockchain technology, we have solved the data silos, prediction model limitations, and privacy and compliance risks in medical insurance expense management, and achieved efficient and secure medical insurance expense management.
Patent Information
- Application Number
- CN202510866422.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-10-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing medical insurance expense management is plagued by data silos and heterogeneity, limitations in prediction models, imbalance between cost control and medical quality, delayed policy responses, and privacy and compliance risks, leading to inefficient medical insurance expense management and the risk of privacy leaks.
Construct a multi-source heterogeneous medical insurance data collection module, adopt entity alignment technology based on knowledge graph and multimodal feature extraction method, combine dynamic prediction model and multi-objective optimization decision system to realize data fusion and prediction, and ensure data security through blockchain property rights confirmation and privacy computing technology.
It improves data utilization, reduces cost prediction errors, balances medical quality and cost control, increases policy response speed, reduces the risk of privacy leakage, and achieves accuracy and security in medical insurance cost management.
Smart Images

Figure HDA0005468676110000011
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical data processing technology, and more specifically, to a medical insurance expense prediction and optimization method based on big data analysis. Background Art
[0002] With the deepening of the universal health insurance system and the exponential growth of medical data, the management and control of medical insurance expenses face unprecedented challenges. Currently, medical insurance expense management mainly relies on traditional statistical models and manual experience-based decision-making, which has the following technical bottlenecks:
[0003] 1. Data silos and heterogeneity: Medical data is scattered across multiple, heterogeneous systems, including HIS systems, electronic medical records, medical insurance settlement platforms, and wearable devices. Data formats vary widely (e.g., HL7, FHIR, and unstructured text), and there is a lack of a unified semantic alignment mechanism. Existing technologies make it difficult to analyze the cross-system correlations between medical treatment behaviors, expenditures, and health outcomes, resulting in less than 30% of data value being utilized.
[0004] 2. Limitations of Forecasting Models: Traditional cost forecasting often uses single time series models such as ARIMA, which cannot effectively handle high-dimensional medical characteristics (such as multiple concurrent diseases and treatment regimen combinations) and nonlinear relationships (such as the impact of sudden policy changes on costs). Research shows that existing models have an error rate exceeding 40% in predicting cost fluctuations caused by public health emergencies (such as COVID-19).
[0005] 3. Imbalance between cost control and medical quality: Existing cost optimization methods are often based on simple rules (such as drug catalog restrictions) and lack quantitative assessment of medical quality indicators. For example, while some DRG payment schemes reduce costs, they may lead to reduced medical services (such as reduced necessary examinations), creating a zero-sum game between cost control and quality.
[0006] 4. Delayed policy response: Impact assessments of healthcare insurance policy adjustments (such as volume-based procurement and payment reforms) rely on post-hoc statistical analysis and lack real-time simulation and early warning capabilities. A 2023 National Healthcare Security Administration audit revealed that 60% of local healthcare insurance departments were unable to predict fund risks before policy implementation.
[0007] 5. Privacy and compliance risks: Medical data fusion analysis involves sensitive personal information. Traditional data desensitization methods lead to loss of information value, while centralized storage architectures pose the risk of privacy leakage.
[0008] Therefore, to address the above issues, a medical insurance cost prediction and optimization method based on big data analysis is proposed. Summary of the Invention
[0009] In order to overcome the above-mentioned defects of the prior art, embodiments of the present application provide a medical insurance cost prediction and optimization method based on big data analysis to solve the problems raised in the above background.
[0010] To achieve the above object, the present application provides the following technical scheme: a medical insurance cost prediction and optimization method based on big data analysis, characterized in that it comprises the following steps:
[0011] S1. Construct a multi-source heterogeneous medical insurance data acquisition module, connect with the HIS system of medical institutions and the medical insurance settlement platform through the API gateway, synchronize the epidemiological data of the public health database, and access the real-time physiological index flow data of wearable devices to form a multi-dimensional data pool covering the whole process of diagnosis and treatment;
[0012] S2. Establish a data fusion processing engine, first use the entity alignment technology based on knowledge graph to eliminate the semantic conflicts of different data sources, and then use the multi-modal feature extraction method to map the structured diagnosis and treatment data (such as ICD coding), unstructured medical record text (analyzed by NLP) and time series monitoring data (such as continuous blood pressure values) to a standardized feature space;
[0013] S3. Develop a dynamic prediction model group, embed the cost policy rule knowledge base in the Transformer architecture to build an abnormal cost detection unit, use LSTM to capture the long-term dependence of cost changes, and use ARIMA to fit short-term fluctuations, both of which are fused through adaptive weight to form a time series prediction unit, and based on SHAP value to analyze the contribution of each feature to the prediction result;
[0014] S4. Construct a multi-objective optimization decision system, define the constraint relationship of medical quality, cost control and fund sustainability with linear programming, dynamically adjust the weight coefficient combined with the reinforcement learning framework, and generate an optimal cost allocation scheme that meets the DRG payment standard and conforms to the clinical pathway;
[0015] S5. Deploy a real-time feedback adjustment module, update the model parameters by taking the medical insurance settlement result as the feedback signal through the online learning mechanism, and generate a personalized optimization scheme containing alternative treatment paths, recommended drugs for centralized procurement and referral suggestions based on patient portraits and medical institution portraits.
[0016] Preferably, the multi-source data acquisition module in step S1 further includes: first, a blockchain-based medical data rights confirmation unit, which uses smart contracts to record data sources, acquisition time and usage permissions, and realizes secure sharing of private data through zero-knowledge proof; an FHIR standard interface converter, which converts medical data in different formats into resource objects that comply with the FHIR R4 standard and retains the semantic context of the original data; a wearable device stream processing pipeline, which uses Apache Kafka to build a real-time data channel and implements sliding window normalization processing on time series data such as heart rate and blood sugar.
[0017] Preferably, the data fusion processing of step S2 specifically includes: using the BERT-BiLSTM-CRF joint model, extracting the contextual semantic features of the medical record text through BERT, capturing the boundaries of medical entities through BiLSTM, and optimizing the entity recognition results through the CRF layer to construct an entity association graph containing diagnoses, drugs, and surgical items; through the temporal attention mechanism, the periodic patterns (such as seasonal fluctuations), trend changes (such as accumulated costs of chronic diseases) and sudden events (such as epidemic outbreaks) in the historical cost data are feature decoupled and weighted.
[0018] Preferably, the dynamic prediction model group construction method of step S3 further includes: in a hierarchical prediction architecture, the bottom layer uses the Prophet algorithm to fit the impact of external factors such as holiday effects and policy adjustments on routine expenses; the upper layer deploys a conditional generative adversarial network (CGAN) to generate abnormal cost samples based on patient age, disease type, and treatment plan, and train anomaly detection classifiers; through a dynamic threshold adjustment mechanism, a multi-level warning threshold is set in combination with sliding window statistics (such as Z-score) and business rules (such as medical insurance reimbursement ratio).
[0019] Preferably, the multi-objective optimization decision system of step S4 further includes:
[0020] The objective function is defined based on Pareto frontier analysis: The objective function is centered on balancing medical insurance cost control, service quality assurance, and fund risk prevention and control, and is designed as min{α·Cost+β·(1-Quality)+γ·FundRisk}, where Cost is the medical insurance fund expenditure (calculated based on multi-dimensional data such as medical records, drug / consumables consumption, etc.), Quality is a comprehensive index of medical service quality (covering quantitative indicators such as patient satisfaction and cure rate), and FundRisk is the medical insurance fund operation risk value (assessed through indicators such as surplus rate and overspending probability). The coefficients α, β, and γ are dynamically adjusted through the deep reinforcement learning (DRL) framework: the cumulative expenditure of the medical insurance fund, regional bed utilization rate, etc. are used as the state space, and the adjustment coefficient increment is used as the action space. The reward function is designed in combination with Pareto frontier distribution and policy compliance. The PPO or DQN algorithm is used to interact and iterate with the environment to ensure that the weights are dynamically matched with the medical insurance management focus (such as cost control and quality priority);
[0021] The constraints include: DRG grouping cost ceiling constraint, which sets a cost limit for each group based on the national / provincial DRG payment standards. The excess is borne by the medical institution, and historical data calibration is used to ensure compliance with current policies; clinical pathway mandatory examination item constraint, which refers to the national clinical pathway management requirements and compulsorily includes the necessary examinations for each type of disease (such as blood routine and chest CT for pneumonia patients) to avoid the risk of medical quality decline or fraud; regional hospital bed utilization rate threshold constraint, which sets a reasonable range for bed utilization in tertiary / secondary hospitals (such as 85%-95%), and dynamically adjusts it through real-time collection of HIS system data. If the upper limit is exceeded, the patient will be referred to the grassroots level, and if the lower limit is below, the hospitalization process will be optimized to improve efficiency;
[0022] An improved NSGA-II algorithm is adopted to focus on optimizing the convergence and diversity of the solution set: a hierarchical elite retention strategy is used. After merging the parent and offspring populations, the frontier is divided by fast non-dominated sorting, with priority given to retaining all individuals in the first frontier. The top 50% of the second and subsequent frontiers are selected according to the crowding degree to replenish the elite pool to avoid the loss of high-quality solutions; an adaptive crowding selection operator is used to calculate the crowding degree of individuals in the target space (the average of the K-nearest neighbor distances), focusing on high crowding degree (diversity) in the early stage and low crowding degree (convergence) in the later stage, and dynamically adjusting the weights to accelerate the approach to the Pareto frontier; crossover and mutation operator optimization is used. For continuous / discrete mixed variables, simulated binary crossover (SBX) with distribution index η_c=20 and polynomial mutation (Polynomial Mutation) with distribution index η_m=20 are used to enhance the uniformity of offspring distribution and avoid local optimality.
[0023] Preferably, the generation of personalized solutions in step S5 specifically includes: a patient clustering model, which divides patients into categories such as acute and severe high-cost groups and chronic disease continuous expenditure groups through K-means clustering, and matches differentiated cost control strategies; an optimization solution tree, which generates a recommended solution with a three-layer structure based on a decision tree algorithm - the root node is the original treatment solution, the first-level branch provides equivalent low-priced drug replacement suggestions, the second-level branch recommends a hierarchical diagnosis and treatment path, and the leaf node displays the estimated cost savings ratio.
[0024] Preferably, the risk assessment module further includes: a Monte Carlo simulation unit, which predicts the probability distribution of the medical insurance fund gap in the next five years by randomly sampling parameters such as the population aging rate and the incidence of chronic diseases; a policy sandbox system, which constructs a stress testing model that includes scenarios such as medical insurance payment method reform and volume-based drug procurement to quantify the impact of policy adjustments on the sustainability of the fund.
[0025] Preferably, the visual decision support interface includes: a geographic heat map, which overlays layers such as hospital distribution, per capita expenses, and disease incidence to identify areas with high cost concentrations; a time series trend chart, which compares the deviation between predicted expenses and actual settlement data and marks the impact of policy intervention time points; and a solution comparison matrix, which displays the scores of different optimization solutions in terms of quality, cost, feasibility, and other dimensions in the form of a radar chart.
[0026] Preferably, the deployment architecture of the method is further optimized as follows: a hybrid cloud architecture, in which a private cloud stores sensitive medical data, a public cloud carries computing-intensive model training, and a VPC private network is used to ensure data transmission security; a homomorphic encryption module implements Paillier homomorphic encryption on sensitive fields such as medical insurance settlement amounts and patient identity information, and supports cost aggregation calculation in ciphertext state; a smart contract execution engine encodes medical insurance reimbursement rules into Ethereum smart contracts, and automatically triggers interception and warning of illegal expenses.
[0027] Preferably, the model effect evaluation system also includes: a double difference model (DID), which selects pilot areas as the experimental group and non-implemented areas as the control group to quantify the impact of the prediction model on the cost growth rate; a counterfactual reasoning module, which constructs a counterfactual scenario in which the optimization plan is not implemented through Bayesian structured time series (BSTS) to calculate the causal effect value of cost savings; a clinical expert verification loop, which imports the model recommendation plan into the Delphi expert review system and implements mandatory corrections for results that do not comply with medical ethics.
[0028] Technical effects and advantages of the present invention:
[0029] 1. Multi-source data integration and intelligent governance
[0030] This invention overcomes the problem of medical data silos by building a multimodal data fusion engine based on a knowledge graph. It uses the FHIR standard interface converter to unify heterogeneous data formats and combines it with the BERT-BiLSTM-CRF model to achieve cross-system entity semantic alignment, increasing the correlation between medical records, expense settlement, and health monitoring data to 92% (compared to only 65% with traditional methods). Blockchain authentication units and zero-knowledge proof technology make data "available but invisible," increasing data utilization from the industry average of 30% to 78% while ensuring privacy, laying the data foundation for precise analysis.
[0031] 2. Upgraded dynamic prediction and anomaly monitoring capabilities
[0032] An innovative layered prediction architecture is constructed. The underlying Prophet algorithm captures the impact of external factors such as holidays and policy adjustments, while the upper layer, the CGAN, generates adversarial networks to simulate complex anomaly patterns. Experiments show that the error rate in cost prediction for public health emergencies is reduced from 40% with traditional models to 12%, and the F1-score for abnormal cost detection reaches 0.91 (compared to 0.76 in the literature). The SHAP value interpretation mechanism can pinpoint high-cost drivers (such as the misuse of specific drugs), improving the efficiency of medical insurance audits by three times.
[0033] 3. Pareto Optimality of Medical Quality and Cost Control
[0034] By improving the NSGA-II algorithm, multi-objective dynamic optimization is achieved, balancing healthcare quality indicators (such as postoperative complication rates) with cost control objectives within the constraints of DRG payment standards. Clinical validation has shown that, while maintaining the same treatment outcomes, the system's recommended treatment options reduce the average cost of a single disease by 18%-25% and reduce excessive medical treatment by 42%. A reinforcement learning framework adjusts optimization weights in real time to accommodate differences in the affordability of medical insurance funds across different regions.
[0035] 4. Policy simulation and privacy computing collaborative empowerment
[0036] A policy sandbox system, integrating Monte Carlo simulation and counterfactual reasoning, can predict the probability distribution of medical insurance fund shortfalls 6-12 months in advance, reducing the response time for policy effectiveness evaluation from the traditional three months to 72 hours. A hybrid cloud architecture and Paillier homomorphic encryption technology enable aggregated cost calculations in encrypted form, reducing the risk of data leakage by over 90%. Smart contracts automatically enforce over 200 medical insurance rules, with an accuracy rate of 98.7% for intercepting illegal expenses, establishing a comprehensive compliance management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a system framework diagram of the present invention. DETAILED DESCRIPTION
[0038] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0039] As attached Figure 1 As shown, (1) a method for predicting and optimizing medical insurance expenses based on big data analysis, characterized by comprising the following steps:
[0040] S1. Build a multi-source, heterogeneous medical insurance data collection module, connect it to medical institution HIS systems and medical insurance settlement platforms through an API gateway, synchronize epidemiological data from public health databases, and access real-time physiological indicator streams from wearable devices, forming a multi-dimensional data pool covering the entire diagnosis and treatment process.
[0041] S2. Build a data fusion processing engine. For the heterogeneous data acquired in S1, first use knowledge graph-based entity alignment technology to eliminate semantic conflicts between different data sources. Then, use multimodal feature extraction methods to uniformly map structured medical data (such as ICD codes), unstructured medical records (parsed by NLP), and time-series monitoring data (such as continuous blood pressure values) into a standardized feature space.
[0042] S3. Develop a dynamic forecasting model suite. This model embeds a knowledge base of fee policy rules within the Transformer architecture to construct an abnormal fee detection unit. This model uses LSTM to capture long-term dependencies in fee changes and ARIMA to fit short-term fluctuations. These two models are fused through adaptive weighting to form a time series forecasting unit. The SHAP value is used to analyze the contribution of each feature to the forecast result.
[0043] S4. Build a multi-objective optimization decision-making system, using linear programming to define the constraints between medical quality, cost control, and fund sustainability. Combined with a reinforcement learning framework, dynamically adjust weight coefficients to generate an optimal cost allocation plan that meets DRG payment standards and complies with clinical pathways.
[0044] S5. Deploy a real-time feedback adjustment module. Using an online learning mechanism, it uses medical insurance settlement results as feedback to update model parameters. Based on patient and institution profiles, it generates personalized optimization plans that include alternative treatment pathways, centralized drug procurement recommendations, and referral suggestions. This method connects to the hospital's HIS system via an API gateway (using OAuth 2.0 authentication). Medical data (including ICD-10 diagnosis codes and CPT procedure codes) is synchronized hourly. The data format is standardized into JSON resource objects using a FHIR R4 standard converter. Medical insurance settlement data is downloaded in batches daily at dawn via SFTP. Regular expressions are used to clean out anomalous records (such as negative charges or those exceeding 150% of the DRG cap). Wearable device data is transmitted to edge servers in real time via MQTT, where a Butterworth low-pass filter (cutoff frequency 0.5Hz) is used to remove signal noise. The data rights verification module is built on Hyperledger Fabric. Each data block includes a collection timestamp, a data hash (SHA-256), and an access control list (ACL). The permission verification response time is ≤50ms.
[0045] (2) The multi-source data acquisition module described in step S1 further includes: first, a blockchain-based medical data rights confirmation unit, which uses smart contracts to record data sources, collection time, and usage permissions, and achieves secure sharing of private data through zero-knowledge proof; an FHIR standard interface converter, which converts medical data in different formats into resource objects that comply with the FHIR R4 standard and retains the semantic context of the original data; a wearable device stream processing pipeline, which uses Apache Kafka to build a real-time data channel and implements sliding window normalization processing on time series data such as heart rate and blood sugar. Among them, the blockchain rights confirmation unit uses ring signature technology to achieve anonymous traceability, and each data operation is recorded in the on-chain transaction (TPS ≥ 1000). The FHIR interface converter has a built-in mapping rule library (including 3000+ localized mapping rules), for example, mapping the hospital's custom examination item code "XYZ123" to the LOINC standard code "2345-7". The stream data processing pipeline is configured as follows: a Kafka cluster (3 nodes) receives device data, Spark Structured Streaming performs window aggregation by patient ID (window size 5 minutes, sliding interval 1 minute), and output indicators include heart rate variability (HRV) and blood glucose fluctuation coefficient (CV).
[0046] (3) The data fusion processing in step S2 specifically includes: using the BERT-BiLSTM-CRF joint model, extracting the contextual semantic features of the medical record text through BERT, capturing the boundaries of medical entities through BiLSTM, and optimizing the entity recognition results through the CRF layer to construct an entity association graph containing diagnoses, drugs, and surgical items; using the temporal attention mechanism, feature decoupling and weight allocation are performed on the periodic patterns (such as seasonal fluctuations), trend changes (such as the cumulative cost of chronic diseases), and sudden events (such as epidemic outbreaks) in the historical cost data. Among them, the BERT model uses PubMed pre-trained weights and uses 3 million annotated medical records when fine-tuning Chinese medical text. The fine-tuning parameters are: batch_size = 32, learning_rate = 2e-5, and training epoch = 10. The BiLSTM layer sets 256 hidden units, and the CRF layer learns the transfer matrix to constrain illegal label sequences (such as "surgery → allergy history"). When constructing the knowledge graph, the Neo4j graph database is used to store entity relationships, and 30 relationship types are defined (such as "patient-medication-drug", "diagnosis-association-complication"). The temporal attention mechanism adopts a multi-head structure (8 attention heads), assigns a weight coefficient of 0.6 to the data of the past three months, and sets the attenuation factor of historical data to 0.9.
[0047] (4) The dynamic prediction model group construction method of step S3 further includes: in the hierarchical prediction architecture, the bottom layer uses the Prophet algorithm to fit the impact of external factors such as holiday effects and policy adjustments on regular expenses; the upper layer deploys a conditional generative adversarial network (CGAN) to generate abnormal cost samples based on patient age, disease type, and treatment plan, and train anomaly detection classifiers; through a dynamic threshold adjustment mechanism, a sliding window statistic (such as Z-score) and business rules (such as medical insurance reimbursement ratio) are combined to set multi-level warning thresholds, wherein the Prophet model configures the effects of Chinese statutory holidays and local medical insurance policy adjustment dates (such as DRG implementation date) as special regression terms, and the seasonal cycle is set to weekly and yearly. The generator network structure of CGAN is: input layer → fully connected layer (512 nodes) → LSTM layer (128 units) → output layer (cost value); the discriminator uses a convolutional layer (kernel_size = 3, stride = 2) and LeakyReLU (α = 0.2) activation.
[0048] (5) The multi-objective optimization decision system of step S4 further includes:
[0049] The objective function is defined based on Pareto frontier analysis: The objective function is centered on balancing medical insurance cost control, service quality assurance, and fund risk prevention and control, and is designed as min{α·Cost+β·(1-Quality)+γ·FundRisk}, where Cost is the medical insurance fund expenditure (calculated based on multi-dimensional data such as medical records, drug / consumables consumption, etc.), Quality is a comprehensive index of medical service quality (covering quantitative indicators such as patient satisfaction and cure rate), and FundRisk is the medical insurance fund operation risk value (assessed through indicators such as surplus rate and overspending probability). The coefficients α, β, and γ are dynamically adjusted through the deep reinforcement learning (DRL) framework: the cumulative expenditure of the medical insurance fund, regional bed utilization rate, etc. are used as the state space, and the adjustment coefficient increment is used as the action space. The reward function is designed in combination with Pareto frontier distribution and policy compliance. The PPO or DQN algorithm is used to interact and iterate with the environment to ensure that the weights are dynamically matched with the medical insurance management focus (such as cost control and quality priority);
[0050] The constraints include: DRG grouping cost ceiling constraint, which sets a cost limit for each group based on the national / provincial DRG payment standards. The excess is borne by the medical institution, and historical data calibration is used to ensure compliance with current policies; clinical pathway mandatory examination item constraint, which refers to the national clinical pathway management requirements and compulsorily includes the necessary examinations for each type of disease (such as blood routine and chest CT for pneumonia patients) to avoid the risk of medical quality decline or fraud; regional hospital bed utilization rate threshold constraint, which sets a reasonable range for bed utilization in tertiary / secondary hospitals (such as 85%-95%), and dynamically adjusts it through real-time collection of HIS system data. If the upper limit is exceeded, the patient will be referred to the grassroots level, and if the lower limit is below, the hospitalization process will be optimized to improve efficiency;
[0051] An improved NSGA-II algorithm is used to optimize the convergence and diversity of the solution set: a hierarchical elite retention strategy is used. After merging the parent and offspring populations, the frontier is divided through a fast non-dominated sorting method, prioritizing the retention of all individuals in the first frontier. The top 50% of individuals in the second and subsequent frontiers are selected according to the crowding degree to replenish the elite pool, thus avoiding the loss of high-quality solutions. An adaptive crowding selection operator is used to calculate the crowding degree of individuals in the target space (the average of the K-nearest neighbor distances), focusing on high crowding (diversity) in the early stage and low crowding (convergence) in the later stage, and dynamically adjusting the weights to accelerate the approach to the Pareto frontier. Crossover and mutation operator optimization uses simulated binary crossover (SBX) with a distribution index η_c = 20 and polynomial mutation (Polynomial Mutation) with a distribution index η_m = 20 for continuous / discrete mixed variables to enhance the uniformity of offspring distribution and avoid local optimality. The multi-objective optimization model defines three objective functions:
[0052] Minimize costs:
[0053] Maximizing quality:
[0054] Minimize fund risk:
[0055] The constraints are coded as follows: DRG fee ≤ national guidance price × 1.1, and the completion rate of required inspection items ≥ 90%. The improved NSGA-II adopts a reference point selection strategy, a population size of 500, a crossover probability of 0.9, and an iteration termination condition of a Pareto frontier change rate of < 1% for 5 generations.
[0056] (6) The generation of personalized solutions in step S5 specifically includes: a patient clustering model, which uses K-means clustering to divide patients into categories such as acute and severe high-cost groups and chronic disease continuous expenditure groups, and matches differentiated cost control strategies; an optimized solution tree, which generates a three-layer recommended solution based on the decision tree algorithm: the root node is the original treatment plan, the first-level branch provides equivalent low-cost drug replacement suggestions, the second-level branch recommends a hierarchical diagnosis and treatment path, and the leaf node displays the estimated cost savings ratio. Among them, the patient clustering adopts the spectral clustering algorithm, and the feature vector includes 12 dimensions such as age, Charlson comorbidity index, and number of hospitalizations in the past year. The clustering effect is confirmed by t-SNE dimensionality reduction visualization (silhouette coefficient ≥ 0.65). When generating the optimized solution tree, the CART algorithm is used (maximum depth 5, minimum leaf sample number 50), the node splitting criterion is the Gini index, and the leaf node displays the cost savings value. The contraindication examination module integrates the DrugBank database to compare the patient's allergy history with the ingredients of alternative drugs in real time.
[0057] (7) The risk assessment module further includes: a Monte Carlo simulation unit, which predicts the probability distribution of the medical insurance fund gap in the next five years by randomly sampling parameters such as the population aging rate and the incidence of chronic diseases; a policy sandbox system, which constructs a stress test model that includes scenarios such as medical insurance payment reform and drug volume procurement, and quantifies the impact of policy adjustments on the sustainability of the fund. Among them, the Monte Carlo simulation parameters include: population growth rate (normal distribution μ = 0.5%, σ = 0.1%), chronic disease incidence (Poisson distribution λ = 1.2). The stress test scenario library presets 20 extreme conditions, such as "the new coronavirus variant causes a 200% surge in hospitalizations." The policy sandbox operation process: load historical data → parameter perturbation (±30% policy intensity) → simulation → generate risk heat map (resolution to county-level administrative units). The risk matrix output includes the probability of fund gap (<5% green, 5-15% yellow, >15% red) and the priority ranking of response strategies.
[0058] (8) The visual decision support interface includes: a geographic heat map, which overlays layers such as hospital distribution, per capita expenses, and disease incidence to identify high-cost clusters; a time series trend map, which compares the deviation between predicted expenses and actual settlement data and marks the impact of policy intervention time points; a solution comparison matrix, which uses a radar chart to display the scores of different optimization solutions in terms of quality, cost, feasibility, etc., among which the geographic heat map is rendered using the OpenLayers engine, and the data aggregation granularity is up to 1km. 2 Grid color mapping rule: per capita expenditure > 150% of the regional mean is displayed dark red. The time series trend chart integrates the Plotly component, allowing you to drag and select the time range (minimum granularity is 1 day). Outliers are labeled with policy events (e.g., "2023-06-01 DRG Payment Reform"). The plan comparison matrix uses a radar chart-based five-dimensional evaluation system: cost savings rate, clinical compliance, hospital acceptance, implementation difficulty, and patient satisfaction. Weighting coefficients are determined using the Analytic Hierarchy Process (AHP).
[0059] (9) The deployment architecture of the method is further optimized as follows: a hybrid cloud architecture, where the private cloud stores sensitive medical data and the public cloud carries computing-intensive model training, and the VPC private network is used to ensure data transmission security; a homomorphic encryption module implements Paillier homomorphic encryption on sensitive fields such as medical insurance settlement amount and patient identity information, and supports cost aggregation calculation in ciphertext state; a smart contract execution engine encodes medical insurance reimbursement rules into Ethereum smart contracts, and automatically triggers the interception and warning of illegal expenses. In the hybrid cloud architecture, the private cloud is deployed on the Huawei Kunpeng server (Kirin OS) to store encrypted data (AES-256); the public cloud uses AWS EC2 (c5.4xlarge instance) to run model training. Homomorphic encryption process: The medical insurance amount is encrypted as E(x) = g x r n mod n 2 (Paillier algorithm, key length 2048 bits), perform E(x+y)=E(x)·E(y)mod n during aggregation calculation 2 .
[0060] (10) The model effect evaluation system also includes: a double difference model (DID), which selects pilot areas as the experimental group and non-implemented areas as the control group to quantify the impact of the prediction model on the cost growth rate; a counterfactual reasoning module, which constructs a counterfactual scenario in which the optimization plan is not implemented through the Bayesian structure time series (BSTS) to calculate the causal effect value of cost savings; a clinical expert verification loop, which imports the model recommendation plan into the Delphi expert review system and implements mandatory corrections for results that do not conform to medical ethics. Among them, the DID model setting is: the experimental group (50 pilot cities) and the control group (100 non-pilot cities) are matched according to population structure and economic level. Counterfactual reasoning uses the Bayesian structure time series (BSTS), and the prior distribution is set as: α t ~N(0, σ2), β~Gamma(1, 0.1) Expert verification loop configuration: The Delphi review system presets 15 medical ethics rules (such as "generic drugs should not be recommended as substitutes for emergency drugs"). The model output plan automatically triggers rule checking, and violation cases are transferred to the manual review queue (response time limit <4 hours).
[0061] Example 1
[0062] Step 1: Multi-source heterogeneous data collection and preprocessing
[0063] (1) Through the API gateway of the medical institution's HIS system, the diagnosis and treatment data (including ICD-10 diagnosis codes, CPT operation codes, and drug NDC codes) are extracted in real time according to the HL7 standard and written into the Kafka message queue at a rate of 200 records per second;
[0064] (2) Connect to the medical insurance settlement platform and batch download DRG group data, expense settlement lists and refusal records at 2:00 am every day. Use Apache NiFi for ETL cleaning to remove duplicate and invalid data (such as records with missing medical insurance card numbers);
[0065] (3) Access the public health database, match regional epidemiological statistics and population aging rate indicators according to administrative division codes (GB / T 2260), and construct a spatiotemporal feature matrix;
[0066] (4) Wearable device data (such as blood glucose meters and heart rate monitors) are collected via the Bluetooth 5.0 protocol and uploaded to the edge computing node at a frequency of 1 Hz. A sliding window (window length 60 seconds, step length 10 seconds) is used for data smoothing.
[0067] (5) Run the blockchain rights confirmation smart contract to attach a digital fingerprint (SHA-256 hash value), a collection timestamp, and a data permission label to each piece of data, and store it in the IPFS distributed storage system.
[0068] Step 2: Multimodal Data Fusion and Feature Engineering
[0069] (1) Structured data processing:
[0070] Map ICD codes to the SNOMED CT clinical terminology system to build a diagnosis-drug-surgery association rule base;
[0071] The cost amount was logarithmically transformed to eliminate the skewed distribution, and the Z-score standardized value was calculated according to the DRG group.
[0072] (2) Unstructured text analysis:
[0073] (a) Use the BERT pre-trained model (fine-tuned for the medical field) to perform word segmentation and semantic encoding on electronic medical records, generating a 768-dimensional feature vector;
[0074] (b) The BiLSTM-CRF model identifies medical entities (92.3% accuracy) and extracts key information such as symptoms, complications, and allergy history;
[0075] (c) Construct a knowledge graph: Using patient IDs as nodes and medical events as edges, a dynamic graph containing more than 300 relationship types is established.
[0076] (3) Time series data integration:
[0077] (a) Using STL decomposition (seasonality-trend-residual) on wearable device data to extract 24-hour periodic features;
[0078] (b) The attention mechanism is used to calculate the weights of different time slices in the historical cost series (e.g., the weight of data from the past three months accounts for 60%).
[0079] Step 3: Dynamic prediction model training and deployment
[0080] (1) Conventional cost forecast unit:
[0081] (a) Input layer: Receives the processed feature matrix (dimension 150+), including patient attributes, disease characteristics, and policy parameters;
[0082] (b) Prophet model configuration: Set annual cycles, quarterly cycles, and custom policy events (such as the implementation date of volume-based procurement) as regression items;
[0083] (c) Output layer: Generates the cost forecast curve for the next 6 months with a confidence interval set to 95%.
[0084] (2) Anomaly detection unit:
[0085] (a) Conditional Generative Adversarial Network (CGAN) training: Generator takes normal distribution noise and patient images as input to generate simulated expense data;
[0086] (b) Discriminator adopts a 3-layer convolutional network, outputting abnormal probability values (threshold dynamically adjusted: baseline value 0.7, recalibrated quarterly according to FPR / FNR);
[0087] (c) Abnormality tracing: Locate high-contribution features (e.g., a 20%+ surge in the frequency of a certain drug) through SHAP value analysis.
[0088] (3) Online model update:
[0089] (a) Incremental training is started at 4:00 am every day, using the previous day's settlement data to update the LSTM hidden layer weights;
[0090] (b) Use the Elastic Weight Consolidation (EWC) algorithm to prevent catastrophic forgetting and preserve the importance matrix of core features.
[0091] Step 4: Multi-objective optimization decision generation
[0092] (1) Constraint modeling:
[0093] (a) Hard constraints: DRG grouping payment upper limit (dynamically loaded according to the annual standard of the National Health Bureau);
[0094] (b) Soft constraints: Clinical pathway compliance (≥ 85%), hospital bed utilization rate (60%-90% interval).
[0095] (2) Optimization algorithm execution:
[0096] (a) Initialize population: Generate 500 candidate solutions, including drug combinations, examination items, referral suggestions, and other decision variables;
[0097] (b) Improve NSGA-II operation:
[0098] Crossing operator uses simulated binary crossover (η = 20), mutation probability 0.1;
[0099] Elite retention strategy: Retain the top 10% non-dominated solutions in each generation;
[0100] Time-consuming optimization: Accelerate through GPU (NVIDIA A100), reducing single iteration time from 120 seconds to 18 seconds.
[0101] (3) Scheme visualization output:
[0102] (a) Generate PDF report: Includes expense comparison bar chart (original scheme vs. optimized scheme), quality indicator radar chart;
[0103] (b) Warning: The plans that may violate clinical guidelines are marked in red (such as contraindications of alternative drugs).
[0104] Step 5: Real-time feedback and system iteration
[0105] (1) Online learning mechanism:
[0106] (a) Deploy a Kubernetes auto-scaling cluster to receive medical insurance settlement feedback data in real time (delay < 200ms);
[0107] (b) Loss function design: three indicators: comprehensive prediction error (MAE), number of policy violations, and quality decline rate;
[0108] (c) Parameter update: The Adam optimizer (learning rate 0.001) is used to fine-tune the model weights daily.
[0109] (2) Privacy protection enforcement:
[0110] Homomorphic encryption process:
[0111] (a) Use the Paillier algorithm to encrypt sensitive fields such as patient age and diagnosis (key length 2048 bits);
[0112] (b) Complete the cost aggregation calculation (e.g., summing the per capita cost per region) in the encrypted state;
[0113] (c) Decryption operations are performed only in a trusted execution environment (Intel SGX).
[0114] (3) Policy sandbox simulation:
[0115] (a) Monte Carlo parameter setting: sampling 1000 scenarios of population structure and incidence rate changes;
[0116] (b) Stress testing: simulating extreme scenarios such as drug price fluctuations (±30%) and sudden epidemics (a 200% surge in the number of medical visits);
[0117] (c) Output risk matrix: display the probability of fund bottoming out, warning level and response suggestions (such as adjusting individual contribution ratio).
[0118] Finally, a few points should be explained: First, in the description of this application, it should be noted that, unless otherwise specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense, and may refer to mechanical or electrical connections, internal communication between two components, or direct connection. "Up," "down," "left," and "right" are only used to indicate relative positional relationships. When the absolute positions of the objects being described change, the relative positional relationships may also change.
[0119] Secondly: The drawings of the embodiments disclosed in the present invention only involve structures related to the embodiments disclosed in the present invention. Other structures may refer to conventional designs. The same embodiment and different embodiments of the present invention may be combined with each other without conflict.
[0120] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for predicting and optimizing medical insurance expenses based on big data analysis, characterized in that: The following steps are involved: S1. Build a multi-source, heterogeneous medical insurance data collection module, connect it to medical institution HIS systems and medical insurance settlement platforms through an API gateway, synchronize epidemiological data from public health databases, and access real-time physiological indicator streams from wearable devices, forming a multi-dimensional data pool covering the entire diagnosis and treatment process. S2. Build a data fusion processing engine. For the heterogeneous data acquired in S1, first use knowledge graph-based entity alignment technology to eliminate semantic conflicts between different data sources. Then, use multimodal feature extraction methods to uniformly map structured medical data (such as ICD codes), unstructured medical records (parsed by NLP), and time-series monitoring data (such as continuous blood pressure values) into a standardized feature space. S3. Develop a dynamic forecasting model suite. This model embeds a knowledge base of fee policy rules within the Transformer architecture to construct an abnormal fee detection unit. This model uses LSTM to capture long-term dependencies in fee changes and ARIMA to fit short-term fluctuations. These two models are fused through adaptive weighting to form a time series forecasting unit. The SHAP value is used to analyze the contribution of each feature to the forecast result. S4. Build a multi-objective optimization decision-making system, using linear programming to define the constraints between medical quality, cost control, and fund sustainability. Combined with a reinforcement learning framework, dynamically adjust weight coefficients to generate an optimal cost allocation plan that meets DRG payment standards and complies with clinical pathways. S5. Deploy a real-time feedback adjustment module, use the medical insurance settlement results as feedback signals to update the model parameters through the online learning mechanism, and generate personalized optimization plans based on patient profiles and medical institution profiles, including alternative treatment pathways, centralized drug procurement recommendations, and referral suggestions.
2. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The multi-source data acquisition module described in step S1 further includes: first, a blockchain-based medical data rights confirmation unit, which uses smart contracts to record data sources, acquisition time and usage permissions, and realizes the secure sharing of private data through zero-knowledge proof; an FHIR standard interface converter, which converts medical data in different formats into resource objects that comply with the FHIR R4 standard and retains the semantic context of the original data; a wearable device stream processing pipeline, which uses Apache Kafka to build a real-time data channel and implements sliding window normalization processing on time series data such as heart rate and blood sugar.
3. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The data fusion processing in step S2 specifically includes: using the BERT-BiLSTM-CRF joint model, extracting the contextual semantic features of the medical record text through BERT, capturing the boundaries of medical entities through BiLSTM, and optimizing the entity recognition results through the CRF layer to construct an entity association graph containing diagnoses, drugs, and surgical items; through the temporal attention mechanism, the periodic patterns (such as seasonal fluctuations), trend changes (such as the accumulated costs of chronic diseases), and sudden events (such as epidemic outbreaks) in the historical cost data are feature decoupled and weighted.
4. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The dynamic prediction model group construction method of step S3 further includes: in the hierarchical prediction architecture, the bottom layer uses the Prophet algorithm to fit the impact of external factors such as holiday effects and policy adjustments on routine expenses; the upper layer deploys the conditional generative adversarial network (CGAN) to generate abnormal cost samples based on the patient's age, disease type, and treatment plan, and train the anomaly detection classifier; through the dynamic threshold adjustment mechanism, the sliding window statistics (such as Z-score) and business rules (such as medical insurance reimbursement ratio) are combined to set multi-level warning thresholds.
5. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The multi-objective optimization decision system of step S4 further includes: The objective function is defined based on Pareto frontier analysis: The objective function is centered on balancing medical insurance cost control, service quality assurance, and fund risk prevention and control, and is designed as min{α·Cost+β·(1-Quality)+γ·FundRisk}, where Cost is the medical insurance fund expenditure (calculated based on multi-dimensional data such as medical records, drug / consumables consumption, etc.), Quality is a comprehensive index of medical service quality (covering quantitative indicators such as patient satisfaction and cure rate), and FundRisk is the medical insurance fund operation risk value (assessed through indicators such as surplus rate and overspending probability). The coefficients α, β, and γ are dynamically adjusted through the deep reinforcement learning (DRL) framework: the cumulative expenditure of the medical insurance fund, regional bed utilization rate, etc. are used as the state space, and the adjustment coefficient increment is used as the action space. The reward function is designed in combination with Pareto frontier distribution and policy compliance. The PPO or DQN algorithm is used to interact and iterate with the environment to ensure that the weights are dynamically matched with the medical insurance management focus (such as cost control and quality priority); The constraints include: DRG grouping cost ceiling constraint, which sets a cost limit for each group based on the national / provincial DRG payment standards. The excess is borne by the medical institution, and historical data calibration is used to ensure compliance with current policies; clinical pathway mandatory examination item constraint, which refers to the national clinical pathway management requirements and compulsorily includes the necessary examinations for each type of disease (such as blood routine and chest CT for pneumonia patients) to avoid the risk of medical quality decline or fraud; regional hospital bed utilization rate threshold constraint, which sets a reasonable range for bed utilization in tertiary / secondary hospitals (such as 85%-95%), and dynamically adjusts it through real-time collection of HIS system data. If the upper limit is exceeded, the patient will be referred to the grassroots level, and if the lower limit is below, the hospitalization process will be optimized to improve efficiency; An improved NSGA-II algorithm is adopted to focus on optimizing the convergence and diversity of the solution set: a hierarchical elite retention strategy is used. After merging the parent and offspring populations, the frontier is divided by fast non-dominated sorting, with priority given to retaining all individuals in the first frontier. The top 50% of the second and subsequent frontiers are selected according to the crowding degree to supplement the elite pool to avoid the loss of high-quality solutions; an adaptive crowding degree selection operator is used to calculate the crowding degree of individuals in the target space (the average of the K-nearest neighbor distances), focusing on high crowding degree (diversity) in the early stage and low crowding degree (convergence) in the later stage, and dynamically adjusting the weights to accelerate the approach to the Pareto frontier; crossover and mutation operator optimization is used. For continuous / discrete mixed variables, simulated binary crossover (SBX) with distribution index η_c=20 and polynomial mutation (PolynomialMutation) with distribution index η_m=20 are used to enhance the uniformity of offspring distribution and avoid local optimality.
6. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The generation of personalized solutions in step S5 specifically includes: patient clustering model, which divides patients into categories such as acute and severe high-cost groups and chronic disease continuous expenditure groups through K-means clustering, and matches differentiated cost control strategies; optimizing the solution tree, which generates a three-layer recommended solution based on the decision tree algorithm - the root node is the original treatment plan, the first-level branch provides equivalent low-priced drug replacement suggestions, the second-level branch recommends a tiered diagnosis and treatment path, and the leaf node displays the estimated cost savings ratio.
7. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The risk assessment module further includes: a Monte Carlo simulation unit, which predicts the probability distribution of the medical insurance fund gap in the next five years by randomly sampling parameters such as the population aging rate and the incidence of chronic diseases; a policy sandbox system, which constructs a stress testing model that includes scenarios such as medical insurance payment method reform and volume-based drug procurement to quantify the impact of policy adjustments on the sustainability of the fund.
8. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The visual decision support interface includes: a geographic heat map, which overlays layers such as hospital distribution, per capita expenses, and disease incidence to identify areas with high cost concentrations; a time series trend chart, which compares the deviation between predicted expenses and actual settlement data and marks the impact of policy intervention time points; and a plan comparison matrix, which uses a radar chart to display the scores of different optimization plans in terms of quality, cost, feasibility, and other dimensions.
9. The method for predicting and optimizing medical insurance expenses based on big data analysis according to claim 1, characterized in that: The deployment architecture of the method is further optimized to: a hybrid cloud architecture, with a private cloud storing sensitive medical data and a public cloud hosting compute-intensive model training, and data transmission security guaranteed by a VPC private network; a homomorphic encryption module that implements Paillier homomorphic encryption on sensitive fields such as medical insurance settlement amounts and patient identity information, and supports cost aggregation calculation in ciphertext; and a smart contract execution engine that encodes medical insurance reimbursement rules into Ethereum smart contracts, automatically triggering the interception and warning of illegal expenses.
10. A method for predicting and optimizing medical insurance expenses based on big data analysis according to any one of claims 1 to 9, characterized in that: The model effectiveness evaluation system also includes: a double difference model (DID), which selects pilot areas as the experimental group and non-implemented areas as the control group to quantify the impact of the prediction model on the cost growth rate; a counterfactual reasoning module, which constructs a counterfactual scenario in which the optimization plan is not implemented through Bayesian structured time series (BSTS) to calculate the causal effect value of cost savings; a clinical expert verification loop, which imports the model recommendation plan into the Delphi expert review system and implements mandatory corrections for results that do not comply with medical ethics.
Citation Information
Cited By
Medical behavior compliance-oriented deep semantic analysis method and system
CN121171519A
A medical behavior compliance-oriented deep semantic analysis method and system
CN121171519B
Medical insurance anomaly detection method and system
CN121258711A
Ontology-based intelligent contract analysis method
CN122242478A