WO2021114631A1 - Data processing method, apparatus, electronic device, and readable storage medium - Google Patents

Data processing method, apparatus, electronic device, and readable storage medium Download PDF

Info

Publication number
WO2021114631A1
WO2021114631A1 PCT/CN2020/099482 CN2020099482W WO2021114631A1 WO 2021114631 A1 WO2021114631 A1 WO 2021114631A1 CN 2020099482 W CN2020099482 W CN 2020099482W WO 2021114631 A1 WO2021114631 A1 WO 2021114631A1
Authority
WO
WIPO (PCT)
Prior art keywords
curve
data
current
historical
baseline value
Prior art date
Application number
PCT/CN2020/099482
Other languages
French (fr)
Chinese (zh)
Inventor
谭克为
贾文笑
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021114631A1 publication Critical patent/WO2021114631A1/en

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/80ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for detecting, monitoring or modelling epidemics or pandemics, e.g. flu
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H50/00ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics
    • G16H50/70ICT specially adapted for medical diagnosis, medical simulation or medical data mining; ICT specially adapted for detecting, monitoring or modelling epidemics or pandemics for mining of medical data, e.g. analysing previous cases of other patients

Definitions

  • This application relates to the field of electronic technology, in particular to a data processing method, device, electronic equipment, and readable storage medium.
  • Influenza is an acute viral infection that spreads through the respiratory tract. It can spread widely and people are generally susceptible. Globally, influenza causes approximately 3 million to 5 million severe cases and approximately 290,000 to 650,000 deaths related to respiratory diseases each year. During the flu epidemic, a large number of employees cannot go to work, productivity decreases, and a large amount of direct or indirect medical expenses are generated, which greatly increases the social and economic burden.
  • the inventor realizes that, currently, the method for grading influenza intensity is mainly based on the judgment of the current influenza epidemic situation by relevant personnel, to determine the intensity level of the current influenza epidemic situation.
  • the entire grading process mainly depends on the experience of relevant personnel for judgment, which is highly subjective.
  • the accuracy rate is not high, and the user experience is low.
  • the embodiments of the present application provide a data processing method, device, electronic equipment, and readable storage medium.
  • Baseline values are calculated from historical data, current curves are calculated based on current data, and grade data are calculated based on the baseline values and current curves, so as to achieve control of the epidemic Classification helps reduce the subjectivity of epidemic classification, improve the accuracy of epidemic classification, and improve user experience.
  • a data processing method of this application includes:
  • a data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  • an embodiment of the present application provides a data processing device, including:
  • An acquiring unit configured to acquire historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
  • the receiving unit is configured to receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
  • the calculation unit is configured to update a preset classification model based on the baseline value set to obtain a data classification model, and input the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  • an embodiment of the present application provides an electronic device, which includes a processor, a memory, a communication device, and one or more programs.
  • the processor, the memory, and the communication device are connected to each other.
  • the communication device is used to communicate with an external device.
  • the one or more programs are stored in the memory and configured to be executed by the processor, and the above programs include instructions for executing steps in any method of the first aspect of the embodiments of the present application .
  • an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute Part or all of the steps described in the method described in one aspect.
  • the embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in this application. Examples include part or all of the steps described in the method described in the first aspect.
  • the computer program product may be a software installation package.
  • the electronic device obtains historical records, extracts multiple historical case data from the historical records, and processes the multiple historical case data to obtain a baseline value set; and receives information corresponding to the current epidemic
  • a current curve is determined based on the current data;
  • a preset grading model is updated based on the baseline value set to obtain a data grading model, and the current curve is input to the data grading model to obtain the grading data of the current epidemic situation.
  • FIG. 1 is a schematic structural diagram of a data processing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of another data processing method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another data processing method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another data processing method provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 6 is a block diagram of functional units of a data processing device provided by an embodiment of the present application.
  • Electronic devices can include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices or other processing devices connected to wireless modems, and various Forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), and so on.
  • UE User Equipment
  • MS Mobile Station
  • terminal device terminal device
  • Data archiving is the process of moving data that is no longer frequently used to a separate storage device for long-term preservation.
  • the data archive is composed of old data, but it is necessary and important data for future reference, and its data must be stored in compliance with the rules.
  • the data archive has indexing and search functions so that files can be easily found.
  • FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present application, which is applied to an electronic device.
  • the data processing method includes:
  • Step 101 Obtain historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
  • the baseline value set may include: a first baseline value, a second baseline value, and a third baseline value.
  • the percentile calculation is performed on the multiple case data to obtain the first baseline value, the second baseline value, and the third baseline value.
  • the first baseline value, the second baseline value, and the third baseline value are obtained.
  • the value is used to quantify historical data, and is also used to calculate a threshold based on the first baseline value, second baseline value, and third baseline value, that is, to classify the current epidemic situation.
  • Step 102 Receive current data corresponding to the current epidemic situation, and determine a current curve based on the current data;
  • the current data includes: multiple current epidemic time points and multiple cases corresponding to multiple current epidemic time points.
  • Step 103 Update a preset grading model based on the baseline value set to obtain a data grading model, and input the current curve into the data grading model to obtain grade data of the current epidemic situation.
  • a classification request is generated according to the baseline value set, that is, according to the first baseline value, the second baseline value, the third baseline value, and the current curve, and the classification request is sent to the preset classification server, and the preset classification server It includes a grading model, and the grading request is used to request the grading server to update based on the baseline value set to obtain a data grading model, input the current curve into the data grading model, receive the grading response returned by the grading server, and obtain the grading response from the calculated response Grade data.
  • the processing of the multiple historical case data to obtain a baseline value set includes: extracting multiple sets of historical data from the multiple historical case data; calling a preset data processing model, and The multiple sets of historical data are input into the data processing model to obtain the baseline value set, where the baseline value set includes: a first baseline value P 1 , a second baseline value P 2, and a third baseline value P 3 .
  • the data processing model may include: a baseline calculation formula, and the data processing model calculates the multiple sets of historical data according to the baseline calculation formula to obtain the baseline value set, wherein the baseline calculation The formula includes:
  • x is the preset baseline parameter
  • P x is the baseline value
  • P x means that among the multiple historical case data, x% of the historical case data is less than P x and there are (100-x)% of the historical case data Greater than P x
  • L is the lower limit of the historical case data group where P x is located
  • i x is the group distance
  • f x is the frequency
  • f L is the cumulative frequency of each historical case data group before the historical case data group where P x is located
  • the first baseline parameter 50 is substituted into the baseline calculation formula to obtain the first baseline value
  • the extracting multiple sets of historical data from the multiple historical case data includes: acquiring preset data extraction rules, and performing extraction on the multiple historical case data based on the data extraction rules Operation to obtain the multiple sets of historical data; wherein, the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, where m is an integer greater than 0; from the multiple historical records Extract the m historical records of the m historical years; obtain the current date, and determine m time periods according to the current date; extract the history corresponding to the m time periods for each historical record in the m historical records data;
  • the multiple historical case data can be stored in a distributed network such as a blockchain.
  • the corresponding summary information is obtained based on the historical data.
  • the summary information is obtained by hashing the historical data, for example, obtained by using the sha256s algorithm.
  • Uploading summary information to the blockchain can ensure its security and fairness and transparency to users.
  • the user equipment can download the summary information from the blockchain to verify whether the historical data has been tampered with.
  • the blockchain referred to in this example is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • determine m historical years based on the current year that is, assume that the current year is x
  • Corresponding historical records obtain the current date, determine m time periods based on the current date, obtain the preset time interval k, suppose the current date is a, and the current time period corresponding to the current date is a ⁇ b, where, The time interval between date a and date b is k, and the m time periods determined based on the current date a are respectively a-14 ⁇ a-8, a-7 ⁇ a-1, a ⁇ b, b+1 ⁇ b+ 7.
  • the historical records of 2015-2019 are obtained.
  • the current date is 2020.3.3
  • the time period corresponding to the current date is 2.17-2.23, 2.24 3.1, 3.2-3.8, 3.9-3.15, 3.16-3.22
  • the historical data of these five time periods are obtained from 2015-2019, that is, 25 historical data
  • the historical data is marked based on the historical year, that is, 2015
  • the historical case data corresponding to the five time periods 2.17-2.23, 2.24-3.1, 3.2-3.8, 3.9-3.15, 3.16-3.22 are marked, and the marked content is 2015.
  • the determining the current curve based on the current data includes: obtaining a preset curve weight ⁇ , where 0 ⁇ 1; determining k time points and each curve from the current data The number of cases at a time point, where k is an integer greater than 0; for each of the k time points, the following operations are performed: obtain the t-th time point and the number of cases M corresponding to the t-th time point t , where 0 ⁇ t ⁇ k, use the curve weight ⁇ and the number of cases M t as the input of the preset curve value calculation formula to obtain the current curve value EWMA t corresponding to the t-th time point ,
  • determine k time points for example, any one of the k time points may be 2020.03.03
  • obtain the number of k cases corresponding to the k time points in the current data, for each time point Execute the current curve value calculation cycle to get k current curve values, and connect k current curve values to get the current curve.
  • the exponentially weighted moving average method is a commonly used method to predict the number of forecasts in one or several periods in the future using a set of recent actual data. It is commonly used to detect small deviations in the process, and the function is similar to the cumulative sum control chart (CUSUM), but the setup and operation are usually easier, and it is widely used in the field of time series modeling and forecasting.
  • the updating a preset classification model based on the baseline value set to obtain a data classification model includes: based on the first baseline value P 1 , the second baseline value P 2 , and the first baseline value P 1
  • the three baseline values P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 ; the grading model is acquired, and the first threshold curve Y 1 and the first threshold curve Y 1 are obtained.
  • the second threshold curve Y 2 and the third threshold curve Y 3 are used as update parameters to update the data classification model to obtain the data classification model.
  • the hierarchical model is a model stored in the electronic device, or may be a model stored in a hierarchical server, which is not limited here.
  • the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA
  • the second threshold curve Y 2 and the third threshold curve Y 3 include: obtaining a preset threshold curve calculation formula; obtaining a preset calculation weight ⁇ , where 0 ⁇ 1; and changing the first threshold curve Y 1.
  • the second threshold value curve Y 2 and the third threshold value curve Y 3 and the current curve EWMA are respectively used as the input of the threshold value curve calculation formula to obtain the first threshold value curve Y 1 and the second threshold value curve Y 1.
  • the threshold curve Y 2 and the third threshold curve Y 3 wherein the threshold curve calculation formula includes:
  • the first threshold curve Y 1 is determined based on the first baseline value P 1 and the current curve EWMA
  • the second threshold curve Y 2 is determined based on the second baseline value P 2 and the current epidemic curve EWMA, and based on the third baseline value P 3
  • the current curve EWMA determines the third threshold curve Y 3 ; based on the first threshold curve Y 1 , the second threshold curve Y 2 , the third threshold curve Y 3 and the current curve EWMA to generate a grade curve.
  • the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA
  • the second threshold curve Y 2 and the third threshold curve Y 3 include: obtaining a preset threshold curve calculation formula; obtaining a preset calculation weight ⁇ , where 0 ⁇ 1; and changing the first threshold curve Y 1.
  • the second threshold value curve Y 2 and the third threshold value curve Y 3 and the current curve EWMA are respectively used as the input of the threshold value curve calculation formula to obtain the first threshold value curve Y 1 and the second threshold value curve Y 1.
  • the threshold curve Y 2 and the third threshold curve Y 3 wherein the threshold curve calculation formula includes:
  • the first baseline value and the current curve are used as the input of the threshold curve calculation formula to obtain the first threshold curve
  • the method further includes: determining a level judgment rule according to the baseline value set; and performing a judgment operation on each current curve value in the current epidemic curve according to the level judgment rule to obtain the Current level corresponding to each current curve value; generating the level data according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes: a level curve.
  • performing a judgment operation on each current curve value in the current curve according to the grade judgment rule may include: performing judgment on each current epidemic curve value in the current curve, and obtaining the value in the current curve The first threshold corresponding to the first threshold curve, the second threshold corresponding to the second threshold curve, and the third threshold corresponding to the third threshold curve, judging whether the current curve value is less than the first threshold, If the current curve value is less than the first threshold, it is determined that the level corresponding to the current epidemic curve value is the first level, and if the current curve value is not less than the first threshold, it is determined whether the current epidemic curve value is Less than the second threshold, if the current epidemic curve value is less than the second threshold, determine that the level corresponding to the current curve value is the second level; if the current curve value is not less than the second threshold, determine Whether the current curve value is less than the third threshold value, if the current curve value is less than the third threshold value, it is determined that the level corresponding to the current curve value is the third pole, and if the current current curve
  • the electronic device obtains historical records, extracts multiple historical case data from the historical records, and processes the multiple historical case data to obtain a baseline value set; and receives information corresponding to the current epidemic
  • a current curve is determined based on the current data;
  • a preset grading model is updated based on the baseline value set to obtain a data grading model, and the current curve is input to the data grading model to obtain the grading data of the current epidemic situation.
  • FIG. 2 is a schematic flowchart of another data processing method provided by an embodiment of the present application, which is applied to an electronic device.
  • the data processing method includes:
  • Step 201 Obtain historical records, extract multiple historical case data from the historical records, and extract multiple sets of historical data from the multiple historical case data;
  • Step 202 Call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value set The baseline value P 2 and the third baseline value P 3 ;
  • Step 203 Receive current data corresponding to the current epidemic situation, and determine a current curve based on the current data;
  • Step 204 Update a preset grading model based on the baseline value set to obtain a data grading model, and input the current curve into the data grading model to obtain grade data of the current epidemic situation.
  • the electronic device obtains historical records, extracts multiple historical case data from the historical records, extracts multiple sets of historical data from the multiple historical case data, and calls preset data Processing model, inputting the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and a third baseline A value of P 3 ; receiving current data corresponding to the current epidemic situation, and determining a current curve based on the current data; updating a preset grading model based on the baseline value set to obtain a data grading model, and inputting the current curve into the data grading model, Obtain the level data of the current epidemic situation.
  • the corresponding historical data can be obtained from historical years, and the baseline value set based on historical data can be calculated, which is conducive to improving the rationality of the baseline value calculation.
  • the calculation of the grade curve based on historical data and current data is conducive to improving the accuracy of epidemic classification and improving User experience.
  • FIG. 3 is a schematic flowchart of another data processing method provided by an embodiment of the present application, which is applied to an electronic device.
  • the data processing method includes:
  • Step 301 Obtain historical records, extract multiple historical case data from the historical records, and extract multiple sets of historical data from the multiple historical case data;
  • Step 302 Obtain preset data extraction rules, and perform an extraction operation on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data; wherein, the extraction operation includes: obtaining the current year, based on The current year determines m historical years, where m is an integer greater than 0; extracts m historical records of the m historical years from the multiple historical records; obtains the current date, and determines according to the current date m time periods; extract historical data corresponding to each of the m historical records and the m time periods; upload the historical data to the blockchain;
  • Step 303 Invoke a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value set The baseline value P 2 and the third baseline value P 3 ;
  • Step 304 Calculate the first baseline value, the second baseline value, the third baseline value, and the current epidemic curve as a preset influenza warning model to obtain a grade curve corresponding to the current influenza epidemic;
  • Step 305 Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
  • Step 306 Update a preset grading model based on the baseline value set to obtain a data grading model, and input the current curve into the data grading model to obtain grade data of the current epidemic situation.
  • the electronic device obtains historical records, extracts multiple historical case data from the historical records, extracts multiple sets of historical data from the multiple historical case data; obtains preset data Extraction rules, perform an extraction operation on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data; wherein the extraction operation includes: obtaining the current year, and determining m histories based on the current year Year, where m is an integer greater than 0; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract the Each historical record in the m historical records corresponds to the historical data of the m time periods; uploads the historical data to the blockchain; calls a preset data processing model, and inputs the multiple sets of historical data to the office
  • the baseline value set is obtained, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and a third baseline value P 3 ;
  • the three baseline values are calculated from historical data
  • the current curve is calculated from current data
  • the grade data is determined based on the three baseline values and the current curve, so as to achieve the classification of influenza epidemics, which is conducive to reducing the subjectivity of influenza epidemic classification and improving influenza epidemics. Classification accuracy, improve user experience.
  • This application can be applied to smart medical scenarios to promote the further development of smart cities.
  • FIG. 4 is a schematic flowchart of another stream data processing method provided by an embodiment of the present application, which is applied to an electronic device.
  • the data processing method includes:
  • Step 401 Obtain historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
  • Step 402 Receive current data corresponding to the current epidemic situation, and determine a current curve based on the current data.
  • Step 403 Determine a level judgment rule according to the baseline value set
  • Step 404 Perform a judgment operation on each current curve value in the current epidemic curve according to the grade judgment rule to obtain the current grade corresponding to each current curve value;
  • Step 405 Generate the grade data according to each current curve value and the current grade corresponding to each current curve value, where the grade data includes a grade curve.
  • the electronic device obtains historical records, extracts multiple historical case data from the historical records, and processes the multiple historical case data to obtain a baseline value set; and receives information corresponding to the current epidemic Current data, determine the current curve based on the current data; determine the level judgment rule according to the baseline value set; perform a judgment operation on each current curve value in the current epidemic curve according to the level judgment rule to obtain each The current level corresponding to the current curve value; the level data is generated according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes: a level curve.
  • each current curve value level in the current curve can be divided by the first threshold, the second threshold, and the third threshold to achieve the epidemic classification, which is beneficial to reduce subjectivity and improve user experience.
  • This application can be applied to smart medical scenarios to promote the further development of smart cities.
  • FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application.
  • the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more A program 521, wherein the one or more programs 521 are stored in the foregoing memory 520 and configured to be executed by the foregoing application processor 510, and the one or more programs 521 include instructions for performing the following steps:
  • a data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  • the processing for the multiple historical case data to obtain a baseline value set the instructions in the program are specifically used to perform the following operations: extract multiple sets of historical case data from the multiple historical case data Data; call a preset data processing model, input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline The value P 2 and the third baseline value P 3 .
  • the multiple sets of historical data are extracted from the multiple historical case data, and the instructions in the program are specifically used to perform the following operations: obtain preset data extraction rules, and extract data based on the data.
  • the rule performs an extraction operation on the multiple historical case data to obtain the multiple sets of historical data; wherein the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, where m is greater than 0 Integer of; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract each history of the m historical records Record historical data corresponding to the m time periods; upload the historical data to the blockchain.
  • the current curve is determined based on the current data, and the instructions in the program are specifically used to perform the following operations: obtain a preset curve weight ⁇ , where 0 ⁇ 1; Determine k time points and the number of cases at each time point in the current data, where k is an integer greater than 0; perform the following operations for each time point in the k time points: obtain the t-th time point and the total number of cases The number of cases M t corresponding to the t-th time point, where 0 ⁇ t ⁇ k, the curve weight ⁇ and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the first
  • the preset classification model is updated based on the baseline value set to obtain a data classification model
  • the instructions in the program are specifically used to perform the following operations: based on the first baseline value P 1 , The second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine a first threshold value curve Y 1 , a second threshold value curve Y 2 and a third threshold value curve Y 3 ; acquiring the classification model, The data classification model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data classification model.
  • the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA
  • the second threshold value curve Y 2 and the third threshold value curve Y 3 the instructions in the program are specifically used to perform the following operations: obtain a preset threshold curve calculation formula; obtain a preset calculation weight ⁇ , where 0 ⁇ ⁇ 1; use the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as the input of the threshold curve calculation formula, respectively, and the current curve EWMA to obtain the The first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
  • the instructions in the program are also used to perform the following operations: determine the level judgment rule according to the baseline value set; execute each current curve value in the current epidemic curve according to the level judgment rule The judgment operation obtains the current level corresponding to each current curve value; the level data is generated according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes: level curve.
  • an electronic device includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • FIG. 6 is a block diagram of the functional unit composition of the data processing device 600 involved in an embodiment of the present application.
  • the data processing device 600 is applied to electronic equipment.
  • the data processing device 600 includes an acquiring unit 601, a receiving unit 602, and a calculating unit 603, wherein:
  • the acquiring unit 601 is configured to acquire historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
  • the receiving unit 602 is configured to receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
  • the calculation unit 603 is configured to update a preset classification model based on the baseline value set to obtain a data classification model, and input the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  • the acquiring unit 601 is specifically configured to: extract multiple sets of historical data from the multiple historical case data ; Call a preset data processing model, input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and the third baseline value P 3 .
  • the acquiring unit 601 is specifically configured to: acquire preset data extraction rules based on the data extraction rules Perform an extraction operation on the multiple historical case data to obtain the multiple sets of historical data; wherein the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, where m is greater than 0 Integer; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract each historical record of the m historical records The historical data corresponding to the m time periods; upload the historical data to the blockchain.
  • the receiving unit 602 is specifically configured to: obtain a preset curve weight ⁇ , where 0 ⁇ 1; Determine k time points and the number of cases at each time point in the data, where k is an integer greater than 0; perform the following operations for each of the k time points: obtain the t-th time point and the The number of cases M t corresponding to the t-th time point, where 0 ⁇ t ⁇ k, the curve weight ⁇ and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the t-th
  • the current curve value EWMA t corresponding to each time point, and the curve value calculation formula includes:
  • EWMA t ⁇ *M t +(1- ⁇ )*EWMA t-1 ;
  • the calculation unit 603 is specifically configured to: based on the first baseline value P 1 , the The second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 ; the classification model is obtained, and the The first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 are used as update parameters to update the data classification model to obtain the data classification model.
  • the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA
  • the calculation unit 603 is specifically configured to: obtain a preset threshold curve calculation formula; obtain a preset calculation weight ⁇ , where 0 ⁇ 1; Use the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 respectively and the current curve EWMA as the input of the threshold curve calculation formula to obtain the first threshold curve A threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
  • the calculation unit 603 is further configured to: determine a level judgment rule according to the baseline value set; perform a judgment operation on each current curve value in the current epidemic curve according to the level judgment rule, Obtain the current level corresponding to each current curve value; generate the level data according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes a level curve.
  • the embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium may be non-volatile or volatile.
  • the computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, they are used to implement the following steps:
  • a data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  • the processing for the multiple historical case data to obtain a baseline value set when the program instructions are executed by the processor, is used to implement the following steps: extracting from the multiple historical case data Multiple sets of historical data; call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , The second baseline value P 2 and the third baseline value P 3 .
  • the program instructions when executed by the processor, they are also used to implement the following steps: obtaining preset data extraction rules, based on The data extraction rule performs an extraction operation on the multiple historical case data to obtain the multiple sets of historical data; wherein, the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, wherein, m is an integer greater than 0; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract the m historical records Each historical record in the historical data corresponding to the m time periods; upload the historical data to the blockchain.
  • the data classification model is obtained by updating the preset classification model based on the baseline value set, and when the program instructions are executed by the processor, they are further used to implement the following steps: based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 ; obtain all In the grading model, the data grading model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data grading model.
  • the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA
  • the second threshold curve Y 2 and the third threshold curve Y 3 are also used to implement the following steps: obtain a preset threshold curve calculation formula; obtain a preset calculation weight ⁇ , where , 0 ⁇ 1; use the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 respectively and the current curve EWMA as the input of the threshold curve calculation formula , Obtain the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
  • the program instructions when executed by the processor, they are also used to implement the following steps: determine a level judgment rule according to the baseline value set; The current curve value performs a judgment operation to obtain the current level corresponding to each current curve value; the level data is generated according to each current curve value and the current level corresponding to each current curve value, wherein the level Data includes: grade curve.
  • the embodiments of the present application also provide a computer program product.
  • the above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method.
  • the computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.

Abstract

Provided are a data processing method, apparatus, electronic device, and readable storage medium, said data processing method comprising: obtaining a historical record, extracting a plurality of historical case data from the historical record, and processing the plurality of historical case data to obtain a baseline value set (101); receiving current data corresponding to a current epidemic, and determining a current curve on the basis of the current data (102); updating a preset classification model on the basis of the baseline value set to obtain a data classification model, and entering the current curve into the data classification model to obtain the current level data of the epidemic (103). The described method has the advantage of good user experience, can be applied to smart medical care scenarios, and promotes the further development of smart cities.

Description

数据处理方法、装置、电子设备及可读存储介质Data processing method, device, electronic equipment and readable storage medium
本申请要求于2020年05月26日提交中国专利局、申请号为2020104542921,发明名称为“数据处理方法、装置、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 26, 2020, the application number is 2020104542921, and the invention title is "data processing methods, devices, electronic equipment, and readable storage media". The entire content of the application is approved The reference is incorporated in this application.
技术领域Technical field
本申请涉及电子技术领域,具体涉及一种数据处理方法、装置、电子设备及可读存储介质。This application relates to the field of electronic technology, in particular to a data processing method, device, electronic equipment, and readable storage medium.
背景技术Background technique
流感是一种通过呼吸道传播的急性病毒性感染疾病,可广泛传播,人群普遍易感。全球范围内,流感每年造成约300万至500万严重病例,约29万至65万例与呼吸道疾病相关的死亡。流感流行期间,可导致大量员工无法上班,生产力下降,同时产生大量的直接或间接的医疗费用,极大地加重社会经济负担。Influenza is an acute viral infection that spreads through the respiratory tract. It can spread widely and people are generally susceptible. Globally, influenza causes approximately 3 million to 5 million severe cases and approximately 290,000 to 650,000 deaths related to respiratory diseases each year. During the flu epidemic, a large number of employees cannot go to work, productivity decreases, and a large amount of direct or indirect medical expenses are generated, which greatly increases the social and economic burden.
发明人意识到,目前,对流感强度的分级方法主要通过相关人员对当前流感疫情的情况进行判断,确定当前流感疫情的强度等级,整个分级过程主要依靠相关人员的经验进行判定,主观性强,准确率不高,用户体验度低下。The inventor realizes that, currently, the method for grading influenza intensity is mainly based on the judgment of the current influenza epidemic situation by relevant personnel, to determine the intensity level of the current influenza epidemic situation. The entire grading process mainly depends on the experience of relevant personnel for judgment, which is highly subjective. The accuracy rate is not high, and the user experience is low.
发明内容Summary of the invention
本申请实施例提供一种数据处理方法、装置、电子设备及可读存储介质,通过历史数据计算基线值,基于当前数据计算当前曲线,基于基线值和当前曲线计算得到等级数据,实现对疫情的分级,有利于降低疫情分级的主观性,提高疫情分级准确度,提高用户体验度。The embodiments of the present application provide a data processing method, device, electronic equipment, and readable storage medium. Baseline values are calculated from historical data, current curves are calculated based on current data, and grade data are calculated based on the baseline values and current curves, so as to achieve control of the epidemic Classification helps reduce the subjectivity of epidemic classification, improve the accuracy of epidemic classification, and improve user experience.
第一方面,本申请一种数据处理方法,包括:In the first aspect, a data processing method of this application includes:
获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Acquiring historical records, extracting multiple historical case data from the historical records, and processing the multiple historical case data to obtain a baseline value set;
接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。A data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
第二方面,本申请实施例提供一种数据处理装置,包括:In the second aspect, an embodiment of the present application provides a data processing device, including:
获取单元,用于获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;An acquiring unit, configured to acquire historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
接收单元,用于接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;The receiving unit is configured to receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
计算单元,用于基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。The calculation unit is configured to update a preset classification model based on the baseline value set to obtain a data classification model, and input the current curve into the data classification model to obtain the classification data of the current epidemic situation.
第三方面,本申请实施例提供一种电子设备,其中,包括处理器、存储器、通信设备以及一个或多个程序,处理器、存储器和通信设备相互连接,其中,通信设备用于与外部设备进行信息交互,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,上述程序包括用于执行本申请实施例第一方面任一方法中的步骤的指令。In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, a communication device, and one or more programs. The processor, the memory, and the communication device are connected to each other. The communication device is used to communicate with an external device. For information exchange, the one or more programs are stored in the memory and configured to be executed by the processor, and the above programs include instructions for executing steps in any method of the first aspect of the embodiments of the present application .
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面所述的方法中所描述的部分或全部步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute Part or all of the steps described in the method described in one aspect.
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面所述的方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, the embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute as implemented in this application. Examples include part or all of the steps described in the method described in the first aspect. The computer program product may be a software installation package.
可以看出,在本申请实施例中,电子设备获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。通过历史病例数据计算基线值集,通过当前数据计算当前曲线,基于基线值集和当前曲线计算等级数据,实现对疫情的分级,有利于降低疫情分级的主观性,提高疫情分级准确度,提高用户体验度,本申请可以应用于智慧医疗场景中,推动智慧城市进一步发展。It can be seen that in this embodiment of the application, the electronic device obtains historical records, extracts multiple historical case data from the historical records, and processes the multiple historical case data to obtain a baseline value set; and receives information corresponding to the current epidemic For current data, a current curve is determined based on the current data; a preset grading model is updated based on the baseline value set to obtain a data grading model, and the current curve is input to the data grading model to obtain the grading data of the current epidemic situation. Calculate the baseline value set based on historical case data, calculate the current curve based on the current data, and calculate the grade data based on the baseline value set and the current curve to achieve the classification of the epidemic, which is conducive to reducing the subjectivity of the epidemic classification, improving the accuracy of the epidemic classification, and improving users Experience degree, this application can be applied in smart medical scenarios to promote the further development of smart cities.
附图说明Description of the drawings
图1是本申请实施例提供的一种数据处理方法的结构示意图;FIG. 1 is a schematic structural diagram of a data processing method provided by an embodiment of the present application;
图2是本申请实施例提供的另一种数据处理方法的流程示意图;2 is a schematic flowchart of another data processing method provided by an embodiment of the present application;
图3是本申请实施例提供的另一种数据处理方法的流程示意图;FIG. 3 is a schematic flowchart of another data processing method provided by an embodiment of the present application;
图4是本申请实施例提供的另一种数据处理方法的流程示意图;FIG. 4 is a schematic flowchart of another data processing method provided by an embodiment of the present application;
图5是本申请实施例提供的一种电子设备的结构示意图;FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图6是本申请实施例提供的一种数据处理装置的功能单元组成框图。Fig. 6 is a block diagram of functional units of a data processing device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of this application and the drawings are used to distinguish different objects, not to describe a specific order . In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结果或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐 式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that specific features, results or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备(例如智能手表、智能手环、计步器等)、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。Electronic devices can include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices or other processing devices connected to wireless modems, and various Forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal device), and so on. For ease of description, the devices mentioned above are collectively referred to as electronic devices.
数据存档(data archiving)是将不再经常使用的数据移到一个单独的存储设备来进行长期保存的过程。数据存档由旧的数据组成,但它是以后参考所必需且很重要的数据,其数据必须遵从规则来保存。数据存档具有索引和搜索功能,这样文件可以很容易地找到。Data archiving is the process of moving data that is no longer frequently used to a separate storage device for long-term preservation. The data archive is composed of old data, but it is necessary and important data for future reference, and its data must be stored in compliance with the rules. The data archive has indexing and search functions so that files can be easily found.
下面对本申请实施例进行详细介绍。The following describes the embodiments of the application in detail.
请参阅图1,图1是本申请实施例提供的一种数据处理方法的流程示意图,应用于电子设备,本数据处理方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a data processing method provided by an embodiment of the present application, which is applied to an electronic device. The data processing method includes:
步骤101、获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Step 101: Obtain historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
其中,所述基线值集可以包括:第一基线值、第二基线值和第三基线值。Wherein, the baseline value set may include: a first baseline value, a second baseline value, and a third baseline value.
在本申请实施例中,对该多个病例数据执行百分位数计算,得到第一基线值、第二基线值和第三基线值,该第一基线值、第二基线值和第三基线值用于量化历史数据,基于第一基线值、第二基线值和第三基线值还用于计算阈值,即用于对当前疫情进行分级。In the embodiment of the present application, the percentile calculation is performed on the multiple case data to obtain the first baseline value, the second baseline value, and the third baseline value. The first baseline value, the second baseline value, and the third baseline value are obtained. The value is used to quantify historical data, and is also used to calculate a threshold based on the first baseline value, second baseline value, and third baseline value, that is, to classify the current epidemic situation.
步骤102、接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Step 102: Receive current data corresponding to the current epidemic situation, and determine a current curve based on the current data;
其中,当前数据包括:多个当前疫情时间点以及多个当前疫情时间点对应的多个病例数。Among them, the current data includes: multiple current epidemic time points and multiple cases corresponding to multiple current epidemic time points.
步骤103、基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。Step 103: Update a preset grading model based on the baseline value set to obtain a data grading model, and input the current curve into the data grading model to obtain grade data of the current epidemic situation.
具体实施过程中,依据所述基线值集,即依据第一基线值、第二基线值、第三基线值和当前曲线生成分级请求,向预设分级服务器发送该分级请求,该预设分级服务器包括分级模型,该分级请求用于请求该分级服务器基于所述基线值集进行更新,得到数据分级模型,将当前曲线输入数据分级模型,接收分级服务器返回的分级响应,从该计算响应中获取该等级数据。In the specific implementation process, a classification request is generated according to the baseline value set, that is, according to the first baseline value, the second baseline value, the third baseline value, and the current curve, and the classification request is sent to the preset classification server, and the preset classification server It includes a grading model, and the grading request is used to request the grading server to update based on the baseline value set to obtain a data grading model, input the current curve into the data grading model, receive the grading response returned by the grading server, and obtain the grading response from the calculated response Grade data.
在一可能的示例中,所述针对所述多个历史病例数据进行处理得到基线值集,包括:从所述多个历史病例数据中提取多组历史数据;调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3In a possible example, the processing of the multiple historical case data to obtain a baseline value set includes: extracting multiple sets of historical data from the multiple historical case data; calling a preset data processing model, and The multiple sets of historical data are input into the data processing model to obtain the baseline value set, where the baseline value set includes: a first baseline value P 1 , a second baseline value P 2, and a third baseline value P 3 .
可选的,所述数据处理模型可以包括:基线计算公式,所述数据处理模型依据所述基线计算公式对所述多组历史数据进行计算,得到所述基线值集,其中,所述基线计算公式包括:Optionally, the data processing model may include: a baseline calculation formula, and the data processing model calculates the multiple sets of historical data according to the baseline calculation formula to obtain the baseline value set, wherein the baseline calculation The formula includes:
Figure PCTCN2020099482-appb-000001
Figure PCTCN2020099482-appb-000001
其中,x为预设的基线参数,P x为基线值,P x表示在所述多个历史病例数据中有x%的历史病例数据小于P x且有(100-x)%的历史病例数据大于P x,L为P x所在历史病例数据组的下限,i x为组距,f x为频数,f L为P x所在历史病例数据组之前各历史病例数据组的累积频数,获取预设的第一基线参数、第二基线参数和第三基线参数,基于所述m*m个历史病例数据和所述基线计算公式计算所述第一基线参数对应的第一基线值P 1、所述第二基线参数对应的第二基线值P 2、第三基线参数对应的第三基线值P 3Among them, x is the preset baseline parameter, P x is the baseline value, and P x means that among the multiple historical case data, x% of the historical case data is less than P x and there are (100-x)% of the historical case data Greater than P x , L is the lower limit of the historical case data group where P x is located, i x is the group distance, f x is the frequency, f L is the cumulative frequency of each historical case data group before the historical case data group where P x is located, get the preset Based on the m*m historical case data and the baseline calculation formula, the first baseline value P 1 corresponding to the first baseline parameter is calculated based on the first baseline parameter, the second baseline parameter, and the third baseline parameter. The second baseline value P 2 corresponding to the second baseline parameter, and the third baseline value P 3 corresponding to the third baseline parameter.
具体实现过程中,假设第一基线参数为50,第二基线参数为75,第三基线参数为95,则将第一基线参数50代入基线计算公式,得到第一基线值In the specific implementation process, assuming that the first baseline parameter is 50, the second baseline parameter is 75, and the third baseline parameter is 95, the first baseline parameter 50 is substituted into the baseline calculation formula to obtain the first baseline value
P 1=L+(n*50%-f L/f 50)i 50P 1 =L+(n*50%-f L /f 50 )i 50 ,
将第二基线参数75代入基线计算公式,得到第二基线值Substitute the second baseline parameter 75 into the baseline calculation formula to get the second baseline value
P 2=L+(n*75%-f L/f 75)i 75P 2 =L+(n*75%-f L /f 75 )i 75 ,
将第三基线参数95代入基线计算公式,得到第三基线值Substitute the third baseline parameter 95 into the baseline calculation formula to obtain the third baseline value
P 3=L+(n*95%-f L/f 95)i 95P 3 =L+(n*95%-f L /f 95 )i 95 .
在一可能的示例中,所述从所述多个历史病例数据中提取多组历史数据,包括:获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;In a possible example, the extracting multiple sets of historical data from the multiple historical case data includes: acquiring preset data extraction rules, and performing extraction on the multiple historical case data based on the data extraction rules Operation to obtain the multiple sets of historical data; wherein, the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, where m is an integer greater than 0; from the multiple historical records Extract the m historical records of the m historical years; obtain the current date, and determine m time periods according to the current date; extract the history corresponding to the m time periods for each historical record in the m historical records data;
将所述历史数据上传至区块链中。Upload the historical data to the blockchain.
其中,所述多个历史病例数据可存储在如区块链在内的分布式网络中。Wherein, the multiple historical case data can be stored in a distributed network such as a blockchain.
其中,基于历史数据得到对应的摘要信息,具体来说,摘要信息由历史数据进行散列处理得到,比如利用sha256s算法处理得到。将摘要信息上传至区块链可保证其安全性和对用户的公正透明性。用户设备可以从区块链中下载得该摘要信息,以便查证历史数据是否被篡改。Among them, the corresponding summary information is obtained based on the historical data. Specifically, the summary information is obtained by hashing the historical data, for example, obtained by using the sha256s algorithm. Uploading summary information to the blockchain can ensure its security and fairness and transparency to users. The user equipment can download the summary information from the blockchain to verify whether the historical data has been tampered with.
本示例所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this example is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
可选的,基于当前年份确定m个历史年份,即假设当前年份为x,确定m个历史年为历史年份x-m年至历史年份x-1年,获取历史年份x-m年至历史年份x-1年对应的历史记录;获取当前日期,以当前日期为基准确定m个时间段,获取预设的时间间隔k,假设该当前日期为a,该当前日期对应的当前时间段为a~b,其中,日期a和日期b的时间间隔为k,则基于当前日期a确定的m个时间段分别为a-14~a-8、a-7~a-1、a~b、b+1~b+7、b+8~b+14,在该历史年份x-m年至历史年份x-1年中获取时间段a-14~a-8、a-7~a-1、a~b、b+1~b+7、 b+8~b+14对应的m*m个历史数据。Optionally, determine m historical years based on the current year, that is, assume that the current year is x, determine m historical years as historical years xm years to historical years x-1 years, and obtain historical years xm years to historical years x-1 years Corresponding historical records; obtain the current date, determine m time periods based on the current date, obtain the preset time interval k, suppose the current date is a, and the current time period corresponding to the current date is a ~ b, where, The time interval between date a and date b is k, and the m time periods determined based on the current date a are respectively a-14~a-8, a-7~a-1, a~b, b+1~b+ 7. b+8~b+14, obtain the time period a-14~a-8, a-7~a-1, a~b, b+1 from the historical year xm year to the historical year x-1 year M*m historical data corresponding to ~b+7, b+8~b+14.
具体实现过程中,假设m=5,k=7,当前年份为2020年,则获取2015-2019的历史记录,当前日期为2020.3.3,则当前日期对应的时间段为2.17-2.23、2.24-3.1、3.2-3.8、3.9-3.15、3.16-3.22,则从2015-2019中获取这五个时间段的历史数据,即25个历史数据,基于历史年份对历史数据进行标记,即,对2015年的五个时间段2.17-2.23、2.24-3.1、3.2-3.8、3.9-3.15、3.16-3.22对应的历史病例数据进行标记,该标记的内容为2015。In the specific implementation process, assuming m=5, k=7, and the current year is 2020, then the historical records of 2015-2019 are obtained. The current date is 2020.3.3, and the time period corresponding to the current date is 2.17-2.23, 2.24 3.1, 3.2-3.8, 3.9-3.15, 3.16-3.22, the historical data of these five time periods are obtained from 2015-2019, that is, 25 historical data, and the historical data is marked based on the historical year, that is, 2015 The historical case data corresponding to the five time periods 2.17-2.23, 2.24-3.1, 3.2-3.8, 3.9-3.15, 3.16-3.22 are marked, and the marked content is 2015.
在一可能的示例中,所述基于所述当前数据确定当前曲线,包括:获取预设曲线权值β,其中,0<β<1;从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括EWMA t=β*M t+(1-β)*EWMA t-1;得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 In a possible example, the determining the current curve based on the current data includes: obtaining a preset curve weight β, where 0<β<1; determining k time points and each curve from the current data The number of cases at a time point, where k is an integer greater than 0; for each of the k time points, the following operations are performed: obtain the t-th time point and the number of cases M corresponding to the t-th time point t , where 0<t≤k, use the curve weight β and the number of cases M t as the input of the preset curve value calculation formula to obtain the current curve value EWMA t corresponding to the t-th time point , The curve value calculation formula includes EWMA t =β*M t +(1-β)*EWMA t-1 ; k current curve values EWMA t are obtained , and the current curve values EWMA t are generated based on the k current curve values EWMA t Curve EWMA.
可选的,确定k个时间点(例如,该k个时间点中任意一个时间点可以为2020.03.03),在当前数据中获取k个时间点对应的k个病例数,针对每个时间点执行当前曲线值计算循环,得到k个当前曲线值,连接k个当前曲线值可以得到当前曲线。Optionally, determine k time points (for example, any one of the k time points may be 2020.03.03), and obtain the number of k cases corresponding to the k time points in the current data, for each time point Execute the current curve value calculation cycle to get k current curve values, and connect k current curve values to get the current curve.
在本申请实施例中,指数加权移动平均法(EWMA)是用一组最近的实际数据来预测未来一期或几期内的预测数一种常用方法。常用来侦测流程的微小偏移,作用与累积和控制图(CUSUM)类似,但设置和操作通常要容易一些,在时间序列建模和预测领域应用十分广泛。In the embodiments of the present application, the exponentially weighted moving average method (EWMA) is a commonly used method to predict the number of forecasts in one or several periods in the future using a set of recent actual data. It is commonly used to detect small deviations in the process, and the function is similar to the cumulative sum control chart (CUSUM), but the setup and operation are usually easier, and it is widely used in the field of time series modeling and forecasting.
在一可能的示例中,所述基于所述基线值集更新预设的分级模型得到数据分级模型,包括:基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3;获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 In a possible example, the updating a preset classification model based on the baseline value set to obtain a data classification model includes: based on the first baseline value P 1 , the second baseline value P 2 , and the first baseline value P 1 The three baseline values P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 ; the grading model is acquired, and the first threshold curve Y 1 and the first threshold curve Y 1 are obtained. The second threshold curve Y 2 and the third threshold curve Y 3 are used as update parameters to update the data classification model to obtain the data classification model.
其中,所述分级模型为所述电子设备中存储的模型,也可以为分级服务器中存储的模型,在此不作限定。Wherein, the hierarchical model is a model stored in the electronic device, or may be a model stored in a hierarchical server, which is not limited here.
在一可能的示例中,所述基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3,包括:获取预设的阈值曲线计算公式;获取预设的计算权值ω,其中,0≦ω<1;将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: In a possible example, the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA The second threshold curve Y 2 and the third threshold curve Y 3 include: obtaining a preset threshold curve calculation formula; obtaining a preset calculation weight ω, where 0≦ω<1; and changing the first threshold curve Y 1. The second threshold value curve Y 2 and the third threshold value curve Y 3 and the current curve EWMA are respectively used as the input of the threshold value curve calculation formula to obtain the first threshold value curve Y 1 and the second threshold value curve Y 1. The threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
可选的,基于第一基线值P 1、当前曲线EWMA确定第一阈值曲线Y 1,基于第二基线值P 2、当前疫情曲线EWMA确定第二阈值曲线Y 2,基于第三基线值P 3、当前曲线EWMA确定第三阈值曲线Y 3;基于第一阈值曲线Y 1、第二阈值曲线Y 2和所述第三阈值曲线Y 3和当前曲线EWMA生成等级曲线。 Optionally, the first threshold curve Y 1 is determined based on the first baseline value P 1 and the current curve EWMA, and the second threshold curve Y 2 is determined based on the second baseline value P 2 and the current epidemic curve EWMA, and based on the third baseline value P 3 , The current curve EWMA determines the third threshold curve Y 3 ; based on the first threshold curve Y 1 , the second threshold curve Y 2 , the third threshold curve Y 3 and the current curve EWMA to generate a grade curve.
在一可能的示例中,所述基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3,包括:获取预设的阈值曲线计算公式;获取预设的计算权值ω,其中,0≦ω<1;将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: In a possible example, the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA The second threshold curve Y 2 and the third threshold curve Y 3 include: obtaining a preset threshold curve calculation formula; obtaining a preset calculation weight ω, where 0≦ω<1; and changing the first threshold curve Y 1. The second threshold value curve Y 2 and the third threshold value curve Y 3 and the current curve EWMA are respectively used as the input of the threshold value curve calculation formula to obtain the first threshold value curve Y 1 and the second threshold value curve Y 1. The threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
具体实现过程中,将所述第一基线值和所述当前曲线作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线In the specific implementation process, the first baseline value and the current curve are used as the input of the threshold curve calculation formula to obtain the first threshold curve
Y 1=ω*P 50+(1-ω)EWMA tY 1 =ω*P 50 +(1-ω)EWMA t ,
将所述第二基线值和所述当前曲线作为所述阈值曲线计算公式的输入,得到所述第二阈值曲线Use the second baseline value and the current curve as the input of the threshold curve calculation formula to obtain the second threshold curve
Y 2=ω*P 75+(1-ω)EWMA tY 2 =ω*P 75 +(1-ω)EWMA t ,
将所述第三基线值和所述当前曲线作为所述阈值曲线计算公式的输入,得到所述第三阈值曲线Use the third baseline value and the current curve as the input of the threshold curve calculation formula to obtain the third threshold curve
Y 3=ω*P 95+(1-ω)EWMA tY 3 =ω*P 95 +(1-ω)EWMA t .
在一可能的示例中,所述方法还包括:依据所述基线值集确定等级判断规则;依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。In a possible example, the method further includes: determining a level judgment rule according to the baseline value set; and performing a judgment operation on each current curve value in the current epidemic curve according to the level judgment rule to obtain the Current level corresponding to each current curve value; generating the level data according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes: a level curve.
可选的,该依据所述等级判断规则对所述当前曲线中每个当前曲线值执行判断操作可以包括:针对所述当前曲线中每一个当前疫情曲线值执行判断,获取在所述当前曲线值在第一阈值曲线上对应的第一阈值、在第二阈值曲线上对应的第二阈值以及在第三阈值曲线上对应的第三阈值,判断所述当前曲线值是否小于所述第一阈值,若所述当前曲线值小于所述第一阈值,确定所述当前疫情曲线值对应的等级为第一级,若所述当前曲线值不小于所述第一阈值,判断所述当前疫情曲线值是否小于所述第二阈值,若所述当前疫情曲线值小于所述第二阈值,确定所述当前曲线值对应的等级为第二级,若所述当前曲线值不小于 所述第二阈值,判断所述当前曲线值是否小于所述第三阈值,若所述当前曲线值小于所述第三阈值,确定所述当前曲线值对应的等级为第三极,若所述当前曲线值不小于所述第三阈值,确定所述当前曲线值对应的等级为第四级。Optionally, performing a judgment operation on each current curve value in the current curve according to the grade judgment rule may include: performing judgment on each current epidemic curve value in the current curve, and obtaining the value in the current curve The first threshold corresponding to the first threshold curve, the second threshold corresponding to the second threshold curve, and the third threshold corresponding to the third threshold curve, judging whether the current curve value is less than the first threshold, If the current curve value is less than the first threshold, it is determined that the level corresponding to the current epidemic curve value is the first level, and if the current curve value is not less than the first threshold, it is determined whether the current epidemic curve value is Less than the second threshold, if the current epidemic curve value is less than the second threshold, determine that the level corresponding to the current curve value is the second level; if the current curve value is not less than the second threshold, determine Whether the current curve value is less than the third threshold value, if the current curve value is less than the third threshold value, it is determined that the level corresponding to the current curve value is the third pole, and if the current curve value is not less than the The third threshold determines that the level corresponding to the current curve value is the fourth level.
可以看出,在本申请实施例中,电子设备获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。通过历史病例数据计算基线值集,通过当前数据计算当前曲线,基于基线值集和当前曲线计算等级数据,实现对疫情的分级,有利于降低疫情分级的主观性,提高疫情分级准确度,提高用户体验度,本申请可以应用于智慧医疗场景中,推动智慧城市进一步发展。It can be seen that in this embodiment of the application, the electronic device obtains historical records, extracts multiple historical case data from the historical records, and processes the multiple historical case data to obtain a baseline value set; and receives information corresponding to the current epidemic For current data, a current curve is determined based on the current data; a preset grading model is updated based on the baseline value set to obtain a data grading model, and the current curve is input to the data grading model to obtain the grading data of the current epidemic situation. Calculate the baseline value set based on historical case data, calculate the current curve based on the current data, and calculate the grade data based on the baseline value set and the current curve to achieve the classification of the epidemic, which is conducive to reducing the subjectivity of the epidemic classification, improving the accuracy of the epidemic classification, and improving users Experience degree, this application can be applied in smart medical scenarios to promote the further development of smart cities.
请参阅图2,图2是本申请实施例提供的另一种数据处理方法的流程示意图,应用于电子设备,本数据处理方法包括:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another data processing method provided by an embodiment of the present application, which is applied to an electronic device. The data processing method includes:
步骤201、获取历史记录,从所述历史记录中提取多个历史病例数据,从所述多个历史病例数据中提取多组历史数据;Step 201: Obtain historical records, extract multiple historical case data from the historical records, and extract multiple sets of historical data from the multiple historical case data;
步骤202、调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3Step 202: Call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value set The baseline value P 2 and the third baseline value P 3 ;
步骤203、接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Step 203: Receive current data corresponding to the current epidemic situation, and determine a current curve based on the current data;
步骤204、基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。Step 204: Update a preset grading model based on the baseline value set to obtain a data grading model, and input the current curve into the data grading model to obtain grade data of the current epidemic situation.
其中,上述步骤201-步骤204的具体描述可以参照上述图1所描述的数据处理方法的相应步骤,在此不再赘述。For the specific description of the above steps 201 to 204, reference may be made to the corresponding steps of the data processing method described in FIG. 1, which will not be repeated here.
可以看出,在本申请实施例中,电子设备获取历史记录,从所述历史记录中提取多个历史病例数据,从所述多个历史病例数据中提取多组历史数据;调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3;接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。如此,可以通过从历史年份获取相应的历史数据,基于历史数据计算基线值集,有利于提高基线值计算的合理性,基于历史数据和当前数据计算等级曲线,有利于提高疫情分级准确度,提高用户体验度。 It can be seen that, in this embodiment of the application, the electronic device obtains historical records, extracts multiple historical case data from the historical records, extracts multiple sets of historical data from the multiple historical case data, and calls preset data Processing model, inputting the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and a third baseline A value of P 3 ; receiving current data corresponding to the current epidemic situation, and determining a current curve based on the current data; updating a preset grading model based on the baseline value set to obtain a data grading model, and inputting the current curve into the data grading model, Obtain the level data of the current epidemic situation. In this way, the corresponding historical data can be obtained from historical years, and the baseline value set based on historical data can be calculated, which is conducive to improving the rationality of the baseline value calculation. The calculation of the grade curve based on historical data and current data is conducive to improving the accuracy of epidemic classification and improving User experience.
请参阅图3,图3是本申请实施例提供的另一种数据处理方法的流程示意图,应用于电子设备,本数据处理方法包括:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of another data processing method provided by an embodiment of the present application, which is applied to an electronic device. The data processing method includes:
步骤301、获取历史记录,从所述历史记录中提取多个历史病例数据,从所述多个历史病例数据中提取多组历史数据;Step 301: Obtain historical records, extract multiple historical case data from the historical records, and extract multiple sets of historical data from the multiple historical case data;
步骤302、获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数 据执行提取操作,得到所述多组历史数据;其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;将所述历史数据上传至区块链中;Step 302: Obtain preset data extraction rules, and perform an extraction operation on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data; wherein, the extraction operation includes: obtaining the current year, based on The current year determines m historical years, where m is an integer greater than 0; extracts m historical records of the m historical years from the multiple historical records; obtains the current date, and determines according to the current date m time periods; extract historical data corresponding to each of the m historical records and the m time periods; upload the historical data to the blockchain;
步骤303、调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3Step 303: Invoke a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value set The baseline value P 2 and the third baseline value P 3 ;
步骤304、将所述第一基线值、所述第二基线值和所述第三基线值和所述当前疫情曲线作为预设流感预警模型进行计算,得到所述当前流感疫情对应的等级曲线;Step 304: Calculate the first baseline value, the second baseline value, the third baseline value, and the current epidemic curve as a preset influenza warning model to obtain a grade curve corresponding to the current influenza epidemic;
步骤305、接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Step 305: Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
步骤306、基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。Step 306: Update a preset grading model based on the baseline value set to obtain a data grading model, and input the current curve into the data grading model to obtain grade data of the current epidemic situation.
其中,上述步骤301-步骤306的具体描述可以参照上述图1所描述的数据处理方法的相应步骤,在此不再赘述。For the detailed description of the foregoing steps 301 to 306, reference may be made to the corresponding steps of the data processing method described in FIG. 1, which will not be repeated here.
可以看出,在本申请实施例中,电子设备获取历史记录,从所述历史记录中提取多个历史病例数据,从所述多个历史病例数据中提取多组历史数据;获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;将所述历史数据上传至区块链中;调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3;将所述第一基线值、所述第二基线值和所述第三基线值和所述当前疫情曲线作为预设流感预警模型进行计算,得到所述当前流感疫情对应的等级曲线;接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。如此,通过历史数据计算三个基线值,通过当前数据计算当前曲线,基于三个基线值和当前曲线确定等级数据,实现对流感疫情的分级,有利于降低流感疫情分级的主观性,提高流感疫情分级准确度,提高用户体验度。本申请可以应用于智慧医疗场景中,推动智慧城市进一步发展。 It can be seen that in the embodiment of the present application, the electronic device obtains historical records, extracts multiple historical case data from the historical records, extracts multiple sets of historical data from the multiple historical case data; obtains preset data Extraction rules, perform an extraction operation on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data; wherein the extraction operation includes: obtaining the current year, and determining m histories based on the current year Year, where m is an integer greater than 0; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract the Each historical record in the m historical records corresponds to the historical data of the m time periods; uploads the historical data to the blockchain; calls a preset data processing model, and inputs the multiple sets of historical data to the office According to the data processing model, the baseline value set is obtained, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and a third baseline value P 3 ; and the first baseline value, The second baseline value, the third baseline value, and the current epidemic curve are calculated as a preset influenza warning model to obtain the grade curve corresponding to the current influenza epidemic; current data corresponding to the current epidemic is received, based on the The current data determines the current curve; the preset grading model is updated based on the baseline value set to obtain a data grading model, and the current curve is input into the data grading model to obtain the grading data of the current epidemic situation. In this way, the three baseline values are calculated from historical data, the current curve is calculated from current data, and the grade data is determined based on the three baseline values and the current curve, so as to achieve the classification of influenza epidemics, which is conducive to reducing the subjectivity of influenza epidemic classification and improving influenza epidemics. Classification accuracy, improve user experience. This application can be applied to smart medical scenarios to promote the further development of smart cities.
请参阅图4,图4是本申请实施例提供的另一种流数据处理方法的流程示意图,应用于电子设备,本数据处理方法包括:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of another stream data processing method provided by an embodiment of the present application, which is applied to an electronic device. The data processing method includes:
步骤401、获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Step 401: Obtain historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
步骤402、接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Step 402: Receive current data corresponding to the current epidemic situation, and determine a current curve based on the current data.
步骤403、依据所述基线值集确定等级判断规则;Step 403: Determine a level judgment rule according to the baseline value set;
步骤404、依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;Step 404: Perform a judgment operation on each current curve value in the current epidemic curve according to the grade judgment rule to obtain the current grade corresponding to each current curve value;
步骤405、依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。Step 405: Generate the grade data according to each current curve value and the current grade corresponding to each current curve value, where the grade data includes a grade curve.
其中,上述步骤401-步骤405的具体描述可以参照上述图1所描述的数据处理方法的相应步骤,在此不再赘述。For the specific description of the above steps 401 to 405, reference may be made to the corresponding steps of the data processing method described in FIG. 1, which will not be repeated here.
可以看出,在本申请实施例中,电子设备获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;依据所述基线值集确定等级判断规则;依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。如此,可以通过第一阈值、第二阈值和第三阈值对当前曲线中每个当前曲线值等级进行划分从而实现疫情分级,有利于降低主观性,提高用户体验度。本申请可以应用于智慧医疗场景中,推动智慧城市进一步发展。It can be seen that in this embodiment of the application, the electronic device obtains historical records, extracts multiple historical case data from the historical records, and processes the multiple historical case data to obtain a baseline value set; and receives information corresponding to the current epidemic Current data, determine the current curve based on the current data; determine the level judgment rule according to the baseline value set; perform a judgment operation on each current curve value in the current epidemic curve according to the level judgment rule to obtain each The current level corresponding to the current curve value; the level data is generated according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes: a level curve. In this way, each current curve value level in the current curve can be divided by the first threshold, the second threshold, and the third threshold to achieve the epidemic classification, which is beneficial to reduce subjectivity and improve user experience. This application can be applied to smart medical scenarios to promote the further development of smart cities.
请参阅图5,图5是本申请实施例提供的一种电子设备500的结构示意图,如图所示,所述电子设备500包括应用处理器510、存储器520、通信接口530以及一个或多个程序521,其中,所述一个或多个程序521被存储在上述存储器520中,并且被配置由上述应用处理器510执行,所述一个或多个程序521包括用于执行以下步骤的指令:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of an electronic device 500 provided by an embodiment of the present application. As shown in the figure, the electronic device 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more A program 521, wherein the one or more programs 521 are stored in the foregoing memory 520 and configured to be executed by the foregoing application processor 510, and the one or more programs 521 include instructions for performing the following steps:
获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Acquiring historical records, extracting multiple historical case data from the historical records, and processing the multiple historical case data to obtain a baseline value set;
接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。A data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
在一可能的示例中,所述针对所述多个历史病例数据进行处理得到基线值集,所述程序中的指令具体用于执行以下操作:从所述多个历史病例数据中提取多组历史数据;调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3In a possible example, the processing for the multiple historical case data to obtain a baseline value set, the instructions in the program are specifically used to perform the following operations: extract multiple sets of historical case data from the multiple historical case data Data; call a preset data processing model, input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline The value P 2 and the third baseline value P 3 .
在一可能的示例中,所述从所述多个历史病例数据中提取多组历史数据,所述程序中的指令具体用于执行以下操作:获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;将所述历史数据上传至区块链中。In a possible example, the multiple sets of historical data are extracted from the multiple historical case data, and the instructions in the program are specifically used to perform the following operations: obtain preset data extraction rules, and extract data based on the data. The rule performs an extraction operation on the multiple historical case data to obtain the multiple sets of historical data; wherein the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, where m is greater than 0 Integer of; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract each history of the m historical records Record historical data corresponding to the m time periods; upload the historical data to the blockchain.
在一可能的示例中,所述基于所述当前数据确定当前曲线,所述程序中的指令具体用于执行以下操作:获取预设曲线权值β,其中,0<β<1;从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括:EWMA t=β*M t+(1-β)*EWMA t-1;得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 In a possible example, the current curve is determined based on the current data, and the instructions in the program are specifically used to perform the following operations: obtain a preset curve weight β, where 0<β<1; Determine k time points and the number of cases at each time point in the current data, where k is an integer greater than 0; perform the following operations for each time point in the k time points: obtain the t-th time point and the total number of cases The number of cases M t corresponding to the t-th time point, where 0<t≤k, the curve weight β and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the first The current curve value EWMA t corresponding to t time points, and the curve value calculation formula includes: EWMA t =β*M t +(1-β)*EWMA t-1 ; to obtain k current curve values EWMA t , based on all The k current curve values EWMA t generate the current curve EWMA.
在一可能的示例中,所述基于所述基线值集更新预设的分级模型得到数据分级模型,所述程序中的指令具体用于执行以下操作:基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3;获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 In a possible example, the preset classification model is updated based on the baseline value set to obtain a data classification model, and the instructions in the program are specifically used to perform the following operations: based on the first baseline value P 1 , The second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine a first threshold value curve Y 1 , a second threshold value curve Y 2 and a third threshold value curve Y 3 ; acquiring the classification model, The data classification model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data classification model.
在一可能的示例中,所述基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3,所述程序中的指令具体用于执行以下操作:获取预设的阈值曲线计算公式;获取预设的计算权值ω,其中,0≦ω<1;将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: In a possible example, the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA The second threshold value curve Y 2 and the third threshold value curve Y 3 , the instructions in the program are specifically used to perform the following operations: obtain a preset threshold curve calculation formula; obtain a preset calculation weight ω, where 0≦ω <1; use the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as the input of the threshold curve calculation formula, respectively, and the current curve EWMA to obtain the The first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
在一可能的示例中,所述程序中的指令还用于执行以下操作:依据所述基线值集确定等级判断规则;依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。In a possible example, the instructions in the program are also used to perform the following operations: determine the level judgment rule according to the baseline value set; execute each current curve value in the current epidemic curve according to the level judgment rule The judgment operation obtains the current level corresponding to each current curve value; the level data is generated according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes: level curve.
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that, in order to implement the above-mentioned functions, an electronic device includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that in combination with the units and algorithm steps of the examples described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
图6是本申请实施例中所涉及的数据处理装置600的功能单元组成框图。该数据处理装置600应用于电子设备,数据处理装置600包括获取单元601、接收单元602和计算单元603,其中:FIG. 6 is a block diagram of the functional unit composition of the data processing device 600 involved in an embodiment of the present application. The data processing device 600 is applied to electronic equipment. The data processing device 600 includes an acquiring unit 601, a receiving unit 602, and a calculating unit 603, wherein:
获取单元601,用于获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;The acquiring unit 601 is configured to acquire historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
接收单元602,用于接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;The receiving unit 602 is configured to receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
计算单元603,用于基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。The calculation unit 603 is configured to update a preset classification model based on the baseline value set to obtain a data classification model, and input the current curve into the data classification model to obtain the classification data of the current epidemic situation.
在一可能的示例中,在所述针对所述多个历史病例数据进行处理得到基线值集方面,所述获取单元601,具体用于:从所述多个历史病例数据中提取多组历史数据;调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3In a possible example, in terms of processing the multiple historical case data to obtain a baseline value set, the acquiring unit 601 is specifically configured to: extract multiple sets of historical data from the multiple historical case data ; Call a preset data processing model, input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and the third baseline value P 3 .
在一可能的示例中,在所述从所述多个历史病例数据中提取多组历史数据方面,所述获取单元601,具体用于:获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;将所述历史数据上传至区块链中。In a possible example, in terms of extracting multiple sets of historical data from the multiple historical case data, the acquiring unit 601 is specifically configured to: acquire preset data extraction rules based on the data extraction rules Perform an extraction operation on the multiple historical case data to obtain the multiple sets of historical data; wherein the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, where m is greater than 0 Integer; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract each historical record of the m historical records The historical data corresponding to the m time periods; upload the historical data to the blockchain.
在一可能的示例中,在所述基于所述当前数据确定当前曲线方面,所述接收单元602,具体用于:获取预设曲线权值β,其中,0<β<1;从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括: In a possible example, in the aspect of determining the current curve based on the current data, the receiving unit 602 is specifically configured to: obtain a preset curve weight β, where 0<β<1; Determine k time points and the number of cases at each time point in the data, where k is an integer greater than 0; perform the following operations for each of the k time points: obtain the t-th time point and the The number of cases M t corresponding to the t-th time point, where 0<t≤k, the curve weight β and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the t-th The current curve value EWMA t corresponding to each time point, and the curve value calculation formula includes:
EWMA t=β*M t+(1-β)*EWMA t-1EWMA t = β*M t +(1-β)*EWMA t-1 ;
得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 Obtain k current curve values EWMA t , and generate the current curve EWMA based on the k current curve values EWMA t.
在一可能的示例中,在所述基于所述基线值集更新预设的分级模型得到数据分级模型方面,所述计算单元603,具体用于:基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3;获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 In a possible example, in terms of obtaining a data classification model by updating a preset classification model based on the baseline value set, the calculation unit 603 is specifically configured to: based on the first baseline value P 1 , the The second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 ; the classification model is obtained, and the The first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 are used as update parameters to update the data classification model to obtain the data classification model.
在一可能的示例中,在所述基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3方面,所述计算单元603,具体用于:获取预设的阈值曲线计算公式;获取预设的计算权值ω,其中,0≦ω<1;将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线 Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: In a possible example, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA In terms of the second threshold curve Y 2 and the third threshold curve Y 3 , the calculation unit 603 is specifically configured to: obtain a preset threshold curve calculation formula; obtain a preset calculation weight ω, where 0≦ω<1; Use the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 respectively and the current curve EWMA as the input of the threshold curve calculation formula to obtain the first threshold curve A threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
在一可能的示例中,所述计算单元603,还用于:依据所述基线值集确定等级判断规则;依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。In a possible example, the calculation unit 603 is further configured to: determine a level judgment rule according to the baseline value set; perform a judgment operation on each current curve value in the current epidemic curve according to the level judgment rule, Obtain the current level corresponding to each current curve value; generate the level data according to each current curve value and the current level corresponding to each current curve value, wherein the level data includes a level curve.
本申请实施例还提供一种计算机可读存储介质,其中,所述计算机可读存储介质可以是非易失性,也可以是易失性。所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,用于实现以下步骤:The embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium may be non-volatile or volatile. The computer-readable storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, they are used to implement the following steps:
获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Acquiring historical records, extracting multiple historical case data from the historical records, and processing the multiple historical case data to obtain a baseline value set;
接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。A data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
在一可能的示例中,所述针对所述多个历史病例数据进行处理得到基线值集,所述程序指令被处理器执行时,用于实现以下步骤:从所述多个历史病例数据中提取多组历史数据;调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3In a possible example, the processing for the multiple historical case data to obtain a baseline value set, when the program instructions are executed by the processor, is used to implement the following steps: extracting from the multiple historical case data Multiple sets of historical data; call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, wherein the baseline value set includes: a first baseline value P 1 , The second baseline value P 2 and the third baseline value P 3 .
在一可能的示例中,所述从所述多个历史病例数据中提取多组历史数据,所述程序指令被处理器执行时,还用于实现以下步骤:获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;将所述历史数据上传至区块链中。In a possible example, when the multiple sets of historical data are extracted from the multiple historical case data, when the program instructions are executed by the processor, they are also used to implement the following steps: obtaining preset data extraction rules, based on The data extraction rule performs an extraction operation on the multiple historical case data to obtain the multiple sets of historical data; wherein, the extraction operation includes: obtaining the current year, and determining m historical years based on the current year, wherein, m is an integer greater than 0; extract m historical records of the m historical years from the multiple historical records; obtain the current date, and determine m time periods according to the current date; extract the m historical records Each historical record in the historical data corresponding to the m time periods; upload the historical data to the blockchain.
在一可能的示例中,所述基于所述当前数据确定当前曲线,所述程序指令被处理器执行时,还用于实现以下步骤:获取预设曲线权值β,其中,0<β<1;从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括:EWMA t=β*M t+(1-β)*EWMA t-1;得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 In a possible example, when the current curve is determined based on the current data, when the program instructions are executed by the processor, the program instructions are further used to implement the following step: obtain a preset curve weight β, where 0<β<1 Determine k time points and the number of cases at each time point from the current data, where k is an integer greater than 0; perform the following operations for each time point in the k time points: obtain the t th The time point and the number of cases M t corresponding to the t-th time point, where 0<t≤k, the curve weight β and the number of cases M t are used as the input of the preset curve value calculation formula, Obtain the current curve value EWMA t corresponding to the t-th time point, and the curve value calculation formula includes: EWMA t =β*M t +(1-β)*EWMA t-1 ; Obtain k current curve values EWMA t , generating the current curve EWMA based on the k current curve values EWMA t.
在一可能的示例中,所述基于所述基线值集更新预设的分级模型得到数据分级模型,所述程序指令被处理器执行时,还用于实现以下步骤:基于所述第一基线值P 1、所述第二 基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3;获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 In a possible example, the data classification model is obtained by updating the preset classification model based on the baseline value set, and when the program instructions are executed by the processor, they are further used to implement the following steps: based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 ; obtain all In the grading model, the data grading model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data grading model.
在一可能的示例中,所述基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3,所述程序指令被处理器执行时,还用于实现以下步骤:获取预设的阈值曲线计算公式;获取预设的计算权值ω,其中,0≦ω<1;将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: In a possible example, the first threshold curve Y 1, the first threshold curve Y 1 is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA When the program instructions are executed by the processor, the second threshold curve Y 2 and the third threshold curve Y 3 are also used to implement the following steps: obtain a preset threshold curve calculation formula; obtain a preset calculation weight ω, where , 0≦ω<1; use the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 respectively and the current curve EWMA as the input of the threshold curve calculation formula , Obtain the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
在一可能的示例中,所述程序指令被处理器执行时,还用于实现以下步骤:依据所述基线值集确定等级判断规则;依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。In a possible example, when the program instructions are executed by the processor, they are also used to implement the following steps: determine a level judgment rule according to the baseline value set; The current curve value performs a judgment operation to obtain the current level corresponding to each current curve value; the level data is generated according to each current curve value and the current level corresponding to each current curve value, wherein the level Data includes: grade curve.
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。The embodiments of the present application also provide a computer program product. The above-mentioned computer program product includes a non-transitory computer-readable storage medium storing a computer program. The above-mentioned computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the method. The computer program product may be a software installation package, and the above-mentioned computer includes electronic equipment.
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the application are described in detail above, and specific examples are used in this article to illustrate the principles and implementation of the application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the application; at the same time, for Those of ordinary skill in the art, based on the ideas of the application, will have changes in the specific implementation and the scope of application. In summary, the content of this specification should not be construed as limiting the application.

Claims (20)

  1. 一种数据处理方法,其中,包括:A data processing method, which includes:
    获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Acquiring historical records, extracting multiple historical case data from the historical records, and processing the multiple historical case data to obtain a baseline value set;
    接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
    基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。A data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  2. 根据权利要求1所述的方法,其中,所述针对所述多个历史病例数据进行处理得到基线值集,包括:The method according to claim 1, wherein the processing for the multiple historical case data to obtain a baseline value set comprises:
    从所述多个历史病例数据中提取多组历史数据;Extracting multiple sets of historical data from the multiple historical case data;
    调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3Call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, where the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and the third baseline value P 3 .
  3. 根据权利要求2所述的方法,其中,所述从所述多个历史病例数据中提取多组历史数据,包括:The method according to claim 2, wherein said extracting multiple sets of historical data from said multiple historical case data comprises:
    获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;Acquiring preset data extraction rules, and performing extraction operations on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data;
    其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;Wherein, the extraction operation includes: obtaining the current year, determining m historical years based on the current year, where m is an integer greater than 0; extracting m of the m historical years from the multiple historical records Historical records; acquiring the current date, and determining m time periods according to the current date; extracting historical data corresponding to each of the m historical records and the m time periods;
    将所述历史数据上传至区块链中。Upload the historical data to the blockchain.
  4. 根据权利要求1所述的方法,其中,所述基于所述当前数据确定当前曲线,包括:The method according to claim 1, wherein the determining the current curve based on the current data comprises:
    获取预设曲线权值β,其中,0<β<1;Obtain the preset curve weight β, where 0<β<1;
    从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;Determine k time points and the number of cases at each time point from the current data, where k is an integer greater than 0;
    针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括: Perform the following operations for each of the k time points: obtain the t-th time point and the number of cases M t corresponding to the t-th time point, where 0<t≤k, weight the curve The value β and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the current curve value EWMA t corresponding to the t-th time point, and the curve value calculation formula includes:
    EWMA t=β*M t+(1-β)*EWMA t-1EWMA t = β*M t +(1-β)*EWMA t-1 ;
    得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 Obtain k current curve values EWMA t , and generate the current curve EWMA based on the k current curve values EWMA t.
  5. 根据权利要求1所述的方法,其中,所述基于所述基线值集更新预设的分级模型得到数据分级模型,包括:The method according to claim 1, wherein said updating a preset classification model based on said baseline value set to obtain a data classification model comprises:
    基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3Based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third Threshold curve Y 3 ;
    获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3 作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 The grading model is acquired, and the data grading model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data grading model.
  6. 根据权利要求5所述的方法,其中,所述基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3,包括: The method according to claim 5, wherein the first threshold value is determined based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA The curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 include:
    获取预设的阈值曲线计算公式;Obtain a preset threshold curve calculation formula;
    获取预设的计算权值ω,其中,0≦ω<1;Obtain the preset calculation weight ω, where 0≦ω<1;
    将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: The first threshold value curve Y 1 , the second threshold value curve Y 2 and the third threshold value curve Y 3 and the current curve EWMA are used as the input of the threshold value curve calculation formula to obtain the first threshold value Curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
    Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
  7. 根据权利要求1-6任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    依据所述基线值集确定等级判断规则;Determining the level judgment rule according to the baseline value set;
    依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;Performing a judgment operation on each current curve value in the current epidemic curve according to the grade judgment rule to obtain the current grade corresponding to each current curve value;
    依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。The grade data is generated according to each current curve value and the current grade corresponding to each current curve value, wherein the grade data includes a grade curve.
  8. 一种数据处理装置,其中,包括:A data processing device, which includes:
    获取单元,用于获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;An acquiring unit, configured to acquire historical records, extract multiple historical case data from the historical records, and process the multiple historical case data to obtain a baseline value set;
    接收单元,用于接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;The receiving unit is configured to receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
    计算单元,用于基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。The calculation unit is configured to update a preset classification model based on the baseline value set to obtain a data classification model, and input the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  9. 一种电子设备,其中,所述电子设备包括存储器和处理器,所述处理器、和所述存储器相互连接,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器用于执行所述存储器的所述程序指令,其中:An electronic device, wherein the electronic device includes a memory and a processor, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, and the computer program includes program instructions. The processor is configured to execute the program instructions of the memory, wherein:
    获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Acquiring historical records, extracting multiple historical case data from the historical records, and processing the multiple historical case data to obtain a baseline value set;
    接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
    基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。A data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  10. 根据权利要求9所述的电子设备,其中,所述处理器用于:The electronic device according to claim 9, wherein the processor is configured to:
    从所述多个历史病例数据中提取多组历史数据;Extracting multiple sets of historical data from the multiple historical case data;
    调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3Call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, where the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and the third baseline value P 3 .
  11. 根据权利要求10所述的电子设备,其中,所述处理器用于:The electronic device according to claim 10, wherein the processor is configured to:
    获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;Acquiring preset data extraction rules, and performing extraction operations on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data;
    其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;Wherein, the extraction operation includes: obtaining the current year, determining m historical years based on the current year, where m is an integer greater than 0; extracting m of the m historical years from the multiple historical records Historical records; acquiring the current date, and determining m time periods according to the current date; extracting historical data corresponding to each of the m historical records and the m time periods;
    将所述历史数据上传至区块链中。Upload the historical data to the blockchain.
  12. 根据权利要求9所述的电子设备,其中,所述处理器用于:The electronic device according to claim 9, wherein the processor is configured to:
    获取预设曲线权值β,其中,0<β<1;Obtain the preset curve weight β, where 0<β<1;
    从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;Determine k time points and the number of cases at each time point from the current data, where k is an integer greater than 0;
    针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括: Perform the following operations for each of the k time points: obtain the t-th time point and the number of cases M t corresponding to the t-th time point, where 0<t≤k, weight the curve The value β and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the current curve value EWMA t corresponding to the t-th time point, and the curve value calculation formula includes:
    EWMA t=β*M t+(1-β)*EWMA t-1EWMA t = β*M t +(1-β)*EWMA t-1 ;
    得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 Obtain k current curve values EWMA t , and generate the current curve EWMA based on the k current curve values EWMA t.
  13. 根据权利要求9所述的电子设备,其中,所述处理器用于:The electronic device according to claim 9, wherein the processor is configured to:
    基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3Based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third Threshold curve Y 3 ;
    获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 The grading model is acquired, and the data grading model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data grading model.
  14. 根据权利要求13所述的电子设备,其中,所述处理器用于:The electronic device according to claim 13, wherein the processor is configured to:
    获取预设的阈值曲线计算公式;Obtain a preset threshold curve calculation formula;
    获取预设的计算权值ω,其中,0≦ω<1;Obtain the preset calculation weight ω, where 0≦ω<1;
    将所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3分别与所述当前曲线EWMA作为所述阈值曲线计算公式的输入,得到所述第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3,其中,所述阈值曲线计算公式包括: The first threshold value curve Y 1 , the second threshold value curve Y 2 and the third threshold value curve Y 3 and the current curve EWMA are used as the input of the threshold value curve calculation formula to obtain the first threshold value Curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 , wherein the threshold curve calculation formula includes:
    Y x=ω*P x+(1-ω)EWMA。 Y x =ω*P x +(1-ω)EWMA.
  15. 根据权利要求9-14任一项所述的电子设备,其中,所述处理器用于:The electronic device according to any one of claims 9-14, wherein the processor is configured to:
    依据所述基线值集确定等级判断规则;Determining the level judgment rule according to the baseline value set;
    依据所述等级判断规则对所述当前疫情曲线中每个当前曲线值执行判断操作,得到所述每个当前曲线值对应的当前等级;Performing a judgment operation on each current curve value in the current epidemic curve according to the grade judgment rule to obtain the current grade corresponding to each current curve value;
    依据所述每个当前曲线值和所述每个当前曲线值对应的当前等级生成所述等级数据,其中所述等级数据包括:等级曲线。The grade data is generated according to each current curve value and the current grade corresponding to each current curve value, wherein the grade data includes a grade curve.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令被处理器执行时,用于实现以下步骤:A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, they are used to implement the following steps:
    获取历史记录,从所述历史记录中提取多个历史病例数据,针对所述多个历史病例数据进行处理得到基线值集;Acquiring historical records, extracting multiple historical case data from the historical records, and processing the multiple historical case data to obtain a baseline value set;
    接收当前疫情对应的当前数据,基于所述当前数据确定当前曲线;Receive current data corresponding to the current epidemic situation, and determine the current curve based on the current data;
    基于所述基线值集更新预设的分级模型得到数据分级模型,将所述当前曲线输入所述数据分级模型,得到所述当前疫情的等级数据。A data classification model is obtained by updating a preset classification model based on the baseline value set, and inputting the current curve into the data classification model to obtain the classification data of the current epidemic situation.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述程序指令被处理器执行时,还用于实现以下步骤:The computer-readable storage medium according to claim 16, wherein, when the program instructions are executed by the processor, they are further used to implement the following steps:
    从所述多个历史病例数据中提取多组历史数据;Extracting multiple sets of historical data from the multiple historical case data;
    调用预设的数据处理模型,将所述多组历史数据输入所述数据处理模型,得所述基线值集,其中,所述基线值集包括:第一基线值P 1、第二基线值P 2和第三基线值P 3Call a preset data processing model, and input the multiple sets of historical data into the data processing model to obtain the baseline value set, where the baseline value set includes: a first baseline value P 1 , a second baseline value P 2 and the third baseline value P 3 .
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述程序指令被处理器执行时,还用于实现以下步骤:The computer-readable storage medium according to claim 17, wherein, when the program instructions are executed by the processor, they are further used to implement the following steps:
    获取预设的数据提取规则,基于所述数据提取规则对所述多个历史病例数据执行提取操作,得到所述多组历史数据;Acquiring preset data extraction rules, and performing extraction operations on the multiple historical case data based on the data extraction rules to obtain the multiple sets of historical data;
    其中,所述提取操作包括:获取当前年份,基于所述当前年份确定m个历史年份,其中,m为大于0的整数;从所述多个历史记录中提取所述m个历史年份的m个历史记录;获取当前日期,依据所述当前日期确定m个时间段;提取所述m个历史记录中每个历史记录与所述m个时间段对应的历史数据;Wherein, the extraction operation includes: obtaining the current year, determining m historical years based on the current year, where m is an integer greater than 0; extracting m of the m historical years from the multiple historical records Historical records; acquiring the current date, and determining m time periods according to the current date; extracting historical data corresponding to each of the m historical records and the m time periods;
    将所述历史数据上传至区块链中。Upload the historical data to the blockchain.
  19. 根据权利要求16所述的计算机可读存储介质,其中,所述程序指令被处理器执行时,还用于实现以下步骤:The computer-readable storage medium according to claim 16, wherein, when the program instructions are executed by the processor, they are further used to implement the following steps:
    获取预设曲线权值β,其中,0<β<1;Obtain the preset curve weight β, where 0<β<1;
    从所述当前数据中确定k个时间点和每个时间点的病例数,其中,k为大于0的整数;Determine k time points and the number of cases at each time point from the current data, where k is an integer greater than 0;
    针对所述k个时间点中每个时间点执行以下操作:获取第t个时间点以及所述第t个时间点对应的病例数M t,其中,0<t≤k,将所述曲线权值β以及所述病例数M t作为预设的曲线值计算公式的输入,得到所述第t个时间点对应的当前曲线值EWMA t,所述曲线值计算公式包括: Perform the following operations for each of the k time points: obtain the t-th time point and the number of cases M t corresponding to the t-th time point, where 0<t≤k, weight the curve The value β and the number of cases M t are used as the input of the preset curve value calculation formula to obtain the current curve value EWMA t corresponding to the t-th time point, and the curve value calculation formula includes:
    EWMA t=β*M t+(1-β)*EWMA t-1EWMA t = β*M t +(1-β)*EWMA t-1 ;
    得到k个当前曲线值EWMA t,基于所述k个当前曲线值EWMA t生成所述当前曲线EWMA。 Obtain k current curve values EWMA t , and generate the current curve EWMA based on the k current curve values EWMA t.
  20. 根据权利要求16所述的计算机可读存储介质,其中,所述程序指令被处理器执行时,还用于实现以下步骤:The computer-readable storage medium according to claim 16, wherein, when the program instructions are executed by the processor, they are further used to implement the following steps:
    基于所述第一基线值P 1、所述第二基线值P 2、所述第三基线值P 3和所述当前曲线EWMA确定第一阈值曲线Y 1、第二阈值曲线Y 2和第三阈值曲线Y 3Based on the first baseline value P 1 , the second baseline value P 2 , the third baseline value P 3 and the current curve EWMA determine the first threshold curve Y 1 , the second threshold curve Y 2 and the third Threshold curve Y 3 ;
    获取所述分级模型,将第一阈值曲线Y 1、所述第二阈值曲线Y 2和所述第三阈值曲线Y 3作为更新参数对所述数据分级模型进行更新,得到所述数据分级模型。 The grading model is acquired, and the data grading model is updated by using the first threshold curve Y 1 , the second threshold curve Y 2 and the third threshold curve Y 3 as update parameters to obtain the data grading model.
PCT/CN2020/099482 2020-05-26 2020-06-30 Data processing method, apparatus, electronic device, and readable storage medium WO2021114631A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010454292.1A CN111696682A (en) 2020-05-26 2020-05-26 Data processing method and device, electronic equipment and readable storage medium
CN202010454292.1 2020-05-26

Publications (1)

Publication Number Publication Date
WO2021114631A1 true WO2021114631A1 (en) 2021-06-17

Family

ID=72478340

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099482 WO2021114631A1 (en) 2020-05-26 2020-06-30 Data processing method, apparatus, electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN111696682A (en)
WO (1) WO2021114631A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113380423A (en) * 2021-05-24 2021-09-10 首都医科大学 Epidemic situation scale prediction method, device, electronic equipment and storage medium
CN116502277B (en) * 2023-06-30 2024-03-26 中科乐约健康科技(深圳)有限公司 Medical data safety processing method, system and device based on blockchain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120173468A1 (en) * 2010-12-30 2012-07-05 Microsoft Corporation Medical data prediction method using genetic algorithms
US20160070879A1 (en) * 2014-09-09 2016-03-10 Lockheed Martin Corporation Method and apparatus for disease detection
CN106951984A (en) * 2017-02-28 2017-07-14 深圳市华傲数据技术有限公司 A kind of dynamic analyzing and predicting method of system health degree and device
CN108427698A (en) * 2017-08-29 2018-08-21 平安科技(深圳)有限公司 Updating device, method and the computer readable storage medium of prediction model
CN108597617A (en) * 2018-04-11 2018-09-28 平安科技(深圳)有限公司 Epidemic disease grade predicting method and device, computer installation and readable storage medium storing program for executing
CN108718303A (en) * 2018-05-09 2018-10-30 北京仁和诚信科技有限公司 Safe operation management method and system
CN110047593A (en) * 2019-04-12 2019-07-23 平安科技(深圳)有限公司 Disease popularity season grade determination method, apparatus, equipment and readable storage medium storing program for executing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120173468A1 (en) * 2010-12-30 2012-07-05 Microsoft Corporation Medical data prediction method using genetic algorithms
US20160070879A1 (en) * 2014-09-09 2016-03-10 Lockheed Martin Corporation Method and apparatus for disease detection
CN106951984A (en) * 2017-02-28 2017-07-14 深圳市华傲数据技术有限公司 A kind of dynamic analyzing and predicting method of system health degree and device
CN108427698A (en) * 2017-08-29 2018-08-21 平安科技(深圳)有限公司 Updating device, method and the computer readable storage medium of prediction model
CN108597617A (en) * 2018-04-11 2018-09-28 平安科技(深圳)有限公司 Epidemic disease grade predicting method and device, computer installation and readable storage medium storing program for executing
CN108718303A (en) * 2018-05-09 2018-10-30 北京仁和诚信科技有限公司 Safe operation management method and system
CN110047593A (en) * 2019-04-12 2019-07-23 平安科技(深圳)有限公司 Disease popularity season grade determination method, apparatus, equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN111696682A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN105468742B (en) The recognition methods of malice order and device
CN104680250B (en) A kind of position prediction system
WO2021114631A1 (en) Data processing method, apparatus, electronic device, and readable storage medium
WO2021031825A1 (en) Network fraud identification method and device, computer device, and storage medium
CN112148987A (en) Message pushing method based on target object activity and related equipment
CN108280115A (en) Identify the method and device of customer relationship
US10333964B1 (en) Fake account identification
CN112508118B (en) Target object behavior prediction method aiming at data offset and related equipment thereof
WO2019227716A1 (en) Method for generating influenza prediction model, apparatus, and computer readable storage medium
US20220139061A1 (en) Model training method and apparatus, keypoint positioning method and apparatus, device and medium
WO2019075972A1 (en) Method and apparatus for generating no claims based discount data
CN109858282B (en) Social network relationship data privacy protection method and system
CN106803092B (en) Method and device for determining standard problem data
CN112182118A (en) Target object prediction method based on multiple data sources and related equipment thereof
CN113627361B (en) Training method and device for face recognition model and computer program product
CN114496195A (en) Medical resource scheduling method based on knowledge graph and related equipment thereof
CN102982011B (en) A kind of method and apparatus for recognizing out-of-sequence text
CN110247805A (en) A kind of method and device for propagating key node based on the identification that K shell decomposes
CN108898172A (en) A kind of fire-fighting grid update method, device and equipment
CN106528141A (en) Task sweep-out method and system
CN109360626B (en) Method and device for establishing personalized prescription rule base, electronic equipment and storage medium
CN115099875A (en) Data classification method based on decision tree model and related equipment
CN103455525B (en) The method and apparatus of popularization account number state is determined based on the search popularization behavior of user
CN110275880A (en) Data analysing method, device, server and readable storage medium storing program for executing
WO2019091101A1 (en) Salary calculation method, application server and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20898688

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20898688

Country of ref document: EP

Kind code of ref document: A1