Data sample acquisition method, electronic device and storage medium
In the data sample acquisition method, based on the preset data set and the data volume of the set query fields, keywords, data output terminals and time periods, the weight calculation method is used to obtain the samples, which solves the problem of low data quality and representativeness in the existing technology. solve the problem of insufficient data and improve the effect of data analysis.
Patent Information
- Application Number
- CN202410123488.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-01-29
AI Technical Summary
When building a sample database in the existing technology, artificial random extraction of data results in low data quality and lack of global representativeness, which affects the analysis effect.
By obtaining the initial data set based on the preset data set, determining the number of data samples based on the set query fields and keywords, and combining the data volume at the data output end and time period, a weight calculation method is used to obtain globally representative data samples.
It improves the accuracy and global representativeness of data samples and ensures the quality of data analysis.
Smart Images

Figure CN117954111B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a data sample acquisition method, electronic equipment and storage medium. Background Art
[0002] In some application scenarios, it is necessary to obtain relevant sample data in advance according to business needs to build a sample database for business analysis. For example, for research purposes, doctors will obtain a set amount of data from a large number of medical record data sets with a certain disease to build a corresponding disease database. The main method for building a sample database is to randomly extract some data from the full data set to build a sample database. This construction method may result in low quality of the acquired data and lack of global representativeness, thus affecting the analysis effect. Summary of the invention
[0003] In view of the above technical problems, the technical solution adopted by the present invention is:
[0004] An embodiment of the present invention provides a method for obtaining a data sample, the method comprising:
[0005] S100, obtaining an initial data set DC based on a preset data set = {DC1, DC2, ..., DC i , ..., DC n}; wherein the data in the preset data set is data obtained based on the specified data query condition; DC i is the data obtained from the preset data set based on the i-th set query field, DC i It includes f(i) pieces of data, where i ranges from 1 to m, and m is the number of query fields.
[0006] S200, if f(i)>a, execute S300; otherwise, DC i as the data sample corresponding to the i-th set query field; a is the set quantity threshold.
[0007] S300, DC-based i The keyword corresponding to the i-th set query field obtains the corresponding data quantity set B i = {B i1 , B i2 , ..., B ij , ..., B ig(i)}, where B ij For the jth keyword corresponding to the i-th set query field from DC i The value of j ranges from 1 to g(i), where g(i) is the number of keywords corresponding to the i-th set query field.
[0008] S400, based on Bi Determine the number of data samples P corresponding to the i-th set query field i .
[0009] S500, based on P i and DC i The number of data corresponding to the corresponding data output end is obtained, and the number of data samples required to be obtained from the data corresponding to each data output end is used as the target number of data samples for the corresponding data output end.
[0010] S600, from DC i The number of data belonging to any set time period is obtained from the data corresponding to each corresponding data output terminal, and the number of data samples to be obtained from the number of data in any set time period is determined based on the number of data obtained in any set time period and the target number of data samples at the corresponding data output terminal, as the target number of data samples corresponding to the corresponding set time period.
[0011] S700, based on the target data sample quantity corresponding to any set time period, obtain the corresponding quantity of data from the corresponding data output terminal, and obtain DC i Corresponding data samples for each data output terminal.
[0012] S800, DC i The data samples of all corresponding data output terminals are used as the data samples corresponding to the i-th set query field.
[0013] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned method.
[0014] An embodiment of the present invention further provides an electronic device, including a processor and the aforementioned non-transitory computer-readable storage medium.
[0015] The present invention has at least the following beneficial effects:
[0016] The data sample acquisition method provided by the embodiment of the present invention first determines the number of data samples that need to be acquired for each set field based on the number of data corresponding to each set field, then determines the number of data samples that need to be acquired for each data output terminal based on the number of data corresponding to the data output terminal corresponding to each set field, then determines the number of data samples that need to be acquired for each set time period based on the number of time period data corresponding to each data output terminal, and finally, acquires the corresponding data as data samples based on the number of data samples that need to be acquired for each set time period, thereby making the acquired data samples for each set field more accurate and more globally representative.
[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 A flow chart of a data sample acquisition method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0021] An embodiment of the present invention provides a data sample acquisition method, which aims to acquire globally representative data samples from a corresponding data set.
[0022] Furthermore, if Figure 1 As shown, the data sample acquisition method provided by the embodiment of the present invention may include the following steps:
[0023] S100, obtaining an initial data set DC based on a preset data set = {DC1, DC2, ..., DC i , ..., DC n}; wherein the data in the preset data set is data obtained based on the specified data query condition; DC i is the data obtained from the preset data set based on the i-th set query field, DC i It includes f(i) pieces of data, where i ranges from 1 to m, and m is the number of query fields.
[0024] The data in the preset data set all come from the same data holder. In an illustrative embodiment of the present invention, the data may be medical data, and of course may also be other data. Those skilled in the art know that medical data may be all medical data generated in a hospital, for example, it may include medical records such as admission records, discharge records, surgical records, etc., examination result data, diagnostic reports (including imaging examination diagnostic reports, ultrasound diagnostic reports, etc.), electrocardiogram reports, pathological examination reports, etc. In the case where the data is medical data, the data holder may be a hospital, a third-party medical institution, etc.
[0025] In the embodiment of the present invention, the specified query condition can be set based on actual needs. When the data is medical data, the specified query condition can be a disease category. The query field setting can be set based on actual needs. When the data is medical data, the query field setting can be an information item in the medical record, diagnosis report, etc., for example, it can include current medical history, past medical history, family history, examination items, ultrasound prompts, etc.
[0026] When obtaining data corresponding to each set query field, the set query field can be searched in the preset data set with a search term to obtain the data.
[0027] S200, if f(i)>a, execute S300; otherwise, it means that the amount of data corresponding to the query field is small, and DC i as the data sample corresponding to the i-th set query field; a is the set quantity threshold.
[0028] In the embodiment of the present invention, a can be set based on actual needs, for example, a=200, etc.
[0029] S300, DC-based i The keyword corresponding to the i-th set query field obtains the corresponding data quantity set B i = {B i1 , B i2 , ..., B ij , ..., B ig(i)}, where B ij For the jth keyword corresponding to the i-th set query field from DC i The value of j ranges from 1 to g(i), where g(i) is the number of keywords corresponding to the i-th set query field.
[0030] In an embodiment of the present invention, the keywords of the query field are set to words used to describe the characteristics of the query field. For example, when the query field is set to past medical history, the corresponding keywords may be "smoking, drinking, underlying disease", etc.; when the query field is set to ultrasound prompts, the corresponding keywords may be "plaque, thickening, swelling, metastasis, effusion, space-occupying, nodule, blood flow, edge, echo, tumor, cancer", etc.
[0031] When obtaining the data corresponding to each keyword, the keyword can be used as a search term to search for the data corresponding to the corresponding query field.
[0032] S400, based on B i Determine the number of data samples P corresponding to the i-th set query field i .
[0033] Furthermore, S400 may specifically include:
[0034] S401, based on B i , get the discrete degree C corresponding to the i-th set query field i .
[0035] In the embodiment of the present invention, if j=1, that is, there is only one keyword, the corresponding discrete degree can be calculated based on the data belonging to the keyword and the data not belonging to the keyword. Specifically, C i =|B i1 -(f(i) / 2)|. If j>1, C i =((∑ g(i) j=1 (B ij -AvgB) 2 ) / g(i)) 1 / 2 , AvgB i For B i The average value, AvgB i =(1 / g(i))∑ g(i) j=1 B ij .
[0036] S402, obtain P i =z 2 ×C 2 i / d 2 ; Where z is the z score corresponding to the set confidence level, and d is the set expected error.
[0037] In the embodiment of the present invention, the confidence level can be set based on actual needs, and generally, can be 95%. It is known to those skilled in the art that, given a confidence level, the corresponding z score can be obtained by querying the z score table of the normal distribution, for example, for a confidence level of 95%, the corresponding z score is usually 1.96.
[0038] In the embodiment of the present invention, the expected error is set as the maximum allowable error between the parameter to be estimated and the true overall parameter, which can be set based on actual needs. In an illustrative embodiment, it can be 3% to 8%, preferably 3%.
[0039] Through S402, a relatively accurate number of data samples can be obtained.
[0040] S500, based on P i and DC i The number of data corresponding to the corresponding data output end is obtained, and the number of data samples required to be obtained from the data corresponding to each data output end is used as the target number of data samples for the corresponding data output end.
[0041] Furthermore, S500 may specifically include:
[0042] S501, DC-based i , get the output data quantity set Ep i = {Ep i1 , Ep i2 ,……,Ep ir ,……,Ep y(t)}, Ep ir For DC i The number of data outputted from the rth data output terminal, r ranges from 1 to y(t), y(t) is DC i The number of corresponding data output terminals.
[0043] In the embodiment of the present invention, the data output end is an end for outputting data. When the data is medical data, the data output end may be a department, such as orthopedics, ultrasound, cardiovascular department, etc.
[0044] S502, obtaining the number of data samples ES corresponding to the rth data output terminal ir =P i ×Ep ir / f(i).
[0045] In the embodiment of the present invention, if Ep ir <ES0 or ES ir <ES0, then set ES ir =Ep irES0 is a threshold value for setting the number of data output terminals. In this way, the amount of data at each data output terminal can be ensured to be as balanced as possible. ES0 can be set based on actual needs.
[0046] S600, from DC i The number of data belonging to any set time period is obtained from the data corresponding to each corresponding data output terminal, and the number of data samples to be obtained from the number of data in any set time period is determined based on the number of data obtained in any set time period and the target number of data samples at the corresponding data output terminal, as the target number of data samples corresponding to the corresponding set time period.
[0047] Furthermore, S600 may specifically include:
[0048] S601, based on the data corresponding to the rth data output terminal, obtain the corresponding time period data quantity set Tp ir ={Tp 1 ir , Tp 2 ir , ..., Tp s ir , ..., Tp u ir}, Tp s i r is the number of data belonging to the sth set time period in the data corresponding to the rth data output terminal, the value of s is 1 to u, and u is the number of set time periods.
[0049] In the embodiment of the present invention, the duration of the set time period can be set based on actual needs, for example, it can be 1 year or 1 month, or several months. The number of set time periods can also be set based on actual needs, and the present invention does not make any special restrictions.
[0050] S602, obtaining the weight W corresponding to the s-th set time period corresponding to the r-th data output terminal s ir =(1 / (Tp s i r ×ES ir )) / ∑ u s=1 1 / (Tp s i r ×ES ir ).
[0051] S603, obtaining the number of data samples TS corresponding to the s-th set time period corresponding to the r-th data output terminal s ir =Ws ir ×ES ir .
[0052] The technical effect of S601 to S603 is that the weights calculated by the weight calculation method can balance the data distribution between different time periods, ensuring that each time period has appropriate importance and representativeness in sample selection.
[0053] S700, based on the target data sample quantity corresponding to any set time period, obtain the corresponding quantity of data from the corresponding data output terminal, and obtain DC i Corresponding data samples for each data output terminal.
[0054] Based on the number of target data samples corresponding to any set time period, the corresponding number of data can be obtained from the corresponding data output terminal by random sampling. In this way, DC i The corresponding data sample data of each data output terminal.
[0055] S800, DC i The data samples of all corresponding data output terminals are used as the data samples corresponding to the i-th set query field.
[0056] Furthermore, in another embodiment of the present invention, after S600, the following steps are also included:
[0057] S610, from DC i The number of data belonging to each output user corresponding to each data output terminal is obtained from the data of any set time period corresponding to the corresponding data output terminal, and the number of data samples to be obtained from the data of the corresponding output user is determined based on the obtained number of data of each output user and the target number of data samples corresponding to the corresponding set time period, as the target number of data samples for the corresponding output user.
[0058] Further, S610 may specifically include:
[0059] S61,1, the data corresponding to the s-th set time period corresponding to the r-th data output terminal, obtain the corresponding output user data quantity set Up s ir = {Up s1 ir , Up s2 ir ,……,Up se ir ,……,Up sh(r,s) ir}, Up se iris the number of data belonging to the e-th output user in the data corresponding to the s-th set time period corresponding to the r-th data output terminal, the value of e is 1 to h(r, s), and h(r, s) is the number of output users corresponding to the s-th set time period corresponding to the r-th data output terminal.
[0060] In the embodiment of the present invention, the output user is the user who actually outputs the data. In the case where the data is medical data, the output user may be a doctor.
[0061] S6102, obtain the weight W corresponding to the e-th output user se ir =(1 / (Up se ir ×Tp s ir )) / ∑ u s=1 1 / (Up se ir ×Tp s ir ).
[0062] S6103, obtaining the number of data samples TS corresponding to the e-th output user se ir =W se ir ×Tp s ir .
[0063] S700 is replaced by:
[0064] S710, based on the target data sample quantity of any output user, obtain a corresponding amount of data from the data corresponding to the corresponding set time period to obtain DC i Corresponding data samples for each data output terminal.
[0065] Compared with the previous embodiments, this embodiment also considers the output user as a label for selecting data samples, so that the acquired data samples are more accurate and more globally representative.
[0066] Another embodiment of the present invention provides a data sample acquisition method, which is substantially similar to the method provided in the above embodiment, except that S600 and S700 are replaced by the following steps:
[0067] S620, from DC iThe number of data belonging to any set time period is obtained from the data corresponding to each corresponding data output terminal, and the number of data samples that need to be obtained from the number of data in any set time period is determined based on the number of data obtained in any set time period and the corresponding number of first data samples, as the target number of data samples corresponding to the corresponding set time period.
[0068] S630, based on the target data sample quantity corresponding to any set time period, obtaining a corresponding quantity of data from the data corresponding to the corresponding data output terminal as a first data sample;
[0069] S640, from DC i The first data sample is deleted from the data corresponding to each corresponding data output terminal to obtain the corrected data, and the data quantity of each output user corresponding to the data output terminal is obtained from the corrected data, and based on the obtained data quantity of each output user and the corresponding second data sample quantity, the data sample quantity to be obtained from the data quantity of the corresponding output user is determined as the target data sample quantity of the corresponding output user.
[0070] In an embodiment of the present invention, the sum of the first data sample number and the second data sample number is equal to the target data sample number of the data output terminal. In an exemplary embodiment, the first data sample number is equal to the second data sample number, but it is not limited thereto and can also be set to different values according to actual needs.
[0071] S650: Based on the target data sample quantity of any output user, obtain a corresponding quantity of data from the corrected data corresponding to the corresponding data output terminal as a second data sample;
[0072] S660, DC i The corresponding union of the first data sample and the second data sample is taken as DC i Corresponding data samples for each data output terminal.
[0073] Compared with the above-mentioned embodiments, the method provided in this embodiment considers both the time period and the output user as labels for selecting data samples, thereby making the acquired data samples more accurate and more globally representative.
[0074] According to an embodiment of the present invention, the present invention also provides an electronic device, a readable storage medium and a computer program product.
[0075] In an exemplary embodiment, an electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the above embodiments.
[0076] In an exemplary embodiment, the readable storage medium may be a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to the above embodiments.
[0077] In an exemplary embodiment, a computer program product includes a computer program, and when the computer program is executed by a processor, the method according to the above embodiments is implemented.
[0078] Electronic devices are intended to represent various forms of user terminals, various forms of digital computers, such as desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the inventions described and / or claimed herein.
[0079] In an illustrative embodiment, the electronic device may include a computing unit that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device may also be stored. The computing unit and the RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0080] Furthermore, multiple components in an electronic device are connected to the I / O interface, including: input units, such as keyboards, mice, etc.; output units, such as various types of displays, speakers, etc.; storage units, such as disks, optical disks, etc.; and communication units, such as network cards, modems, wireless communication transceivers, etc. The communication unit allows the device to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunication networks.
[0081] The computing unit may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of computing units include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit performs the various methods and processes described above, such as data sample acquisition methods. For example, in some embodiments, the data sample acquisition method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on the device via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by the computing unit, one or more steps of the data sample acquisition method described above may be performed. Alternatively, in other embodiments, the computing unit may be configured to perform the data sample acquisition method by any other appropriate means (e.g., by means of firmware).
[0082] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0084] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0087] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
[0089] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data sample acquisition method, characterized in that: The method comprises: S100, obtaining an initial data set DC={DC1, DC2, ..., DC i , ..., DC n }; wherein the data in the preset data set is data obtained based on the specified data query condition; DC i is the data obtained from the preset data set based on the i-th set query field, DC i It includes f(i) pieces of data, i ranges from 1 to m, and m is the number of query fields set; S200, if f(i)>a, execute S300; otherwise, DC i as the data sample corresponding to the i-th set query field; a is the set quantity threshold; S300, DC-based i The keyword corresponding to the i-th set query field obtains the corresponding data quantity set B i ={B i1 , B i2 , ..., B ij , ..., B ig(i) }, where B ij For the jth keyword corresponding to the i-th set query field from DC i The number of data obtained in , j ranges from 1 to g(i), g(i) is the number of keywords corresponding to the i-th set query field; S400, based on B i Determine the number of data samples P corresponding to the i-th set query field i ; S500, based on P i and DC i The number of data corresponding to the corresponding data output terminal is obtained, and the number of data samples required to be obtained from the data corresponding to each data output terminal is obtained as the target number of data samples for the corresponding data output terminal; S600, from DC i The number of data belonging to any set time period is obtained from the data corresponding to each corresponding data output terminal, and the number of data samples to be obtained from the number of data in any set time period is determined based on the number of data obtained in any set time period and the target number of data samples at the corresponding data output terminal, as the target number of data samples corresponding to the corresponding set time period; S610, from DC i Acquire the data quantity of each output user corresponding to the data output terminal from the data of any set time period corresponding to each corresponding data output terminal, and determine the number of data samples to be acquired from the data quantity of the corresponding output user based on the acquired data quantity of each output user and the target data sample quantity corresponding to the set time period, as the target data sample quantity of the corresponding output user; S710, based on the target data sample quantity of any output user, obtain a corresponding amount of data from the data corresponding to the corresponding set time period to obtain DC i The corresponding data samples of each data output terminal; S800, DC i The data samples of all corresponding data output terminals are used as the data samples corresponding to the i-th set query field.
2. The method according to claim 1, characterized in that S400 specifically includes: S401, based on B i , get the discrete degree C corresponding to the i-th set query field i , where if j=1, C i =|B i1 -(f(i) / 2)|, if j>1, C i =((∑ g(i) j=1 (B ij -AvgB i ) 2 ) / g(i) 1 / 2 , AvgB i =(1 / g(i))∑ g(i) j=1 B ij ; S402, obtain P i =z 2 ×C 2 i / d 2 ; Where z is the z score corresponding to the set confidence level, and d is the set expected error.
3. The method according to claim 1, characterized in that S500 specifically includes: S501, DC-based i , get the output data quantity set Ep i ={Ep i1 , Ep i2 ,……,Ep ir ,……,Ep y(i) }, Ep ir For DC i The number of data output from the rth data output terminal, r ranges from 1 to y(i), y(i) is DC i The number of corresponding data output terminals; S502, obtaining the number of data samples ES corresponding to the rth data output terminal ir =P i ×Ep ir / f(i).
4. The method according to claim 1, characterized in that S600 specifically includes: S601, based on the data corresponding to the rth data output terminal, obtain the corresponding time period data quantity set Tp ir ={Tp 1 ir , Tp 2 ir , ..., Tp s ir , ..., Tp u ir }, Tp s i r is the number of data belonging to the sth set time period in the data corresponding to the rth data output terminal, the value of s ranges from 1 to u, and u is the number of set time periods; S602, obtaining the weight W corresponding to the s-th set time period corresponding to the r-th data output terminal s ir =(1 / (Tp s ir ×ES ir )) / ∑ u s=1 1 / (Tp s i r ×ES ir ); S603, obtaining the number of data samples TS corresponding to the s-th set time period corresponding to the r-th data output terminal s ir =W s ir ×ES ir .
5. The method according to claim 1, characterized in that S610 specifically includes: S6101, the data corresponding to the s-th set time period corresponding to the r-th data output terminal, obtain the corresponding output user data quantity set Up s ir ={Up s1 ir , Up s2 ir ,……,Up se ir ,……,Up sh(r,s) ir }, Up se ir is the number of data belonging to the e-th output user in the data corresponding to the s-th set time period corresponding to the r-th data output terminal, where the value of e ranges from 1 to h(r, s), and h(r, s) is the number of output users corresponding to the s-th set time period corresponding to the r-th data output terminal; S6102, obtain the weight W corresponding to the e-th output user se ir =(1 / (Up se ir ×Tp s ir )) / ∑ u s=1 1 / (Up se ir ×Tp s ir ); S6103, obtaining the number of data samples TS corresponding to the e-th output user se ir =W se ir ×Tp s ir .
6. The method according to claim 3, characterized in that If ES ir <ES0, then set ES ir =Ep ir , ES0 is used to set the data output terminal quantity threshold.
7. The method according to claim 1, characterized in that The data is medical data.
8. An electronic device, characterized in that: including a processor and a memory; The processor is used to execute the steps of the method according to any one of claims 1 to 7 by calling the program or instruction stored in the memory.
9. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 7.
