A data and load collaborative perception multi-source heterogeneous medical data ingestion method
By collaboratively sensing the characteristics of medical data and the load of ingestion nodes, and dynamically adjusting the ingestion mode and parameters, the problem of the ingestion method of multi-source heterogeneous medical data being difficult to adapt to changes is solved, and efficient and stable data ingestion and resource utilization are achieved.
Patent Information
- Application Number
- CN202611685621.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-27
AI Technical Summary
Existing methods for acquiring medical data are ill-suited to adapting to changes in the characteristics of multi-source, heterogeneous medical data and the varying workloads of acquisition nodes, leading to data backlog and underutilization of resources.
By collaboratively sensing the characteristics of medical data and the load of ingestion nodes, the ingestion mode and parameters are dynamically adjusted to form a closed-loop adaptive mechanism of data feature perception, node load perception, ingestion decision and operation feedback, thereby achieving dynamic matching between data ingestion methods and system resource status.
It improves the efficiency and stability of multi-source heterogeneous medical data acquisition, ensures the timely acquisition of data with high real-time requirements, reduces resource competition and data backlog, and improves resource utilization efficiency.
Smart Images

Figure CN123178031A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for acquiring multi-source heterogeneous medical data through collaborative sensing of data and load. This method is applicable to structured, semi-structured and unstructured medical data such as electronic medical records, medical images, laboratory data, and real-time monitoring data. By jointly sensing data characteristics and the operating load of the acquisition node, the method dynamically adjusts the data acquisition method and related parameters to achieve efficient and stable acquisition of multi-source heterogeneous medical data. This method belongs to the field of medical big data processing and data governance technology. Background Technology
[0002] With the continuous advancement of healthcare informatization, hospital information systems, electronic medical record systems, medical imaging systems, laboratory information systems, chronic disease management platforms, and medical monitoring equipment are constantly generating massive amounts of medical data. This data comes from a wide range of sources, including structured or semi-structured data such as electronic medical records and test results, as well as medical images such as CT scans and MRIs, and real-time vital sign monitoring data. Different types of medical data vary significantly in terms of data structure, data size, data arrival rate, and real-time requirements. To achieve unified storage, governance, and subsequent analysis, it is necessary to continuously ingest multi-source, heterogeneous medical data into a medical data lake warehouse.
[0003] Current data ingestion methods typically employ batch, streaming, or micro-batch approaches, with pre-configured ingestion modes and operating parameters based on the data source type. However, the generation of medical data is inherently dynamic; the same data source may experience variations in data volume, arrival rate, and real-time requirements at different times. Simultaneously, the data ingestion process continuously consumes resources such as CPU, memory, network bandwidth, and storage I / O, and the workload of the ingestion nodes fluctuates dynamically with changes in data volume and system tasks. Using fixed ingestion modes, batch sizes, processing windows, and concurrency levels can easily lead to data backlog and resource contention under high load conditions, while potentially resulting in underutilization of resources under low load conditions.
[0004] Therefore, existing medical data acquisition methods struggle to simultaneously adapt to changes in the characteristics of multi-source heterogeneous medical data and variations in the operational load of acquisition nodes, lacking the ability to dynamically match data acquisition needs with system resource status. How to comprehensively consider the characteristics of medical data, such as data scale, data arrival rate, real-time performance, and business priority, and dynamically adjust the data acquisition methods and related parameters in conjunction with the actual operational load of acquisition nodes, is a problem that needs to be solved to improve the efficiency and stability of multi-source heterogeneous medical data acquisition. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides a method for acquiring multi-source heterogeneous medical data through collaborative perception of data and load, so as to achieve efficient and stable acquisition of different types of medical data in a data lake warehouse environment.
[0006] The present invention adopts the following technical solution:
[0007] A method for ingesting multi-source heterogeneous medical data with collaborative data and load perception includes the following steps:
[0008] S1: Acquire multi-source heterogeneous medical data, collaboratively perceive the characteristics of medical data and the load of ingestion nodes, and calculate the medical data ingestion demand index and the comprehensive load of nodes.
[0009] S2 adaptively determines the ingestion mode and dynamically configures the ingestion parameters;
[0010] S3 performs medical data ingestion, continuously monitors the ingestion operation status, and dynamically adjusts the current ingestion parameters and ingestion mode based on the actual ingestion effect.
[0011] Preferably, in step S1, medical data features are used to reflect the ingestion requirements of different types of data in terms of data scale, arrival rate, real-time performance and business priority, and ingestion node load is used to reflect the current usage status of computing, memory, network and storage resources.
[0012] For the characteristics of medical data to be collected First, identify its data type. The data is generated and its characteristics, such as data size, data arrival rate, real-time requirements, business priority, and data volatility, are extracted to form a data feature set. The medical data intake demand index was calculated after normalization. ;
[0013] At the same time, for the ingestion node The operating status is collected and normalized to calculate the overall load of the computing nodes. And perform critical load judgment for individual resources.
[0014] Preferred data feature set ,in, , , , , These represent the data scale, data arrival rate, real-time requirements, business priority, and data volatility of the medical data to be collected;
[0015] Medical Data Intake Demand Index It is obtained from the following formula:
[0016]
[0017] in, , , , , These represent the normalized data size, data arrival rate, real-time requirements, business priority, and data volatility, respectively. , , , , These represent the weights corresponding to the normalized data size, data arrival rate, real-time requirements, business priority, and data volatility, respectively, satisfying the following: ;
[0018] While evaluating the medical data acquisition needs, the operational status of the work nodes undertaking the data acquisition task is monitored. Each ingestion node Running status Represented as:
[0019]
[0020] in, , , , , These represent the CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively.
[0021] node Comprehensive load for:
[0022]
[0023] In the formula, , , , , These represent the normalized CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively. , , , , Let represent the weights corresponding to the normalized CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively, satisfying: .
[0024] Preferably, when , , , , When any indicator exceeds the corresponding critical threshold, even the overall node load... Even if the high load range has not been reached, the current node is still judged to be in a state of resource shortage.
[0025] Preferably, in step S2, the intake modes include streaming intake, micro-batch intake, and batch intake, respectively denoted as: , and ;
[0026] First, the basic intake pattern is determined based on the real-time requirements of medical data, and then the normalized data scale is considered. and data arrival rate Adjust the basic intake pattern;
[0027] Subsequently, the current ingestion mode is adjusted based on the overall load of the ingestion node and the load status of individual resources;
[0028] Finally, using the intake demand index Determine the priority of resource allocation for different types of medical data. When multiple medical data acquisition tasks compete for limited resources simultaneously, the acquisition demand index is determined. High-quality data will be prioritized for resource acquisition, resulting in an acquisition pattern and resource guarantee priority that match the current data characteristics and node resource status.
[0029] Preferably, the process for determining the basic intake pattern is as follows:
[0030] Set a low threshold for real-time performance. and real-time high threshold ,satisfy ,when When the data is highly sensitive to latency and requires real-time processing, streaming mode should be prioritized. When the data has certain real-time requirements but allows for short-term caching and aggregation, it represents medium real-time performance, and a micro-batch ingestion mode is preferred; when When the data is low in sensitivity to ingestion latency, it indicates low real-time performance, and batch ingestion mode should be preferred.
[0031] The process of modifying the basic intake pattern is as follows:
[0032] (1) Set data size threshold and data arrival rate threshold ;
[0033] (2) When This indicates that a single data object may incur significant resource overhead during network transmission and storage writing. In this case, differentiated processing should be performed based on the established basic ingestion pattern:
[0034] If the basal intake pattern is batch intake, when Maintain batch intake; when If the continuous high-speed arrival of data has caused a backlog of data to be processed, the batch ingestion will be adjusted to micro-batch ingestion, so that the continuously arriving data will enter the medical data lake warehouse in batches.
[0035] If the basal intake pattern is micro-batch intake, when At that time, while meeting the allowable latency for data acquisition in the medical system, the system is adjusted to batch acquisition mode to reduce frequent transmission and write operations; when At that time, maintain the micro-batch intake mode;
[0036] If the base mode is streaming, maintain streaming.
[0037] when When the data size of a unit has not yet reached the point where the ingestion pattern needs to be modified based on the data size, the basic ingestion pattern does not need to be modified.
[0038] Preferably, the process of adjusting the current ingestion mode based on the overall load and individual resource load status of the ingestion node is as follows:
[0039] Set node low load threshold and node high load threshold ,satisfy When the overall load At this time, the node is treated as a low-load state, and the modified basic ingestion pattern is maintained;
[0040] when At this time, the node is treated as being in a medium load state, and the modified basic ingestion pattern is maintained;
[0041] when ,or , , , , When any indicator exceeds the corresponding critical threshold, the node is considered to be in a high-load or resource-scarce state, and differentiated adjustments are made accordingly:
[0042] For low-real-time medical data, the ingestion pattern should be adjusted towards a direction with relatively low resource consumption; for medium-real-time medical data, i.e., meeting the requirements... The data, in principle, should maintain a micro-batch ingestion mode; when the overall node load... The load level remains consistently above the node's high load threshold across multiple consecutive monitoring periods. If any normalized load indicator among CPU, memory, storage I / O, network and pending data queue continuously exceeds its corresponding preset critical threshold in multiple consecutive monitoring periods, it is determined that the node resource pressure is continuously high. When the node resource pressure is continuously high and the allowable ingestion latency of the corresponding medical data can meet the batch processing requirements, it can be further adjusted to batch ingestion mode to reduce the resource overhead generated by continuous processing.
[0043] For highly real-time medical data, i.e. For patient vital signs, real-time monitoring data, etc., streaming ingestion should be prioritized and batch ingestion should not be switched directly due to increased node load. When node resource pressure continues to increase and the current streaming ingestion is difficult to maintain, it can be adjusted to micro-batch ingestion with a shorter processing window to reduce resource consumption while ensuring the timeliness of data ingestion as much as possible.
[0044] Preferably, in step S2, the dynamic configuration process of the input parameters is as follows:
[0045] For medical data to be collected Define the set of ingestion parameters for:
[0046]
[0047] in, This indicates the batch size of data processed in a single intake. This indicates the batch size of data processed in a single intake. Indicates the degree of ingestion concurrency. Indicates the data write interval;
[0048] The main parameters used in different ingestion modes differ. For streaming ingestion mode, the focus is on configuring ingestion concurrency. and data write interval Shorter data write intervals reduce the waiting time for continuously arriving data; for micro-batch ingestion mode, the focus is on configuring the batch size. Processing time window and intake concurrency For data arriving within a short period, aggregate and process the data uniformly; for batch ingestion mode, configure the batch size based on the data scale and node resource status. and intake concurrency To improve processing efficiency during the centralized transmission and writing of large-scale medical data;
[0049] Based on the comprehensive needs of medical data collection Combined load of nodes The various ingestion parameters are dynamically adjusted, and the parameter adjustment follows the principle of coordinating data demand and resource status. That is, when the node has sufficient resources, the data ingestion and processing capacity is increased, and when the node resource pressure is high, the ingestion intensity is limited. At the same time, the processing requirements of data with high real-time and high comprehensive ingestion needs are given priority.
[0050] To prevent parameter adjustments from exceeding the system's allowed operating range, upper and lower limits are set for batch size, processing time window, ingestion concurrency, and data write interval, ensuring that the adjusted parameters meet the following constraints:
[0051]
[0052]
[0053]
[0054]
[0055] in, , These represent the lower and upper limits of the batch size, respectively; , These represent the lower and upper limits of the processing time window, respectively; , Indicates the lower and upper limits of ingestion concurrency; , This indicates the lower and upper limits of the data write interval setting.
[0056] Preferably, in step S3, the ingestion operation status is continuously monitored. :
[0057]
[0058] in, This indicates the actual ingestion latency of medical data from entering the ingestion pipeline to being written to the data lake warehouse; This indicates the amount of data acquired per unit of time, used to reflect actual data throughput capacity. Indicates the medical data to be collected The backlog of corresponding acquisition tasks, in contrast to The load on the overall unprocessed queue of the ingestion node is represented. Indicates the ingestion node The overall load;
[0059] The operating status is continuously acquired according to the preset monitoring cycle. If the current data acquisition status meets the operational requirements, maintain the current acquisition parameters and mode and continue to perform data acquisition; if the current data acquisition status does not meet the operational requirements, prioritize adjusting the acquisition parameters and re-execute data acquisition and operational status monitoring within the parameter constraints.
[0060] If the system fails to return to normal after several consecutive monitoring cycles following parameter adjustments, the acquisition mode will be further adjusted and the acquisition parameters will be reconfigured, thus forming a closed-loop process of dynamic adjustment of acquisition parameter configuration and operational feedback.
[0061] Preferably, when the actual intake time delay Within acceptable limits, data throughput capacity It can cover the current data arrival requirements and, within multiple consecutive monitoring periods, the backlog of tasks. If there is no significant and continuous increase and the data remains within the preset allowable range, it indicates that the current ingestion mode and parameters match the actual operating status, and the current ingestion status meets the operating requirements.
[0062] For any details not covered in this invention, please refer to the prior art.
[0063] The beneficial effects of this invention are as follows:
[0064] This invention targets medical data with varying data scales, arrival rates, and real-time requirements, such as electronic medical records, medical images, laboratory data, and real-time monitoring data. By acquiring characteristics such as the data type, data scale, arrival rate, real-time requirements, and business priority of the data to be ingested, it comprehensively analyzes the ingestion needs of different medical data. Simultaneously, it monitors the operational status of the work nodes performing the data ingestion tasks, acquiring load information such as computing resources, memory resources, network bandwidth, storage I / O, and pending data queues to reflect the data ingestion and processing capabilities that the current node can provide.
[0065] This invention integrates the needs for medical data acquisition with the operational load of acquisition nodes, dynamically determining the appropriate data acquisition method based on the matching relationship between the two. It adaptively configures operational parameters such as batch size, processing time window, acquisition concurrency, and data write interval during the data acquisition process, enabling different types of medical data to adopt matching acquisition strategies based on their own characteristics and the current system resource status. During data acquisition execution, it continuously monitors actual acquisition latency, data throughput, queue backlog, and node resource occupancy, and adjusts the current acquisition strategy based on changes in medical data characteristics and system operating status. When node resource status or data arrival characteristics change, the acquisition parameters are dynamically corrected, and the current acquisition method is adjusted as necessary, thus forming a closed-loop adaptive acquisition mechanism that combines data feature perception, node load perception, acquisition decision-making, acquisition execution, and operational feedback.
[0066] Through the above methods, this invention can ensure the timely acquisition of medical data with high real-time requirements, while reducing resource competition and data backlog during the centralized access of large-scale medical data. It makes the data acquisition intensity compatible with the actual resource carrying capacity of the nodes, improves the resource utilization efficiency, processing efficiency and operational stability in the process of acquiring multi-source heterogeneous medical data, and provides a data foundation for the unified storage, governance and analysis of subsequent medical data. Attached Figure Description
[0067] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an undue limitation of this application.
[0068] Figure 1 This is a schematic diagram of the overall process of the multi-source heterogeneous medical data acquisition method for collaborative perception of data and load according to the present invention.
[0069] Figure 2 This is a flowchart of the medical data feature and ingestion node load perception process of the present invention;
[0070] Figure 3 The flowchart for determining the adaptive ingestion mode based on data features and node load in this invention is shown below.
[0071] Figure 4 This is a flowchart illustrating the parameter configuration and dynamic adjustment process of the present invention. Detailed Implementation
[0072] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. However, this is not the only description; all aspects not described in detail herein are based on conventional techniques in the art.
[0073] Example 1
[0074] A method for ingesting multi-source heterogeneous medical data with collaborative perception of data and workload, such as Figure 1 As shown, it includes the following steps:
[0075] S1: Acquire multi-source heterogeneous medical data, collaboratively perceive the characteristics of medical data and the load of ingestion nodes, and calculate the medical data ingestion demand index and the comprehensive load of nodes.
[0076] S2 adaptively determines the ingestion mode and dynamically configures the ingestion parameters;
[0077] S3 performs medical data ingestion, continuously monitors the ingestion operation status, and dynamically adjusts the current ingestion parameters and ingestion mode based on the actual ingestion effect.
[0078] This embodiment addresses the continuous access scenario of multi-source heterogeneous medical data in a medical data lake warehouse. By jointly sensing the data characteristics of the medical data to be ingested and the operating load of the ingestion nodes, it comprehensively analyzes the data ingestion requirements and node processing capabilities, and dynamically determines the corresponding data ingestion mode and operating parameters based on the matching relationship between the two. During the data ingestion process, it continuously monitors the actual ingestion latency, data throughput, queue backlog, and node resource occupancy status, and dynamically adjusts the current ingestion parameters or ingestion mode according to changes in medical data characteristics and node load, thereby forming a closed-loop adaptive ingestion process.
[0079] Example 2
[0080] A method for ingesting multi-source heterogeneous medical data with collaborative data and load perception, as described in Example 1, differs in that, in step S1, before adaptive ingestion of medical data, it is necessary to obtain the demand characteristics of the medical data to be ingested and the operating load status of the ingestion node. The medical data characteristics reflect the ingestion requirements of different types of data in terms of data scale, arrival rate, real-time performance, and business priority, while the ingestion node load reflects the current usage status of computing, memory, network, and storage resources.
[0081] like Figure 2 As shown, this invention obtains relevant status information from both the medical data side and the ingestion node side. Feature extraction is performed on the multi-source heterogeneous medical data entering the medical data lake warehouse. Considering the significant differences in data structure, data scale, generation method, and real-time requirements among electronic medical records, laboratory data, medical images, and real-time monitoring data, this invention does not directly fix the ingestion pattern according to the data source. Instead, it extracts data features that reflect actual ingestion needs and provides a unified description of the medical data to be ingested.
[0082] For the characteristics of medical data to be collected First, identify its data type. The data is generated and its characteristics, such as data size, data arrival rate, real-time requirements, business priority, and data volatility, are extracted to form a data feature set. The medical data intake demand index was calculated after normalization. Among them, data type The data organization form used to characterize medical data includes structured, semi-structured, and unstructured data; it also considers the data generation method to determine whether it exhibits continuous streaming generation characteristics. Data type, as a fundamental attribute of medical data, is used to assist in determining the data organization form and ingestion characteristics of different data types, but it does not directly participate in the weighted calculation of the subsequent ingestion demand index.
[0083] Data feature set ,in, , , , , These represent the data size, data arrival rate, real-time requirements, business priority, and data volatility of the medical data to be ingested. Data size reflects the amount of data generated by a single data object during transmission and writing. Data arrival rate reflects the amount of data entering the ingestion pipeline per unit time. A higher real-time requirement value indicates that the corresponding data needs to be ingested in a shorter time. Business priority reflects the processing priority of different medical data when multiple ingestion tasks compete for resources. Data volatility describes the changes in data arrival rate within a certain time range. This indicator increases accordingly when data is uploaded in a short period of time or experiences a sudden increase.
[0084] The aforementioned characteristics can be obtained from the metadata information, business configuration, and operational statistics in the ingestion pipeline of medical data sources. For example, real-time monitoring data such as patient heart rate and blood pressure typically have characteristics such as small unit data size, high arrival frequency, and high real-time requirements; electronic medical record update data typically have medium data size and medium real-time requirements; while medical imaging data such as CT and MRI are characterized by large individual data object size and high network transmission and storage write overhead. To eliminate the dimensional differences between different characteristics, the following parameters are considered before subsequent calculations: Normalization is performed to map each indicator to Interval.
[0085] After obtaining the characteristics of medical data, the overall acquisition requirements for the medical data to be acquired are evaluated. These acquisition requirements do not simply represent real-time data processing needs, but rather comprehensively reflect the overall processing requirements that current medical data places on the acquisition system in terms of data throughput, real-time processing, business assurance, and handling of sudden data releases. This invention integrates the above-mentioned quantitative characteristics and defines a medical data acquisition requirement index. for:
[0086]
[0087] in, , , , , These represent the normalized data size, data arrival rate, real-time requirements, business priority, and data volatility, respectively. , , , , These represent the weights corresponding to the normalized data size, data arrival rate, real-time requirements, business priority, and data volatility, respectively, satisfying the following: Each weight can be pre-configured based on the actual medical data ingestion scenario. A higher weight for data arrival rate indicates a larger amount of data to be processed per unit time; a higher weight for real-time requirements indicates a shorter allowable data ingestion waiting time; a higher weight for business priority indicates a greater need to prioritize data ingestion under resource competition; a higher weight for data volatility indicates a greater likelihood of short-term bursts of data input from the data source; and a higher weight for the size of a unit data object indicates higher demands on network bandwidth and storage I / O capabilities during data transmission and writing. Therefore, The larger the value, the higher the comprehensive processing requirements that the current medical data places on the ingestion system.
[0088] It should be noted that the intake demand index The overall intensity of the ingestion demand for medical data is used to describe the overall ingestion demand, but it does not directly determine whether streaming, micro-batch, or batch ingestion mode is adopted. For example, medical images such as CT and MRI may have a high overall ingestion demand due to the large size of individual data objects, but their real-time requirements are relatively low. Therefore, in the subsequent ingestion mode determination process, it is necessary to further judge based on specific characteristics such as data size, real-time requirements, and the load of ingestion nodes. In this way, unreasonable situations caused by directly determining the ingestion mode based on a single comprehensive indicator can be avoided.
[0089] While evaluating the demand for medical data ingestion, the operational status of the work nodes undertaking the data ingestion task is monitored. Considering that the medical data ingestion process simultaneously consumes computing, memory, network, and storage resources, this invention selects CPU utilization, memory utilization, storage I / O load, network load, and the status of the pending data queue as node load evaluation indicators.
[0090] For the Each ingestion node Running status Represented as:
[0091]
[0092] in, , , , , These represent the CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively.
[0093] The above indicators are obtained based on real-time monitoring results of the nodes. Due to differences in the value range and units of measurement for each indicator, this embodiment provides specific details. Normalization is performed to map each indicator to Intervals, and denoted as respectively. , , , and The larger the normalized value, the higher the current utilization or load pressure of the corresponding resource. The normalized node load status can be represented as:
[0094]
[0095] node Comprehensive load for:
[0096]
[0097] In the formula, , , , , These represent the normalized CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively. , , , , Let represent the weights corresponding to the normalized CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively, satisfying: The above comprehensive load calculation uses normalized node load indices. This avoids inconsistencies in the overall load calculation results caused by different resource indicators having different dimensions and numerical ranges.
[0098] The weights can be configured based on the actual operating environment of the medical data lake warehouse and the degree of impact of different resources on data ingestion performance. The larger the value, the higher the overall resource pressure on the current ingestion node, and the lower the remaining processing capacity available to continue undertaking data ingestion tasks; The smaller the value, the lower the node's current resource utilization, and the greater its remaining processing capacity.
[0099] Considering that a particular resource may become a performance bottleneck during the medical data acquisition process, this invention further sets a critical load for each individual resource. , , , , When any indicator exceeds the corresponding critical threshold, even the overall node load... Even if the high load range has not been reached, the current node is still judged to be in a state of resource shortage.
[0100] Using normalized metrics for individual resource threshold assessment allows for comparison and evaluation of the load status of different resource types within a unified numerical range, while retaining the ability to set individual thresholds for each resource type. This mechanism prevents a high load in one resource from being offset by other low load metrics when multiple resource metrics are weighted for calculation. For example, when multiple medical institutions are uploading CT and MRI images, the CPU and memory utilization of the ingestion node may still be within the normal range, but network bandwidth or storage I / O may be close to saturation. In this case, individual resource threshold assessment can promptly identify the actual resource bottleneck.
[0101] Through the above processing, the system obtains the intake demand index of the medical data to be taken. Combined load of ingestion nodes .in, This is used to characterize the intensity of current medical data acquisition needs in terms of throughput, real-time performance, business priority, and emergency response. This information is used to characterize the overall resource load of the current ingestion node. Both types of information together serve as the basis for subsequently adaptively determining the data ingestion pattern and parameters.
[0102] Example 3
[0103] A method for acquiring multi-source heterogeneous medical data with collaborative perception of data and load, as described in Example 2, differs in that, in step S2, after obtaining the medical data acquisition demand index... Combined load of ingestion nodes Subsequently, the present invention further combines the real-time requirements of medical data, the average size of a unit data object, the data arrival rate, and the current resource status of the node to adaptively determine the corresponding data ingestion mode.
[0104] Intake patterns include streaming, micro-batch, and batch intake, denoted as follows: , and ;in, This indicates a streaming ingestion mode, primarily used for continuously generated data with high real-time requirements. This indicates a micro-batch ingestion mode, primarily used for data that has certain real-time requirements but allows aggregation processing within a short time window; This refers to a batch ingestion mode, primarily used for data with lower real-time requirements, larger unit data object sizes, or data suitable for centralized processing. This invention first determines a basic ingestion mode based on the characteristics of the medical data itself, then modifies the basic mode according to the operational load of the ingestion nodes, and determines the priority of resource allocation based on the overall data ingestion needs, thereby enabling the ingestion method to adapt to both data requirements and node resource status.
[0105] like Figure 3 As shown, the basic intake pattern is first determined based on the real-time requirements of medical data, and then combined with the normalized data scale. and data arrival rate Adjust the basic intake pattern;
[0106] Subsequently, the current ingestion mode is adjusted based on the overall load and individual resource load status of the ingestion node. In principle, the basic ingestion mode is maintained under low and medium load conditions, while differentiated adjustments are implemented based on the real-time nature of medical data when under high load or when resource bottlenecks exist.
[0107] Finally, using the intake demand index Determine the priority of resource allocation for different types of medical data. When multiple medical data acquisition tasks compete for limited resources simultaneously, the acquisition demand index is determined. High-quality data will be prioritized for resource acquisition, resulting in an acquisition pattern and resource guarantee priority that match the current data characteristics and node resource status.
[0108] Preferably, the process for determining the basic intake pattern is as follows:
[0109] Set a low threshold for real-time performance. and real-time high threshold ,satisfy ,when This indicates that the medical data to be ingested is highly sensitive to ingestion latency and requires high real-time performance. Therefore, streaming ingestion is preferred. For example, real-time monitoring data such as patient heart rate, blood pressure, and blood oxygen saturation are characterized by continuous generation and high real-time requirements, and need to be written to the medical data repository as promptly as possible. When the data has certain real-time requirements but allows for short-term caching and aggregation, it represents medium real-time performance and prioritizes micro-batch ingestion. For example, electronic medical record updates, test results, and some chronic disease follow-up data can be aggregated and written uniformly within a short time window. When the data is low in sensitivity to ingestion latency, it indicates low real-time performance, and batch ingestion mode should be prioritized, such as historical medical records, archived images, and historical follow-up data.
[0110] The process of modifying the basic intake pattern is as follows:
[0111] (1) After determining the basic ingestion pattern based on real-time requirements, the present invention further incorporates the normalized average size of unit data objects. and data arrival rate The basic model was revised. To do this, data size thresholds were set separately. and data arrival rate threshold ,in and All located in interval;
[0112] The aforementioned thresholds can be pre-configured based on the historical operational statistical characteristics of medical data, as well as the network bandwidth, storage I / O capacity, and stable processing capabilities of the ingesting nodes. For example, the higher quantile of the historical data size and data arrival rate can be used as the corresponding threshold; when adopting... Under normalization, it can be , These are initial example values, and will be adjusted based on actual performance.
[0113] (2) When This indicates that a single data object may incur significant resource overhead during network transmission and storage writing. In this case, differentiated processing should be performed based on the established basic ingestion pattern:
[0114] If the basal intake pattern is batch intake, when Maintain batch intake; when If the continuous high-speed arrival of data has caused a backlog of data to be processed, batch ingestion can be adjusted to micro-batch ingestion, so that the continuously arriving data enters the medical data lake warehouse in batches.
[0115] If the basal intake pattern is micro-batch intake, when At that time, provided that the allowable latency for ingesting the medical data is met, it can be adjusted to batch ingestion mode to reduce frequent transmission and write operations; when At the same time, maintain the micro-batch ingestion mode, and process the continuously arriving data by forming short-time batches to avoid the backlog of unprocessed data after switching to batch ingestion;
[0116] If the basic ingestion mode is streaming ingestion, then because this type of data has high real-time requirements, it will not be directly adjusted to micro-batch or batch ingestion just because the size of a single data object is large. In principle, streaming ingestion will be maintained, and its data size and data arrival rate will be mainly used as the basis for subsequent ingestion parameter configuration.
[0117] when This indicates that the size of the unit data object has not yet reached the point where the ingestion pattern needs to be adjusted based on the data size. In this case, the basic ingestion pattern is not adjusted solely based on the data size, but is further combined with the data arrival rate. Determine whether pattern correction is needed; when Also below the data arrival rate threshold In principle, the basic intake pattern determined based on real-time requirements should be maintained.
[0118] For example, medical images such as CT and MRI have large individual data objects. Continuously using high-frequency writing can easily increase network bandwidth and storage I / O pressure. For medical images with real-time requirements that allow for batch processing, batch ingestion can be used after a certain degree of data aggregation, thereby reducing the resource overhead caused by frequent writing. For medical images with lower real-time requirements, data arrival rates that have not reached the high arrival rate range, and which allow for batch processing, batch ingestion can be used to reduce the resource overhead caused by frequent transmission and writing. For data that arrives continuously at high speed or has high real-time requirements, batch ingestion is not directly adopted simply because the individual data object is large. Instead, processing is carried out in combination with its basic ingestion mode and data arrival status.
[0119] This invention uses the average size of a unit data object and data arrival rate The basic pattern is modified first, then a judgment is made. and The size, and then based on the arrival rate of the normalized data. Determine the current intake pattern. When This indicates that a large amount of medical data is entering the intake pipeline per unit of time. If Consistently not lower than [a certain level] over multiple consecutive testing cycles For example, if this condition is met for 3 to 5 consecutive testing cycles, then the medical data is considered to have a continuous high-speed arrival characteristic.
[0120] If the current mode is streaming ingestion, it should be maintained in principle to avoid the rapid backlog of continuously arriving data in the processing queue. If the current mode is micro-batch ingestion, it should be maintained in principle to balance ingestion latency and processing overhead by continuously forming short-duration batches. If the current mode is batch ingestion and medical data is characterized by continuous high-speed arrival and a trend of continuous backlog of data to be processed, batch ingestion can be adjusted to micro-batch ingestion so that continuously arriving data enters the medical data lake warehouse in batches at shorter intervals.
[0121] Therefore, this invention does not directly fix the acquisition method based on data sources such as electronic medical records, medical images, or real-time monitoring data. Instead, it first determines the basic acquisition mode based on the real-time requirements of medical data, and then makes differentiated modifications to the basic mode in combination with the scale of the data object and the data arrival status, so that different acquisition methods can be used when the data status of the same data source changes.
[0122] Furthermore, the basic ingestion pattern determined by medical data characteristics mainly reflects the data's own processing needs, but in actual implementation, it is also necessary to consider whether the ingestion nodes have sufficient resources to support the current ingestion method. Therefore, this invention further considers the comprehensive load of the ingestion nodes. The basic ingestion pattern is adjusted. The process of adjusting the current ingestion pattern based on the overall load and individual resource load status of the ingestion nodes is as follows:
[0123] Set node low load threshold and node high load threshold ,satisfy When the overall load When nodes are in a low-load state, computing, memory, network and storage resources are relatively sufficient. In principle, the modified basic ingestion mode is maintained, and the real-time and throughput requirements of the data itself are prioritized.
[0124] when At this time, the node is considered to be in a medium load state, and the modified basic ingestion mode is maintained in principle. Among them, high real-time medical data continues to use streaming ingestion, medium real-time data uses micro-batch ingestion, and low real-time data or data with a large unit data object size uses batch ingestion, so as to meet the normal ingestion needs while avoiding a rapid increase in node resource pressure.
[0125] when ,or , , , , When any indicator exceeds the corresponding critical threshold, the node is considered to be in a state of high load or resource shortage, and differentiated adjustments are made. At this time, the original intake mode is no longer simply maintained, but differentiated adjustments are made according to the real-time requirements and comprehensive intake needs of different medical data.
[0126] For low real-time medical data, i.e., normalized real-time indicators Not higher than the real-time low threshold When nodes are under high load or resource stress, the ingestion mode can be adjusted to a mode with relatively low resource consumption. For example, for low real-time data that was adjusted from batch ingestion to micro-batch ingestion due to the continuous high-speed arrival of data, when the node resource pressure increases, it can be readjusted to batch ingestion to reduce frequent data processing and write operations.
[0127] For moderately real-time medical data, i.e., meeting the requirements The data, in principle, maintains a micro-batch ingestion mode, when the overall node load... The load level remains consistently above the node's high load threshold across multiple consecutive monitoring periods. If any normalized load indicator among CPU, memory, storage I / O, network and pending data queue continuously exceeds its corresponding preset critical threshold in multiple consecutive monitoring periods, it is determined that the node resource pressure is continuously high. When the node resource pressure is continuously high and the allowable ingestion latency of the corresponding medical data can meet the batch processing requirements, it can be further adjusted to batch ingestion mode to reduce the resource overhead generated by continuous processing.
[0128] For highly real-time medical data, i.e. For patient vital signs, real-time monitoring data, etc., streaming ingestion should be prioritized and batch ingestion should not be switched directly due to increased node load. When node resource pressure continues to increase and the current streaming ingestion is difficult to maintain, it can be adjusted to micro-batch ingestion with a shorter processing window to reduce resource consumption while ensuring the timeliness of data ingestion as much as possible.
[0129] The comprehensive intake demand index obtained in this embodiment It is primarily used to determine the priority of different medical data when node resources are contested, rather than directly deciding which data ingestion mode to adopt. When multiple medical data ingestion tasks compete for limited resources simultaneously, data with higher overall ingestion requirements are given priority in obtaining the corresponding ingestion resources, while data with lower overall requirements and lower real-time requirements can have their ingestion intensity appropriately reduced, freeing up computing, network, and storage resources for high-demand data.
[0130] For example, medical images such as CT and MRI have a large average size of data per unit. The data volume may be high, but if the real-time requirements are low, batch ingestion can still be used, only providing the corresponding network and storage processing capabilities as node resources allow; although the unit data size of patient vital signs data is small, due to its high real-time nature and business priority, streaming ingestion is still prioritized when node resources are tight.
[0131] Through the above methods, this invention establishes an adaptive ingestion strategy that "determines the basic ingestion pattern based on data characteristics, modifies the pattern based on node load, and determines the priority of protection based on comprehensive ingestion needs." When node resources are sufficient, the ingestion needs of the medical data itself are prioritized; when node resources are scarce, differentiated adjustments are implemented based on the real-time nature of the medical data and the comprehensive ingestion needs. This avoids the problem that a fixed ingestion pattern cannot adapt to dynamic changes in data and resource status, and provides a basis for the dynamic configuration of ingestion parameters under different subsequent ingestion patterns.
[0132] After determining the acquisition pattern of the medical data to be acquired, this invention further considers the characteristics of the medical data and a comprehensive acquisition demand index. and the overall load of the ingestion node The operating parameters under the current ingestion mode are dynamically configured. Different ingestion modes have different requirements for data processing latency and system resource consumption. Therefore, this invention does not use fixed batch size, processing window and concurrency, but adjusts the corresponding parameters according to the current data demand and node resource status to match the data ingestion intensity with the actual processing capacity of the node.
[0133] The dynamic configuration process of the input parameters is as follows:
[0134] For medical data to be collected Define the set of ingestion parameters for:
[0135]
[0136] in, This indicates the batch size of data processed in a single intake. This indicates the batch size of data processed in a single intake. This indicates the concurrency of data ingestion, i.e., the number of data ingestion and processing tasks executed simultaneously. This indicates the data write interval, used to control the frequency of data write operations to the medical data lake warehouse;
[0137] The main parameters used in different ingestion modes differ. For streaming ingestion mode, the focus is on configuring ingestion concurrency. and data write interval Shorter data write intervals reduce the waiting time for continuously arriving data; for micro-batch ingestion mode, the focus is on configuring the batch size. Processing time window and intake concurrency For data arriving within a short period, aggregate and process the data uniformly; for batch ingestion mode, configure the batch size based on the data scale and node resource status. and intake concurrency To improve processing efficiency during the centralized transmission and writing of large-scale medical data;
[0138] For real-time monitoring data such as patient heart rate, blood pressure, and blood oxygen saturation, a shorter data write interval should be set when using streaming ingestion. The data write interval is set based on the allowable ingestion latency for this type of data, and is less than its maximum allowable ingestion latency. For example, for real-time monitoring data that requires ingestion within seconds, the data write interval can be set to the order of hundreds of milliseconds, and adjusted according to the actual operating conditions. Simultaneously, the corresponding ingestion concurrency is configured based on the data arrival rate. When the data arrival rate increases and the node still has remaining processing capacity, the ingestion concurrency should be increased appropriately; when the node load is high, the increase in ingestion concurrency should be limited to reduce the waiting time of data in the ingestion pipeline.
[0139] For data acquired via micro-batch, such as electronic medical record updates and test results, an appropriate processing time window should be set. The processing time window is determined based on the allowable data ingestion latency and data arrival rate. For example, it can be set to a short time window at the second level. When the data arrival rate is high, the processing time window can be appropriately shortened. When the data arrival rate is low and a longer ingestion latency is allowed, the processing time window can be appropriately extended so that the data within a certain time range is concentrated into a micro-batch before being written.
[0140] For large-scale medical images such as CT and MRI that are acquired in batches, relatively large data batches are allowed for centralized transmission and writing. The batch size is set according to the size of a single data object and the network, storage and memory resources currently available to the node. When node resources are sufficient, the batch size can be increased appropriately, and when the network or storage I / O load is high, the batch size should be decreased accordingly, thereby reducing the additional overhead caused by frequent data processing and writing operations.
[0141] Based on the basic parameter configuration, and according to the comprehensive medical data acquisition requirements Combined load of nodes The various ingestion parameters are dynamically adjusted, and the parameter adjustment follows the principle of coordinating data demand and resource status. That is, when the node has sufficient resources, the data ingestion and processing capacity is increased, and when the node resource pressure is high, the ingestion intensity is limited. At the same time, the processing requirements of data with high real-time and high comprehensive ingestion needs are given priority.
[0142] When a node is under low load, it indicates that it has significant remaining processing capacity. For medical data with high comprehensive ingestion requirements or high data arrival rates, the ingestion concurrency can be appropriately increased. Among them, a higher demand for comprehensive intake refers to Reaching a preset high demand range, or ranking high among multiple pending medical data; high data arrival rate refers to the normalized data arrival rate. Reaching or exceeding the aforementioned preset data arrival rate threshold The corresponding judgment criteria can be pre-configured based on historical operational data and actual business needs. "Appropriately increasing" means that a gradual increase can be adopted, such as adding one concurrent task each time, or increasing the current concurrency by about 10% to 20%, and the adjusted concurrency does not exceed the preset upper limit. After completing one adjustment, it is determined whether to continue adding based on the actual operating status, so that multiple data processing tasks can be executed in parallel; for streaming and micro-batch data ingestion, the processing time window can be appropriately shortened. or data write interval The shortening can be performed gradually according to a preset adjustment step size, for example, shortening by about 10% to 20% each time based on the current parameters, while ensuring that the processing time window and data writing interval are not lower than the corresponding minimum allowable values. and This accelerates the speed at which data enters the medical data lake warehouse. For large-scale medical data using batch ingestion, the batch size can be appropriately increased within the limits of network bandwidth and storage I / O. The increase can be gradually adjusted according to a certain proportion of the current batch size, for example, increasing by about 10% to 20% each time; when the current batch contains 10 data objects, it can be increased to 11 to 12, while ensuring that the adjusted batch size does not exceed the preset upper limit. This increases the amount of data processed in a single session.
[0143] When a node is under medium load, the current ingestion parameters should be maintained in principle, with only minor adjustments made based on the data arrival rate and overall ingestion requirements. Minor adjustments mean modifying the parameters in small increments around the current values, such as adjusting the batch size, processing time window, ingestion concurrency, or data write interval by approximately 5% to 10% each time, or adjusting only a single preset parameter level to avoid simultaneous large changes in multiple parameters. For data with high real-time requirements, shorter processing windows and write intervals should be maintained; for data with lower real-time requirements, relatively stable batch sizes and concurrency should be used to avoid system fluctuations caused by frequent parameter changes.
[0144] When nodes are under high load or resource strain, reduce the resource consumption of some ingestion tasks. For data with lower real-time requirements, the ingestion intensity can be gradually reduced, for example, by decreasing the ingestion concurrency each time. Reducing one concurrent task can lower the processing time by approximately 10% to 20%, while also allowing the processing window to be adjusted. or data write interval Extend the current values by approximately 10% to 20%, while ensuring that all adjusted parameters remain within the preset upper and lower limits. This allows data arriving in a short period to be aggregated into larger units for unified processing, thereby reducing frequent data processing and write operations. For batch-ingested data, the batch size can be appropriately limited based on the actual network or storage I / O load to avoid further exacerbating resource bottlenecks through large-scale centralized data transmission.
[0145] For medical data with high real-time requirements or high business priority, different parameter protection methods are adopted. When the node load increases, priority is given to maintaining its shorter processing time window and data write interval, and processing resources are released by limiting the concurrency and resource consumption of low-priority ingestion tasks. Therefore, an increase in node load does not mean that all medical data adopts the same parameter adjustment direction, but rather that differentiated configurations are made according to the real-time nature and comprehensive ingestion requirements of different data.
[0146] To prevent parameter adjustments from exceeding the system's allowed operating range, upper and lower limits are set for batch size, processing time window, ingestion concurrency, and data write interval, ensuring that the adjusted parameters meet the following constraints:
[0147]
[0148]
[0149]
[0150]
[0151] in, , These represent the lower and upper limits of the batch size, respectively; , These represent the lower and upper limits of the processing time window, respectively; , Indicates the lower and upper limits of ingestion concurrency; , This indicates the lower and upper limits of the data write interval setting.
[0152] The above parameter range can be preset according to the node configuration, network environment and actual processing requirements of different data sources in the medical data lake warehouse, so as to prevent the ingestion parameters from being too large and causing resource competition, or the parameters from being too small and causing frequent scheduling and increased data writing overhead.
[0153] Through the above methods, after determining the streaming, micro-batch, or batch ingestion mode, this invention dynamically configures the batch size, processing time window, ingestion concurrency, and data writing interval based on the characteristics of medical data, comprehensive ingestion requirements, and node resource load. This ensures that the ingestion parameters match the current medical data processing needs and the actual resource carrying capacity of the nodes, providing a basis for subsequent operational feedback and further dynamic adjustments based on actual ingestion latency, data throughput, queue backlog, and resource usage.
[0154] Example 4
[0155] A method for ingesting multi-source heterogeneous medical data with collaborative data and load perception, as described in Example 3, differs in that, after determining the ingestion mode and configuring the ingestion parameters, this embodiment continuously monitors the actual operating status during the data ingestion process and adjusts the current ingestion parameters and mode based on the actual ingestion effect. Since the arrival rate of medical data, node resource load, and the amount of data to be processed change over time, the aforementioned determined ingestion mode and parameters are not fixed but dynamically corrected based on ingestion latency, data throughput, queue backlog, and node resource usage status, thus forming a closed-loop adaptive ingestion process that combines data feature perception, node load perception, ingestion decision-making, ingestion execution, and operational feedback.
[0156] like Figure 4 As shown, after determining the ingestion mode and configuring the ingestion parameters, the present invention continuously monitors the operating status during the medical data ingestion process and dynamically adjusts the current ingestion parameters and ingestion mode according to the actual ingestion effect.
[0157] If the current data acquisition status meets operational requirements, maintain the current acquisition parameters and mode and continue data acquisition. If the current data acquisition status does not meet operational requirements, prioritize adjusting the acquisition parameters and re-execute data acquisition and operational status monitoring within the parameter constraints. If the data acquisition fails to return to normal after several consecutive monitoring cycles following parameter adjustments, further adjust the acquisition mode and reconfigure the acquisition parameters, thus forming a closed-loop process of dynamic adjustment between acquisition parameter configuration and operational feedback.
[0158] Specifically, during the data ingestion process, the medical data to be ingested... The actual operating status is continuously monitored, mainly acquiring information such as actual ingestion latency, data throughput, backlog of pending data, and the overall load of the current ingestion node, to continuously monitor the ingestion operation status. Represented as:
[0159]
[0160] in, This indicates the actual ingestion latency of medical data from entering the ingestion pipeline to being written to the data lake warehouse; This indicates the amount of data acquired per unit of time, used to reflect actual data throughput capacity. Indicates the medical data to be collected The backlog of corresponding acquisition tasks, in contrast to The load on the overall unprocessed queue of the ingestion node is represented. Indicates the ingestion node The overall load;
[0161] The operating status is continuously acquired according to the preset monitoring cycle. If the current data acquisition status meets the operational requirements, maintain the current acquisition parameters and mode and continue to perform data acquisition; if the current data acquisition status does not meet the operational requirements, prioritize adjusting the acquisition parameters and re-execute data acquisition and operational status monitoring within the parameter constraints.
[0162] If the system fails to return to normal after several consecutive monitoring cycles following parameter adjustments, the acquisition mode will be further adjusted and the acquisition parameters will be reconfigured, thus forming a closed-loop process of dynamic adjustment of acquisition parameter configuration and operational feedback.
[0163] Preferably, when the actual intake time delay Within acceptable limits, data throughput capacity It can cover the current data arrival requirements and, within multiple consecutive monitoring periods, the backlog of tasks. If there is no significant and continuous increase and the data remains within the preset allowable range, it indicates that the current ingestion mode and parameters match the actual operating status, and the current ingestion status meets the operating requirements.
[0164] The allowable range of actual data intake latency can be preset according to the real-time requirements of different medical data. For example, high real-time data corresponds to a smaller allowable latency range, while low real-time data allows for a relatively larger intake latency. Data throughput capacity, which can cover the current data arrival demand, refers to the actual data throughput. A rate no lower than the current actual arrival rate of medical data can prevent new data from continuously entering the processing queue.
[0165] Task backlog A significant and sustained increase refers to a period of time spanning multiple monitoring cycles. A continuously increasing or exceeding preset backlog limits indicates that current ingestion processing capacity may be lower than data input demand. Further analysis of the overall node load is needed to determine the cause of this state. When node load is low or within a normal range, it indicates that there are still some spare resources, and the ingestion processing intensity can be increased by improving ingestion concurrency, shortening processing time windows, or shortening data write intervals. When nodes are already under high load, it indicates that further increasing processing intensity may further exacerbate resource contention, requiring differentiated adjustments to different ingestion tasks based on the real-time nature of medical data and overall ingestion requirements.
[0166] When the data arrival rate is high or there is still data to be processed, the actual data throughput... If the data arrival rate is lower than the current rate and the node remains under low load for several consecutive monitoring periods, it indicates that the current ingestion parameters may be overly conservative. The system can appropriately increase the ingestion concurrency or the amount of data processed per cycle within the parameter limits to make fuller use of the node's remaining resources.
[0167] By monitoring the above-mentioned operational status, it can be determined whether the current ingestion strategy can meet the actual processing needs of medical data, and provide feedback for subsequent parameter adjustments and ingestion mode switching.
[0168] When the operating status deviates, the present invention performs dynamic correction in the manner of "prioritizing the adjustment of ingestion parameters and adjusting the ingestion mode when necessary" to reduce the additional overhead caused by frequent switching of ingestion modes.
[0169] The current ingestion pattern is still suitable for the characteristics of medical data. Only when the data arrival rate or node load changes to a certain extent should the batch size be adjusted within the defined upper and lower limits of the parameters. Processing time window , intake concurrency or data write interval .
[0170] For example, when the data arrival rate increases, the queue of pending data continues to grow, and nodes still have remaining processing capacity, the ingestion concurrency can be appropriately increased, and the processing time window or data write interval can be shortened for streaming or micro-batch ingestion data to improve the current data processing speed. For large-scale medical data using batch ingestion, the batch size can be appropriately adjusted, provided that network and storage resources allow, to improve centralized processing efficiency.
[0171] When the resource load on the ingestion node continues to increase, priority should be given to reducing resource consumption for data with lower real-time requirements. For example, the ingestion concurrency of low-priority data can be reduced, and the micro-batch processing time window or data write interval can be appropriately extended, so that limited computing, network, and storage resources are prioritized for medical data with higher real-time requirements or higher comprehensive ingestion needs. For large-scale medical images such as CT and MRI, when the network or storage I / O is detected to be approaching the critical load, the size of each ingestion or the processing concurrency can be limited to avoid further increasing the pressure on node resources by writing large-scale data.
[0172] After parameter adjustments are performed over multiple consecutive monitoring cycles, these cycles can be pre-set based on the system monitoring frequency and the real-time requirements of medical data. For example, they can be set to 3-5 consecutive monitoring cycles. For data with high real-time requirements, fewer monitoring cycles can be used to trigger adjustments more quickly, while for data with lower real-time requirements, more monitoring cycles can be used to avoid frequent switching of the ingestion mode due to short-term fluctuations. The above number of monitoring cycles is only an example and can be configured according to the actual operating environment. If any of the following situations occur within the above consecutive monitoring cycles: actual ingestion delay... The latency consistently exceeds the allowable range for data ingestion in the corresponding medical data; the backlog of data awaiting processing is significant. The overall load of the node remains above the preset allowable range or does not show a significant decrease; If the system remains under high load, or if the load of any single resource exceeds its corresponding critical threshold, then the current operating state has not yet returned to normal. This indicates that parameter adjustments alone are insufficient to adapt to the current data and resource status, and further adjustments to the ingestion mode are required.
[0173] For data with low real-time requirements, streaming ingestion can be adjusted to micro-batch ingestion, or micro-batch ingestion can be adjusted to batch ingestion, to reduce the resource overhead of continuous processing. For data with a significantly increased arrival rate and sufficient node resources, batch ingestion can be adjusted to micro-batch ingestion, or micro-batch ingestion can be adjusted to streaming ingestion, to improve the timeliness of data processing.
[0174] For highly real-time medical data such as patient vital signs and real-time monitoring data, mode adjustments are constrained by real-time requirements. Even when nodes are under high load, priority is given to freeing up processing capacity by limiting resource consumption of low-real-time data rather than directly adjusting it to batch ingestion; only when streaming processing cannot be maintained and it is necessary to reduce node pressure can a micro-batch method with a shorter processing window be used for temporary processing.
[0175] To avoid frequent switching of acquisition parameters and acquisition modes due to small fluctuations in data arrival rate or node load near critical states, this invention also includes an adjustment and maintenance mechanism. Only after a certain abnormal operating state has continuously reached a preset monitoring period is the corresponding parameter adjustment or mode switching triggered. After completing an acquisition mode switch, the current mode is maintained for a preset maintenance time, and a switch is only executed again when the operating state undergoes a sustained and significant change. Simultaneously, different judgment thresholds for entering and exiting the adjustment state can be set separately, giving the system a certain buffer range near critical loads, thereby reducing repeated changes in the acquisition strategy.
[0176] Through the above-mentioned operational feedback and dynamic adjustment mechanism, this invention continuously evaluates the current ingestion effect based on actual ingestion latency, data throughput, queue backlog, and node resource load, and dynamically corrects the ingestion process by prioritizing parameter adjustment and supplementing with ingestion mode adjustment. This enables the medical data ingestion strategy to be continuously updated as the data status and system resource status change, ultimately forming a complete closed-loop adaptive ingestion process.
[0177] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for acquiring multi-source heterogeneous medical data through collaborative sensing of data and workload, characterized in that, Includes the following steps: S1: Acquire multi-source heterogeneous medical data, collaboratively perceive the characteristics of medical data and the load of ingestion nodes, and calculate the medical data ingestion demand index and the comprehensive load of nodes. S2 adaptively determines the ingestion mode and dynamically configures the ingestion parameters; S3 performs medical data ingestion, continuously monitors the ingestion operation status, and dynamically adjusts the current ingestion parameters and ingestion mode based on the actual ingestion effect.
2. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 1, characterized in that, In step S1, medical data features are used to reflect the ingestion requirements of different types of data in terms of data scale, arrival rate, real-time performance and business priority, and ingestion node load is used to reflect the current usage status of computing, memory, network and storage resources. For the characteristics of medical data to be collected First, identify its data type. The data is generated and its characteristics are analyzed, including data size, data arrival rate, real-time requirements, business priority, and data volatility, to form a data feature set. The medical data intake demand index was calculated after normalization. ; At the same time, for the ingestion node The operating status is collected and normalized to calculate the overall load of the computing nodes. And perform critical load judgment for individual resources.
3. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 2, characterized in that, Data feature set ,in, , , , , These represent the data scale, data arrival rate, real-time requirements, business priority, and data volatility of the medical data to be collected; Medical Data Intake Demand Index It is obtained from the following formula: in, , , , , These represent the normalized data size, data arrival rate, real-time requirements, business priority, and data volatility, respectively. , , , , These represent the weights corresponding to the normalized data size, data arrival rate, real-time requirements, business priority, and data volatility, respectively, satisfying the following: ; While evaluating the medical data acquisition needs, the operational status of the work nodes undertaking the data acquisition task is monitored. Each ingestion node Running status Represented as: in, , , , , These represent the CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively. node Comprehensive load for: In the formula, , , , , These represent the normalized CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively. , , , , Let represent the weights corresponding to the normalized CPU load, memory load, storage I / O load, network load, and the backlog of the data queue to be processed, respectively, satisfying: .
4. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 3, characterized in that, when , , , , When any indicator exceeds the corresponding critical threshold, even the overall node load... Even if the high load range has not been reached, the current node is still judged to be in a state of resource shortage.
5. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 4, characterized in that, In step S2, the intake modes include streaming intake, micro-batch intake, and batch intake, which are respectively represented as follows: , and ; First, the basic intake pattern is determined based on the real-time requirements of medical data, and then the normalized data scale is considered. and data arrival rate Adjust the basic intake pattern; Subsequently, the current ingestion mode is adjusted based on the overall load of the ingestion node and the load status of individual resources; Finally, using the intake demand index Determine the priority of resource allocation for different types of medical data. When multiple medical data acquisition tasks compete for limited resources simultaneously, the acquisition demand index is determined. High-quality data will be prioritized for resource acquisition, resulting in an acquisition pattern and resource guarantee priority that match the current data characteristics and node resource status.
6. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 5, characterized in that, The process of determining the basic intake pattern is as follows: Set a low threshold for real-time performance. and real-time high threshold ,satisfy ,when For high real-time performance, a streaming ingestion mode is used; when At that time, for medium real-time performance, a micro-batch ingestion mode is adopted; when For low real-time performance, a batch ingestion mode is used. The process of modifying the basic intake pattern is as follows: (1) Set data size threshold and data arrival rate threshold ; (2) When At that time, differentiated treatment should be carried out based on the established basic intake pattern: If the basal intake pattern is batch intake, when Maintain batch intake; when If the continuous high-speed arrival of data has caused a backlog of data to be processed, the batch ingestion will be adjusted to micro-batch ingestion, so that the continuously arriving data will enter the medical data lake warehouse in batches. If the basal intake pattern is micro-batch intake, when At that time, while meeting the allowable latency for data acquisition in the medical system, the system is adjusted to batch acquisition mode to reduce frequent transmission and write operations; when At that time, maintain the micro-batch intake mode; If the base mode is streaming, maintain streaming. when When the data size of a unit has not yet reached the point where the ingestion pattern needs to be corrected based on the data size, the basic ingestion pattern will not be corrected.
7. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 6, characterized in that, The process of adjusting the current ingestion mode based on the overall load and individual resource load status of the ingestion node is as follows: Set node low load threshold and node high load threshold ,satisfy When the overall load At this time, the node is treated as a low-load state, and the modified basic ingestion pattern is maintained; when At this time, the node is treated as being in a medium load state, and the modified basic ingestion pattern is maintained; when ,or , , , , When any indicator exceeds the corresponding critical threshold, the node is considered to be in a high-load or resource-scarce state, and differentiated adjustments are made accordingly: For low-real-time medical data, adjust the ingestion pattern towards lower resource consumption; for medium-real-time medical data, maintain the micro-batch ingestion pattern; when the overall node load... The load level remains consistently above the node's high load threshold across multiple consecutive monitoring periods. If any normalized load indicator among CPU, memory, storage I / O, network, and pending data queue continuously exceeds its corresponding preset critical threshold in multiple consecutive monitoring periods, it is determined that the node resource pressure is continuously high. When the node resource pressure is continuously high and the allowable ingestion latency of the corresponding medical data can meet the batch processing requirements, it is adjusted to batch ingestion mode to reduce the resource overhead generated by continuous processing. For high real-time medical data, streaming ingestion is maintained; when node resource pressure continues to increase and the current streaming ingestion is difficult to maintain, it is adjusted to micro-batch ingestion with a shorter processing window to reduce resource consumption while ensuring the timeliness of data ingestion as much as possible.
8. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 7, characterized in that, In step S2, the dynamic configuration process of the input parameters is as follows: For medical data to be collected Define the set of ingestion parameters for: in, This indicates the batch size of data processed in a single intake. This indicates the batch size of data processed in a single intake. Indicates the degree of ingestion concurrency. Indicates the data write interval; The main parameters used in different ingestion modes differ. For streaming ingestion mode, the ingestion concurrency is configured. and data write interval For micro-batch ingestion mode, configure the batch size. Processing time window and intake concurrency For batch ingestion mode, the batch size is configured based on the data scale and node resource status. and intake concurrency To improve processing efficiency during the centralized transmission and writing of large-scale medical data; Based on the comprehensive needs of medical data collection Combined load of nodes The various ingestion parameters are dynamically adjusted, and the parameter adjustment follows the principle of coordinating data demand and resource status. That is, when the node has sufficient resources, the data ingestion and processing capacity is increased, and when the node resource pressure is high, the ingestion intensity is limited. At the same time, the processing requirements of data with high real-time and high comprehensive ingestion needs are given priority. To prevent parameter adjustments from exceeding the system's allowed operating range, upper and lower limits are set for batch size, processing time window, ingestion concurrency, and data write interval, ensuring that the adjusted parameters meet the following constraints: in, , These represent the lower and upper limits of the batch size, respectively; , These represent the lower and upper limits of the processing time window, respectively; , Indicates the lower and upper limits of ingestion concurrency; , This indicates the lower and upper limits of the data write interval setting.
9. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 8, characterized in that, In step S3, the ingestion operation status is continuously monitored. : in, This indicates the actual ingestion latency of medical data from entering the ingestion pipeline to being written to the data lake warehouse; This indicates the amount of data acquired per unit of time, used to reflect actual data throughput capacity. Indicates the medical data to be collected The corresponding backlog of tasks; Indicates the ingestion node The overall load; The operating status is continuously acquired according to the preset monitoring cycle. If the current data acquisition status meets the operational requirements, maintain the current acquisition parameters and mode and continue to perform data acquisition; if the current data acquisition status does not meet the operational requirements, prioritize adjusting the acquisition parameters and re-execute data acquisition and operational status monitoring within the parameter constraints. If the system fails to return to normal after several consecutive monitoring cycles following parameter adjustments, the acquisition mode will be further adjusted and the acquisition parameters will be reconfigured, thus forming a closed-loop process of dynamic adjustment of acquisition parameter configuration and operational feedback.
10. The method for acquiring multi-source heterogeneous medical data with collaborative data and load sensing according to claim 8, characterized in that, When the actual intake time delay Within acceptable limits, data throughput capacity It can cover the current data arrival requirements and, within multiple consecutive monitoring periods, the backlog of tasks. If there is no continuous increase and the data remains within the preset allowable range, it indicates that the current ingestion mode and parameters match the actual operating status, and the current ingestion status meets the operating requirements.
