A method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching
The WiFi-based contact tracing method enhances infectious disease detection by constructing a high-risk database from compressed user data, improving efficiency and reducing computational costs while maintaining privacy.
Patent Information
- Application Number
- JP2022555088
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-04-14
- Filing Date
- 2022-04-21
- Publication Date
- 2024-10-09
- Estimated Expiration
- 2042-04-21
AI Technical Summary
Traditional contact tracing methods for infectious diseases, such as COVID-19, rely heavily on unreliable human memory and require significant human resources, and existing digital methods like GPS and Bluetooth-based systems face accuracy and equipment scalability issues.
A contact tracing method using WiFi matching that involves building a high-risk WiFi database from confirmed patients' access records, compressing data with bidirectional mapping, and calculating an overlap rate to identify high-risk users based on their WiFi connections.
This method improves screening efficiency by analyzing WiFi connection records without invading privacy and reducing computational resources, providing comprehensive data support for identifying high-risk populations.
Smart Images

Figure 0007564565000051 
Figure 0007564565000052 
Figure 0007564565000001
Abstract
Description
[Technical field]
[0001] The present invention relates to detection of susceptible populations of infectious diseases, and in particular to a method for contact tracing and pre-screening of susceptible populations of infectious diseases based on WiFi matching. [Background technology]
[0002] The novel coronavirus outbreak that broke out in early 2020 has had a major impact on productive life around the world, and by March 2022, the total number of confirmed cases worldwide has exceeded 470 million, the total number of deaths has exceeded six million, and the World Health Organization has already recognized coronavirus disease 2019 (COVID-19) as one of the worst public health events in history. The novel coronavirus has brought enormous loss of life and property to the world, caused serious divisions between nations, societies, and people, and seriously changed the structure of the world. Summary of the Invention [Problem to be solved by the invention]
[0003] Contact tracing is a very important step in the prevention process of coronavirus epidemics. In the public health field, contact tracing refers to the process of identifying potential contacts of an infected person and then collecting further information about these contacts. Since multiple infectious diseases, including COVID-19, spread among people through respiratory infections, contact transmission, etc., i.e., person-to-person contact, early detection of these high-risk people who have come into contact with infected people plays a very important role in timely isolation of potential infected people.
[0004] Traditional contact tracing methods mainly rely on questionnaire surveys of infected individuals, which is highly dependent on the memory of the subjects, and is unreliable, requires a large amount of manpower, and is inefficient. With the development of the information age, digital contact tracing technology, such as contact tracing using application programs on smart terminals, is becoming the answer to solving this problem. Digital contact tracing generally requires location data, such as GPS, WiFi, communication base stations, Bluetooth beacons, etc., and can be further divided into the following two types of methods according to the data type used.
[0005] 1) Method using absolute location data: Absolute location information, such as GPS location, static WiFi hotspot or base station location, is used, and these data can generally be expressed in the form of geographic coordinates. Although these data may not be highly accurate for infectious disease contact tracing, a large amount of data can be used to discover and cluster specific user behavior patterns.
[0006] 2) Methods using relative location data: Relative location information, such as interaction data between two devices with Bluetooth turned on, or data on simultaneous use of the same public transportation such as airplanes or trains, is used. These data are generally represented as data pairs located in the same area at a certain point in time. These data have relatively high accuracy, but require specific devices (e.g., Bluetooth), and also focus too much on point-to-point interactions, resulting in a lack of overall information.
[0007] The two types of data have some practical applications. For example, the health code commonly used in China uses users' GPS sequence data to perform contact determination and tracing, while the Trace Together service provided by the Singapore government performs contact tracing by forcing citizens to download a dedicated application program that uses Bluetooth signals and wear dedicated Bluetooth communication devices. These two aspects have the following disadvantages: GPS data has limited accuracy indoors and is related to sensitive information such as a person's specific location trajectory; Bluetooth point-to-point contact data requires the large-scale use of specialized equipment, which is costly and difficult to disseminate.
[0008] In response to the shortcomings of the above methods, the applicant proposes a method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching.
[0009] The objective of the present invention is to make up for the shortcomings of traditional application technologies and provide a more comprehensive contact tracing method for infectious disease susceptible groups by using different types of data. This method uses the WiFi access records of patients with a confirmed infectious disease history to build a high-risk WiFi database, and obtains daily updated user WiFi access records, which can determine users' infection risk and improve the efficiency of finding susceptible groups.
[0010] The object of the present invention is achieved by the following technical solutions. [Means for solving the problem]
[0011] A method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching, comprising: 1) User anonymous identification code record matching: Obtain the unique anonymous identification code data table of confirmed-infected users through the database, and use hive SQL to search for the corresponding WiFi connection records of these IDs in the main database. Establish data table partitions according to the date and save them as original data records. The data time span is the total number of days. The WiFi connection dataset of confirmed-infected users R={R1, R2, ..., R T}, where i The record for the day is R i In total, K i If there are records, R i teeth
number
number
number
number
number
number
number
number
number
number
number
number
number
[0012] In addition, in the step 1) of matching the user anonymous identification code records, the unique anonymous identification code of the confirmed infection user is matched with the main database of WiFi connection records of users nationwide using the HIVE SQL tool, and a partitioned confirmed infection user data record table is generated for subsequent processing. The specific implementation method is as follows: 1.1) The original database includes two parts: 1.1.1) a confirmed-infection user information data table including the anonymous identification code gid_confirm of the confirmed-infection user and the confirmed-infection date confirm_day; and 1.1.2) a nationwide user WiFi connection record data table including the anonymous user identification code gid, the mac address connected to WiFi mac, the record creation date day, the record creation area area, the record creation time hour, and the number of WiFi connections times within the record time. The same anonymous user identification code of the two databases is used as an index, and a WiFi connection record data table of the confirmed-infection user is generated using a hive sql tool. However, when partitioning the WiFi connection record data table of nationwide users by area and date to construct a target data table, it is necessary to quickly determine the target screening area (whose area code is AREACORE) and the start and end times of target consideration (BEGINDAY and ENDDAY, respectively) in order to improve screening efficiency and reduce screening time. 1.2) In subsequent processing of the data table of WIFI connection records of confirmed infected users, in order to prevent memory overflow due to the large amount of data, a HIVE SQL tool is used to partition the data table using the date as an index.
[0013] In addition, in the data preprocessing of step 2), the original user anonymous identification code and WiFi mac address are compressed and restored using a bidirectional mapping dictionary. The specific implementation method is as follows: 2.1) A bidirectional mapping dictionary class TwoWayDict is constructed. The feature of the dictionary is that when an original uncompressed string is input, a bidirectional mapping is formed in the dictionary from the uncompressed string to the compressed string and from the compressed string to the uncompressed string. That is, the uncompressed string and the compressed string are stored as keys and corresponding values, respectively, so that storage space and memory can be saved in subsequent processing. When a prediction result is obtained, the original uncompressed string is similarly obtained based on the bidirectional dictionary. 2.2) Using the user anonymous identification code and the WiFi mac address, create two bidirectional mapping dictionaries dict according to the above method. user and dict wifi Establish.
[0014] In addition, in the construction of the high-risk WiFi database in step 3), the MAC addresses in the WiFi connection data of the historical users are added to the high-risk WiFi database according to the date, and the expired WiFi is dynamically deleted to reduce the false positive rate. The specific implementation method is as follows: 3.1) Historical data processing: Extract the WiFi MAC address and the infection confirmation date from the WiFi connection records of users with a history of infection, and create a high-risk WiFi database dict dan Put it in a dict dan takes the WiFi MAC address as the key and the infection confirmation date as the value. If there are duplicate MAC addresses, select the closest date and save it as the value. 3.2) Processing of daily updated data: When daily updated data is obtained, the MAC addresses of the WiFi that the confirmed infected patients connected to on that day are dictated by the above method. dan After adding, dict dan , and the difference between the infection confirmation date corresponding to the MAC address and the current date is the high-risk WiFi loss threshold thr dan If it does, remove it from the high-risk WiFi database.
[0015] Furthermore, in determining the risk of infection in step 4), the user's WiFi connection data updated daily is compared with the high-risk WiFi database to obtain a polymerization rate, and based on a threshold, it is determined whether the user is a high-risk user. The specific steps are as follows: 4 1) Obtaining the daily updated WiFi connection records of users, grouping them by user anonymous identification code, User Calculate the polymerization rate of the WiFi network that the user connected to that day with the high-risk WiFi database, and calculate the polymerization rate r user The formula is:
number
number
[0016] The contact tracing and pre-screening method for infectious disease susceptible groups based on WiFi matching of the present invention is mainly based on the user's WiFi connection records collected by mobile devices and the anonymous identification code list of confirmed infected users, and obtains the final high-risk user list through steps such as record matching, information compression, construction of a high-risk WiFi database, and calculation of the polymerization rate of users with high-risk WiFi. Compared with the contact tracing method, the analysis, correction, and dimensionality compression of the WiFi connection record data in the present invention does not touch privacy information such as location, does not use additional devices, saves computing resources, reduces processing time, and improves screening efficiency, providing more comprehensive data support in another dimension for finding high-risk susceptible groups that may come into contact with confirmed infected users. [Brief description of the drawings]
[0017] [Figure 1] 1 is a method flowchart for digital contact tracing and pre-screening based on WiFi matching according to the present invention. [Diagram 2] FIG. 13 is a graph showing a comparison of accuracy rate and recall rate of screening users in an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] The specific implementation method and operation principle of the present invention will be described in detail below in conjunction with the accompanying drawings.
[0019] Working Example In this example, we used WiFi connection record data of users collected from a certain location from January 1, 2020 to March 20, 2020, and anonymous information of users confirmed to be infected with a certain respiratory infection during this time period. Specific variables and related data information included in the dataset are shown in Tables 1, 2, 3, and 4.
[0020] WiFi connection records for some users in a location [Table 1]
[0021] Field description of WiFi connection record data for some users at a location [Table 2]
[0022] Nationwide confirmed cases data [Table 3]
[0023] Interpretation of the wifi_list variable fields in the mobile device dataset [Table 4]
[0024] In this embodiment, by default, the implementation dataset of the contact tracing and pre-screening method for infectious disease susceptible groups is the WiFi connection data of users in the above-mentioned location and the confirmed infection user data of an infectious disease, and the result of this method is a high-risk user list, and the detailed implementation steps are specifically as follows:
[0025] 1) Matching with WiFi connection records based on user anonymous identification code, using hive sql tools to extract sub-tables from the main table of WiFi connection records of nationwide users based on the record date and the selected region code to improve matching efficiency, the same user anonymous identification code is the screening condition, the user anonymous identification code, the MAC address connected to WiFi, the record creation date, and the user's confirmed infection date fields in the corresponding records are left, the record creation date is used as the partition index, and partition processing is performed on the generated WiFi connection record data table of the confirmed infection user. In order to verify the prediction effect, in this embodiment, the records of some healthy users are sampled and similar processing is performed, and default processing is performed on the confirmed infection date field of the healthy users. At the same time, a seed field is added to the table, and when seed is equal to 0, it represents a healthy user, and when seed is equal to 1, it represents a confirmed infection user.
[0026] 2) Process the WiFi connection records of confirmed infected users obtained in step 1 in chronological order. After reading the data, extract the gid and mac address columns, and then convert them into bidirectional mapping dictionaries. user and dict wifi Then, the gid string and the mac address string are compressed. The compressed data table is shown in Table 5.
[0027] Data table after being compressed with a bidirectional mapping dictionary [Table 5]
[0028] 3) Process the historical data and consider the WiFi that all confirmed infected users connected to. Considering that there is an incubation period for a certain infectious disease, i.e., the infected user is asymptomatic until the infection is confirmed, the record occurrence date is the infection confirmation date T inc If it is determined that the WiFi is within the range, the MAC address and the date of the day are added to the high-risk WiFi database. inc The format of the obtained high-risk WiFi database is as follows: {'w3706696': datetime.date(2020, 3, 18), 'w3658960': datetime.date(2020, 2, 16), 'w3737021': datetime.date(2020, 3, 11), 'w3834102': datetime.date(2020, 3, 15), 'w194670': datetime.date(2020, 3, 20), 'w2787916': datetime.date(2020, 2, 23),…}
[0029] 4) Determine the daily update data, group the daily updated WiFi connection records of users by user gid, summarize the WiFis scanned by each user that day, calculate the polymerization rate with high-risk WiFis, and determine whether the polymerization rate exceeds a threshold thr user In this embodiment, the high-risk user is determined based on whether the thr user We set,to 0.1 and construct a high-risk user set for that day,,whose format is as follows: {'u46515', 'u19505', 'u12248', 'u35433', 'u19808', …}
[0030] 5) Update the high-risk WiFi database with the information of actual confirmed infected users for that day, and update the recording date for those already in the high-risk WiFi database.
[0031] 6) Map the current compressed user id to the original user anonymous identification code and screen these users intensively. For example, the user code mapping result in step 4) is as follows:
[0032] ANDROID-21010e17edd0437599c2388cd65d130b ANDROID-c8607f33b36a40b7b17c227867fb290e ANDROID-7e2f8561d05f468ca553ae9daa55b18c ANDROID-018570e1daa544f082b655cf80feae54 ANDROID-cb2c78a391ac47229f2aa499d20a2a5f
[0033] (7) In this embodiment, the daily accuracy rate and recall rate are shown in Figure 2. Considering that the recall rate index is more important than the accuracy rate in infectious disease screening, the present invention better realizes the screening of high-risk individuals.
[0034] The contact tracing and pre-screening method for infectious disease susceptible groups based on WiFi matching of the present invention is mainly based on the WiFi connection records of users collected by mobile devices and the anonymous identification code list of confirmed infected users, and obtains the final high-risk user list through steps such as record matching, information compression, construction of a high-risk WiFi database, and calculation of the polymerization rate of users with high-risk WiFi. Figure 1 is a specific flow of the contact tracing and pre-screening method for infectious disease susceptible groups based on WiFi matching. In the entire embodiment, the WiFi connection record data set of users is processed according to the flow shown in Figure 1, and the screening result of high-risk individuals is finally obtained. Figure 2 is a comparison result of the accuracy rate and recall rate of screening from users by this method. Compared with the contact tracing method, the analysis, correction, and dimensional compression of WiFi connection record data does not touch privacy information such as location, does not use additional devices, and can save computing resources, reduce processing time, and improve screening efficiency, providing more comprehensive data support in another dimension to find high-risk susceptible groups that may come into contact with confirmed infected users.
[0035] The above-mentioned embodiment is merely an example of the present invention, and the best examples and drawings of the present invention are disclosed for the purpose of explanation, but those skilled in the art can understand that various substitutions, changes and modifications can be made without departing from the spirit and scope of the present invention and the appended claims. Therefore, the present invention should not be limited to the best examples and the contents disclosed in the drawings. (Additional Note) (Appendix 1) A method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching, comprising: 1) User anonymous identification code record matching: Obtain the unique anonymous identification code data table of confirmed infected users through the database, and use hive sql to search for the corresponding WiFi connection records of these IDs in the main database. Establish data table partitions according to the date and save them as original data records. The data time span is the total number of days. The WiFi connection dataset of confirmed infected users R = {R 1 ,R 2 ,...,R T } where the record on day i is R i In total, K i If there are records, R i teeth
number
number
number
number
number
number
number
number
number
number
number
number
number
number
number
Claims
1. A method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching, comprising: 1) User anonymous identification code record matching: obtain the unique anonymous identification code data table of confirmed infected users through the database, and use hive sql to search for the corresponding WiFi connection records of these IDs in the main database, establish a data table partition according to the date, and save it as the original data record. The data time span is the total number of days. The WiFi connection dataset of confirmed infected users R = {R 1 , R 2 , . . . , R T }, where the record on day i is R i In total, i If there are records, R i teeth [0010] where each record r ij (gid ij , confirmDay ij , mac ij ) and gid ij represents a unique anonymous identification code of the user, and confirmDay ij represents the date of the user's confirmed infection, and ij represents the mac address where the user connected to the WiFi; 2) Data preprocessing: The data set obtained in step (1) is stored locally in the code, and a bidirectional mapping dictionary is established. After obtaining any one string, a new designation symbol is established for this string based on the number of entries stored inside, and a mapping is established with this string and the designation symbol as the key and value, respectively, and the code bidirectional mapping dictionary dict of the user anonymous identification code is created. user , and the total number of users is N u and abbreviate the anonymous identification code of the original user with a uniform length. [0025] where i u is 1, 2, 3,..., N u and the Wi-Fi code bidirectional mapping dictionary dict wifi , and the total number of WiFi is N w and the original WiFi MAC address is abbreviated [0030] where u w is 1, 2, 3,..., N w and the record dataset obtained by mapping the original record dataset [0045] and 3) Construction of high-risk WiFi database: Information dataset based on the abbreviation mapping performed in step (2) [0050] Using this, we dictate the high-risk WiFi database. dan year, [006] Extract the WiFi connection records of confirmed infected users and search for the WiFi abbreviation in the records. [0070] dict dan At the same time, the date on which this WiFi was added to the high-risk WiFi database is set to the current date. now If this WiFi already exists, the date is recorded as day now Update to and enter the date [0080] and the current date now The difference is the high-risk WiFi loss threshold thr dan deleting records exceeding 4) Determining infection risk: Using newly acquired user Wi-Fi connection records every day [0097] year, [0010] Group by user and for each user, dict all the WiFis the user connected to that day. dan and the polymerization rate ##EQU00011## where: ##EQU00012## is the dict that this user connected to that day. dan is the number of WiFi ##EQU00013## is the total number of WiFis that this user connected to that day, and r user is the judgment threshold thr user and determining that the user is a high-risk user if the WiFi matching-based contact tracing and pre-screening method for infectious disease susceptible populations is higher than the WiFi matching-based contact tracing and pre-screening method for infectious disease susceptible populations.
2. In the step 1), the record matching of the user anonymous identification code is performed by using the hive SQL tool to match the unique anonymous identification code of the confirmed infected user with the main database of the WiFi connection records of the national users, and generate a partitioned confirmed infected user data record table for subsequent processing. The specific implementation method is as follows: 1.1) The original database includes two parts: 1.1.1) a confirmed-infection user information data table including the anonymous identification code gid_confirm of the confirmed-infection user and the confirmed-infection date confirm_day; and 1.1.2) a nationwide user WiFi connection record data table including the anonymous user identification code gid, the mac address mac connected to WiFi, the record creation date day, the record creation area area, the record creation time hour, and the number of WiFi connections times within the record time. The same anonymous user identification code of the two databases is used as an index, and the WiFi connection record data table of the confirmed-infection user is generated using the hive sql tool. The WiFi connection record data table of the national users is partitioned by area and date, and when constructing the target data table, the target screening area and the start and end time of the target consideration are determined early; 1.2) The method for contact tracing and pre-screening of infectious disease susceptible groups based on WiFi matching as described in claim 1, characterized in that the hive sql tool is used to perform partition processing on the data table using the date as an index.
3. In the data pre-processing of step 2), the original user anonymous identification code and the WiFi MAC address are compressed and restored using a bidirectional mapping dictionary. The specific implementation method is as follows: 2.1) A bidirectional mapping dictionary TwoWayDict is constructed, the feature of which is that when an original uncompressed string is input, a bidirectional mapping from the uncompressed string to the compressed string and from the compressed string to the uncompressed string is formed inside the dictionary, i.e., the uncompressed string and the compressed string are stored as keys and corresponding values, respectively, so that storage space and memory can be saved in subsequent processing; and when a prediction result is obtained, the original uncompressed string is similarly obtained based on this bidirectional mapping dictionary; 2.2) Two bidirectional mapping dictionaries dict using the user anonymous identification code and the WiFi mac address, respectively. user and dict wifi The method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching according to claim 1, characterized in that:
4. In the step 3), the high-risk WiFi database is constructed by adding the MAC address in the WiFi connection data of the historical user to the high-risk WiFi database according to the date, and dynamically deleting the expired WiFi to reduce the false positive rate. The specific implementation method is as follows: 3.1) Historical data processing: Extract the WiFi MAC address and the date of infection confirmation from the WiFi connection record of the historically confirmed infected user, and create a high-risk WiFi database dict dan Put it in dict dan uses the WiFi MAC address as a key and the infection confirmation date as a value. If there are duplicate MAC addresses, select the closest date and save it as the value. 3.2) Processing of daily updated data: When the daily updated data is obtained, the MAC addresses of the Wi-Fi that the confirmed infected patients connected to on that day are dictated using the above method. dan After adding, dict dan , and the difference between the infection confirmation date corresponding to the MAC address and the current date is the high-risk WiFi loss threshold thr dan The method for contact tracing and pre-screening of infectious disease susceptible populations based on WiFi matching according to claim 1, characterized in that if the WiFi matching exceeds 100%, it is removed from the high-risk WiFi database.
5. In the step 4) of judging the risk of infection, the user's WiFi connection data updated daily is compared with the high-risk WiFi database to obtain a polymerization rate, and based on a threshold, it is judged whether the user is a high-risk user. The specific steps are as follows: 4.1) After obtaining the user's WiFi connection records updated daily, the records are grouped by the user's anonymous identification code, and the polymerization rate of the WiFi the user connected to that day with the high-risk WiFi database is calculated. The polymerization rate r user The formula is: ##EQU14## and However, W user is the WiFi that this user connected to that day, dan is the high-risk WiFi database, ##EQU00015## denotes the number of elements in the set S, R user is the high risk threshold thr user 2. The method for contact tracing and pre-screening of infectious disease susceptible groups based on WiFi matching according to claim 1, characterized in that if the measured value is higher than 1, the user is determined to be a high-risk user, and the user should be screened intensively.
Citation Information
Patent Citations
Infectious disease transmission monitoring and early warning system and method
CN111354472A
Information providing method, server, voice recognition device, information providing program, and information providing system
JP2020027610A
