WO2022142685A1 - Infection probability prediction method and apparatus for infectious disease, storage medium and electronic device - Google Patents

Infection probability prediction method and apparatus for infectious disease, storage medium and electronic device Download PDF

Info

Publication number
WO2022142685A1
WO2022142685A1 PCT/CN2021/127548 CN2021127548W WO2022142685A1 WO 2022142685 A1 WO2022142685 A1 WO 2022142685A1 CN 2021127548 W CN2021127548 W CN 2021127548W WO 2022142685 A1 WO2022142685 A1 WO 2022142685A1
Authority
WO
WIPO (PCT)
Prior art keywords
predicted
infectious disease
device identification
probability
target device
Prior art date
Application number
PCT/CN2021/127548
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 WO2022142685A1 publication Critical patent/WO2022142685A1/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
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S11/00Systems for determining distance or velocity not using reflection or reradiation
    • G01S11/02Systems for determining distance or velocity not using reflection or reradiation using radio waves
    • G01S11/06Systems for determining distance or velocity not using reflection or reradiation using radio waves using intensity measurements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • G06F16/24575Query processing with adaptation to user needs using context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Definitions

  • the embodiments of the present disclosure relate to the technical field of big data processing, and in particular, to a method for predicting the probability of infection of an infectious disease, an apparatus for predicting the probability of infection of an infectious disease, a computer-readable storage medium, and an electronic device.
  • a method for predicting the probability of contagion of an infectious disease comprising:
  • the infection probability of the infectious disease patient to the object to be predicted is determined.
  • an infectious disease probability prediction device comprising:
  • an acquisition module configured to acquire the target device identification of the infectious disease patient, and obtain the to-be-predicted device identification associated with the target device identification from a preset database according to the target device identification and a preset time period;
  • the first calculation module is used to determine the contact time between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier according to the number of associations between the target device identifier and the to-be-predicted device identifier ;
  • the second calculation module is configured to determine the relationship between the infectious disease patient and the The contact distance between the objects to be predicted;
  • An infection probability prediction module configured to determine the infection probability of the infectious disease patient to the to-be-predicted object according to the contact duration and contact distance.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the above-mentioned methods for predicting the infection probability of an infectious disease.
  • an electronic device comprising:
  • a memory for storing executable instructions for the processor
  • the processor is configured to execute any one of the above-mentioned methods for predicting the probability of contagion of an infectious disease by executing the executable instructions.
  • FIG. 1 schematically shows a flowchart of a method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
  • FIG. 2 schematically shows a block diagram of an infectious disease probability prediction system according to an exemplary embodiment of the present disclosure.
  • FIG. 3 schematically shows a method of obtaining, according to an exemplary embodiment of the present disclosure, an identifier of a device to be predicted that has an associated relationship with the identifier of the target device from a preset database according to the identifier of the target device and a preset time period.
  • FIG. 4 schematically shows a method for determining the infectious disease patient and the to-be-predicted corresponding to the to-be-predicted device identifier according to the number of associations between the target device identifier and the to-be-predicted device identifier according to an exemplary embodiment of the present disclosure.
  • FIG. 5 schematically shows a flowchart of another method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
  • FIG. 6 schematically shows a block diagram of an apparatus for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
  • FIG. 7 schematically shows an electronic device for implementing the above-mentioned method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • This exemplary embodiment first provides a method for predicting the probability of contagion of an infectious disease, and the method can run on a server, a server cluster, or a cloud server, etc.; of course, those skilled in the art can also run the method of the present disclosure on other platforms as required , which is not specially limited in this exemplary embodiment.
  • the method for predicting the probability of contagion of an infectious disease may include the following steps:
  • Step S110 Obtain the target device identification of the infectious disease patient, and obtain the to-be-predicted device identification that is associated with the target device identification from a preset database according to the target device identification and a preset time period;
  • Step S120 Determine the contact duration between the infectious disease patient and the object to be predicted corresponding to the device identifier to be predicted according to the number of associations between the target device identifier and the device identifier to be predicted;
  • Step S130 According to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, determine the relationship between the infectious disease patient and the object to be predicted. contact distance between
  • Step S140 According to the contact duration and contact distance, determine the infection probability of the infectious disease patient to the object to be predicted.
  • the target device identification of the infectious disease patient by obtaining the target device identification of the infectious disease patient, and according to the target device identification and the preset time period, obtain from the preset database the identification of the target device associated with the target device identification.
  • the identification of the device to be predicted; further, other groups of people who may have released the diagnosed patient can be obtained according to the identification of the device to be predicted, which solves the problem of tracking efficiency caused by the inability to timely confirm other groups of people who may have released the confirmed patient in the prior art.
  • the current signal strength between the second wireless communication devices is determined to determine the contact distance between the infectious disease patient and the object to be predicted; finally, according to the contact duration and contact distance, the infection probability of the infectious disease patient to the predicted object is determined, which solves the problem of existing Due to the inability to scientifically analyze the infection probability of other groups of people who may have been in contact with the confirmed patient in the technology, the accuracy of the infection probability is lower, and the accuracy of the infection probability is improved.
  • BLE Bluetooth Low Energy
  • Universal Unique Identifier which is a service distinguishing code used in Bluetooth broadcasting, with a length of 16 bits, generally expressed as 4 hexadecimal characters, such as "FE35".
  • Close Contact Abbreviation for close contact. There may be different definitions for close contact in different scenarios. For example, a person who has a history of contact with a confirmed patient within 2 meters and for 15 minutes or more during life, work and other activities during the infection period. close contacts, or close contacts.
  • API Application Programming Interface
  • RSSI Received Signal Strength Indication
  • Received Signal Strength Indication Received Signal Strength Indication. This value is generally used in Bluetooth development to approximate the distance between devices.
  • ElasticSearch A search engine based on the Lucene library. It provides a distributed, multi-tenant-enabled full-text search engine with an HTTP web interface and schemaless JSON documents.
  • the implementation of the exemplary embodiments of the present disclosure relies on the low-power bluetooth module that comes with the mobile phone.
  • the low-power Bluetooth module built in the mobile phone to automatically and closely track the crowd, and has the characteristics of automatic tracking without perception, high coverage, and almost no labor cost input. Health regulators can quickly locate relevant contacts.
  • the infectious disease probability prediction system may include a terminal device 210 and a server 220 , and the terminal device 210 is connected to the server 220 via a network.
  • the server includes a Bluetooth close connection library (preset database) 221 , a service information library 222 and an analysis system 223 .
  • the terminal device 210 is provided with an application program (App), which is responsible for collecting and reporting Bluetooth close connection data, the database is responsible for receiving and storing the Bluetooth close connection data uploaded by the terminal device, and the analysis system is responsible for data query and analysis, and output infection probability.
  • App application program
  • the database is responsible for receiving and storing the Bluetooth close connection data uploaded by the terminal device
  • the analysis system is responsible for data query and analysis, and output infection probability. The following are explained one by one:
  • the App set in the terminal device is the core part of collecting and reporting Bluetooth close data.
  • the mainstream smartphone iOS and Android systems on the market provide a complete Bluetooth Low Energy (BLE) API. in:
  • BLE API can include broadcast side and scan side.
  • the mobile phone acts as both the broadcast terminal and the scanning terminal.
  • the user 230 needs to install an App on the terminal device to manage the Bluetooth close tracking function, including starting and stopping the Bluetooth close tracking function, authorizing the Bluetooth function, and reminding the occurrence of close contact events.
  • BID Bluetooth ID
  • the Bluetooth MAC address of a personal mobile phone belongs to the private data of the device, mainstream mobile operating systems, such as iOS and Android, generally do not provide APIs to directly obtain the Bluetooth MAC address of the mobile phone (the one that can be obtained is also a dynamically changing virtual address)
  • the mobile phone Bluetooth MAC address is not suitable for use as a unique BID.
  • the BID can be generated through an algorithm using the user's information. For example, jointly use the user's ID number, name, birthday and random number to perform SHA-256 calculation and cropping.
  • other algorithms that can support hash value calculation can also be used to calculate the user's ID number, name, The birthday and random number are calculated, and then the calculated hash value is cut to generate a BID, which is not limited in this example.
  • the BID is broadcasted by BLE on the broadcast side.
  • a specific Service UUID is specified, which is used to indicate that the BID is included in the broadcast.
  • it is also possible to rewrite the Bluetooth broadcast name in the broadcast name with a specific naming rule, and write the BID into it (for example, rewrite the broadcast Bluetooth name to BID 1234567890123456).
  • the mobile phone starts BLE scanning, and brings in a specific Service UUID for filtering (filtering out broadcasts that do not contain BID information).
  • the terminal device can upload the data to the database for storage. It should be added that, because the current smart phones on the market generally have a power-saving design, after the mobile app enters the background, the program operation will be suspended, resulting in the scanning cannot be performed normally. When developing an app, additional processing should be done in the background mode to ensure that the scanning process and uploading process can still run normally after the app returns to the background.
  • the database it is mainly responsible for the reception and storage of Bluetooth close data.
  • the communication protocols of the App in the server and terminal devices can be based on various protocols, but the data must be encrypted and transmitted during the transmission process (the specific encryption algorithm can be asymmetric encryption, or other encryption algorithms can be used. This does not make special restrictions) to prevent privacy data leakage.
  • the Bluetooth data needs to be separately stored in a preset database (ie, the Bluetooth close connection library), which is used to distinguish different authorizations from ordinary service data, which is stored in the service information database.
  • the Bluetooth close connection library ie, the Bluetooth close connection library
  • the BID that Bluetooth contact relies on is calculated through an algorithm, its business meaning cannot be directly obtained from the BID itself. Therefore, it is impossible to obtain the contact information of a specific person based on the BID alone, which also guarantees the user's privacy data. will not leak.
  • the Bluetooth close connection app is generally promoted in a region or even a country, and in order to ensure the accuracy rate, it will generally be forced to be promoted by the government health department, and the installation rate and usage rate will be very high.
  • a large amount of Bluetooth connection information is generated every day, and the concurrent request processing capability and data storage capability of the server need to be carefully designed. Therefore, the database needs to be deployed on the cloud platform to support dynamic expansion, and a simulated stress test should be done before going online.
  • Data storage needs to be divided into query data for online use and raw data. The query data is used by the analysis system for query and analysis, and the raw data is permanently retained on the big data platform for backup.
  • the analysis system can implement the method for predicting the probability of contagion of infectious diseases described in the exemplary embodiment of the present disclosure.
  • the analysis system is real-time interactive, requiring fast response of data analysis results, which can be built based on the search framework of ElasticSearch.
  • steps S110 to S140 will be explained and described with reference to FIG. 2 .
  • step S110 the target device identifier of the infectious disease patient is acquired, and according to the target device identifier and a preset time period, the device identifier to be predicted that is associated with the target device identifier is acquired from a preset database.
  • the target device identification is explained and explained. Based on the content recorded above, it can be known that the target device identifier is obtained by the terminal device in the following manner: first, perform a hash operation on the attribute information of the infectious disease patient to obtain a hash value; The hash value is trimmed to obtain a hash value with a preset length, and the hash value with the preset length is used as the target device identifier. Specifically, first, the attribute information (ID number, name, birthday, etc., of course, mobile phone number and other information) of infectious disease patients (users) can be hashed to obtain the hash value. The hash value can be obtained through the SHA-256 algorithm or other algorithms.
  • the attribute information can also be obtained based on the attribute information. Add a random number. Then, trim the hash value to obtain a hash value with a preset length; the specific trimming rule is: trimming from the middle part of the hash value, removing the head and tail of the hash value, and then obtaining a hash value with a predetermined length. Set the length of the hash value.
  • the device identifiers of all users can be calculated by the above method. This is just for the convenience of description, so it is defined as the target device identifier, and there is no other restriction.
  • the target device identification of the infectious disease patient can be obtained, and according to the target device identification and a preset time period, from the preset
  • the to-be-predicted device identification that has an associated relationship with the device identification is obtained from the database of .
  • acquiring the device identifier to be predicted that has an associated relationship with the device identifier from the preset database may include steps S310 to S330 . in:
  • step S310 a retrieval condition is generated according to the target device identifier and a preset time period, and a time interval corresponding to the retrieval condition is determined from the preset database;
  • step S320 a target index tree corresponding to the retrieval condition is constructed according to the time interval
  • step S330 the target index tree is searched layer by layer, so as to obtain an index satisfying the retrieval condition from the leaf node of the target index tree, and an identifier of a device to be predicted associated with the index.
  • steps S310 to S330 will be explained and described.
  • a distributed database such as HBase
  • massive data can be stored in the form of key-value on a distributed cluster with multiple backups and security, that is, the above-mentioned preset database.
  • the retrieval condition is generated according to the target device identifier and a preset time period, wherein the preset time period can be determined according to the time of diagnosis of the infectious disease patient; for example, it can be two weeks before the time of diagnosis, or It can be other time, which is not limited in this example.
  • the time interval corresponding to the retrieval condition can be determined from the above-mentioned preset database; further, after the time interval is obtained, each day can be used as a leaf node based on the time interval.
  • step S120 the contact duration between the infectious disease patient and the object to be predicted corresponding to the device identification to be predicted is determined according to the number of associations between the target device identification and the device identification to be predicted.
  • the relationship between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier is determined.
  • the contact duration between the two may include steps S410-S420. in:
  • step S410 calculate the number of associations according to the number of times that the identifier of the device to be predicted and the identifier of the target device appear simultaneously in the leaf node;
  • step S420 calculate the contact between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier according to the time interval between the association times and the plurality of data included in the leaf node duration.
  • steps S410 to S420 will be explained and described.
  • the number of associations is 10; and, assuming that the time interval is 1 min, then the relationship between the infectious disease patient and the object to be predicted is 10.
  • the contact time is 10min.
  • the time interval here can also be selected according to actual needs, such as 30s or 90s, etc., which is not limited in this example.
  • the data is generated from the signal strength between the communication device and the second wireless communication device and the current location of the first terminal device.
  • the terminal device starts BLE scanning, and obtains the scanned service UUID of one or more broadcast devices (Bluetooth devices); then, it is judged whether the Service UUID complies with the preset naming rules, that is, whether it includes BID information, if not. Include, then filter out; if included, then use it as the second wireless communication device; then, extract BID (sixteen characters) from the Service UUID as the device identification to be predicted; Finally, according to the target device identification, the device identification to be predicted , signal strength, and current location to generate data. What needs to be added here is that if the Bluetooth name does not conform to the naming rules, the device is connected to Bluetooth, and after the connection is successful, the identification of the device to be predicted can be read from the broadcast data.
  • broadcast devices Bluetooth devices
  • the method for predicting the infection probability of the infectious disease further includes: calculating the infection path of the infectious disease patient according to each of the current positions. That is to say, the infection path of the infectious disease patient can be calculated according to the current position included in the data continuously uploaded by the App of the terminal device of the infectious disease patient, and then the population who may have been in contact with the infectious disease patient can be tracked according to the infection path, Avoid tracking failures due to lack of bluetooth data.
  • step S130 according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification, determine the infectious disease patient and the to-be-predicted device identification Contact distance between objects.
  • it may include: according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification, the first wireless communication device and the second wireless communication device
  • the contact distance between the infectious disease patient and the object to be predicted is determined based on the standard signal strength of the wireless communication device at a preset distance and a preset environmental attenuation factor.
  • the specific calculation method can refer to the following formula (1):
  • d is the contact distance
  • RSSI is the signal strength value
  • A is the absolute value of RSSI when the distance between the first wireless communication device (Bluetooth) and the second wireless device (Bluetooth) is 1 meter
  • n is the environmental attenuation factor.
  • step S140 according to the contact duration and contact distance, the infection probability of the infectious disease patient to the object to be predicted is determined.
  • the infection probability can be determined after the above-mentioned contact duration and contact distance are obtained. For example, a distance of less than 2 meters and a duration of 15 minutes or more is a high-risk close connection, that is, the probability of infection is high.
  • the specific calculation rules between the infection probability and the contact time and contact distance can be calculated according to the specific infectious disease, and there are no special restrictions on this here.
  • relevant personnel can take corresponding measures according to the probability of infection to the object to be predicted. For example, for the object to be predicted with a high probability of infection, medical isolation can be used; The objects to be predicted can be isolated by ordinary isolation, which can avoid the problem of excessive infection and waste of medical resources.
  • the method for predicting the probability of contagion of an infectious disease may include the following steps:
  • Step S510 according to the target Bluetooth ID where the infectious disease patient is located and the latent date of the infectious disease, obtain the to-be-predicted Bluetooth ID associated with the target Bluetooth ID from the Bluetooth proximity library;
  • Step S520 according to the association times between the target bluetooth identifier and the to-be-predicted bluetooth identifier, calculate the contact duration between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted bluetooth identifier;
  • Step S530 according to the current signal strength between the first Bluetooth corresponding to the target Bluetooth identification and the second Bluetooth corresponding to the Bluetooth identification to be predicted, calculate the contact distance between the infectious disease patient and the object to be predicted;
  • Step S540 calculate the infection probability that the infectious disease patient treats the predicted object
  • Step S550 take corresponding measures according to the size of the infection probability for the object to be predicted.
  • medical isolation can be used; for the object to be predicted with a small probability of infection, ordinary isolation can be used. .
  • the method for predicting the probability of contagion of an infectious disease provided by the exemplary embodiment of the present disclosure can efficiently locate the object to be predicted, and save a lot of time for manual investigation.
  • the method can be applied not only to the prediction of the probability of infection of infectious diseases, but also to the final scenarios involving close contact.
  • the apparatus for predicting the probability of infection of an infectious disease may include an acquisition module 610 , a first determination module 620 , a second determination module 630 , and a prediction module 640 for the probability of infection. in:
  • the obtaining module 610 is used to obtain the target device identification of the infectious disease patient, and according to the target device identification and a preset time period, obtain the device identification to be predicted that has an associated relationship with the device identification from a preset database;
  • the first determining module 620 is configured to determine the contact time between the infectious disease patient and the object to be predicted corresponding to the device identification to be predicted according to the number of associations between the target device identification and the device identification to be predicted. ;
  • the second determination module 630 is configured to determine, according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, the The contact distance between the objects to be predicted;
  • the infection probability prediction module 640 is configured to determine the infection probability of the infectious disease patient to the object to be predicted according to the contact duration and contact distance.
  • acquiring from a preset database the device identifier to be predicted that has an associated relationship with the target device identifier including:
  • the target index tree is searched layer by layer to obtain an index that satisfies the retrieval condition and an identifier of a device to be predicted associated with the index from a leaf node of the target index tree.
  • the relationship between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identification is determined according to the number of associations between the target device identification and the to-be-predicted device identification. length of contact, including:
  • the contact time between the infectious disease patient and the object to be predicted corresponding to the identifier of the device to be predicted is calculated.
  • the data is obtained by the terminal device of the infectious disease patient in the following manner:
  • a broadcast device that complies with the preset naming rule is used as the second wireless communication device;
  • the data is generated according to the target device identification, the to-be-predicted device identification, the signal strength between the first wireless communication device and the second wireless communication device, and the current location of the first terminal device.
  • the apparatus for predicting the probability of contagion of infectious diseases further includes:
  • the infection path calculation module can be configured to calculate the infection path of the infectious disease patient according to each of the current positions.
  • the infection is determined according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification.
  • the contact distance between the patient and the object to be predicted including:
  • the first wireless communication device and the second wireless communication device are predicted at an interval.
  • the contact distance between the infectious disease patient and the object to be predicted is determined by setting the standard signal strength at the distance and the preset environmental attenuation factor.
  • the target device identifier is obtained by the terminal device of the infectious disease patient in the following manner:
  • the hash value is trimmed by using a preset trimming rule to obtain a hash value with a preset length, and the hash value with a preset length is used as the target device identifier.
  • infectious disease probability prediction apparatus The specific details of each module in the above-mentioned infectious disease probability prediction apparatus have been described in detail in the corresponding infectious disease probability prediction method, and therefore will not be repeated here.
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
  • an electronic device capable of implementing the above method is also provided.
  • aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", “module” or "system”.
  • FIG. 7 An electronic device 700 according to this embodiment of the present disclosure is described below with reference to FIG. 7 .
  • the electronic device 700 shown in FIG. 7 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • electronic device 700 takes the form of a general-purpose computing device.
  • Components of the electronic device 700 may include, but are not limited to, the above-mentioned at least one processing unit 710 , the above-mentioned at least one storage unit 720 , a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710 ), and a display unit 740 .
  • the storage unit stores program codes, and the program codes can be executed by the processing unit 710, so that the processing unit 710 executes various exemplary methods according to the present disclosure described in the above-mentioned “Exemplary Methods” section of this specification.
  • the processing unit 710 may perform step S110 as shown in FIG. 1 : obtain the target device identification of the infectious disease patient, and obtain the identification of the target device from the preset database according to the target device identification and the preset time period.
  • the device identifier has an associated device identifier to be predicted;
  • Step S120 According to the number of associations between the target device identifier and the device identifier to be predicted, determine the infectious disease patient and the identifier corresponding to the device to be predicted.
  • Step S130 According to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, determine the Contact distance between the infectious disease patient and the object to be predicted;
  • Step S140 Determine the infection probability of the infectious disease patient to the object to be predicted according to the contact duration and the contact distance.
  • the storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and/or a cache storage unit 7202 , and may further include a read only storage unit (ROM) 7203 .
  • RAM random access storage unit
  • ROM read only storage unit
  • the storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.
  • the bus 730 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.
  • the electronic device 700 may also communicate with one or more external devices 800 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 750 . Also, the electronic device 700 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 760 . As shown, network adapter 760 communicates with other modules of electronic device 700 via bus 730 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
  • a computer-readable storage medium on which a program product capable of implementing the above-described method of the present specification is stored.
  • various aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing the program product to run on a terminal device when the program product is run on a terminal device.
  • the terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Example Method" section of this specification.
  • a program product for implementing the above method according to an embodiment of the present disclosure may adopt a portable compact disc read only memory (CD-ROM) and include program codes, and may run on a terminal device, such as a personal computer.
  • CD-ROM compact disc read only memory
  • the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the program product may employ any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language.
  • the program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
  • LAN local area network
  • WAN wide area network
  • an external computing device eg, using an Internet service provider business via an Internet connection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Remote Sensing (AREA)
  • Pathology (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

An infection probability prediction method and apparatus for an infectious disease, a storage medium, and an electronic device, which relate to the technical field of big data processing. The method comprises: obtaining a target device identification of an infectious disease patient, and obtaining a device identification to be predicted that has an associated relationship with the target device identification from within a preset database according to the target device identification and a preset time period (S110); according to the number of associations between the target device identification and the device identification to be predicted, determining a contact duration between the infectious disease patient and a subject to be predicted corresponding to the device identification to be predicted (S120); according to a current signal strength between a first wireless communication apparatus corresponding to the target device identification and a second wireless communication apparatus corresponding to the device identification to be predicted, determining a contact distance between the infectious disease patient and the subject (S130); and according to the contact duration and the contact distance, determining the probability of infection of the infectious disease patient to the subject (S140). The described method improves the accuracy of the probability of infection.

Description

传染病的传染概率预测方法及装置、存储介质、电子设备Infection probability prediction method and device, storage medium and electronic device of infectious disease
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2020年12月29日提交的申请号为202011591936.8、名称为“传染病的传染概率预测方法及装置、存储介质、电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引入全部并入本文。This application claims the priority of the Chinese patent application filed on December 29, 2020 with the application number 202011591936.8 and titled “Method and Device for Predicting Infection Probability of Infectious Diseases, Storage Medium, and Electronic Equipment”, all of which are in the Chinese patent application. The contents are incorporated herein by reference in their entirety.
技术领域technical field
本公开实施例涉及大数据处理技术领域,具体而言,涉及一种传染病的传染概率预测方法、传染病的传染概率预测装置、计算机可读存储介质以及电子设备。The embodiments of the present disclosure relate to the technical field of big data processing, and in particular, to a method for predicting the probability of infection of an infectious disease, an apparatus for predicting the probability of infection of an infectious disease, a computer-readable storage medium, and an electronic device.
背景技术Background technique
在流行病传播研究中,分析人与人之间的时空联系是一种十分重要的分析方法。因此,早发现病毒携带者并及时将其隔离,就能阻止他传播给其他人,进而有效地防止疫情大规模传播。In the study of epidemic transmission, analyzing the spatiotemporal connection between people is a very important analysis method. Therefore, early detection of the virus carrier and timely isolation of it can prevent him from spreading to others, thereby effectively preventing the large-scale spread of the epidemic.
在疫情流行的大背景下,因疫情溯源和控制的需求,需要对确诊患者的密接人进行追踪。现有技术中,大多数均是通过确诊患者的回忆,并根据事件发生时间地点通过纸质记录、摄像头记录等手段进行追踪,由流调医生整理成为流调报告,进而根据该流调报告对可能接触了确诊患者的其他人群的传染概率进行分析。In the context of the epidemic, due to the need for traceability and control of the epidemic, it is necessary to trace the close contacts of confirmed patients. In the prior art, most of them are tracked by means of paper records, camera records, etc. according to the time and place of the incident through the recollections of the diagnosed patients. Probability of contagion to other groups of people who may have been in contact with confirmed patients were analyzed.
发明内容SUMMARY OF THE INVENTION
根据本公开的一个方面,提供一种传染病的传染概率预测方法,包括:According to one aspect of the present disclosure, there is provided a method for predicting the probability of contagion of an infectious disease, comprising:
获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识;Acquiring the target device identification of the infectious disease patient, and according to the target device identification and a preset time period, acquiring the to-be-predicted device identification that is associated with the target device identification from a preset database;
根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;Determine, according to the number of associations between the target device identifier and the to-be-predicted device identifier, the contact duration between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier;
根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离;Determine the contact between the infectious disease patient and the object to be predicted according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted distance;
根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。According to the contact duration and contact distance, the infection probability of the infectious disease patient to the object to be predicted is determined.
根据本公开的一个方面,提供一种传染病的传染概率预测装置,包括:According to one aspect of the present disclosure, there is provided an infectious disease probability prediction device, comprising:
获取模块,用于获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识;an acquisition module, configured to acquire the target device identification of the infectious disease patient, and obtain the to-be-predicted device identification associated with the target device identification from a preset database according to the target device identification and a preset time period;
第一计算模块,用于根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;The first calculation module is used to determine the contact time between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier according to the number of associations between the target device identifier and the to-be-predicted device identifier ;
第二计算模块,用于根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待 预测对象之间的接触距离;The second calculation module is configured to determine the relationship between the infectious disease patient and the The contact distance between the objects to be predicted;
传染概率预测模块,用于根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。An infection probability prediction module, configured to determine the infection probability of the infectious disease patient to the to-be-predicted object according to the contact duration and contact distance.
根据本公开的一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的传染病的传染概率预测方法。According to one aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements any one of the above-mentioned methods for predicting the infection probability of an infectious disease.
根据本公开的一个方面,提供一种电子设备,包括:According to one aspect of the present disclosure, there is provided an electronic device, comprising:
处理器;以及processor; and
存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;
其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的传染病的传染概率预测方法。Wherein, the processor is configured to execute any one of the above-mentioned methods for predicting the probability of contagion of an infectious disease by executing the executable instructions.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. In the attached image:
图1示意性示出根据本公开示例实施例的一种传染病的传染概率预测方法的流程图。FIG. 1 schematically shows a flowchart of a method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
图2示意性示出根据本公开示例实施例的一种传染病的传染概率预测系统的框图。FIG. 2 schematically shows a block diagram of an infectious disease probability prediction system according to an exemplary embodiment of the present disclosure.
图3示意性示出根据本公开示例实施例的一种根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识的方法流程图。FIG. 3 schematically shows a method of obtaining, according to an exemplary embodiment of the present disclosure, an identifier of a device to be predicted that has an associated relationship with the identifier of the target device from a preset database according to the identifier of the target device and a preset time period. Method flow diagram.
图4示意性示出根据本公开示例实施例的一种根据所述目标设备标识与所述待预测设备标识的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长的方法流程图。FIG. 4 schematically shows a method for determining the infectious disease patient and the to-be-predicted corresponding to the to-be-predicted device identifier according to the number of associations between the target device identifier and the to-be-predicted device identifier according to an exemplary embodiment of the present disclosure. A flow chart of the method for the duration of contact between objects.
图5示意性示出根据本公开示例实施例的另一种传染病的传染概率预测方法的流程图。FIG. 5 schematically shows a flowchart of another method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
图6示意性示出根据本公开示例实施例的一种传染病的传染概率预测装置的框图。FIG. 6 schematically shows a block diagram of an apparatus for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
图7示意性示出根据本公开示例实施例的一种用于实现上述传染病的传染概率预测方法的电子设备。FIG. 7 schematically shows an electronic device for implementing the above-mentioned method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参照附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这 些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and/or processor devices and/or microcontroller devices.
本示例实施方式中首先提供了一种传染病的传染概率预测方法,该方法可以运行于服务器、服务器集群或云服务器等;当然,本领域技术人员也可以根据需求在其他平台运行本公开的方法,本示例性实施例中对此不做特殊限定。参考图1所示,该传染病的传染概率预测方法可以包括以下步骤:This exemplary embodiment first provides a method for predicting the probability of contagion of an infectious disease, and the method can run on a server, a server cluster, or a cloud server, etc.; of course, those skilled in the art can also run the method of the present disclosure on other platforms as required , which is not specially limited in this exemplary embodiment. Referring to Figure 1, the method for predicting the probability of contagion of an infectious disease may include the following steps:
步骤S110.获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识;Step S110. Obtain the target device identification of the infectious disease patient, and obtain the to-be-predicted device identification that is associated with the target device identification from a preset database according to the target device identification and a preset time period;
步骤S120.根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;Step S120. Determine the contact duration between the infectious disease patient and the object to be predicted corresponding to the device identifier to be predicted according to the number of associations between the target device identifier and the device identifier to be predicted;
步骤S130.根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离;Step S130. According to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, determine the relationship between the infectious disease patient and the object to be predicted. contact distance between
步骤S140.根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。Step S140. According to the contact duration and contact distance, determine the infection probability of the infectious disease patient to the object to be predicted.
上述传染病的传染概率预测方法中,一方面,通过获取传染病患者的目标设备标识,并根据目标设备标识以及预设的时间段,从预设的数据库中获取与目标设备标识具有关联关系的待预测设备标识;进而可以根据该待预测设备标识得到可能解除了确诊患者的其他人群,解决了现有技术中由于不能及时的对可能解除了确诊患者的其他人群进行确认,进而造成的追踪效率低下的问题;另一方面,解决了现有技术中由于不能准确的查找到所有的可能接触了确诊患者的其他人群,进而导致的覆盖率不高的问题;再一方面,通过根据目标设备标识与待预测设备标识之间的关联次数,确定传染病患者和与待预测设备标识对应的待预测对象之间的接触时长;并根据目标设备标识对应的第一无线通信装置与待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定传染病患者与待预测对象之间的接触距离;最后根据接触时长和接触距离,确定传染病患者对待预测对象的传染概率,解决了现有技术中由于无法科学的对可能接触了确诊患者的其他人群的传染概率进行分析,进而使得传染概率的准确率较低,提高了传染概率的准确率。In the above-mentioned method for predicting the probability of contagion of infectious diseases, on the one hand, by obtaining the target device identification of the infectious disease patient, and according to the target device identification and the preset time period, obtain from the preset database the identification of the target device associated with the target device identification. The identification of the device to be predicted; further, other groups of people who may have released the diagnosed patient can be obtained according to the identification of the device to be predicted, which solves the problem of tracking efficiency caused by the inability to timely confirm other groups of people who may have released the confirmed patient in the prior art. On the other hand, it solves the problem of low coverage in the prior art due to the inability to accurately find all other groups of people who may have been in contact with confirmed patients; The number of associations with the identification of the equipment to be predicted, to determine the contact time between the infectious disease patient and the object to be predicted corresponding to the identification of the equipment to be predicted; and according to the first wireless communication device corresponding to the identification of the target equipment corresponds to the identification of the equipment to be predicted The current signal strength between the second wireless communication devices is determined to determine the contact distance between the infectious disease patient and the object to be predicted; finally, according to the contact duration and contact distance, the infection probability of the infectious disease patient to the predicted object is determined, which solves the problem of existing Due to the inability to scientifically analyze the infection probability of other groups of people who may have been in contact with the confirmed patient in the technology, the accuracy of the infection probability is lower, and the accuracy of the infection probability is improved.
以下,将结合附图对本公开示例实施例传染病的传染概率预测方法中涉及的各步骤进行详细的解释以及说明。Hereinafter, each step involved in the method for predicting the probability of contagion of an infectious disease according to an exemplary embodiment of the present disclosure will be explained and described in detail with reference to the accompanying drawings.
首先,对本公开示例实施例中所涉及的专有名词进行解释以及说明。First, the proper terms involved in the exemplary embodiments of the present disclosure are explained and explained.
BLE(Bluetooth Low Energy):低功耗蓝牙。BLE (Bluetooth Low Energy): Bluetooth Low Energy.
Service UUID(Universally Unique Identifier):通用唯一识别码,是蓝牙广播时使用的服务区分代码,长度为16个比特,一般表示为4个十六进制字符,如“FE35”。Service UUID (Universally Unique Identifier): Universal Unique Identifier, which is a service distinguishing code used in Bluetooth broadcasting, with a length of 16 bits, generally expressed as 4 hexadecimal characters, such as "FE35".
密接:密切接触的简称。在不同的场景下密切接触可能有不同的定义,例如,和感染期内的确诊患者在生活、工作等活动中有过2米以内,15分钟及以上时间的接触史的人,为此患者的密切接触者,或称为密接人。Close Contact: Abbreviation for close contact. There may be different definitions for close contact in different scenarios. For example, a person who has a history of contact with a confirmed patient within 2 meters and for 15 minutes or more during life, work and other activities during the infection period. close contacts, or close contacts.
API(Application Programming Interface):应用程序接口。API (Application Programming Interface): Application programming interface.
RSSI(Received Signal Strength Indication):接收的信号强度指示。蓝牙开发中一般使用此值来大致估算设备之间的距离。RSSI (Received Signal Strength Indication): Received Signal Strength Indication. This value is generally used in Bluetooth development to approximate the distance between devices.
ElasticSearch:一个基于Lucene库的搜索引擎。它提供了一个分布式、支持多租户的全文搜索引擎,具有HTTP Web接口和无模式JSON文档。ElasticSearch: A search engine based on the Lucene library. It provides a distributed, multi-tenant-enabled full-text search engine with an HTTP web interface and schemaless JSON documents.
其次,对本公开示例实施例的发明目的进行解释以及说明。Next, the purpose of the invention of the exemplary embodiments of the present disclosure is explained and illustrated.
本公开示例实施例的实现依赖于手机自带的低功耗蓝牙模组,目前市面上销售的绝大部分智能手机都已经内置低功耗蓝牙模组,可完善支持本方案的实施落地。具体的,本公开示例实施例采用手机自带的低功耗蓝牙模组对人群进行自动密接追踪,具有无感知自动追踪、覆盖率高、几乎无人力成本投入的特点,在发现确诊患者后,卫生监管机构可迅速定位相关的密接人。The implementation of the exemplary embodiments of the present disclosure relies on the low-power bluetooth module that comes with the mobile phone. Currently, most smart phones on the market have built-in low-power bluetooth modules, which can fully support the implementation of this solution. Specifically, the example embodiment of the present disclosure uses the low-power Bluetooth module built in the mobile phone to automatically and closely track the crowd, and has the characteristics of automatic tracking without perception, high coverage, and almost no labor cost input. Health regulators can quickly locate relevant contacts.
进一步的,对本公开示例实施例所涉及的传染病的传染概率预测系统进行解释以及说明。Further, the infection probability prediction system of the infectious disease involved in the exemplary embodiment of the present disclosure will be explained and explained.
具体的,参考图2所示,该传染病的传染概率预测系统可以包括终端设备210以及服务器220,终端设备210与服务器220网络连接。其中,服务器包括蓝牙密接库(预设的数据库)221、业务信息库222以及分析系统223。Specifically, as shown in FIG. 2 , the infectious disease probability prediction system may include a terminal device 210 and a server 220 , and the terminal device 210 is connected to the server 220 via a network. The server includes a Bluetooth close connection library (preset database) 221 , a service information library 222 and an analysis system 223 .
具体的,终端设备210中设置有应用程序(App),其负责采集上报蓝牙密接数据,数据库负责接收和存储终端设备上传的蓝牙密接数据,分析系统负责进行数据查询和分析,并输出传染概率。以下逐一进行说明:Specifically, the terminal device 210 is provided with an application program (App), which is responsible for collecting and reporting Bluetooth close connection data, the database is responsible for receiving and storing the Bluetooth close connection data uploaded by the terminal device, and the analysis system is responsible for data query and analysis, and output infection probability. The following are explained one by one:
首先,对于终端设备来说,终端设备中设置的App是进行蓝牙密接数据采集和上报的核心部分。目前市场上主流的智能手机iOS和Android系统都提供了完善的低功耗蓝牙(以下简称BLE)API。其中:First of all, for the terminal device, the App set in the terminal device is the core part of collecting and reporting Bluetooth close data. At present, the mainstream smartphone iOS and Android systems on the market provide a complete Bluetooth Low Energy (BLE) API. in:
BLE API可以包括广播端和扫描端。在密接追踪场景中,手机同时作为广播端及扫描端。用户230需要在终端设备上安装App对蓝牙密接追踪功能进行管理,包括蓝牙密接追踪功能的启动和停止、蓝牙功能的授权、发生密接事件的提醒等。BLE API can include broadcast side and scan side. In the close tracking scenario, the mobile phone acts as both the broadcast terminal and the scanning terminal. The user 230 needs to install an App on the terminal device to manage the Bluetooth close tracking function, including starting and stopping the Bluetooth close tracking function, authorizing the Bluetooth function, and reminding the occurrence of close contact events.
进一步的,为了实现蓝牙密接追踪,需要为每个手机(亦可理解为每个手机上安装的App账户)设定一个唯一的Bluetooth ID(以下简称为BID)。因个人手机蓝牙MAC地址属于设备的隐私数据,主流的手机操作系统,如iOS和Android,一般都不会提供API直接获取到手机的蓝牙MAC地址(能获取到的,也是动态变化的虚拟地址),手机蓝牙MAC地址不适合作为唯一的BID使用。基于此,BID可以采用用户的信息,通过算法生成。例如,联合使用用户的身份证号、姓名、生日及随机数,进行SHA-256计算和裁剪产生,当然,也可以采用其他的可以支持哈希值计算的算法对用户的身份证号、姓名、生日及随机数进行计算,进而对计算得到的哈希值进行剪裁生成BID,本示例对此不做特殊限制。Further, in order to realize Bluetooth close tracking, it is necessary to set a unique Bluetooth ID (hereinafter referred to as BID) for each mobile phone (which can also be understood as an App account installed on each mobile phone). Because the Bluetooth MAC address of a personal mobile phone belongs to the private data of the device, mainstream mobile operating systems, such as iOS and Android, generally do not provide APIs to directly obtain the Bluetooth MAC address of the mobile phone (the one that can be obtained is also a dynamically changing virtual address) , the mobile phone Bluetooth MAC address is not suitable for use as a unique BID. Based on this, the BID can be generated through an algorithm using the user's information. For example, jointly use the user's ID number, name, birthday and random number to perform SHA-256 calculation and cropping. Of course, other algorithms that can support hash value calculation can also be used to calculate the user's ID number, name, The birthday and random number are calculated, and then the calculated hash value is cut to generate a BID, which is not limited in this example.
每个手机都分配了唯一的BID以后,在广播端将此BID进行BLE广播。广播时,附带指定一个特定的Service UUID,用于标志广播中含有BID。除在广播数据中搭载BID之外,也可以在广播名称中以特定的命名规则改写蓝牙的广播名称,将BID编写进去(例如,将广播蓝牙名称改写为BID=1234567890123456)。After each mobile phone is assigned a unique BID, the BID is broadcasted by BLE on the broadcast side. When broadcasting, a specific Service UUID is specified, which is used to indicate that the BID is included in the broadcast. In addition to carrying the BID in the broadcast data, it is also possible to rewrite the Bluetooth broadcast name in the broadcast name with a specific naming rule, and write the BID into it (for example, rewrite the broadcast Bluetooth name to BID=1234567890123456).
在广播的同时,手机端启动BLE扫描,扫描时带入特定的Service UUID进行过滤(过滤掉不含BID信息的广播)。BLE扫描一般很快,在1-2秒内一般能扫描到周围进行广播的上百台设备,并获取到设备广播使用的蓝牙名称。如果广播的蓝牙名称符合特定的命名规则(如“BID=”+十六位字符),直接将十六位字符作为目标BID进行密接记录。如果蓝牙名称不符合命名规则,则对设备进行蓝牙连接,连接成功后即可从广播数据中读取出目标BID。在读取BID值时,也可以同时获取到蓝牙信号的强度RSSI值, 此RSSI值可通过经验公式转换为设备间的估算距离,从而推定两人的距离。At the same time as the broadcast, the mobile phone starts BLE scanning, and brings in a specific Service UUID for filtering (filtering out broadcasts that do not contain BID information). BLE scanning is generally very fast. In 1-2 seconds, hundreds of devices that are broadcasting around can be scanned, and the Bluetooth name used by the device broadcast can be obtained. If the advertised Bluetooth name conforms to a specific naming rule (eg "BID="+sixteen characters), the sixteen characters are directly used as the target BID for close recording. If the bluetooth name does not conform to the naming rules, connect the device with bluetooth, and after the connection is successful, the target BID can be read from the broadcast data. When reading the BID value, the RSSI value of the strength of the Bluetooth signal can also be obtained at the same time, and the RSSI value can be converted into an estimated distance between devices through an empirical formula, thereby estimating the distance between two people.
进一步的,当收集到一定密接数据(BID、RSSI等)后,终端设备可以将数据上传至数据库中进行存储。需要补充说明的是,由于目前市面上的智能手机普遍都有省电设计,在移动端App进入到后台后,程序运行会被挂起,导致扫描不能正常进行。在开发App时,应对后台模式做额外的处理,确保App退至后台后,扫描过程及上传过程还能正常运行。Further, after collecting certain close data (BID, RSSI, etc.), the terminal device can upload the data to the database for storage. It should be added that, because the current smart phones on the market generally have a power-saving design, after the mobile app enters the background, the program operation will be suspended, resulting in the scanning cannot be performed normally. When developing an app, additional processing should be done in the background mode to ensure that the scanning process and uploading process can still run normally after the app returns to the background.
其次,对于数据库来说,其主要负责蓝牙密接数据的接收和存储。服务器端和终端设备中的App的通信协议没有限制,可以基于各种协议,但传输过程必须对数据进行加密传输(具体的加密算法可以采用非对称加密,也可以采用其他加密算法,本示例对此不做特殊限制),防止隐私数据泄露。并且,蓝牙数据需要单独保存在一个预设的数据库(即蓝牙密接库)中,用于和普通的业务数据区分不同的授权,普通的业务数据存储在业务信息库中。并且,由于蓝牙密接依赖的BID是通过算法计算得出,无法直接从BID本身上获得其业务含义,因此仅凭BID,是不能获知具体某人的密接信息的,这也是保证了用户的隐私数据不会泄露。Secondly, for the database, it is mainly responsible for the reception and storage of Bluetooth close data. There are no restrictions on the communication protocols of the App in the server and terminal devices, and can be based on various protocols, but the data must be encrypted and transmitted during the transmission process (the specific encryption algorithm can be asymmetric encryption, or other encryption algorithms can be used. This does not make special restrictions) to prevent privacy data leakage. In addition, the Bluetooth data needs to be separately stored in a preset database (ie, the Bluetooth close connection library), which is used to distinguish different authorizations from ordinary service data, which is stored in the service information database. In addition, since the BID that Bluetooth contact relies on is calculated through an algorithm, its business meaning cannot be directly obtained from the BID itself. Therefore, it is impossible to obtain the contact information of a specific person based on the BID alone, which also guarantees the user's privacy data. will not leak.
同时需要补充说明的是,蓝牙密接App一般会在一个地区乃至一个国家进行推广,且为了保证准确率,一般会由政府卫生部门进行强制推广使用,安装率和使用率都会很高。正常情况下,每天会产生海量的蓝牙密接信息,服务端的并发请求处理能力和数据存储能力需要进行仔细设计。因此,数据库需要部署在云平台上,支持动态扩容,上线前做好模拟压力测试。数据存储需要分为线上使用的查询数据和原始数据,查询数据供分析系统进行查询分析使用,原始数据则永久在大数据平台上留存备用。At the same time, it should be added that the Bluetooth close connection app is generally promoted in a region or even a country, and in order to ensure the accuracy rate, it will generally be forced to be promoted by the government health department, and the installation rate and usage rate will be very high. Under normal circumstances, a large amount of Bluetooth connection information is generated every day, and the concurrent request processing capability and data storage capability of the server need to be carefully designed. Therefore, the database needs to be deployed on the cloud platform to support dynamic expansion, and a simulated stress test should be done before going online. Data storage needs to be divided into query data for online use and raw data. The query data is used by the analysis system for query and analysis, and the raw data is permanently retained on the big data platform for backup.
最后,对于分析系统来说,其可以实现本公开示例实施例所记载的传染病的传染概率预测方法。同时,分析系统为即时交互式,要求数据分析结果响应很快,其可以基于ElasticSearch这种搜索框架来搭建。Finally, for the analysis system, it can implement the method for predicting the probability of contagion of infectious diseases described in the exemplary embodiment of the present disclosure. At the same time, the analysis system is real-time interactive, requiring fast response of data analysis results, which can be built based on the search framework of ElasticSearch.
以下,结合图2对步骤S110-步骤S140进行解释以及说明。Hereinafter, steps S110 to S140 will be explained and described with reference to FIG. 2 .
在步骤S110中,获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识。In step S110, the target device identifier of the infectious disease patient is acquired, and according to the target device identifier and a preset time period, the device identifier to be predicted that is associated with the target device identifier is acquired from a preset database.
首先,对目标设备标识进行解释以及说明。基于前文记载的内容可以得知,该目标设备标识是终端设备通过如下方式得到的:首先,对所述传染病患者的属性信息进行哈希运算得到哈希值;利用预设的剪裁规则对所述哈希值进行剪裁,得到具有预设长度的哈希值,并将所述具有预设长度的哈希值作为所述目标设备标识。具体来说,首先,可以对传染病患者(用户)的属性信息(身份证号、姓名、生日等等,当然也可以包括手机号等其他信息)进行哈希运算,得到哈希值,具体的哈希值可以通过SHA-256算法得到,也可以通过其他算法得到,本示例对此不做特殊限制;需要补充说明的是,在哈希值的计算过程中,还可以在属性信息的基础上添加一个随机数。然后,对该哈希值进行剪裁,得到具有预设长度的哈希值;具体的剪裁规则为:从哈希值的中间部分进行剪裁,去掉哈希值的头部以及尾部,进而得到具有预设长度的哈希值。通过该方法,可以进一步的提高目标设备标识的安全性,进而提高传染病患者的数据的安全性。First, the target device identification is explained and explained. Based on the content recorded above, it can be known that the target device identifier is obtained by the terminal device in the following manner: first, perform a hash operation on the attribute information of the infectious disease patient to obtain a hash value; The hash value is trimmed to obtain a hash value with a preset length, and the hash value with the preset length is used as the target device identifier. Specifically, first, the attribute information (ID number, name, birthday, etc., of course, mobile phone number and other information) of infectious disease patients (users) can be hashed to obtain the hash value. The hash value can be obtained through the SHA-256 algorithm or other algorithms. This example does not impose special restrictions on this; it should be added that in the calculation process of the hash value, the attribute information can also be obtained based on the attribute information. Add a random number. Then, trim the hash value to obtain a hash value with a preset length; the specific trimming rule is: trimming from the middle part of the hash value, removing the head and tail of the hash value, and then obtaining a hash value with a predetermined length. Set the length of the hash value. Through this method, the security of the target device identification can be further improved, thereby improving the security of the data of infectious disease patients.
此处需要进一步补充说明的是,所有的用户的设备标识均可以通过上述方法计算得到。此处只是为了便于说明,因此限定了是目标设备标识,并无其他的限制作用。It should be further explained here that the device identifiers of all users can be calculated by the above method. This is just for the convenience of description, so it is defined as the target device identifier, and there is no other restriction.
进一步的,在本示例实施例中,当某一个用户被确诊为传染病患者以后,可以获取 该传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述设备标识具有关联关系的待预测设备标识。具体的,参考图3所示,根据目标设备标识和预设的时间段,从预设的数据库中获取与设备标识具有关联关系的待预测设备标识可以包括步骤S310-步骤S330。其中:Further, in this exemplary embodiment, after a certain user is diagnosed as a patient with an infectious disease, the target device identification of the infectious disease patient can be obtained, and according to the target device identification and a preset time period, from the preset The to-be-predicted device identification that has an associated relationship with the device identification is obtained from the database of . Specifically, referring to FIG. 3 , according to the target device identifier and the preset time period, acquiring the device identifier to be predicted that has an associated relationship with the device identifier from the preset database may include steps S310 to S330 . in:
在步骤S310中,根据所述目标设备标识和预设的时间段生成检索条件,并从所述预设的数据库中确定与所述检索条件对应的时间区间;In step S310, a retrieval condition is generated according to the target device identifier and a preset time period, and a time interval corresponding to the retrieval condition is determined from the preset database;
在步骤S320中,根据所述时间区间,构建与所述检索条件对应的目标索引树;In step S320, a target index tree corresponding to the retrieval condition is constructed according to the time interval;
在步骤S330中,对所述目标索引树进行逐层查找,以从所述目标索引树的叶子节点获取满足所述检索条件的索引,以及与所述索引关联的待预测设备标识。In step S330, the target index tree is searched layer by layer, so as to obtain an index satisfying the retrieval condition from the leaf node of the target index tree, and an identifier of a device to be predicted associated with the index.
以下,将对步骤S310-步骤S330进行解释以及说明。具体的,由于终端设备的App上传的数据巨大,造成传统数据库难以实现快速查询。因此,可以通过分布式数据库(如HBase),将海量数据用key-value的形式存储在具有多备份且安全的分布式集群上,即上述预设的数据库。Hereinafter, steps S310 to S330 will be explained and described. Specifically, due to the huge amount of data uploaded by the App of the terminal device, it is difficult for the traditional database to perform fast query. Therefore, through a distributed database (such as HBase), massive data can be stored in the form of key-value on a distributed cluster with multiple backups and security, that is, the above-mentioned preset database.
具体的,首先,根据目标设备标识以及预设的时间段生成检索条件,其中,该预设的时间段可以根据传染病患者的确诊时间进行确定;例如,可以是距离确诊时间前两周,也可以是其他时间,本示例对此不做特殊限定。其次,当得到该检索条件以后,可以从上述预设的数据库中确定与该检索条件对应的时间区间;进一步的,当得到该时间区间以后,可以基于该时间区间,以每一天作为一个叶子节点构建与检索条件对应的目标索引树;最后,对目标索引树进行逐层查找(逐天查找),进而从目标索引树的叶子节点获取满足检索条件的索引(目标设备标识),以及与该索引关联的待预测设备标识。通过该方法,可以提高查找效率,进而提高传染概率的预测效率。Specifically, first, the retrieval condition is generated according to the target device identifier and a preset time period, wherein the preset time period can be determined according to the time of diagnosis of the infectious disease patient; for example, it can be two weeks before the time of diagnosis, or It can be other time, which is not limited in this example. Secondly, when the retrieval condition is obtained, the time interval corresponding to the retrieval condition can be determined from the above-mentioned preset database; further, after the time interval is obtained, each day can be used as a leaf node based on the time interval. Build a target index tree corresponding to the retrieval conditions; finally, perform a layer-by-layer search (day-by-day search) on the target index tree, and then obtain an index (target device identifier) that satisfies the retrieval condition from the leaf node of the target index tree, and the index corresponding to the index The associated device ID to be predicted. Through this method, the search efficiency can be improved, thereby improving the prediction efficiency of the infection probability.
在步骤S120中,根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长。In step S120, the contact duration between the infectious disease patient and the object to be predicted corresponding to the device identification to be predicted is determined according to the number of associations between the target device identification and the device identification to be predicted.
在本示例实施例中,参考图4所示,根据所述目标设备标识与所述待预测设备标识的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长可以包括步骤S410-步骤S420。其中:In this exemplary embodiment, referring to FIG. 4 , according to the number of associations between the target device identifier and the to-be-predicted device identifier, the relationship between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier is determined. The contact duration between the two may include steps S410-S420. in:
在步骤S410中,根据所述待预测设备标识和所述目标设备标识在所述叶子节点中同时出现的次数,计算所述关联次数;In step S410, calculate the number of associations according to the number of times that the identifier of the device to be predicted and the identifier of the target device appear simultaneously in the leaf node;
在步骤S420中,根据所述关联次数和所述叶子节点中包括的多个数据之间的时间间隔,计算所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长。In step S420, calculate the contact between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier according to the time interval between the association times and the plurality of data included in the leaf node duration.
以下,将对步骤S410-步骤S420进行解释以及说明。举例来说,假设待预测设备标识与目标设备标识在在同一叶子节点中同时出现了十次,则关联次数为10;并且,假设时间间隔为1min,则传染病患者与待预测对象之间的接触时长为10min。当然,此处的时间间隔也可以根据实际需要自行选取,例如30s或者90s等等,本示例对此不做特殊限制。Hereinafter, steps S410 to S420 will be explained and described. For example, assuming that the device identifier to be predicted and the target device identifier appear ten times in the same leaf node at the same time, the number of associations is 10; and, assuming that the time interval is 1 min, then the relationship between the infectious disease patient and the object to be predicted is 10. The contact time is 10min. Of course, the time interval here can also be selected according to actual needs, such as 30s or 90s, etc., which is not limited in this example.
此处需要补充说明的是,为了可以得到上述关联次数,首先需要获取到对应的数据,该数据具体可以通过如下方式得到:What needs to be added here is that in order to obtain the above-mentioned association times, the corresponding data needs to be obtained first, and the data can be obtained in the following ways:
首先,获取所述第一无线通信装置扫描到的一个或者多个广播设备的名称信息;其次,在判断所述名称信息符合预设命名规则时,将符合预设命名规则广播设备作为所述第二无线通信装置;然后,从与所述第二无线通信装置对应的名称信息中提取所述待预 测设备标识;最后,根据所述目标设备标识、所述待预测设备标识、所述第一无线通信装置与所述第二无线通信装置之间的信号强度以及所述第一终端设备的当前位置,生成所述数据。First, acquire the name information of one or more broadcasting devices scanned by the first wireless communication device; secondly, when judging that the name information conforms to the preset naming rule, take the broadcasting device conforming to the preset naming rule as the first two wireless communication devices; then, extract the device identification to be predicted from the name information corresponding to the second wireless communication device; finally, according to the target device identification, the device identification to be predicted, the first wireless communication device The data is generated from the signal strength between the communication device and the second wireless communication device and the current location of the first terminal device.
举例来说,终端设备启动BLE扫描,获取扫描到的一个或者多个广播设备(蓝牙设备)的名称信息Service UUID;然后,判断Service UUID是否符合预设命名规则,即是否包括BID信息,如果不包括,则过滤掉;如果包括,则将其作为第二无线通信装置;然后,从Service UUID中提取BID(十六位字符)作为待预测设备标识;最后,根据目标设备标识、待预测设备标识、信号强度以及当前位置,生成数据。此处需要补充说明的是,如果蓝牙名称不符合命名规则,则对设备进行蓝牙连接,连接成功后即可从广播数据中读取出待预测设备标识。For example, the terminal device starts BLE scanning, and obtains the scanned service UUID of one or more broadcast devices (Bluetooth devices); then, it is judged whether the Service UUID complies with the preset naming rules, that is, whether it includes BID information, if not. Include, then filter out; if included, then use it as the second wireless communication device; then, extract BID (sixteen characters) from the Service UUID as the device identification to be predicted; Finally, according to the target device identification, the device identification to be predicted , signal strength, and current location to generate data. What needs to be added here is that if the Bluetooth name does not conform to the naming rules, the device is connected to Bluetooth, and after the connection is successful, the identification of the device to be predicted can be read from the broadcast data.
进一步的,为了可以进一步的提高追踪效率,该传染病的传染概率预测方法还包括:根据各所述当前位置,计算所述传染病患者的传染路径。也就是说,可以根据传染病患者的终端设备的App连续上传的数据中包括的当前位置,计算出传染病患者的传染路径,进而根据该传染路径对可能接触了传染病患者的人群进行追踪,避免由于不存在蓝牙数据进而导致的追踪失败的问题。Further, in order to further improve the tracking efficiency, the method for predicting the infection probability of the infectious disease further includes: calculating the infection path of the infectious disease patient according to each of the current positions. That is to say, the infection path of the infectious disease patient can be calculated according to the current position included in the data continuously uploaded by the App of the terminal device of the infectious disease patient, and then the population who may have been in contact with the infectious disease patient can be tracked according to the infection path, Avoid tracking failures due to lack of bluetooth data.
在步骤S130中,根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离。In step S130, according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification, determine the infectious disease patient and the to-be-predicted device identification Contact distance between objects.
具体的,可以包括:根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度、所述第一无线通信装置与第二无线通信装置在间隔预设距离时的标准信号强度以及预设的环境衰减因子,确定所述传染病患者与所述待预测对象之间的接触距离。具体计算方法可以参考如下公式(1)所示:Specifically, it may include: according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification, the first wireless communication device and the second wireless communication device The contact distance between the infectious disease patient and the object to be predicted is determined based on the standard signal strength of the wireless communication device at a preset distance and a preset environmental attenuation factor. The specific calculation method can refer to the following formula (1):
d=10∧[(ABS(RSSI)-A)/(10*n)];    公式(1)d=10∧[(ABS(RSSI)-A)/(10*n)]; Formula (1)
其中,d为接触距离,RSSI为信号强度值,A为当第一无线通信装置(蓝牙)与第二无线装置(蓝牙)之间间隔1米时的RSSI的绝对值,n为环境衰减因子。Among them, d is the contact distance, RSSI is the signal strength value, A is the absolute value of RSSI when the distance between the first wireless communication device (Bluetooth) and the second wireless device (Bluetooth) is 1 meter, and n is the environmental attenuation factor.
在步骤S140中,根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。In step S140, according to the contact duration and contact distance, the infection probability of the infectious disease patient to the object to be predicted is determined.
在本示例实施例中,当得到上述接触时长以及接触距离后,可以确定传染概率。譬如,距离在2米以内,持续15分钟及以上为高风险密接,即传染概率较大。具体的传染概率与接触时长以及接触距离之间的计算规则,可以根据具体的传染病来计算,此处对此不做特殊限制。进一步的,当得到传染概率以后,相关人员可以根据给待预测对象的传染概率的大小,采取相应的措施,例如,对传染概率较大的待预测对象,可以采用医学隔离;对于传染概率较小的待预测对象,可以采用普通隔离,由此可以避免被过多传染以及浪费医学资源的问题。In this exemplary embodiment, the infection probability can be determined after the above-mentioned contact duration and contact distance are obtained. For example, a distance of less than 2 meters and a duration of 15 minutes or more is a high-risk close connection, that is, the probability of infection is high. The specific calculation rules between the infection probability and the contact time and contact distance can be calculated according to the specific infectious disease, and there are no special restrictions on this here. Further, when the probability of infection is obtained, relevant personnel can take corresponding measures according to the probability of infection to the object to be predicted. For example, for the object to be predicted with a high probability of infection, medical isolation can be used; The objects to be predicted can be isolated by ordinary isolation, which can avoid the problem of excessive infection and waste of medical resources.
以下,结合5对本公开示例实施例传染病的传染概率预测方法进行进一步的解释以及说明。参考图5所示,该传染病的传染概率预测方法可以包括以下步骤:Hereinafter, the method for predicting the probability of contagion of an infectious disease according to the exemplary embodiment of the present disclosure will be further explained and described in conjunction with 5. Referring to Figure 5, the method for predicting the probability of contagion of an infectious disease may include the following steps:
步骤S510,根据传染病患者所在的目标蓝牙识以及传染病的潜伏日期,从蓝牙密接库中获取与目标蓝牙标识具有关联关系的待预测蓝牙标识;Step S510, according to the target Bluetooth ID where the infectious disease patient is located and the latent date of the infectious disease, obtain the to-be-predicted Bluetooth ID associated with the target Bluetooth ID from the Bluetooth proximity library;
步骤S520,根据目标蓝牙标识与待预测蓝牙标识之间的关联次数,计算传染病患者以及与待预测蓝牙标识对应的待预测对象之间的接触时长;Step S520, according to the association times between the target bluetooth identifier and the to-be-predicted bluetooth identifier, calculate the contact duration between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted bluetooth identifier;
步骤S530,根据目标蓝牙标识对应的第一蓝牙与待预测蓝牙标识对应的第二蓝牙之间的当前信号强度,计算传染病患者与待预测对象之间的接触距离;Step S530, according to the current signal strength between the first Bluetooth corresponding to the target Bluetooth identification and the second Bluetooth corresponding to the Bluetooth identification to be predicted, calculate the contact distance between the infectious disease patient and the object to be predicted;
步骤S540,根据接触时长以及接触距离,计算传染病患者对待预测对象的传染概率;Step S540, according to the contact duration and contact distance, calculate the infection probability that the infectious disease patient treats the predicted object;
步骤S550,根据给待预测对象的传染概率的大小,采取相应的措施,例如,对传染概率较大的待预测对象,可以采用医学隔离;对于传染概率较小的待预测对象,可以采用普通隔离。Step S550, take corresponding measures according to the size of the infection probability for the object to be predicted. For example, for the object to be predicted with a high probability of infection, medical isolation can be used; for the object to be predicted with a small probability of infection, ordinary isolation can be used. .
本公开示例实施例所提供的传染病的传染概率预测方法,可以高效率的定位待预测对象,节省大量人工排查的时间;同时需要补充说明的是,本公开示例实施例所记载的传染概率预测方法,不仅可以适用于传染病的传染概率预测,对于涉及到密切接触最终的场景均可适用。The method for predicting the probability of contagion of an infectious disease provided by the exemplary embodiment of the present disclosure can efficiently locate the object to be predicted, and save a lot of time for manual investigation. The method can be applied not only to the prediction of the probability of infection of infectious diseases, but also to the final scenarios involving close contact.
本公开还提供了一种传染病的传染概率预测装置。参考图6所示,该传染病的传染概率预测装置可以包括获取模块610、第一确定模块620、第二确定模块630以及传染概率预测模块640。其中:The present disclosure also provides an infection probability prediction device for infectious diseases. Referring to FIG. 6 , the apparatus for predicting the probability of infection of an infectious disease may include an acquisition module 610 , a first determination module 620 , a second determination module 630 , and a prediction module 640 for the probability of infection. in:
获取模块610用于获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述设备标识具有关联关系的待预测设备标识;The obtaining module 610 is used to obtain the target device identification of the infectious disease patient, and according to the target device identification and a preset time period, obtain the device identification to be predicted that has an associated relationship with the device identification from a preset database;
第一确定模块620用于根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;The first determining module 620 is configured to determine the contact time between the infectious disease patient and the object to be predicted corresponding to the device identification to be predicted according to the number of associations between the target device identification and the device identification to be predicted. ;
第二确定模块630用于根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离;The second determination module 630 is configured to determine, according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, the The contact distance between the objects to be predicted;
传染概率预测模块640用于根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。The infection probability prediction module 640 is configured to determine the infection probability of the infectious disease patient to the object to be predicted according to the contact duration and contact distance.
在本公开的一种示例性实施例中,根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识,包括:In an exemplary embodiment of the present disclosure, according to the target device identifier and a preset time period, acquiring from a preset database the device identifier to be predicted that has an associated relationship with the target device identifier, including:
根据所述目标设备标识和预设的时间段生成检索条件,并从所述预设的数据库中确定与所述检索条件对应的时间区间;generating a retrieval condition according to the target device identifier and a preset time period, and determining a time interval corresponding to the retrieval condition from the preset database;
根据所述时间区间,构建与所述检索条件对应的目标索引树;According to the time interval, construct the target index tree corresponding to the retrieval condition;
对所述目标索引树进行逐层查找,以从所述目标索引树的叶子节点获取满足所述检索条件的索引,以及与所述索引关联的待预测设备标识。The target index tree is searched layer by layer to obtain an index that satisfies the retrieval condition and an identifier of a device to be predicted associated with the index from a leaf node of the target index tree.
在本公开的一种示例性实施例中,根据所述目标设备标识与所述待预测设备标识的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长, 包括:In an exemplary embodiment of the present disclosure, the relationship between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identification is determined according to the number of associations between the target device identification and the to-be-predicted device identification. length of contact, including:
根据所述待预测设备标识和所述目标设备标识在所述叶子节点中同时出现的次数,计算所述关联次数;Calculate the number of associations according to the number of times the identifier of the device to be predicted and the identifier of the target device appear simultaneously in the leaf node;
根据所述关联次数和所述叶子节点中包括的多个数据之间的时间间隔,计算所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长。According to the time interval between the association times and the plurality of data included in the leaf node, the contact time between the infectious disease patient and the object to be predicted corresponding to the identifier of the device to be predicted is calculated.
在本公开的一种示例性实施例中,所述数据是所述传染病患者的终端设备通过如下方式得到的:In an exemplary embodiment of the present disclosure, the data is obtained by the terminal device of the infectious disease patient in the following manner:
获取所述第一无线通信装置扫描到的一个或者多个广播设备的名称信息;acquiring name information of one or more broadcasting devices scanned by the first wireless communication device;
在判断所述名称信息符合预设命名规则时,将符合预设命名规则广播设备作为所述第二无线通信装置;When judging that the name information complies with a preset naming rule, a broadcast device that complies with the preset naming rule is used as the second wireless communication device;
从与所述第二无线通信装置对应的名称信息中提取所述待预测设备标识;extracting the identifier of the device to be predicted from the name information corresponding to the second wireless communication device;
根据所述目标设备标识、所述待预测设备标识、所述第一无线通信装置与所述第二无线通信装置之间的信号强度以及所述第一终端设备的当前位置,生成所述数据。The data is generated according to the target device identification, the to-be-predicted device identification, the signal strength between the first wireless communication device and the second wireless communication device, and the current location of the first terminal device.
在本公开的一种示例性实施例中,所述传染病的传染概率预测装置还包括:In an exemplary embodiment of the present disclosure, the apparatus for predicting the probability of contagion of infectious diseases further includes:
传染路径计算模块,可以用于根据各所述当前位置,计算所述传染病患者的传染路径。The infection path calculation module can be configured to calculate the infection path of the infectious disease patient according to each of the current positions.
在本公开的一种示例性实施例中,根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离,包括:In an exemplary embodiment of the present disclosure, the infection is determined according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification. The contact distance between the patient and the object to be predicted, including:
根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度、所述第一无线通信装置与第二无线通信装置在间隔预设距离时的标准信号强度以及预设的环境衰减因子,确定所述传染病患者与所述待预测对象之间的接触距离。According to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification, the first wireless communication device and the second wireless communication device are predicted at an interval. The contact distance between the infectious disease patient and the object to be predicted is determined by setting the standard signal strength at the distance and the preset environmental attenuation factor.
在本公开的一种示例性实施例中,所述目标设备标识是所述传染病患者的终端设备通过如下方式得到的:In an exemplary embodiment of the present disclosure, the target device identifier is obtained by the terminal device of the infectious disease patient in the following manner:
对所述传染病患者的属性信息进行哈希运算得到哈希值;Perform a hash operation on the attribute information of the infectious disease patient to obtain a hash value;
利用预设的剪裁规则对所述哈希值进行剪裁,得到具有预设长度的哈希值,并将所述具有预设长度的哈希值作为所述目标设备标识。The hash value is trimmed by using a preset trimming rule to obtain a hash value with a preset length, and the hash value with a preset length is used as the target device identifier.
上述传染病的传染概率预测装置中各模块的具体细节已经在对应的传染病的传染概率预测方法中进行了详细的描述,因此此处不再赘述。The specific details of each module in the above-mentioned infectious disease probability prediction apparatus have been described in detail in the corresponding infectious disease probability prediction method, and therefore will not be repeated here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期 望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.
在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system".
下面参照图7来描述根据本公开的这种实施方式的电子设备700。图7显示的电子设备700仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 700 according to this embodiment of the present disclosure is described below with reference to FIG. 7 . The electronic device 700 shown in FIG. 7 is only an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图7所示,电子设备700以通用计算设备的形式表现。电子设备700的组件可以包括但不限于:上述至少一个处理单元710、上述至少一个存储单元720、连接不同系统组件(包括存储单元720和处理单元710)的总线730以及显示单元740。As shown in FIG. 7, electronic device 700 takes the form of a general-purpose computing device. Components of the electronic device 700 may include, but are not limited to, the above-mentioned at least one processing unit 710 , the above-mentioned at least one storage unit 720 , a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710 ), and a display unit 740 .
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元710执行,使得所述处理单元710执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元710可以执行如图1中所示的步骤S110:获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述设备标识具有关联关系的待预测设备标识;步骤S120:根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;步骤S130:根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离;步骤S140:根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。Wherein, the storage unit stores program codes, and the program codes can be executed by the processing unit 710, so that the processing unit 710 executes various exemplary methods according to the present disclosure described in the above-mentioned “Exemplary Methods” section of this specification. Implementation steps. For example, the processing unit 710 may perform step S110 as shown in FIG. 1 : obtain the target device identification of the infectious disease patient, and obtain the identification of the target device from the preset database according to the target device identification and the preset time period. The device identifier has an associated device identifier to be predicted; Step S120: According to the number of associations between the target device identifier and the device identifier to be predicted, determine the infectious disease patient and the identifier corresponding to the device to be predicted. the contact duration between the objects to be predicted; Step S130: According to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, determine the Contact distance between the infectious disease patient and the object to be predicted; Step S140: Determine the infection probability of the infectious disease patient to the object to be predicted according to the contact duration and the contact distance.
存储单元720可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)7201和/或高速缓存存储单元7202,还可以进一步包括只读存储单元(ROM)7203。The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and/or a cache storage unit 7202 , and may further include a read only storage unit (ROM) 7203 .
存储单元720还可以包括具有一组(至少一个)程序模块7205的程序/实用工具7204,这样的程序模块7205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, An implementation of a network environment may be included in each or some combination of these examples.
总线730可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The bus 730 may be representative of one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures bus.
电子设备700也可以与一个或多个外部设备800(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备700交互的设备通信,和/或与使得该电子设备700能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口750进行。并且,电子设备700 还可以通过网络适配器760与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器760通过总线730与电子设备700的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备700使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 700 may also communicate with one or more external devices 800 (eg, keyboards, pointing devices, Bluetooth devices, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 750 . Also, the electronic device 700 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through a network adapter 760 . As shown, network adapter 760 communicates with other modules of electronic device 700 via bus 730 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives and data backup storage systems.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium on which a program product capable of implementing the above-described method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product comprising program code for causing the program product to run on a terminal device when the program product is run on a terminal device. The terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Example Method" section of this specification.
根据本公开的实施方式的用于实现上述方法的程序产品,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。A program product for implementing the above method according to an embodiment of the present disclosure may adopt a portable compact disc read only memory (CD-ROM) and include program codes, and may run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程 式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
本领域技术人员在考虑说明书及实践这里发明的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未发明的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not invented by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.

Claims (10)

  1. 一种传染病的传染概率预测方法,包括:An infectious disease probability prediction method, comprising:
    获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识;Acquiring the target device identification of the infectious disease patient, and according to the target device identification and a preset time period, acquiring the to-be-predicted device identification that is associated with the target device identification from a preset database;
    根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;Determine, according to the number of associations between the target device identifier and the to-be-predicted device identifier, the contact duration between the infectious disease patient and the to-be-predicted object corresponding to the to-be-predicted device identifier;
    根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离;Determine the contact between the infectious disease patient and the object to be predicted according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted distance;
    根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。According to the contact duration and contact distance, the infection probability of the infectious disease patient to the object to be predicted is determined.
  2. 根据权利要求1所述的传染病的传染概率预测方法,其中,根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识,包括:The method for predicting the probability of contagion of an infectious disease according to claim 1, wherein, according to the target device identifier and a preset time period, the device to be predicted that is associated with the target device identifier is obtained from a preset database identification, including:
    根据所述目标设备标识和预设的时间段生成检索条件,并从所述预设的数据库中确定与所述检索条件对应的时间区间;generating a retrieval condition according to the target device identifier and a preset time period, and determining a time interval corresponding to the retrieval condition from the preset database;
    根据所述时间区间,构建与所述检索条件对应的目标索引树;According to the time interval, construct the target index tree corresponding to the retrieval condition;
    对所述目标索引树进行逐层查找,以从所述目标索引树的叶子节点获取满足所述检索条件的索引,以及与所述索引关联的待预测设备标识。The target index tree is searched layer by layer to obtain an index that satisfies the retrieval condition and an identifier of a device to be predicted associated with the index from a leaf node of the target index tree.
  3. 根据权利要求2所述的传染病的传染概率预测方法,其中,根据所述目标设备标识与所述待预测设备标识的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长,包括:The method for predicting the probability of contagion of an infectious disease according to claim 2, wherein, according to the number of associations between the target device identification and the device identification to be predicted, the infectious disease patient and the device identification to be predicted corresponding to the identification are determined. Contact duration between objects to be predicted, including:
    根据所述待预测设备标识和所述目标设备标识在所述叶子节点中同时出现的次数,计算所述关联次数;Calculate the number of associations according to the number of times the identifier of the device to be predicted and the identifier of the target device appear simultaneously in the leaf node;
    根据所述关联次数和所述叶子节点中包括的多个数据之间的时间间隔,计算所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长。According to the time interval between the association times and the plurality of data included in the leaf node, the contact time between the infectious disease patient and the object to be predicted corresponding to the identifier of the device to be predicted is calculated.
  4. 根据权利要求3所述的传染病的传染概率预测方法,其中,所述数据是所述传染病患者的设备终端通过如下方式得到的:The method for predicting the probability of infection of an infectious disease according to claim 3, wherein the data is obtained by the equipment terminal of the patient with the infectious disease in the following manner:
    获取所述第一无线通信装置扫描到的一个或者多个广播设备的名称信息;acquiring name information of one or more broadcasting devices scanned by the first wireless communication device;
    在判断所述名称信息符合预设命名规则时,将符合预设命名规则广播设备作为所述第二无线通信装置;When judging that the name information complies with a preset naming rule, a broadcast device that complies with the preset naming rule is used as the second wireless communication device;
    从与所述第二无线通信装置对应的名称信息中提取所述待预测设备标识;extracting the identifier of the device to be predicted from the name information corresponding to the second wireless communication device;
    根据所述目标设备标识、所述待预测设备标识、所述第一无线通信装置与所述第二无线通信装置之间的信号强度以及所述第一终端设备的当前位置,生成所述数据。The data is generated according to the target device identification, the to-be-predicted device identification, the signal strength between the first wireless communication device and the second wireless communication device, and the current location of the first terminal device.
  5. 根据权利要求4所述的传染病的传染概率预测方法,其中,所述传染病的传染概率预测方法还包括:The method for predicting the probability of contagion of an infectious disease according to claim 4, wherein the method for predicting the probability of contagion of an infectious disease further comprises:
    根据各所述当前位置,计算所述传染病患者的传染路径。Based on each of the current positions, an infection route of the infectious disease patient is calculated.
  6. 根据权利要求1所述的传染病的传染概率预测方法,其中,根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离,包括:The method for predicting the probability of contagion of infectious diseases according to claim 1, wherein according to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the to-be-predicted device identification , determine the contact distance between the infectious disease patient and the object to be predicted, including:
    根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度、所述第一无线通信装置与第二无线通信装置在间隔预设距离时的标准信号强度以及预设的环境衰减因子,确定所述传染病患者与所述待预测对象之间的接触距离。According to the current signal strength between the first wireless communication device corresponding to the target device identification and the second wireless communication device corresponding to the device identification to be predicted, the first wireless communication device and the second wireless communication device are predicted at an interval. The standard signal strength at the time of setting the distance and the preset environmental attenuation factor are used to determine the contact distance between the infectious disease patient and the object to be predicted.
  7. 根据权利要求1-6任一项所述的传染病的传染概率预测方法,其中,所述目标设备标识是所述传染病患者的终端设备通过如下方式得到的:The method for predicting the probability of contagion of an infectious disease according to any one of claims 1-6, wherein the target device identifier is obtained by the terminal device of the patient with the infectious disease in the following manner:
    对所述传染病患者的属性信息进行哈希运算得到哈希值;Perform a hash operation on the attribute information of the infectious disease patient to obtain a hash value;
    利用预设的剪裁规则对所述哈希值进行剪裁,得到具有预设长度的哈希值,并将所述具有预设长度的哈希值作为所述目标设备标识。The hash value is trimmed by using a preset trimming rule to obtain a hash value with a preset length, and the hash value with a preset length is used as the target device identifier.
  8. 一种传染病的传染概率预测装置,包括:An infectious disease probability prediction device, comprising:
    获取模块,用于获取传染病患者的目标设备标识,并根据所述目标设备标识和预设的时间段,从预设的数据库中获取与所述目标设备标识具有关联关系的待预测设备标识;an acquisition module, configured to acquire the target device identification of the infectious disease patient, and obtain the to-be-predicted device identification associated with the target device identification from a preset database according to the target device identification and a preset time period;
    第一确定模块,用于根据所述目标设备标识与所述待预测设备标识之间的关联次数,确定所述传染病患者和与所述待预测设备标识对应的待预测对象之间的接触时长;A first determination module, configured to determine the contact duration between the infectious disease patient and the object to be predicted corresponding to the device identification to be predicted according to the number of associations between the identification of the target device and the identification of the device to be predicted ;
    第二确定模块,用于根据所述目标设备标识对应的第一无线通信装置与所述待预测设备标识对应的第二无线通信装置之间的当前信号强度,确定所述传染病患者与所述待预测对象之间的接触距离;The second determination module is configured to determine the relationship between the infectious disease patient and the The contact distance between the objects to be predicted;
    传染概率预测模块,用于根据所述接触时长和接触距离,确定所述传染病患者对所述待预测对象的传染概率。An infection probability prediction module, configured to determine the infection probability of the infectious disease patient to the to-be-predicted object according to the contact duration and contact distance.
  9. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-7任一项所述的传染病的传染概率预测方法。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method for predicting the infection probability of an infectious disease according to any one of claims 1-7.
  10. 一种电子设备,包括:An electronic device comprising:
    处理器;以及processor; and
    存储器,用于存储所述处理器的可执行指令;a memory for storing executable instructions for the processor;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-7任一项所述的传染病的传染概率预测方法。Wherein, the processor is configured to execute the method for predicting the probability of contagion of an infectious disease according to any one of claims 1-7 by executing the executable instructions.
PCT/CN2021/127548 2020-12-29 2021-10-29 Infection probability prediction method and apparatus for infectious disease, storage medium and electronic device WO2022142685A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011591936.8A CN112712902B (en) 2020-12-29 2020-12-29 Infectious disease infection probability prediction method and device, storage medium, and electronic device
CN202011591936.8 2020-12-29

Publications (1)

Publication Number Publication Date
WO2022142685A1 true WO2022142685A1 (en) 2022-07-07

Family

ID=75546247

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/127548 WO2022142685A1 (en) 2020-12-29 2021-10-29 Infection probability prediction method and apparatus for infectious disease, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN112712902B (en)
WO (1) WO2022142685A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115497639A (en) * 2022-11-17 2022-12-20 上海维智卓新信息科技有限公司 Epidemic prevention spatiotemporal region determination method and device
CN116310841A (en) * 2023-05-15 2023-06-23 深圳市气象服务有限公司 Environment monitoring system and environment parameter processing method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112712902B (en) * 2020-12-29 2022-12-16 医渡云(北京)技术有限公司 Infectious disease infection probability prediction method and device, storage medium, and electronic device
CN113611430B (en) * 2021-07-28 2024-06-14 广东省科学院智能制造研究所 Epidemic situation prediction method and device based on Bayesian neural network
CN113947123B (en) * 2021-11-19 2022-06-28 南京紫金体育产业股份有限公司 Personnel trajectory identification method, system, storage medium and equipment
CN114743690A (en) * 2022-05-05 2022-07-12 医渡云(北京)技术有限公司 Infectious disease early warning method, infectious disease early warning device, infectious disease early warning medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204130A1 (en) * 2002-04-26 2003-10-30 The Regents Of The University Of California Early detection of contagious diseases
US20170206334A1 (en) * 2016-01-14 2017-07-20 Stuart Tin Fah Huang Proximity Tracing Methods and Systems
US20170352119A1 (en) * 2016-06-03 2017-12-07 Blyncsy, Inc. Tracking proximity relationships and uses thereof
US20180052970A1 (en) * 2016-08-16 2018-02-22 International Business Machines Corporation Tracking pathogen exposure
CN108986921A (en) * 2018-07-04 2018-12-11 泰康保险集团股份有限公司 Disease forecasting method, apparatus, medium and electronic equipment
CN111653358A (en) * 2020-05-29 2020-09-11 鹏城实验室 Infection risk assessment method, first terminal and computer storage medium
CN112712902A (en) * 2020-12-29 2021-04-27 医渡云(北京)技术有限公司 Infectious disease infection probability prediction method and device, storage medium, and electronic device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2936876A1 (en) * 2015-07-22 2017-01-22 Radicalogic Technologies, Inc. Dba Rl Solutions Systems and methods for near-real or real-time contact tracing
CN111863270B (en) * 2020-05-20 2024-06-18 京东城市(北京)数字科技有限公司 Disease infection probability determination method, device, system and storage medium
CN112073904B (en) * 2020-09-10 2023-02-24 维沃移动通信有限公司 Event monitoring method, system, device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030204130A1 (en) * 2002-04-26 2003-10-30 The Regents Of The University Of California Early detection of contagious diseases
US20170206334A1 (en) * 2016-01-14 2017-07-20 Stuart Tin Fah Huang Proximity Tracing Methods and Systems
US20170352119A1 (en) * 2016-06-03 2017-12-07 Blyncsy, Inc. Tracking proximity relationships and uses thereof
US20180052970A1 (en) * 2016-08-16 2018-02-22 International Business Machines Corporation Tracking pathogen exposure
CN108986921A (en) * 2018-07-04 2018-12-11 泰康保险集团股份有限公司 Disease forecasting method, apparatus, medium and electronic equipment
CN111653358A (en) * 2020-05-29 2020-09-11 鹏城实验室 Infection risk assessment method, first terminal and computer storage medium
CN112712902A (en) * 2020-12-29 2021-04-27 医渡云(北京)技术有限公司 Infectious disease infection probability prediction method and device, storage medium, and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115497639A (en) * 2022-11-17 2022-12-20 上海维智卓新信息科技有限公司 Epidemic prevention spatiotemporal region determination method and device
CN116310841A (en) * 2023-05-15 2023-06-23 深圳市气象服务有限公司 Environment monitoring system and environment parameter processing method

Also Published As

Publication number Publication date
CN112712902A (en) 2021-04-27
CN112712902B (en) 2022-12-16

Similar Documents

Publication Publication Date Title
WO2022142685A1 (en) Infection probability prediction method and apparatus for infectious disease, storage medium and electronic device
WO2019000887A1 (en) Method and device for recommending information
JP6426174B2 (en) Data management of connected devices
US9743251B2 (en) Adding location names using private frequent location data
US20140324856A1 (en) Application discoverability
WO2020199662A1 (en) Method and device for pushing information
CN107222331B (en) method and device for monitoring performance of distributed application system, storage medium and equipment
CN105447129B (en) Personalized content acquisition method, user attribute mining method, system and device
CN107085549B (en) Method and device for generating fault information
CN107172209B (en) Information pushing method and device
CN110737726B (en) Method and device for determining test data of interface to be tested
JP2014532892A (en) Periodic ambient waveform analysis for dynamic device configuration
US11869014B2 (en) Physical proximity graphing
CN110515758B (en) Fault positioning method and device, computer equipment and storage medium
US20120284299A1 (en) Preventing leakage of information over a network
EP4081916B1 (en) Method and device for improving the searchability of incident-specific social media content posted via particularly identified communication devices
CN112256682A (en) Data quality detection method and device for multi-dimensional heterogeneous data
CN112511459A (en) Traffic identification method and device, electronic equipment and storage medium
KR102396812B1 (en) method for managing sensors installed in smart city and server therefor
WO2017140154A1 (en) Method and system for security information management based on intelligent platform
KR20190021848A (en) Method for monitoring server, apparatus and system for executing the method
CN114708545A (en) Image-based object detection method, device, equipment and storage medium
US11576188B2 (en) External interference radar
CN112711710A (en) Tracking method, system, server and storage medium for multi-number terminal
US20200118023A1 (en) Intelligent Signal Matching of Disparate Input Signals in Complex Computing Networks

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: 21913429

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: 21913429

Country of ref document: EP

Kind code of ref document: A1