Metrology data collection method and system based on big data
Through incremental processing and feature annotation of unbalanced samples in medical data collection, a base classifier is constructed, which solves the problem of sample imbalance and quality in data collection and improves the accuracy and reliability of the classifier.
Patent Information
- Application Number
- CN202410832005.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Due to the imbalance of disease data samples and uneven data quality in medical data collection, the existing Adaboost integrated classification algorithm has unsatisfactory classification results and is prone to errors.
By obtaining the patient's case information, converting it into a feature vector and labeling it, it is judged whether the number of samples is balanced. If it is not balanced, sample incremental processing is performed, and a base classifier is constructed based on the data distribution characteristics to improve sample balance and classifier accuracy.
It improves the balance and reliability of training samples, reduces classification errors, ensures the quality of incremental samples and consistency with target category features, and improves the accuracy of the classifier.
Smart Images

Figure CN118398150B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and more specifically, to a method and system for collecting metrological data based on big data. Background Art
[0002] Metrics data refers to quantitative data obtained through measurement, observation and recording, which can be used to measure, evaluate and analyze phenomena, variables or indicators in a specific field. Using big data technology to collect, record and store various metrology data is currently a mainstream data collection method. This method is widely used in finance, medical care, logistics and other fields, among which it plays an extremely important role in the medical field. For example, as far as medical institutions are concerned, they can collect information such as patients' medical records, vital signs monitoring data, and drug use, and then use the collected information for disease diagnosis, treatment plan formulation, etc. This is an extremely important medical auxiliary means for medical institutions.
[0003] At present, the Adaboost integrated classification algorithm can be used to solve some data collection related problems. Specifically, in the existing Adaboost integrated classification algorithm, a series of weak classifiers (also called base classifiers) can be trained serially according to the data samples, and the weight of each sample can be adjusted according to the classification performance of each weak classifier, and finally all the weak classifiers are integrated into a strong classifier by weighted combination, so as to perform auxiliary diagnosis for a certain type of disease according to the patient's physical condition. However, in the process of data collection, due to the small number of patient case data for a certain disease, the proportion of this disease in the collected data samples may be greatly different from the proportion of normal or other diseases, that is, the data samples of the current disease category are unbalanced. In addition, due to the different physiological states of each patient, the quality of the data samples may also be uneven, so that the classification effect of the strong classifier obtained by the algorithm is not ideal and errors are prone to occur. Summary of the invention
[0004] To solve the above problems, one aspect of an embodiment of this specification provides a method for collecting metrological data based on big data, the method comprising:
[0005] Acquiring case information and related data of patients with a target disease to obtain a first data sample;
[0006] Converting the first data sample into a corresponding feature vector, and labeling the feature vector in combination with the case information to obtain a first data sample set;
[0007] Classifying the data in the first data sample set according to the labeling information of the feature vector, and judging whether the number of samples in the first data sample set is balanced according to the classification result;
[0008] If it is unbalanced, performing sample increment processing based on the data distribution characteristics of the first data sample set to obtain a second data sample;
[0009] A base classifier is constructed based on the first data sample and the second data sample, and data collection is performed according to the classification result of the base classifier.
[0010] In some embodiments, the classification result includes the number of samples corresponding to the first category The number of samples corresponding to the second category , judging whether the number of samples in the first data sample set is balanced according to the classification result, comprises:
[0011] Calculate the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio ;
[0012] If the ratio If it exceeds the preset range, it is determined that the number of samples in the first data sample set is unbalanced.
[0013] In some embodiments, performing sample increment processing based on the distribution characteristics of the first data sample set to obtain the second data sample includes:
[0014] Determining the target category to be incremented based on the classification result;
[0015] For each target data sample in the target category, calculate the neighborhood sample density corresponding to the target data sample;
[0016] Calculating the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category;
[0017] Calculate the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample;
[0018] According to the increment priority and the corresponding maximum increment number, random sample increment processing is performed with each of the target data samples as an increment reference sample to obtain the second data sample.
[0019] In some embodiments, the calculating the neighborhood sample density corresponding to the target data sample includes:
[0020] Determine the maximum value of the Euclidean distance between the target data sample and the m nearest data samples in the target category;
[0021] Obtaining a neighborhood range corresponding to the target data sample according to the maximum value of the Euclidean distance;
[0022] A neighborhood sample density corresponding to the target data sample is obtained based on the neighborhood range and the number of neighboring samples within the neighborhood range.
[0023] In some embodiments, the calculating the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category includes:
[0024] Calculate the mean distance between the target data sample and other data samples in the target category , and the minimum value of the mean distance of all data samples in the target category relative to other data samples ;
[0025] Based on the distance mean and the minimum value , obtain the distance between the target data sample and the center of the target category;
[0026] Multiplying the inverse of the neighborhood sample density by the distance between the target data sample and the center of the target category to obtain a first parameter;
[0027] The first parameter is normalized to obtain an incremental priority corresponding to the target data sample.
[0028] In some embodiments, calculating the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample includes:
[0029] Calculate the sum of the neighborhood sample densities corresponding to the m data samples closest to the target data sample in the target category, and obtain the neighborhood sample density ratio corresponding to the target data sample according to the sum and the neighborhood sample density corresponding to the target data sample;
[0030] Based on the incremental priority corresponding to the target data sample and the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio , get the second parameter;
[0031] The second parameter is normalized, and the normalized result obtained by the processing is multiplied by the neighborhood sample density ratio corresponding to the target data sample to obtain the maximum number of increments corresponding to the target data sample, wherein the maximum number of increments corresponding to the target data sample is between between.
[0032] In some embodiments, the performing random sample increment processing using each of the target data samples as an increment reference sample includes:
[0033] Acquire the target data sample as an incremental reference sample;
[0034] Calculate a difference vector between the incremental reference sample and the neighborhood sample, and multiply the difference vector by a random coefficient to obtain a third parameter, wherein the random coefficient is between -1 and 1;
[0035] Random sample increment processing is performed based on the feature vector corresponding to the incremental reference sample and the third parameter to obtain an incremental sample.
[0036] In some embodiments, the method further comprises:
[0037] After obtaining the incremental samples, calculating the availability of each incremental sample;
[0038] According to the number of samples corresponding to the first category The number of samples corresponding to the second category The difference between incremental samples as the second data samples.
[0039] In some embodiments, the calculating the availability of each of the incremental samples includes:
[0040] Performing importance analysis on the data dimensions contained in the feature vector corresponding to the incremental sample to obtain the importance of the incremental sample in each data dimension;
[0041] Obtaining a fourth parameter corresponding to each data dimension of the incremental sample according to the importance of the incremental sample in each data dimension and the difference of the incremental sample in each data dimension relative to the target data sample;
[0042] The sum of the fourth parameters corresponding to the incremental samples in all data dimensions is calculated, and combined with the distance between the incremental samples and other incremental samples, the availability of the incremental samples is obtained.
[0043] Another aspect of the embodiments of this specification further provides a measurement data collection system based on big data, the system comprising:
[0044] A data sampling module is used to obtain case information and related data of patients with a target disease to obtain a first data sample;
[0045] A data sample set construction module, used to convert the first data sample into a corresponding feature vector, and annotate the feature vector in combination with the case information to obtain a first data sample set;
[0046] a data classification module, configured to classify the data in the first data sample set according to the labeling information of the feature vector, and determine whether the number of samples in the first data sample set is balanced according to the classification result;
[0047] An incremental processing module, configured to perform sample incremental processing based on data distribution characteristics of the first data sample set to obtain a second data sample when it is determined that the number of samples in the first data sample set is unbalanced;
[0048] A base classifier construction module is used to construct a base classifier based on the first data sample and the second data sample, and to collect data according to the classification result of the base classifier.
[0049] The beneficial effects that may be brought about by the metrology data collection method and system based on big data provided in the embodiments of this specification include at least the following: (1) In the metrology data collection method and system based on big data provided in some embodiments of this specification, by incrementally processing the first data sample set based on the data distribution characteristics of the first data sample set, and then using the incremental new data sample set to construct a base classifier, the balance and reliability of the training samples can be improved to a certain extent, thereby improving the accuracy of the classifier obtained after training to a certain extent and reducing the classification error; (2) In the metrology data collection method and system based on big data provided in some embodiments of this specification, by analyzing the neighborhood sample density of each data sample in the target category, and the target data sample in the target category, the neighborhood sample density of each data sample in the target category is analyzed. 's location is analyzed, and then based on this, the incremental priority and the maximum incremental number corresponding to each data sample in the target category are measured, which can ensure the quality of the second data sample obtained by the incremental processing to a certain extent; (3) In the measurement data collection method and system based on big data provided in some embodiments of the present specification, by combining all the original samples in the target category, the data dimensions in the feature vector are subjected to principal component analysis, and then the importance of the data dimensions is used as the weight of the availability under different dimensions to determine the final weighted availability of the sample, which can better measure the reliability of each incremental sample and ensure its consistency with the characteristics of the data samples in the target category, so as to facilitate the screening of incremental samples with higher reliability as the second data samples for expanding the aforementioned first data sample set.
[0050] Additional features will be described in part in the following description. For those skilled in the art, the invention of the present application will become apparent by reviewing the following and accompanying drawings, or can be understood by the production or operation of the examples. The features of this specification can be implemented and obtained by practicing or using various aspects of the methods, tools and combinations described in the following detailed examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0052] Figure 1 is a schematic diagram of an exemplary application scenario of a metrology data collection system based on big data according to some embodiments of this specification;
[0053] Figure 2 is an exemplary module diagram of a metrology data collection system based on big data according to some embodiments of this specification;
[0054] Figure 3 It is an exemplary flow chart of a metrology data collection method based on big data according to some embodiments of this specification. DETAILED DESCRIPTION
[0055] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0056] It should be understood that the "system", "device", "unit" and / or "module" used in this specification is a method for distinguishing different components, elements, parts, parts or assemblies at different levels. However, if other words can achieve the same purpose, the words can be replaced by other expressions.
[0057] Flowcharts are used in this specification to illustrate the operations performed by the system according to the embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed precisely in order. Instead, the steps may be processed in reverse order or simultaneously. At the same time, other operations may also be added to these processes, or one or more operations may be removed from these processes.
[0058] The following is a detailed description of the measurement data collection method and system based on big data provided by the embodiments of this specification in conjunction with the accompanying drawings.
[0059] Figure 1 It is a schematic diagram of an exemplary application scenario of a metrology data collection system based on big data as shown in some embodiments of this specification.
[0060] Reference Figure 1 In some embodiments, the application scenario of the metering data collection system based on big data may include a data acquisition device 110, a storage device 120, a processing device 130, a terminal device 140, and a network 150. The various components in the application scenario can be connected in a variety of ways. For example, the data acquisition device 110 can be connected to the storage device 120 and / or the processing device 130 through the network 150, or directly connected to the storage device 120 and / or the processing device 130. For another example, the storage device 120 can be directly connected to the processing device 130 or connected through the network 150. For another example, the terminal device 140 can be connected to the storage device 120 and / or the processing device 130 through the network 150, or directly connected to the storage device 120 and / or the processing device 130.
[0061] The data acquisition device 110 can be used to acquire the required target data. For example, for medical institutions, case information and other relevant data related to the target disease (such as vital sign monitoring data, drug usage, etc.) can be acquired through the data acquisition device 110. In some embodiments, the data acquisition device 110 can have an independent power supply, which can send the acquired target data to other components in the application scenario (such as storage device 120, processing device 130, terminal device 140) by wired or wireless means (such as Bluetooth, WiFi, etc.). In some embodiments, the application scenario may include multiple (for example, two or more) data acquisition devices 110, and the multiple data acquisition devices 110 can acquire different data (such as the patient's medical history information and vital sign monitoring data, drug usage and other related information).
[0062] In some embodiments, the data acquisition device 110 can send the acquired target data to the storage device 120, the processing device 130, the terminal device 140, etc. through the network 150. In some embodiments, the target data acquired by the data acquisition device 110 can be processed by the processing device 130. For example, the processing device 130 can construct a first data sample set based on the target data, and determine whether the number of samples in the first data sample set is balanced. If it is unbalanced, the sample increment processing is performed based on the data distribution characteristics of the first data sample set to obtain a second data sample. In some embodiments, the data processed by the processing device 130 can be sent to the storage device 120 for recording, or sent to the terminal device 140 for feedback to the user.
[0063] The network 150 can facilitate the exchange of information and / or data. The network 150 may include any suitable network that can facilitate the exchange of information and / or data for the application scenario. In some embodiments, at least one component of the application scenario (e.g., the data acquisition device 110, the storage device 120, the processing device 130, the terminal device 140) can exchange information and / or data with at least one other component in the application scenario through the network 150. For example, the processing device 130 can obtain target data acquired for the patient from the data acquisition device 110 and / or the storage device 120 through the network 150. For another example, the processing device 130 can obtain user operation instructions from the terminal device 140 through the network 150, and exemplary operation instructions may include but are not limited to consulting the target data, reading data processed by the processing device 130 based on the target data, etc.
[0064] In some embodiments, the network 150 may be any form of wired or wireless network, or any combination thereof. As an example only, the network 150 may include a cable network, a wired network, an optical fiber network, a telecommunications network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, a near field communication (NFC) network, etc., or any combination thereof. In some embodiments, the network 150 may include at least one network access point, and at least one component of the application scenario may be connected to the network 150 through the access point to exchange data and / or information.
[0065] The storage device 120 may store data, instructions, and / or any other information. In some embodiments, the storage device 120 may store data obtained from the data acquisition device 110, the processing device 130, and / or the terminal device 140. For example, the storage device 120 may store target data acquired by the data acquisition device 110; for another example, the storage device 120 may store data processed by the processing device 130. In some embodiments, the storage device 120 may store data and / or instructions used by the processing device 130 to execute or use to complete the exemplary methods described in this specification. In some embodiments, the storage device 120 may include a mass storage device, a removable storage device, a volatile read-write memory, a read-only memory (ROM), etc., or any combination thereof. Exemplary mass storage devices may include magnetic disks, optical disks, solid-state disks, etc. In some embodiments, the storage device 120 may be implemented on a cloud platform. By way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-layer cloud, etc., or any combination thereof.
[0066] In some embodiments, the storage device 120 may be connected to the network 150 to communicate with at least one other component in the application scenario (e.g., the data acquisition device 110, the processing device 130, the terminal device 140). At least one component in the application scenario may access the data, instructions, or other information stored in the storage device 120 through the network 150. In some embodiments, the storage device 120 may be directly connected or communicated with one or more components in the application scenario (e.g., the data acquisition device 110, the terminal device 140). In some embodiments, the storage device 120 may be part of the data acquisition device 110 and / or the processing device 130.
[0067] The processing device 130 can process data and / or information obtained from the data acquisition device 110, the storage device 120, the terminal device 140 and / or other components of the application scenario. In some embodiments, the processing device 130 can obtain the aforementioned target data from any one or more of the data acquisition device 110, the storage device 120 or the terminal device 140, construct a first data sample set by processing the target data, and determine whether the number of samples in the first data sample set is balanced. If it is unbalanced, the sample increment processing is performed based on the data distribution characteristics of the first data sample set to obtain a second data sample. In some embodiments, the processing device 130 can obtain a pre-stored computer instruction from the storage device 120, and execute the computer instruction to implement the metrology data collection method based on big data described in this specification.
[0068] In some embodiments, the processing device 130 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processing device 130 may be local or remote. For example, the processing device 130 may access information and / or data from the data acquisition device 110, the storage device 120, and / or the terminal device 140 via the network 150. For another example, the processing device 130 may be directly connected to the data acquisition device 110, the storage device 120, and / or the terminal device 140 to access information and / or data. In some embodiments, the processing device 130 may be implemented on a cloud platform. For example, a cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, a cloud-to-cloud cloud, a multi-cloud, etc., or any combination thereof.
[0069] The terminal device 140 can receive, send and / or display data. The received data may include data acquired by the data acquisition device 110, data stored in the storage device 120, data processed by the processing device 130, etc. For example, the data received and / or displayed by the terminal device 140 may include target data acquired by the data acquisition device 110, a second data sample obtained by the processing device 130 through incremental processing based on the target data, etc. The sent data may include user input data and instructions, etc. For example, the terminal device 140 may send the operation instruction input by the user to the data acquisition device 110 through the network 150 to control the data acquisition device 110 to perform corresponding data acquisition. For another example, the terminal device 140 may send the processing instruction input by the user to the processing device 130 through the network 150.
[0070] In some embodiments, the terminal device 140 may include a mobile device 141, a tablet computer 142, a laptop computer 143, etc., or any combination thereof. For example, the mobile device 141 may include a mobile phone, a personal digital assistant (PDA), a dedicated mobile terminal, etc., or any combination thereof. In some embodiments, the terminal device 140 may include an input device (such as a keyboard, a touch screen), an output device (such as a display, a speaker), etc. In some embodiments, the processing device 130 may be a part of the terminal device 140.
[0071] It should be noted that the above description of the application scenario is only for example and explanation, and does not limit the scope of application of this specification. For those skilled in the art, various modifications and changes can be made to the application scenario under the guidance of this specification. However, these modifications and changes are still within the scope of this specification. For example, the data acquisition device 110 may include more or fewer functional components.
[0072] Figure 2 is a schematic diagram of a module of a metrology data collection system based on big data according to some embodiments of this specification. In some embodiments, Figure 2 The metering data collection system based on big data can be applied to Figure 1 The application scenario shown, for example, can be configured in the form of software and / or hardware to the processing device 130 and / or the terminal device 140 to process the target data acquired by the data acquisition device 110, and construct a first data sample set based on the target data, and then determine whether the number of samples in the first data sample set is balanced. If unbalanced, sample increment processing is performed based on the data distribution characteristics of the first data sample set to obtain a second data sample.
[0073] Reference Figure 2 In some embodiments, the metrology data collection system based on big data may include a data sampling module 210 , a data sample set construction module 220 , a data classification module 230 , an incremental processing module 240 , and a base classifier construction module 250 .
[0074] The data sampling module 210 can be used to acquire case information and related data of patients with a target disease to obtain a first data sample.
[0075] The data sample set construction module 220 can be used to convert the first data sample into a corresponding feature vector, and annotate the feature vector in combination with the case information to obtain a first data sample set.
[0076] The data classification module 230 may be configured to classify the data in the first data sample set according to the labeling information of the feature vector, and determine whether the number of samples in the first data sample set is balanced according to the classification result.
[0077] The incremental processing module 240 may be configured to perform sample incremental processing based on data distribution characteristics of the first data sample set to obtain a second data sample when it is determined that the number of samples in the first data sample set is unbalanced.
[0078] The base classifier construction module 250 can be used to construct a base classifier based on the first data sample and the second data sample, and perform data collection according to the classification result of the base classifier.
[0079] For more details about the above modules, please refer to other places in this manual (for example Figure 3 part and its related description) will not be repeated here.
[0080] It should be understood that Figure 2The metering data collection system based on big data and its modules shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software, or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or a dedicated design hardware. Those skilled in the art can understand that the above-mentioned methods and systems can be implemented using computer executable instructions and / or included in processor control codes, such as such codes provided on carrier media such as disks, CDs or DVD-ROMs, programmable memories such as read-only memories (firmware), or data carriers such as optical or electronic signal carriers. The system and its modules of this specification can not only be implemented by hardware circuits such as ultra-large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software (for example, firmware).
[0081] It should be noted that the above description of the metrology data collection system based on big data is provided for illustrative purposes only and is not intended to limit the scope of this specification. It is understandable that for those skilled in the art, according to the description of this specification, without departing from this principle, the various modules can be arbitrarily combined, or a subsystem can be formed to connect with other modules. For example, Figure 2 The data sampling module 210, the data sample set building module 220, the data classification module 230, the incremental processing module 240 and the base classifier building module 250 described in the embodiment can be different modules in a system, or one module can realize the functions of two or more of the above modules. Such variations are within the protection scope of this specification. In some embodiments, the above modules can be part of the processing device 130 and / or the terminal device 140.
[0082] Figure 3 is an exemplary flow chart of a method for collecting metering data based on big data according to some embodiments of this specification. In some embodiments, the method for collecting metering data based on big data can be executed by processing logic, which can include hardware (e.g., circuits, dedicated logic, programmable logic, microcode, etc.), software (instructions running on a processing device to perform hardware simulation), etc. or any combination thereof. In some embodiments, Figure 3 One or more operations in the flowchart of the method for collecting metering data based on big data can be performed by Figure 1The processing device 130 and / or the terminal device 140 shown are implemented. For example, the metering data collection method based on big data can be stored in the storage device 120 in the form of instructions, and called and / or executed by the processing device 130 and / or the terminal device 140. The following describes the execution process of the metering data collection method based on big data by taking the processing device 130 as an example.
[0083] Reference Figure 3 In some embodiments, the metrology data collection method based on big data may include:
[0084] S310 , acquiring case information and related data of a patient for a target disease to obtain a first data sample. In some embodiments, S310 may be executed by the data sampling module 210 .
[0085] In some embodiments, the target data acquired by the data acquisition device 110 for the target disease may be stored in the storage device 120, and the data sampling module 210 may acquire the case information and related data of the patient for the target disease from the storage device 120 to obtain the first data sample. In some embodiments, the data sampling module 210 may be in communication connection with the data acquisition device 110, and the data sampling module 210 may directly acquire the case information and related data of the patient for the target disease from the data acquisition device 110 to obtain the first data sample.
[0086] In this specification, the target data acquired by the data acquisition device 110 for the target disease may include but is not limited to the patient's medical history information, physical sign monitoring data, drug use, etc., wherein the case information may include historical illness, physical examination / examination report, diagnosis results, treatment plan, etc. In some embodiments, the patient's physical examination / examination report, diagnosis results, treatment plan, drug use, etc. may be acquired through the electronic medical record system of the medical institution. In some embodiments, the aforementioned physical sign monitoring data may be obtained by detection (or real-time monitoring) of medical equipment (such as an electrocardiograph, a sphygmomanometer, etc.).
[0087] In this specification, the target disease may refer to a specific disease, such as heart disease, diabetes, etc. Heart disease is used as an example for explanation in this specification. Specifically, in the embodiments of this specification, the case information of all patients in a medical institution may be randomly sampled for heart disease, and the case information of patients with heart disease and the case information of patients without heart disease may be obtained. Then, the relevant data (such as vital sign monitoring data, drug use, etc.) of the randomly obtained patient information may be obtained, and the patient information and the relevant data obtained in the above process may be used as the first data sample.
[0088] Specifically, in the embodiments of this specification, relevant data can be acquired based on case samples obtained by random sampling, such as the collection of patient vital signs data, that is, the collection of patient heart rate, blood pressure, blood lipid and other data (taking the average of multiple measurement data), and then the acquired relevant data is combined with the case information of the corresponding patient to obtain a first data sample. Similarly, by acquiring data from multiple patients in this way, multiple first data samples can be obtained.
[0089] S320, converting the first data sample into a corresponding feature vector, and annotating the feature vector in combination with the case information to obtain a first data sample set. In some embodiments, S320 may be performed by the data sample set construction module 220.
[0090] After obtaining the aforementioned first data samples, the data sample set construction module 220 may convert each first data sample into a corresponding feature vector, wherein the feature vector may include multiple feature dimensions, and each dimension may be used to represent a data item related to the patient.
[0091] In the embodiments of the present specification, the aforementioned feature vectors can be labeled in combination with the patient's case information (i.e., whether the patient suffers from heart disease), and a first data sample set is constructed based on all the labeled feature vectors. Specifically, in some embodiments of the present specification, it can be specified that the first data sample of a patient suffering from heart disease is labeled as 1, and vice versa.
[0092] S330 , classifying the data in the first data sample set according to the labeling information of the feature vector, and judging whether the number of samples in the first data sample set is balanced according to the classification result. In some embodiments, S330 may be performed by the data classification module 230 .
[0093] The data classification module 230 can classify the data in the first data sample set according to the labeling information of the aforementioned feature vector. For example, the data samples marked as 1 (i.e., the patient has heart disease) are classified into one category, and the data samples marked as 0 (i.e., the patient does not have heart disease) are classified into another category.
[0094] Furthermore, the data classification module 230 may determine whether the number of samples in the first data sample set is balanced according to the classification result. Specifically, the classification result may include the number of samples corresponding to the first category. The number of samples corresponding to the second category , the data classification module 230 can calculate the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio , if the ratio If the ratio exceeds the preset range, it is determined that the number of samples in the first data sample set is unbalanced. On the contrary, if the ratio If the number of samples in the first data sample set is within the preset range, it is determined that the number of samples in the first data sample set is balanced. In some embodiments, the first category may refer to data samples with heart disease, and the second category may refer to data samples without heart disease. In some embodiments, the first category may also refer to data samples without heart disease, and the second category may also refer to data samples with heart disease. As an example only, in some embodiments, the preset range may be 2 / 3 to 3 / 2.
[0095] S340, when it is determined that the number of samples in the first data sample set is unbalanced, perform sample increment processing based on the data distribution characteristics of the first data sample set to obtain a second data sample. In some embodiments, S340 may be performed by the increment processing module 240.
[0096] Due to the small number of heart disease patients and random sampling, the number of samples in the two categories in the first data sample set is large and there may be an imbalance. In the embodiment of this specification, if the data classification module 230 determines that the number of samples in the first data sample set is unbalanced, the incremental processing module 240 can perform sample incremental processing on a relatively small number of data samples based on the data distribution characteristics of the first data sample set.
[0097] In some embodiments of the present specification, the incremental processing module 240 may first determine the target category to be incremented based on the aforementioned classification results. For example, when the number of samples corresponding to the first category (suffering from heart disease) is Less than the number of samples corresponding to the second category (no heart disease) ,and When it is greater than 3 / 2, the first category can be used as the target category to be incremented. For another example, when the number of samples corresponding to the first category (suffering from heart disease) is Greater than the number of samples corresponding to the second category (no heart disease) ,and When it is less than 2 / 3, the second category can be used as the target category to be incremented.
[0098] Furthermore, the incremental processing module 240 can calculate the neighborhood sample density corresponding to each target data sample in the target category, and then calculate the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category. Thereafter, the incremental processing module 240 can calculate the maximum number of increments corresponding to the target data sample based on the neighborhood sample density and the incremental priority corresponding to the target data sample.
[0099] Specifically, in some embodiments, the incremental processing module 240 may determine the closest neighbor between the target data sample and the target category. The maximum value of the Euclidean distance (feature vector similarity) between the data samples is obtained, and then the neighborhood range corresponding to the target data sample is obtained according to the maximum value of the Euclidean distance, and the neighborhood sample density corresponding to the target data sample is obtained based on the neighborhood range and the number of neighboring samples in the neighborhood range. In some embodiments, the neighborhood sample density corresponding to the target data sample can be calculated based on the following method:
[0100] in, Represents the target data sample The corresponding neighborhood sample density; m represents the target data sample The number of neighborhood samples within the neighborhood range of (in this embodiment of the specification, m can be set to 10); Represents the target data sample The maximum Euclidean distance to other samples in the neighborhood.
[0101] Further, the incremental processing module 240 can calculate the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category. In some embodiments, the calculation process of the incremental priority corresponding to the target data sample can be expressed as follows:
[0102] in, Represents the target data sample The corresponding incremental priority (i.e., based on the target data sample The priority of incrementing the center); norm indicates normalization; Represents the target data sample The corresponding neighborhood sample density; Represents the target data sample The mean distance relative to other data samples in the target category, Represents the minimum value of the mean distance of all data samples in the target category relative to other data samples; can be used to represent the target data sample The distance to the center of the target class.
[0103] In other words, in some embodiments, the incremental processing module 240 may calculate the mean distance between the target data sample and other data samples in the target category. , and the minimum value of the mean distance of all data samples in the target category relative to other data samples , and then based on the mean of the distance and minimum value , get the distance between the target data sample and the center of the target category , and multiply the inverse of the neighborhood sample density by the distance between the target data sample and the center of the target category to obtain the first parameter Finally, the incremental priority corresponding to the target data sample is obtained by normalizing the first parameter. .
[0104] It can be understood that in the embodiment of this specification, when the mean distance between the target data sample and other data samples in the target category is smaller, it means that the target data sample is closer to the center of the target category. The closer to the center of the target category, and the smaller the corresponding neighborhood sample density, the smaller the target data sample is. In the embodiments of the present specification, by analyzing the density of neighborhood samples of each data sample in the target category and analyzing the position of the target data sample in the target category, and then measuring the incremental priority corresponding to each data sample in the target category based on this, the quality of the second data sample obtained by the subsequent incremental processing can be improved to a certain extent.
[0105] Furthermore, the increment processing module 240 may calculate the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample. In some embodiments, the maximum number of increments may be calculated as follows:
[0106] in, Represents the target data sample The corresponding maximum number of increments (i.e., the target data sample The maximum number of data samples obtained by incrementing based on ); and denote the number of samples with heart disease (the first category) and the number of samples without heart disease (the second category), respectively; Represents the target data sample The corresponding increment priority; represents normalization processing, Used to control the target data sample The incremental degree of the neighborhood samples based on ; Represents the target data sample The corresponding neighborhood sample density is, Represents the target data sample Neighborhood The neighborhood sample density corresponding to samples; m represents the target data sample The number of neighborhood samples within the neighborhood range of ; Represents the target data sample The corresponding neighborhood sample density ratio. The larger the ratio, the larger the target data sample. The smaller the neighborhood density of The larger the corresponding maximum increment number.
[0107] In other words, the incremental processing module 240 can calculate the sum of the neighborhood sample densities corresponding to the m data samples closest to the target data sample in the target category, and obtain the neighborhood sample density ratio corresponding to the target data sample based on the sum of the neighborhood sample densities and the neighborhood sample density corresponding to the target data sample; further, the incremental processing module 240 can calculate the neighborhood sample density ratio corresponding to the target data sample based on the incremental priority corresponding to the target data sample and the number of samples corresponding to the second category. The number of samples corresponding to the first category Ratio , get the second parameter ; Afterwards, the incremental processing module 240 can normalize the second parameter, and multiply the normalized result obtained by the processing by the neighborhood sample density ratio corresponding to the target data sample to obtain the maximum incremental number corresponding to the target data sample.
[0108] According to the above content, it can be known that in the embodiment of this specification, the maximum number of increments corresponding to each target data sample during the increment process is affected by multiple factors. When the increment priority of the target data sample is higher, that is, the neighborhood sample density of the target data sample is smaller and the sample is closer to the center of the target category, the number of increments based on the target data sample is greater. At the same time, in the embodiment of this specification, the density ratio of other samples in the neighborhood can also be analyzed based on the sample density of the neighborhood of the target data sample. When the neighborhood density of the neighborhood sample is greater, the corresponding maximum number of increments is greater.
[0109] Since the purpose of incrementing the data samples in the embodiment of this specification is to ensure the balance of the number of data samples in the two categories, the maximum increment number corresponding to each target data sample cannot exceed the difference in the number of samples contained in the two categories. In other words, in the embodiment of this specification, the maximum increment number corresponding to each target data sample is between between.
[0110] Finally, the incremental processing module 240 may perform random sample incremental processing with each target data sample as an incremental reference sample according to the aforementioned incremental priority and the corresponding maximum incremental number to obtain a second data sample.
[0111] Specifically, in some embodiments, the incremental processing module 240 may perform incremental processing on each data sample in the target category according to the order of the incremental priority and the maximum incremental number. , all data samples within its neighborhood can be combined to calculate the target data sample The difference vector between the target class and all the data samples in the neighborhood is obtained, and then a new data sample is randomly generated based on the obtained difference vector and the maximum number of increments calculated by the above process to obtain an incremental sample. By traversing all the data samples in the target class, an incremental sample based on each data sample in the target class can be obtained.
[0112] In some embodiments, the above incremental samples may be represented as follows:
[0113] in, Represents the feature vector of the incremental sample generated based on the neighborhood sample j; Represents the target data sample The eigenvector of Represents the target data sample The difference vector between the neighborhood sample j and the neighborhood sample j; γ represents a random coefficient between -1 and 1. It should be noted that in the embodiment of this specification, the neighborhood sample Refers to the target data sample In some embodiments, the target data sample With neighborhood samples The difference vector can refer to the target data sample The mean of the difference vectors with all the neighboring vectors in its neighborhood.
[0114] Specifically, in some embodiments, the incremental processing module 240 can obtain each target data sample in the target category as an incremental reference sample; then, calculate the difference vector between the incremental reference sample and the corresponding neighborhood sample, and multiply the difference vector by the random coefficient to obtain the third parameter ; Finally, the incremental processing module 240 can perform random sample incremental processing based on the feature vector corresponding to the incremental reference sample and the third parameter to obtain an incremental sample. In the embodiment of this specification, the aforementioned random coefficient is between -1 and 1. In other words, in each generation process, γ can randomly take a value between -1 and 1, thereby obtaining a feature vector corresponding to the incremental sample.
[0115] Through the above steps, the data sample increment in the category with a smaller number of samples in the first data sample set can be completed. However, since the influence of the incremental sample obtained from the previous data sample on the incremental sample of the next sample is not considered in the process of incrementing the data samples, there may be a large amount of information redundancy in the final incremental samples, that is, there are a large number of repeated data samples. At the same time, due to random generation reasons, the newly obtained incremental samples may no longer meet the characteristics of the category to which they belong, resulting in a large error in the process of training the base classifier. In summary, in some embodiments of the present specification, in order to ensure the reliability of the incremental samples, after obtaining the aforementioned incremental samples, the newly obtained incremental sample set in the aforementioned process can be analyzed for availability to obtain the degree of availability corresponding to each incremental sample.
[0116] In some embodiments, the availability of each incremental sample may be calculated based on the following method:
[0117]
[0118] in, Indicates the availability of incremental sample c (the cth incremental sample obtained through incremental processing); It represents the mean of the Euclidean distance between the incremental sample c and all other incremental samples. The smaller the mean, the more similar incremental samples there are. represents the mean Euclidean distance between the ith incremental sample and all other incremental samples; r represents the total number of incremental samples; Indicates the importance of data dimension b to the target category; u indicates the total number of data dimensions; Indicates the value of the incremental sample c in the bth data dimension, Represents all original samples in the target category The mean of the data dimensions, Represents the difference between the incremental sample c and the original sample in the bth data dimension; Represents all original samples in the target category in the data dimension The smaller the variance, the more important the data dimension is. It represents the eigenvalue (mean) of all original samples in the target category in data dimension b. The larger the eigenvalue, the more important the data dimension is.
[0119] Specifically, in some embodiments of the present specification, the incremental processing module 240 may perform an importance analysis on the data dimensions contained in the feature vector corresponding to each incremental sample to obtain the importance of the incremental sample in each data dimension; then, according to the importance of the incremental sample in each data dimension and the difference of the incremental sample in each data dimension relative to the target data sample, obtain the fourth parameter corresponding to each data dimension of the incremental sample. Finally, the incremental processing module 240 can calculate the sum of the fourth parameters corresponding to the incremental sample in all data dimensions, and combine the distance between the incremental sample and other incremental samples to obtain the availability of the incremental sample. By traversing all incremental samples, the availability of each incremental sample can be determined.
[0120] It should be pointed out that due to the differences in physical data, medical history, living environment, etc. between each patient, the judgment on whether or not a patient has heart disease is relatively vague in certain data dimensions. In the embodiment of this specification, by combining all the original samples in the target category, principal component analysis is performed on the data dimensions in the feature vector, and then the importance of the data dimensions is used as the weight of the availability in different dimensions to determine the final weighted availability of the sample. This can better measure the reliability of each incremental sample, thereby facilitating the screening of incremental samples with higher reliability as the second data samples for expanding the aforementioned first data sample set.
[0121] For example, in some embodiments, the number of samples corresponding to the first category may be The number of samples corresponding to the second category The difference between Incremental samples are used as the second data samples. Through the above steps, the incremental processing of the unbalanced data samples can be completed to obtain a new data sample set. In other words, after the second data sample is obtained through the above steps, the second data sample can be combined with the first data sample obtained by random sampling to form a new data sample set for training the base classifier.
[0122] It should be pointed out that in the embodiments of the present specification, by analyzing the incremental samples obtained after the increment, determining the availability of each incremental sample, and then eliminating the duplicate incremental samples and the incremental samples that have a low degree of conformity with the target category, it is possible to ensure consistency with the data sample features in the target category, thereby improving the classification effect of the base classifier and avoiding the expansion of the number of samples caused by too many increments, which in turn reduces the training effect of the classifier.
[0123] S350 , constructing a base classifier based on the first data sample and the second data sample, and performing data collection according to the classification result of the base classifier. In some embodiments, S350 may be executed by the base classifier construction module 250 .
[0124] In some embodiments, the base classifier construction module 250 can set an initial weight for each data sample (including the aforementioned first data sample and second data sample) in the incremental new data sample set, and then use the weight of the current sample to train the preset basic classifier, and calculate and update the weight of the base classifier and the weight of the data sample according to the error rate of the classification result. By repeating the above steps until the classification effect of the base classifier meets the iteration stop condition, all the trained base classifiers are combined into a classifier (strong classifier) to obtain a target classifier for determining whether the patient has heart disease. Finally, by inputting the newly collected data sample set into the target classifier, the judgment result of whether the patient has heart disease can be obtained, and the measurement data collection is completed, and it is used as an aid in the treatment process.
[0125] It can be understood that in the embodiments of the present specification, by performing incremental processing on the first data sample set and then using the incremental new data sample set to construct a base classifier, the balance and reliability of the training samples can be improved to a certain extent, thereby improving the accuracy of the base classifier and the strong classifier (i.e., the target classifier) obtained after training to a certain extent, and reducing the classification error.
[0126] In summary, the beneficial effects that may be brought about by the embodiments of this specification include but are not limited to: (1) In the metrology data collection method and system based on big data provided in some embodiments of this specification, by incrementally processing the first data sample set based on the data distribution characteristics of the first data sample set, and then using the incremental new data sample set to construct a base classifier, the balance and reliability of the training samples can be improved to a certain extent, thereby improving the accuracy of the base classifier and the strong classifier (i.e., the target classifier) obtained after training to a certain extent, and reducing the classification error; (2) In the metrology data collection method and system based on big data provided in some embodiments of this specification, by analyzing the neighborhood sample density of each data sample in the target category, and the target data sample in the target category The neighborhood sample density is analyzed. 's location is analyzed, and then based on this, the incremental priority and the maximum incremental number corresponding to each data sample in the target category are measured, which can ensure the quality of the second data sample obtained by the incremental processing to a certain extent; (3) In the measurement data collection method and system based on big data provided in some embodiments of the present specification, by combining all the original samples in the target category, the data dimensions in the feature vector are subjected to principal component analysis, and then the importance of the data dimensions is used as the weight of the availability under different dimensions to determine the final weighted availability of the sample, which can better measure the reliability of each incremental sample and ensure its consistency with the characteristics of the data samples in the target category, so as to facilitate the screening of incremental samples with higher reliability as the second data samples for expanding the aforementioned first data sample set.
[0127] It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or may be any other beneficial effects that may be obtained.
[0128] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are suggested in this specification, so such modifications, improvements and corrections still belong to the scope of the exemplary embodiments of this specification.
[0129] At the same time, this specification uses specific words to describe the embodiments of this specification. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of this specification. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, certain features, structures or characteristics in one or more embodiments of this specification can be appropriately combined.
[0130] In addition, it will be understood by those skilled in the art that various aspects of this specification may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of this specification may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of this specification may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.
[0131] A computer storage medium may include a propagated data signal containing computer program code, for example, in baseband or as part of a carrier wave. The propagated signal may be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. A computer storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit the program for use. The program code on the computer storage medium may be transmitted via any suitable medium, including radio, cable, fiber optic cable, RF, or similar media, or any combination of the above media.
[0132] The computer program codes required for the operation of each part of this specification can be written in any one or more programming languages, including object-oriented programming languages such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB.NET, Python, etc., conventional procedural programming languages such as C language, Visual Basic, Fortran2003, Perl, COBOL2002, PHP, ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages, etc. The program code can be run entirely on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and partly on a remote computer, or run entirely on a remote computer or processing device. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service such as software as a service (SaaS).
[0133] Finally, it should be understood that the embodiments described in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A measurement data collection method based on big data, characterized in that: include: Acquiring case information and related data of patients with a target disease to obtain a first data sample; Converting the first data sample into a corresponding feature vector, and labeling the feature vector in combination with the case information to obtain a first data sample set; Classifying the data in the first data sample set according to the labeling information of the feature vector, and judging whether the number of samples in the first data sample set is balanced according to the classification result; If it is unbalanced, performing sample increment processing based on the data distribution characteristics of the first data sample set to obtain a second data sample; Building a base classifier based on the first data sample and the second data sample, and performing data collection according to the classification result of the base classifier; The classification result includes the number of samples corresponding to the first category The number of samples corresponding to the second category , judging whether the number of samples in the first data sample set is balanced according to the classification result, comprises: Calculate the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio ; If the ratio If it exceeds the preset range, it is determined that the number of samples in the first data sample set is unbalanced; The performing sample increment processing based on the distribution characteristics of the first data sample set to obtain a second data sample includes: Determining the target category to be incremented based on the classification result; For each target data sample in the target category, calculate the neighborhood sample density corresponding to the target data sample; Calculating the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category; Calculate the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample; According to the increment priority and the corresponding maximum increment number, performing random sample increment processing with each of the target data samples as an increment reference sample to obtain the second data sample; The calculating the neighborhood sample density corresponding to the target data sample includes: Determine the maximum value of the Euclidean distance between the target data sample and the m nearest data samples in the target category; Obtaining a neighborhood range corresponding to the target data sample according to the maximum value of the Euclidean distance; Obtaining a neighborhood sample density corresponding to the target data sample based on the neighborhood range and the number of neighboring samples within the neighborhood range; The calculating the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category includes: Calculate the mean distance between the target data sample and other data samples in the target category , and the minimum value of the mean distance of all data samples in the target category relative to other data samples ; Based on the distance mean and the minimum value , obtain the distance between the target data sample and the center of the target category; Multiplying the inverse of the neighborhood sample density by the distance between the target data sample and the center of the target category to obtain a first parameter; Normalizing the first parameter to obtain an incremental priority corresponding to the target data sample; The calculating the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample includes: Calculate the sum of the neighborhood sample densities corresponding to the m data samples closest to the target data sample in the target category, and obtain the neighborhood sample density ratio corresponding to the target data sample according to the sum and the neighborhood sample density corresponding to the target data sample; Based on the incremental priority corresponding to the target data sample and the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio , get the second parameter; The second parameter is normalized, and the normalized result obtained by the processing is multiplied by the neighborhood sample density ratio corresponding to the target data sample to obtain the maximum number of increments corresponding to the target data sample, wherein the maximum number of increments corresponding to the target data sample is between between; The step of performing random sample increment processing using each target data sample as an increment reference sample includes: Acquire the target data sample as an incremental reference sample; Calculate a difference vector between the incremental reference sample and the neighborhood sample, and multiply the difference vector by a random coefficient to obtain a third parameter, wherein the random coefficient is between -1 and 1; Random sample increment processing is performed based on the feature vector corresponding to the incremental reference sample and the third parameter to obtain an incremental sample.
2. The method for collecting metrological data based on big data according to claim 1, characterized in that: The method further comprises: After obtaining the incremental samples, calculating the availability of each incremental sample; According to the number of samples corresponding to the first category The number of samples corresponding to the second category The difference between incremental samples as the second data samples.
3. The method for collecting metrological data based on big data as claimed in claim 2, characterized in that: The calculating the availability of each incremental sample comprises: Performing importance analysis on the data dimensions contained in the feature vector corresponding to the incremental sample to obtain the importance of the incremental sample in each data dimension; Obtaining a fourth parameter corresponding to each data dimension of the incremental sample according to the importance of the incremental sample in each data dimension and the difference of the incremental sample in each data dimension relative to the target data sample; The sum of the fourth parameters corresponding to the incremental samples in all data dimensions is calculated, and combined with the distance between the incremental samples and other incremental samples, the availability of the incremental samples is obtained.
4. A measurement data collection system based on big data, characterized in that: include: A data sampling module is used to obtain case information and related data of patients with a target disease to obtain a first data sample; A data sample set construction module, used to convert the first data sample into a corresponding feature vector, and annotate the feature vector in combination with the case information to obtain a first data sample set; a data classification module, configured to classify the data in the first data sample set according to the labeling information of the feature vector, and determine whether the number of samples in the first data sample set is balanced according to the classification result; An incremental processing module, configured to perform sample incremental processing based on data distribution characteristics of the first data sample set to obtain a second data sample when it is determined that the number of samples in the first data sample set is unbalanced; A base classifier construction module, used to construct a base classifier based on the first data sample and the second data sample, and perform data collection according to the classification result of the base classifier; The classification result includes the number of samples corresponding to the first category The number of samples corresponding to the second category , judging whether the number of samples in the first data sample set is balanced according to the classification result, comprises: Calculate the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio ; If the ratio If it exceeds the preset range, it is determined that the number of samples in the first data sample set is unbalanced; The performing sample increment processing based on the distribution characteristics of the first data sample set to obtain a second data sample includes: Determining the target category to be incremented based on the classification result; For each target data sample in the target category, calculate the neighborhood sample density corresponding to the target data sample; Calculating the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category; Calculate the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample; According to the increment priority and the corresponding maximum increment number, performing random sample increment processing with each of the target data samples as an increment reference sample to obtain the second data sample; The calculating the neighborhood sample density corresponding to the target data sample includes: Determine the maximum value of the Euclidean distance between the target data sample and the m nearest data samples in the target category; Obtaining a neighborhood range corresponding to the target data sample according to the maximum value of the Euclidean distance; Obtaining a neighborhood sample density corresponding to the target data sample based on the neighborhood range and the number of neighboring samples within the neighborhood range; The calculating the incremental priority corresponding to the target data sample based on the neighborhood sample density and the distance between the target data sample and the center of the target category includes: Calculate the mean distance between the target data sample and other data samples in the target category , and the minimum value of the mean distance of all data samples in the target category relative to other data samples ; Based on the distance mean and the minimum value , obtain the distance between the target data sample and the center of the target category; Multiplying the inverse of the neighborhood sample density by the distance between the target data sample and the center of the target category to obtain a first parameter; Normalizing the first parameter to obtain an incremental priority corresponding to the target data sample; The calculating the maximum number of increments corresponding to the target data sample according to the neighborhood sample density and the increment priority corresponding to the target data sample includes: Calculate the sum of the neighborhood sample densities corresponding to the m data samples closest to the target data sample in the target category, and obtain the neighborhood sample density ratio corresponding to the target data sample according to the sum and the neighborhood sample density corresponding to the target data sample; Based on the incremental priority corresponding to the target data sample and the number of samples corresponding to the second category The number of samples corresponding to the first category Ratio , get the second parameter; The second parameter is normalized, and the normalized result obtained by the processing is multiplied by the neighborhood sample density ratio corresponding to the target data sample to obtain the maximum number of increments corresponding to the target data sample, wherein the maximum number of increments corresponding to the target data sample is between between; The step of performing random sample increment processing using each target data sample as an increment reference sample includes: Acquire the target data sample as an incremental reference sample; Calculate a difference vector between the incremental reference sample and the neighborhood sample, and multiply the difference vector by a random coefficient to obtain a third parameter, wherein the random coefficient is between -1 and 1; Random sample increment processing is performed based on the feature vector corresponding to the incremental reference sample and the third parameter to obtain an incremental sample.
Citation Information
Patent Citations
Metrological verification data management method based on medical equipment
CN116049693A
Incremental-like model training method and device and storage medium
CN117009845A
