Infectious disease tracing method, device, electronic device and storage medium
By acquiring infectious disease diagnosis and treatment data and telecommunications trajectory data, we can build a transmission relationship chain and find out the source of infectious disease. This solves the problem of efficiency and accuracy of infectious disease traceability and achieves an efficient source traceability method.
Patent Information
- Application Number
- CN202011242198.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-26
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-05-26
AI Technical Summary
It is difficult to trace the source of infectious diseases. Existing medical methods to trace the source through tracking interviews and virus analysis are difficult and the workload is huge.
By obtaining infectious disease diagnosis and treatment data and telecommunications trajectory data, we can build a transmission relationship chain and find out the source of infectious disease.
It reduces a lot of manpower and makes the traceability of infectious diseases more efficient and accurate. It combines telecommunications trajectory data and infectious disease diagnosis and treatment data to find and analyze the transmission relationship chain of infectious diseases.
Smart Images

Figure CN112530600B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of public health and safety, and more specifically, to a method for tracing the source of an infectious disease, a device for tracing the source of an infectious disease, an electronic device, and a computer-readable storage medium. Background Art
[0002] When infectious diseases occur, their source is often difficult to trace. Current medical research can usually only find the source of infection through epidemiological surveys such as follow-up visits and virus analysis, which is difficult and labor-intensive. Summary of the invention
[0003] In view of this, one purpose of the embodiments of the present disclosure is to provide a new technical solution for tracing the source of infectious diseases.
[0004] According to a first aspect of the present disclosure, a method for tracing the source of an infectious disease is provided, comprising:
[0005] Obtain target patient groups based on infectious disease diagnosis and treatment data;
[0006] Obtain telecommunication trajectory data of target patient groups;
[0007] Constructing a communication relationship chain according to the telecommunication trajectory data;
[0008] Find out the infection source of the infectious disease based on the transmission relationship chain.
[0009] According to a second aspect of the present disclosure, there is also provided a device for tracing the source of an infectious disease, comprising:
[0010] The first acquisition module is used to acquire the target patient group based on the infectious disease diagnosis and treatment data;
[0011] The second acquisition module is used to obtain the telecommunication trajectory data of the target patient group;
[0012] A construction module, used to construct a propagation relationship chain according to the telecommunication trajectory data;
[0013] A search module is used to find the source of infection of the infectious disease based on the transmission relationship chain.
[0014] According to a third aspect of the present disclosure, there is also provided a device comprising at least one computing device and at least one storage device, wherein the at least one storage device is used to store instructions, and the instructions are used to control the at least one computing device to execute the method according to the first aspect above.
[0015] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.
[0016] One beneficial effect of the present disclosure is that according to the technical solution of the embodiments of the present disclosure, it is possible to obtain a target patient group based on infectious disease diagnosis and treatment data, and further obtain telecommunication trajectory data of the target patient group, so as to construct a transmission relationship chain based on the telecommunication trajectory data, and then find out the source of infection of the infectious disease based on the transmission relationship chain, that is, the embodiments of the present disclosure combine telecommunication trajectory data and infectious disease diagnosis and treatment data to find and analyze the transmission relationship chain of the infectious disease, and then determine the source of infection of the infectious disease, which reduces a lot of manpower work and makes the infectious disease tracing work more efficient and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings.
[0018] Figure 1 is a block diagram showing an example of a hardware configuration of an electronic device that can be used to implement an embodiment of the present disclosure;
[0019] Figure 2 A schematic diagram showing a flow chart of a method for tracing the source of an infectious disease according to an embodiment of the present disclosure;
[0020] Figure 3a A schematic diagram showing a potential propagation relationship diagram of an embodiment of the present disclosure;
[0021] Figure 3b~Figure 3d A schematic diagram showing a propagation relationship chain of an embodiment of the present disclosure is shown;
[0022] Figure 4 An information diagram showing a communication relationship chain according to an embodiment of the present disclosure is shown;
[0023] Figure 5 A functional block diagram of an infectious disease source tracing device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0024] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0025] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0026] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0027] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0028] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0029] Hereinafter, various embodiments and examples according to embodiments of the present invention are described with reference to the accompanying drawings.
[0030] <Hardware Configuration>
[0031] The method of the embodiment of the present disclosure may be implemented by at least one electronic device, that is, the apparatus 4000 for implementing the method may be arranged on the at least one electronic device. Figure 1 The hardware structure of an arbitrary electronic device is shown. Figure 1 The electronic device shown may be a portable computer, a desktop computer, a workstation, a server, etc., or may be any other device having a computing device such as a processor and a storage device such as a memory, and is not limited here.
[0032] like Figure 1 As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, etc. Among them, the processor 1100 is used to execute a computer program. The computer program can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1200 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 includes, for example, a USB interface, a headphone interface, etc. The communication device 1400 is capable of wired or wireless communication, and specifically may include Wifi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, etc. The display device 1500 is, for example, a liquid crystal display screen, a touch display screen, etc. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, etc. The electronic device 1000 may output voice information through the speaker 1700 , and may collect voice information through the microphone 1800 , etc.
[0033] Figure 1The electronic device shown is merely illustrative and does not in any way imply any limitation on the present invention, its application or use. Applied to the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to perform the infectious disease tracing method of the embodiment of the present disclosure. Technicians can design instructions according to the scheme disclosed in the present invention. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0034] In one embodiment, a device is provided, including at least one computing device and at least one storage device, wherein the at least one storage device is used to store instructions, and the instructions are used to control the at least one computing device to execute the method according to any embodiment of the present disclosure.
[0035] The device may include at least one Figure 1 The electronic device 1000 shown is provided with at least one computing device such as a processor and at least one storage device such as a memory, which is not limited herein.
[0036] <Method Example>
[0037] In this embodiment, a method for tracing the source of an infectious disease is provided. The method for tracing the source of an infectious disease can be implemented by an electronic device, and the electronic device can be as follows: Figure 1 The electronic device 1000 shown may be a server or a terminal device. That is, the method of this embodiment may be implemented by a server or a terminal device, or may be implemented by both a server and a terminal device.
[0038] In applications where a terminal device participates in the implementation of the method of this embodiment, the interaction may include human-computer interaction. In applications where a server participates in the implementation of the method of this embodiment, the interaction may include interaction between the server and the terminal device.
[0039] according to Figure 2 As shown, the infectious disease tracing method of this embodiment may include the following steps S2100 to S2400:
[0040] Step S2100, obtaining a target patient group based on infectious disease diagnosis and treatment data.
[0041] The infectious disease diagnosis and treatment data in this embodiment is data generated by recording disease information in the infectious disease diagnosis and treatment system. Usually, each piece of disease information corresponds to one piece of diagnosis and treatment data.
[0042] Each piece of infectious disease diagnosis and treatment data in the infectious disease diagnosis and treatment data includes a patient identity, and any one or both of the illness time and the diagnosis time. It can be understood that the illness time is usually less than or equal to the diagnosis time. The above identity is used to uniquely identify the patient. The identity can be the patient's ID number. Of course, the identity can also be other identifiers that can uniquely identify the patient, such as a passport number, a social security card number, etc. This embodiment is not limited here.
[0043] In this embodiment, the patient identity is encrypted to ensure data security and protect personal privacy. For example, the patient identity can be hashed using a cryptographic hash function to obtain ciphertext information. The cryptographic hash function can be any function that can implement hash processing, such as but not limited to the MD5 message digest algorithm, the digital signature algorithm (DSA) and the PBKDF2 algorithm. The ciphertext information can be a string of information, such as dccbsfg, or a combination of characters and numbers, such as f4dcc3b5aa, which is not limited here.
[0044] In step S2100, the target patient group can at least represent: among various infectious diseases recorded in the infectious disease system, the target patient group corresponding to the infectious disease for which infectious disease tracing is required, that is, the target patient group has a specific infectious disease category, for example, the target patient group is composed of target patients of infectious disease A; for another example, the target patient group is composed of target patients of infectious disease B, etc.
[0045] In step S2100, the target patient group may at least represent: a predetermined number of patients with early onset of any specific type of infectious disease. The predetermined number may be set according to the spread rate of the infectious disease, for example, 50 or 100 patients with early onset of infectious disease A may be selected, and the specific number may be determined according to actual conditions and needs.
[0046] In this embodiment, obtaining the target patient group according to the infectious disease diagnosis and treatment data in step S2100 may further include:
[0047] The patients are sorted from early to late according to the time of onset or diagnosis, and a predetermined number of patients with the earliest time of onset or diagnosis are obtained to form a target patient group.
[0048] For example, the patients may be sorted from earliest to latest according to the time of illness, and a predetermined number of patients may be selected to form a target patient group. For example, the first 50 or 100 patients with the earliest illness time of infectious disease A may be selected to form a target patient group.
[0049] For another example, the patients may be sorted from early to late according to the time of diagnosis, and a predetermined number of patients may be selected to form a target patient group. For example, the first 50 or 100 patients with the earliest diagnosis time of infectious disease A may be selected to form a target patient group.
[0050] Step S2200, obtaining telecommunication trajectory data of the target patient group.
[0051] The telecommunication track data in this embodiment is obtained from a telecommunication data system, and the telecommunication track data in the telecommunication data system is derived from base station detection data of a mobile operator.
[0052] Each piece of telecommunication trajectory data includes at least the patient's identity, mobile phone number, base station detection time and base station location information. The reference location information includes longitude information and latitude information. For example, the base station location information can be expressed as ,in, is the longitude value at time t, is the latitude value at time t, and t is the timestamp corresponding to the base station location information.
[0053] In this embodiment, the patient identity and mobile phone number may be encrypted separately to ensure data security and avoid leakage of personal privacy. For example, any of the above cryptographic hash functions may be used to perform hash processing on the patient identity and mobile phone number to obtain ciphertext information.
[0054] In this embodiment, the step S2200 of acquiring the telecommunication trajectory data of the target patient group may further include the following steps S2210-S2220:
[0055] Step S2210, obtaining the mobile phone number corresponding to the identity identifier of each target patient in the target patient group.
[0056] In this step S2210, the identity identifier may be an ID number, for example, the mobile phone number corresponding to the ID number of each target patient in the target patient group may be obtained. One ID number may correspond to one or more mobile phone numbers.
[0057] Step S2220, based on the mobile phone number corresponding to the identity identifier of each target patient in the target patient group, obtain the telecommunication trajectory data of the target patient within a predetermined time range before and after the illness time or the diagnosis time.
[0058] The predetermined time range may be set according to the spreading speed of the infectious disease.
[0059] For example, the telecommunication trajectory data of the target patient within 10 days before and after the onset of the disease (a total of 20 days) can be obtained. For another example, the telecommunication trajectory data of the target patient within 10 days before and after the diagnosis of the disease (a total of 20 days) can also be obtained.
[0060] Step S2300: construct a communication relationship chain based on telecommunication track data.
[0061] In step S2300, the electronic device 1000 can determine the correlation between each target patient in the target patient group based on the telecommunication trajectory data, and then construct a communication relationship chain consisting of the associated target patients.
[0062] In one embodiment, constructing a communication relationship chain according to telecommunication trajectory data in step S2300 may further include the following steps S2311-S2312:
[0063] Step S2311, pre-processing the telecommunication trajectory data.
[0064] In one example, the telecommunication trajectory data may be filtered to solve the problem of telecommunication trajectory data drift. The data drift of the telecommunication trajectory data refers to inaccurate trajectory points caused by information collection, base station detection signal oscillation, etc., and these inaccurate trajectory points need to be detected and filtered out.
[0065] In this example, the pre-processing of the telecommunication trajectory data in step S2311 may include performing a first filtering process on the telecommunication trajectory data, specifically including the following steps S2311-1 to S2311-2:
[0066] Step S2311 - 1 , for each telecommunication trajectory data of the target patient, calculate the speed and / or acceleration of the trajectory point corresponding to each telecommunication trajectory data.
[0067] In this step S2311-1, the speed of the trajectory point corresponding to the telecommunication trajectory data can be calculated based on the position information of the trajectory point of the previous telecommunication trajectory data and the trajectory point corresponding to the telecommunication trajectory data. For example, it can be calculated based on the difference in longitude and latitude between the trajectory point of the previous telecommunication trajectory data and the trajectory point corresponding to the telecommunication trajectory data.
[0068] In this step S2311-1, the acceleration of the trajectory point corresponding to the telecommunication trajectory data may be calculated according to the velocity of the trajectory point of the previous telecommunication trajectory data and the trajectory point corresponding to the telecommunication trajectory data.
[0069] Step S2311-2, filtering out telecommunication trajectory data corresponding to trajectory points with unreasonable speed and / or acceleration.
[0070] In this step S2311-2, after obtaining the speed and / or acceleration of the trajectory point corresponding to each telecommunication trajectory data of each target patient according to the above step S2311-1, the speed amplitude and acceleration amplitude of each target patient at the corresponding trajectory point can be calculated. Usually, the drift of the trajectory point will cause the target patient to produce a theoretically impossible speed and / or acceleration at a certain trajectory point. Therefore, by filtering out the telecommunication trajectory data corresponding to the trajectory points with unreasonable speed and / or acceleration, the telecommunication trajectory data can be corrected and filtered.
[0071] In one example, the preprocessing of the telecommunication trajectory data in step S2311 may include merging the telecommunication trajectory data, specifically including the following step S2311-3:
[0072] Step S2311-3: for each target patient's telecommunication trajectory data, multiple consecutive telecommunication trajectory data detected by the same base station are merged, and only the telecommunication trajectory data with the earliest detection time by the base station is retained.
[0073] According to step S2311-3, for each target patient, multiple consecutive telecommunication trajectory data detected by the same base station with adjacent base station detection times will be merged, and only the telecommunication trajectory data with the earliest base station detection time will be retained.
[0074] In this step S2311-3, for the telecommunication trajectory data of each target patient, in the telecommunication trajectory data obtained after the merging process, two telecommunication trajectory data with adjacent detection times of any base station correspond to different base stations.
[0075] In one example, for each target patient's telecommunication trajectory data, a field of the time when the target patient left the base station may be added to each piece of telecommunication trajectory data obtained after the merging process.
[0076] For each piece of telecommunication trajectory data, the base station detection time of the telecommunication trajectory data is used as the time when the target patient of the previous telecommunication trajectory data leaves the location of the base station, and the base station detection time in each piece of telecommunication trajectory data is the time when the target patient arrives at the location of the base station. In other words, for each piece of telecommunication trajectory data obtained after the merging process of each target patient, the base station detection time in the next piece of telecommunication trajectory data is added to the telecommunication trajectory data as the time when the target patient leaves the location of the base station, and the original base station detection time in the telecommunication trajectory data is the time when the target patient arrives at the location of the base station.
[0077] In this example, each piece of telecommunication trajectory data includes at least a patient identification, a patient mobile phone number, a time when the patient arrives at the location of the base station, and a time when the patient leaves the location of the base station.
[0078] In the embodiments of the present disclosure, other methods may be used to obtain telecommunication trajectory data including at least the patient's identity, the patient's mobile phone number, the time when the patient arrived at the location of the base station, and the time when the patient left the location of the base station. That is, the method used to obtain such telecommunication trajectory data does not affect the subsequent step S2312.
[0079] Step S2312, constructing a communication relationship chain using the pre-processed telecommunication trajectory data.
[0080] In one embodiment, building a communication relationship chain according to telecommunication trajectory data in step S2300 may further include the following steps S2321 to S2324:
[0081] Step S2321, obtaining all base stations involved in the telecommunication trajectory data.
[0082] The telecommunication trajectory data in step S2321 may be the telecommunication trajectory data pre-processed in step S2311 above, or may be telecommunication trajectory data processed in other ways. In short, each piece of telecommunication trajectory data at least includes the patient's identity, mobile phone number, the time when the patient arrived at the location of the base station, and the time when the patient left the location of the base station. All base stations involved in the telecommunication trajectory data may include, for example, base station 1, base station 2, base station 3, and the like.
[0083] Step S2322: For each base station, obtain other base stations within a predetermined distance range to form a base station group.
[0084] The predetermined distance range can be set according to the infectious distance of the infectious disease, and the distance range can be, for example, 100 meters. For example, other base stations within 100 meters from each base station can be selected, and the base station and other base stations can be combined into a base station group. This is because, for example, in infectious disease A, virus A can be transmitted through the air and is highly contagious. Therefore, if two target patients are detected within a difference of, for example, 100 meters, it is also considered that there is a potential transmission relationship between the two.
[0085] In this step S2322, each base station in the telecommunication trajectory data corresponds to a base station group, and the identifier of the base station group can have the same identifier as the corresponding base station, so as to correspond the base station group and the base station, and to distinguish different base station groups. For example, the base station group corresponding to base station 1 is base station group 1, and base station group 1 includes base station 1, base station 2, base station 3, etc.; the base station group corresponding to base station 2 is base station group 2, and base station group 2 includes base station 1, base station 2, base station 4, etc. It can be understood that different base station groups can include the same base stations, for example, the aforementioned base station group 1 and base station group 2 both include base station 1 and base station 2; different base station groups can also include different base stations, for example, the aforementioned base station group 1 includes base station 3, and base station group 2 includes base station 4.
[0086] Step S2323, based on each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group, a potential transmission relationship diagram of each target patient group is obtained.
[0087] In step S2323, obtaining a potential propagation relationship diagram of each target patient composition according to each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group may further include the following steps S2323-1~S2323-2:
[0088] Step S2323-1, for each base station group, according to the telecommunication trajectory data involved in each base station in the base station group, determine the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each encounter event. Specifically, each telecommunication trajectory data in the telecommunication trajectory data includes the time when the patient arrives at the location of the base station and the time when the patient leaves the location of the base station. Therefore, for each base station group, according to the time when the patient arrives at the location of the base station and the time when the patient leaves the location of the base station involved in each base station in the base station group, determine the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each of the encounter events.
[0089] The above encounter events indicate that the two target patients are located at the same base station group at the same time;
[0090] The above encounter time represents the encounter duration, the encounter start time point and the encounter end time point of the encounter event.
[0091] In step S2323-1, for each base station group, according to the telecommunication trajectory data involved in each base station in the base station group, determining the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each encounter event may further include the following steps S2323-11 to S2323-12:
[0092] Step S2323-11, sorting all telecommunication trajectory data involving base stations in each base station group in order from early to late according to the time field when the target patient arrives at the location of the base station and the time field when the target patient leaves the location of the base station.
[0093] Step S2323-12, according to the sorting result, the event in which the two target patients have overlapping residence time in the same base station group is determined as an encounter event, and the overlapping start time point, end time point and overlapping duration are determined as the encounter time.
[0094] Now, the above steps S2323-11 and S2323-12 are described in detail with a specific example. Taking base station group 1 as an example, base station group 1 includes base station 1, base station 2 and base station 3. It is assumed that the target patient 1 with ID number 610xxxxxxxxxxxxxxx is staying in base station 1, and the time when the target patient 1 enters base station 1 is: 8:00 am on December 1, 2019, and the time when the target patient 1 leaves base station 1 is: 9:30 am on December 1, 2019; the ID number is 410xxxxx Target patient 2 of xxxxxxxxxx stayed in base station 2, and the time when target patient 2 entered base station 2 was: 8:30 am on December 1, 2019, and the time when he left base station 2 was: 15:30 noon on December 1, 2019; target patient 3 with ID number 110xxxxxxxxxxxxxxx stayed in base station 3, and the time when target patient 3 entered base station 3 was: 13:00 noon on December 1, 2019, and the time when he left base station 3 was: 16:30 noon on December 1, 2019. Then, according to the time field when the above three target patients came to the base station and the time field when the target patients left the base station, the telecommunication trajectory data involved in base station group 1 can be sorted in the order of time from morning to night according to the above step 2323-11, and the following Table 1 can be obtained:
[0095] Table 1: Sorting results of telecommunication trace data involving base stations in base station group 1
[0096]
[0097] According to the sorting result of step S2323-12 of the above table 1, it can be seen that the residence time of the target patient 1 and the target patient 2 in the base station group 1 overlaps, and the residence time of the target patient 2 and the target patient 3 in the base station group 1 overlaps. Here, the encounter events and the corresponding encounter times in the base station group 1 can be obtained as shown in the following table 2:
[0098] Table 2: Encounter events and corresponding encounter times within base station group 1
[0099]
[0100] Step S2323-2, based on each encounter event, the encounter time and the infectious disease diagnosis and treatment data of the target patient involved in the encounter event, establish an association relationship between different target patients, and obtain a potential transmission relationship diagram composed of each target patient. Specifically, each infectious disease diagnosis and treatment data in the infectious disease diagnosis and treatment data includes the patient's illness time and / or diagnosis time. Therefore, based on the order of the illness time and / or diagnosis time of two target patients involved in an encounter event, establish an association relationship between the two target patients, that is, the transmission direction between the two patients in the encounter event.
[0101] In this step S2323-2, according to each encounter event, the encounter time and the infectious disease diagnosis and treatment data of the target patient involved in the encounter event, a correlation relationship is established between different target patients, and a potential transmission relationship diagram composed of each target patient is obtained, which can further include the following steps S2323-21~S2323-23:
[0102] Step S2323-21: Filter out the encounter events that meet the set conditions from all the encounter events to obtain a set of candidate encounter events.
[0103] The set conditions may include a first condition and a second condition. Here, constructing a propagation relationship chain according to the set of candidate encounter events obtained after filtering can not only improve the processing speed and reduce data redundancy, but also improve the accuracy of constructing the propagation relationship chain.
[0104] The above first condition may include: the number of occurrences of the same encounter event is greater than once. Then the filtering out of encounter events that meet the set conditions includes: when the number of occurrences of the same encounter event is greater than once, retain any one of the encounter events and filter out other encounter events. For example, if 131xxxxxxxx and 189xxxxxxxx, 189xxxxxxxx and 131xxxxxxxx in Table 2 above are one encounter event, then filter out any one of them and retain the other; for another example, if 189xxxxxxxx and 132xxxxxxxx, 132xxxxxxxx and 189xxxxxxxx in Table 2 above are one encounter event, then filter out one of them and retain the other.
[0105] The above second condition may include: the encounter time corresponding to the encounter event is less than or equal to the set time threshold. Then the filtering out of the encounter events that meet the set conditions includes: filtering out the encounter events whose corresponding encounter time is less than or equal to the set time threshold. The set time threshold can be set according to the transmission speed of the infectious disease. For example, the set time threshold can be 5 minutes. This is because, for example, in infectious disease A, virus A can be transmitted through the air and is highly contagious. Therefore, if two target patients meet for 5 minutes, it can be considered that there is a potential transmission relationship between the two. If the encounter events corresponding to the encounter events in Table 2 above are all longer than 5 minutes, they will not be filtered out.
[0106] In this embodiment, as long as the encounter event meets any of the first condition and the second condition, it is filtered out.
[0107] According to step S2323-21, the encounter events in Table 2 are filtered, and the following Table 3 can be obtained:
[0108] Table 3: Candidate encounter event set in base station group 1
[0109]
[0110] Step S2323-22, obtaining the propagation direction of each encounter event according to the infectious disease diagnosis and treatment data of the target patient involved in each encounter event in the candidate encounter event set.
[0111] In this step S2323-22, the propagation direction of each encounter event can be obtained according to the illness time field or the diagnosis time field in the infectious disease diagnosis and treatment data of the target patient involved in each encounter event in the set of candidate encounter events.
[0112] Continuing with the above example, consider that in infectious disease A, it is generally believed that target patients with early onset are more likely to spread the disease to target patients with later onset, so the direction of transmission is selected as one-way transmission according to the onset time or diagnosis time. Assuming that target patient 1 with mobile phone number 131xxxxxxxx fell ill earlier than target patient 2 with mobile phone number 189xxxxxxxx, it can be considered that target patient 1 with mobile phone number 131xxxxxxxx spread the disease to target patient 2 with mobile phone number 189xxxxxxxx; and, target patient 2 with mobile phone number 189xxxxxxxx fell ill earlier than target patient 3 with mobile phone number 132xxxxxxxx, it can be considered that target patient 2 with mobile phone number 189xxxxxxxx spread the disease to target patient 3 with mobile phone number 132xxxxxxxx. Of course, for some infectious diseases, two-way transmission is also possible.
[0113] Step S2323-23, establishing association relationships between different target patients based on each encounter event, the encounter time corresponding to the encounter event, and the propagation direction of the encounter event.
[0114] In this step S2323-23, establishing an association relationship between different target patients based on each encounter event, the encounter time of the corresponding encounter event and the propagation direction of the encounter event can further include: using the mobile phone numbers of the target patients involved in each of the encounter events in the set of alternative encounter events as nodes, using different mobile phone numbers corresponding to the same encounter events as edges, and using the propagation direction as the direction of the edge to establish an association relationship and obtain a potential propagation relationship diagram.
[0115] Continuing with the above example, the mobile phone numbers involved in the encounter events 131xxxxxxxx and 189xxxxxxxx, 132xxxxxxxx and 189xxxxxxxx in Table 3 are taken as nodes, the same encounter events corresponding to different mobile phone numbers are taken as edges, and the propagation direction is taken as the direction of the edge. The potential propagation relationship diagram is as follows: Figure 3a As shown, it can be understood that Figure 3a This is only an exemplary graph. In actual situations, the potential propagation relationship graph often contains more nodes and associated edges between nodes.
[0116] Step S2324, constructing a transmission relationship chain consisting of associated target patients based on the potential transmission relationship graph.
[0117] In one embodiment, in step S2324, constructing a transmission relationship chain consisting of associated target patients according to the potential transmission relationship graph may further include the following steps S2324-1a to S2324-2a:
[0118] Step S2324-1a, sorting the encounter events involved in the potential propagation relationship graph according to the early or late corresponding encounter start time points.
[0119] Step S2324-2a, traverse the sorted encounter events to obtain a propagation relationship chain consisting of associated target patients.
[0120] In another embodiment, considering that the potential transmission relationship graph is often large, that is, contains many nodes and edges, a step of segmenting the transmission relationship graph is added to increase the speed of finding the source of infection. In this step S2324, constructing a transmission relationship chain composed of associated target patients according to the potential transmission relationship graph can further include the following steps S2324-1b~S2324-3b:
[0121] Step S2324-1b, split the potential propagation relationship graph to obtain multiple sub-propagation relationship graphs.
[0122] In this step S2324-1b, the potential propagation relationship graph is divided to obtain multiple sub-propagation relationship graphs, which can further include the following steps S2324-11b to S2324-13b:
[0123] Step S2324-11b, when there are multiple edges between any two nodes in the potential propagation relationship graph, the multiple edges are merged into one edge.
[0124] It can be understood that the existence of multiple edges between two nodes indicates that the two target patients encounter each other multiple times.
[0125] Step S2324-12b, calculate the weight value of the edge between any two nodes in the potential propagation relationship graph.
[0126] Step S2324-13b, split the potential propagation relationship graph according to the weight values of all edges and a preset splitting algorithm to obtain multiple sub-propagation relationship graphs.
[0127] The preset segmentation algorithm may be a spectral clustering algorithm, and any effective spectral clustering algorithm may segment the potential propagation relationship graph.
[0128] Step S2324-2b, sorting the encounter events involved in each sub-propagation relationship graph according to the corresponding encounter events and the corresponding encounter start time points.
[0129] Step S2324-3b, traverse the sorted encounter events to obtain a propagation relationship chain consisting of associated target patients.
[0130] For the encounter events after traversal and sorting in the above step S2324-2a or S2324-3b, obtaining the propagation relationship chain consisting of the associated target patients may further include the following steps:
[0131] Step S1, for each traversed encounter event, determine whether the active target patient in the encounter event is located in other propagation relationship chains to obtain a first determination result.
[0132] For example, after obtaining the potential transmission relationship graph, if the traversal operation is not started, there is no transmission relationship chain. Here, it is assumed that the first encounter event traversed can be the target patient with mobile phone number 131xxxxxxxx infecting the target patient with mobile phone number 189xxxxxxxxde, that is, the target patient with mobile phone number 131xxxxxxxx is the active target patient, and the target patient with mobile phone number 189xxxxxxxx is the passive target patient.
[0133] For example, after obtaining the potential propagation relationship graph, if any number of traversal operations have been performed, and after performing the any number of traversal operations, the following can be obtained: Figure 3b and Figure 3c The two propagation relationship chains shown in Figure 2 are: Figure 3b The transmission chain shown is based on the target patient with mobile phone number 121xxxxxxxx as the transmission source. Figure 3c The propagation relationship chain shown is based on the target patient with mobile phone number 141xxxxxxxx as the propagation source. It can be understood that the figure is only exemplary, and in actual situations, if any number of traversal operations have been performed, multiple propagation relationship chains may be obtained, and each propagation relationship chain includes multiple child nodes.
[0134] Step S2: performing different processing according to different first judgment results.
[0135] In one example, performing different processing according to different first judgment results in step S2 may further include the following steps S21a to S22a:
[0136] Step S21a, when the first judgment result is that the active target patient in the encounter event is not located in other communication relationship chains, a new communication relationship chain with the active target patient as the communication source is created.
[0137] Continuing with the above example, Figure 3d As shown, the active target patient 131xxxxxxxx is not located in other transmission relationship chains such as Figure 3b and Figure 3c In the transmission relationship chain shown, a new transmission relationship chain is created with the active target patient 131xxxxxxxx as the transmission source.
[0138] Step S22a, adding the passive target patient in the encounter event to the child node of the active target patient to update the propagation relationship chain.
[0139] Continuing with the above example, the passive target patient 189xxxxxxxx may be added to the child node of the active target patient 131xxxxxxxx.
[0140] In one example, performing different processing according to different first judgment results in step S2 may further include the following steps S21b to S22b:
[0141] Step S21b, when the first judgment result is that the active target patient in the encounter event is located in other communication relationship chains, it is judged whether the passive target patient in the encounter event is located in other communication relationship chains to obtain a second judgment result.
[0142] In this step S21b, assuming that the above-mentioned active target patient 131xxxxxxxx is already located in other propagation relationship chains, it is necessary to further determine whether the passive target patient 189xxxxxxxx is also located in other propagation relationship chains.
[0143] Step S22b, performing different processing according to different second judgment results.
[0144] In one example, in step S22b, performing different processing according to different second judgment results may further include the following steps S22b-1 to S22b-3:
[0145] Step S22b-1, when the second judgment result is that the passive target patient is located in other propagation relationship chains, determine whether the passive target patient is an ancestor node of the active target patient.
[0146] The ancestor nodes of the above active target patient include the parent node of the active target patient, the parent node of the parent node, the parent node of the parent node of the parent node, etc., which are not limited in this embodiment.
[0147] In this step S22b-1, assuming that the above passive target patient 189xxxxxxxx is located in any other propagation relationship chain where the active target patient 131xxxxxxxx is located, then in any other propagation relationship chain, the passive target patient 189xxxxxxxx may be the ancestor node of the active target patient 131xxxxxxxx, or may be the child node of the active target patient 131xxxxxxxx. Therefore, it is necessary to further determine whether the passive target patient 189xxxxxxxx is the ancestor node of the active target patient 131xxxxxxxx based on the case in which the passive target patient 189xxxxxxxx is located in any other propagation relationship chain where the active target patient 131xxxxxxxx is located in this step S22b-1.
[0148] Step S22b-2, when the passive target patient is the ancestor node of the active target patient, no processing is performed on other propagation relationship chains; and, when the passive target patient is the ancestor node of the active target patient, and in all propagation relationship chains where the active target patient is located, the passive target patient is the ancestor node of the active target patient, a new propagation relationship chain with the active target patient as the propagation source is created, and the passive target patient is added to the child node of the active target patient to update the propagation relationship chain.
[0149] In this step S22b-2, assuming that in any other propagation relationship chain where the active target patient 131xxxxxxxx is located, the passive target patient 189xxxxxxxx is the ancestor node of the active target patient 131xxxxxxxx, then no processing is performed on any other propagation relationship chain.
[0150] In this step S22b-2, there is another situation. It is assumed that in any other propagation relationship chain where the active target patient 131xxxxxxxx is located, the passive target patient 189xxxxxxxx is the ancestor node of the active target patient 131xxxxxxxx, but these other propagation relationship chains do not meet the requirements. Here, it is necessary to create a new propagation relationship chain with the active target patient 131xxxxxxxx as the propagation source, and add the passive target patient 189xxxxxxxx to the child node of the active target patient 131xxxxxxxx.
[0151] Step S22b-3, when the passive target patient is not the ancestor node of the active target patient, and there is no passive target patient in the child nodes of the active target patient, the passive target patient is added to the child nodes of the active target patient to update other propagation relationship chains; and, when it is not the ancestor node of the target patient, and there is a passive target patient in the child nodes of the active target patient, no processing is performed.
[0152] In this step S22b-3, assuming that in any other propagation relationship chain where the active target patient 131xxxxxxxx is located, the passive target patient 189xxxxxxxx is not the ancestor node of the active target patient 131xxxxxxxx, and the child node of the active target patient 131xxxxxxxx does not include the passive target patient 189xxxxxxxx, then the passive target patient 189xxxxxxxx is added to the child node of the active target patient 131xxxxxxxx to update any other propagation relationship chain where the active target patient 131xxxxxxxx is located.
[0153] In this step S22b-3, assuming that in any other propagation relationship chain where the active target patient 131xxxxxxxx is located, the passive target patient 189xxxxxxxx is not the ancestor node of the active target patient 131xxxxxxxx, and the passive target patient 189xxxxxxxx exists in the child node of the active target patient 131xxxxxxxx, no processing is performed.
[0154] In one example, performing different processing according to different second judgment results in step S22b may further include:
[0155] When the second judgment result is that the passive target patient is not located in other propagation relationship chains, the passive target patient is added to the child node of the active target patient to update other propagation relationship chains.
[0156] Assuming that the passive target patient 189xxxxxxxx is not located in any other propagation relationship chain where the active target patient 131xxxxxxxx is located, the passive target patient 189xxxxxxxx is added to the child node of the active target patient 131xxxxxxxx to update any other propagation relationship chain where the active target patient 131xxxxxxxx is located.
[0157] Step S2400, finding the source of infection of the infectious disease based on the transmission relationship chain.
[0158] In this embodiment, the above propagation relationship chain may be a tree structure relationship diagram, for example, may include multiple tree structure relationship diagrams.
[0159] In this embodiment, finding the infection source of the infectious disease based on the transmission relationship chain in step S2400 may further include:
[0160] Get the root node of the tree structure relationship diagram as the corresponding source of infection.
[0161] It is understandable that in the actual spread of infectious diseases, there are usually multiple transmission relationship chains. Here, the root node of each tree structure relationship diagram can be obtained as the root node corresponding to each tree structure relationship diagram, and the root node can be used as the corresponding source of infection, that is, multiple sources of infection are obtained, and finally the multiple sources of infection can be manually analyzed.
[0162] According to the embodiment of the present disclosure, it is possible to obtain the target patient group based on the infectious disease diagnosis and treatment data, and further obtain the telecommunication trajectory data of the target patient group, so as to construct a transmission relationship chain based on the telecommunication trajectory data, and then find out the source of infection of the infectious disease based on the transmission relationship chain. That is, in the embodiment of the present disclosure, the telecommunication trajectory data and the infectious disease diagnosis and treatment data are combined to find and analyze the transmission relationship chain of the infectious disease, and then determine the source of infection of the infectious disease, which reduces a lot of manpower work and makes the infectious disease tracing work more efficient and accurate.
[0163] In one embodiment, it can provide a human-computer interaction interface to obtain the required telecommunication trajectory data from the telecommunication data system based on user requests, thereby improving the targeting of data acquisition. In this embodiment, the infectious disease tracing method can further include the following steps S5100~S5300:
[0164] Step S5100, providing an acquisition interface for acquiring telecommunication trajectory data.
[0165] Step S5200: Send a request for obtaining the telecommunication trajectory data of the target patient to the telecommunication data system through the acquisition interface.
[0166] The request carries the target patient's identity and the query time period of the telecommunication trajectory data.
[0167] Step S5300: receiving telecommunication trajectory data of a target patient within a query time period returned by the telecommunication data system in response to a request.
[0168] In one embodiment, the infectious disease tracing method further includes: in response to a request for obtaining mining results of a mining transmission relationship chain, obtaining a set display mode; and displaying the constructed transmission relationship chain according to the display mode.
[0169] The display mode may be in graphical form.
[0170] In this embodiment, it can provide the propagation relationship chain according to the set display mode based on the request for obtaining the mining result of the mining propagation relationship chain, so that the display output has more friendly visibility.
[0171] In one embodiment, the infectious disease tracing method further includes: providing a setting entry in response to an operation of setting a display mode; acquiring a display mode input through the setting entry; and updating the set display mode to the input display mode.
[0172] In this embodiment, the setting entry can be any entry such as an input box, a drop-down list, a voice input entry, etc. that can be used for the user to input information, and is not limited here.
[0173] In this embodiment, it allows the staff to set the display mode as needed and switch between different display modes as needed, for example, setting the display mode to a graphic mode to provide visibility of information output.
[0174] In one embodiment, the infectious disease tracing method further includes: in response to a display request including a time point, a step of displaying a transmission relationship chain up to the time point.
[0175] In this embodiment, the display of the propagation relationship chain corresponding to the specific time point may further include the following steps S6100-S6500:
[0176] Step S6100, in response to a display request including a specific time point, obtaining a target patient group based on infectious disease diagnosis and treatment data based on the specific time point, and obtaining telecommunication trajectory data of the target patient group, and establishing an inverted index for the telecommunication trajectory data of the target patient group based on the base station.
[0177] In this step S6100, specifically in response to a request to display a propagation relationship chain ending at a specified time point, an inverted index is established for the telecommunication trajectory data based on the base station in the telecommunication trajectory data of the target patient group at the corresponding time point.
[0178] The inverted index is indexed by the base station. After the inverted index is established by using the base station as the index, the data corresponding to each base station may at least include the target patient who has arrived at the base station and the corresponding base station detection time.
[0179] It is understandable that the target patient group here is composed of different target patients depending on different time points.
[0180] In this embodiment, a time slider that can be slid may be provided, such as Figure 4 As shown, a time point can be specified by sliding the time slider. Here, in order to quickly respond to the user's display request to display the propagation relationship chain, an inverted index can be established for the telecommunication trajectory data based on the base station in the telecommunication trajectory data of the target patient group in step S6100 to accelerate processing, thereby improving user experience.
[0181] For example, if the specified time point is December 24, 2019, 1:12:00 PM, then the first 50 or 100 people whose illness or diagnosis time is before December 24, 2019, 1:12:00 PM can be selected to form the target patient group.
[0182] For another example, the target patient group here may also be directly the target patient group obtained according to any of the above embodiments.
[0183] In this embodiment, establishing an inverted index based on the telecommunication trajectory data of the target patient group based on the base station in step S6100 may further include the following steps S6110 to S6130:
[0184] Step S6110, performing predetermined processing on the telecommunication trajectory data of the target patient group.
[0185] The predetermined processing may be filtering processing. How to filter the telecommunication trace data may refer to the above embodiments, which will not be described in detail in this embodiment.
[0186] Step S6120, searching for all base stations involved in the telecommunication trajectory data after the predetermined processing.
[0187] Step S6130, taking each base station as an index, recording the target patients who have arrived at the base station and the corresponding base station detection time in the telecommunication trajectory data after the predetermined processing.
[0188] After establishing an inverted index for the telecommunication trajectory data of the target patient group based on the base station location in step S6100, data corresponding to each base station indexed as a base station can be obtained. The data corresponding to each base station includes: base station identification, patient ID number, mobile phone number, time when the patient arrived at the location of the base station, and time when the patient left the location of the base station.
[0189] Step S6200, obtaining all base stations involved in the inverted index.
[0190] Step S6300: For each base station, other base stations within a predetermined distance range are obtained to form a base station group.
[0191] The specific implementation of step S6300 may refer to step S2322 above, and this embodiment will not be elaborated here.
[0192] Step S6400, obtaining a potential propagation relationship diagram of each target patient composition based on each base station group and the telecommunication trajectory data and diagnosis and treatment data of the target patients involved in each base station group.
[0193] In this step S6400, the specific implementation of obtaining the potential propagation relationship diagram of each target patient composition based on each base station group and the telecommunication trajectory data and medical treatment data of the target patients involved in each base station group can refer to the above step S2323, and this embodiment will not be described in detail here.
[0194] Step S6500, based on the potential transmission relationship diagram, construct a transmission relationship chain consisting of associated target patients, and display the transmission relationship chain.
[0195] The specific implementation of constructing a transmission relationship chain consisting of associated target patients according to the potential transmission relationship diagram in step S6400 can refer to the above step S2324, and this embodiment will not be described in detail here.
[0196] According to the method of this embodiment, it can respond to the time period query specified by the user and display the propagation relationship chain of the corresponding time point.
[0197] In one embodiment, the infectious disease tracing method further includes: storing the corresponding propagation relationship chain constructed up to the specific time point with the specific time point as the index; when responding to the display request containing the specific time point again, displaying the stored propagation relationship chain corresponding to the specific time point. In this way, the propagation relationship chain up to a specific time point only needs to be constructed and saved once, and the saved propagation relationship chain can be displayed later, further improving the response speed. Of course, if the diagnosis and treatment data or telecommunication trajectory data is updated, the step of constructing the propagation relationship chain can be re-executed as needed.
[0198] In one embodiment, the infectious disease method further includes: providing a configuration switch for displaying a transmission relationship chain.
[0199] When the switch state of the configuration switch is turned on, at least one of the following items is displayed:
[0200] Spread the patient information of all target patients in the relationship chain. Figure 4 As shown, there are 3 transmission relationship chains. The first transmission relationship chain includes 9 target patients, the second transmission relationship chain includes 2 target patients, and the third transmission relationship chain includes 1 target patient.
[0201] The contact time between target patients in the transmission chain. Figure 4 The shown figure can show the encounter time between each target patient in each transmission chain.
[0202] The contact point between target patients in the transmission chain. Figure 4 The circles on the map shown may represent contact locations between the target patients.
[0203] The historical driving trajectories of all target patients in the transmission relationship chain are displayed on a map displayed on an electronic device.
[0204] Target patients who have been to the suspected origin in the transmission chain. Figure 4 The largest circle shown is the suspected origin, and the target patients who have been to the suspected origin are shown.
[0205] <Device Example>
[0206] In this embodiment, a source tracing device 5000 for infectious diseases is provided. Figure 5 As shown, it includes a first acquisition module 5100, a second acquisition module 5200, a construction module 5300 and a search module 5400.
[0207] The first acquisition module 5100 is used to acquire a target patient group based on infectious disease diagnosis and treatment data;
[0208] The second acquisition module 5200 is used to acquire telecommunication trajectory data of the target patient group;
[0209] The construction module 5300 is used to construct a propagation relationship chain according to the telecommunication trajectory data;
[0210] The search module is used to find the source of infection of the infectious disease based on the transmission relationship chain.
[0211] In one embodiment, each piece of infectious disease diagnosis and treatment data in the infectious disease diagnosis and treatment data includes a patient identification, and any one or both of the time of illness and the time of diagnosis.
[0212] The first acquisition module 5100 is also used to: sort the patients from early to late according to the illness time or diagnosis time, and obtain a predetermined number of patients with the earliest illness time or diagnosis time to form the target patient group.
[0213] In one embodiment, the second acquisition module 5200 is also used to: obtain the mobile phone number corresponding to the identity identifier of each target patient in the target patient group; based on the mobile phone number corresponding to the identity identifier of each target patient in the target patient group, obtain the telecommunication trajectory data of the target patient within a predetermined time range before and after the illness time or the diagnosis time.
[0214] Among them, each piece of telecommunication trajectory data in the telecommunication trajectory data at least includes a patient identification, a mobile phone number, a base station detection time and a base station location information.
[0215] In one embodiment, the construction module 5300 is further used to: pre-process the telecommunication trajectory data; and construct a propagation relationship chain using the telecommunication trajectory data after the pre-processing.
[0216] In one embodiment, the preprocessing includes a first filtering process, and the construction module 5300 is further used to: for each target patient's telecommunication trajectory data, calculate the speed and / or acceleration of the trajectory point corresponding to each telecommunication trajectory data; filter out the telecommunication trajectory data corresponding to the trajectory point with unreasonable speed and / or acceleration; and / or,
[0217] The preprocessing includes merging processing, and the construction module 5300 is also used to: for each target patient's telecommunication trajectory data, merge multiple consecutive telecommunication trajectory data detected by the same base station, and only retain the telecommunication trajectory data with the earliest base station detection time.
[0218] In one embodiment, the preprocessing includes merging processing, and, for the telecommunication trajectory data of each target patient, in the telecommunication trajectory data obtained after the merging processing, two telecommunication trajectory data with adjacent detection times of any base station correspond to different base stations.
[0219] The construction module 5300 is also used for: for each telecommunication trajectory data of the target patient, adding a field of the time when the target patient leaves the base station to each telecommunication trajectory data obtained after the merging process; wherein, for each telecommunication trajectory data, the base station detection time of the telecommunication trajectory data is used as the time when the target patient of the previous telecommunication trajectory data leaves the location of the base station, and the base station detection time in each telecommunication trajectory data is the time when the target patient arrives at the location of the base station.
[0220] In one embodiment, the construction module 5300 is also used to: obtain all base stations involved in the telecommunication trajectory data; for each base station, obtain other base stations within a predetermined distance range to form a base station group; obtain a potential propagation relationship graph composed of each target patient according to each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group; and construct a propagation relationship chain composed of associated target patients according to the potential propagation relationship graph. Each piece of telecommunication trajectory data in the telecommunication trajectory data includes the patient's identity, mobile phone number, the time when the patient arrived at the location of the base station, and the time when the patient left the location of the base station.
[0221] In one embodiment, the device further includes a display module (not shown in the figure), which is used to: respond to the display request containing a specific time point, obtain the target patient group based on the infectious disease diagnosis and treatment data based on the specific time point, and obtain the telecommunication trajectory data of the target patient group; establish an inverted index for the telecommunication trajectory data of the target patient group based on the base station; obtain all base stations involved in the inverted index; for each base station, obtain other base stations within a predetermined distance range to form a base station group; obtain a potential propagation relationship graph composed of each target patient according to each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group; construct a propagation relationship chain composed of each associated target patient according to the potential propagation relationship graph, and display the propagation relationship chain. Wherein, each piece of data after the inverted index is established includes the base station identifier, the patient's ID number, the mobile phone number, the time when the patient arrived at the location of the base station, and the time when the patient left the location of the base station.
[0222] In one embodiment, the display module is also used to: perform predetermined processing on the telecommunication trajectory data of the target patient group; search for all base stations involved in the telecommunication trajectory data after the predetermined processing; and use each base station as an index to record the target patients who have arrived at the base station in the telecommunication trajectory data after the predetermined processing and the corresponding base station detection time.
[0223] In one embodiment, each piece of telecommunication trajectory data in the telecommunication trajectory data includes the time when the patient arrives at the location of the base station and the time when the patient leaves the location of the base station; each piece of infectious disease diagnosis and treatment data in the infectious disease diagnosis and treatment data includes the patient's illness time and / or diagnosis time. The construction module 5300 and the display module both include a potential propagation graph acquisition unit (not shown in the figure), and the potential propagation graph acquisition unit is used to: for each base station group, determine the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each encounter event based on the time when the patients involved in each base station in the base station group arrive at the location of the base station and the time when the patients leave the location of the base station; establish an association relationship between different target patients based on each encounter event, the encounter time, and the illness time and / or diagnosis time of the target patient involved in the encounter event, and obtain a potential propagation relationship graph consisting of each target patient;
[0224] The encounter event indicates that two target patients are located at the same base station group at the same time;
[0225] The encounter time indicates the encounter duration, the encounter start time point and the encounter end time point of the encounter event.
[0226] In one embodiment, the potential propagation graph acquisition unit is also used to: sort all telecommunication trajectory data involving base stations in each base station group in order from early to late according to the time field when the target patient arrives at the location of the base station and the time field when the target patient leaves the location of the base station; according to the sorting result, determine the time when the two target patients overlap in the same base station group as an encounter time event, and determine the overlapping start time point, end time point and overlapping duration as the encounter time.
[0227] In one embodiment, the potential propagation graph acquisition unit is also used to: filter out the encounter events that meet the set conditions among all the encounter events to obtain a set of alternative encounter events; obtain the propagation direction of each encounter event based on the infectious disease diagnosis and treatment data of the target patient involved in each encounter event in the set of alternative encounter events; and establish an association relationship between different target patients based on each encounter event, the encounter time corresponding to the encounter event, and the propagation direction of the encounter event.
[0228] In one embodiment, filtering out encounter events that meet set conditions includes: when the number of occurrences of the same encounter event is greater than one, retaining any one of the encounter events and filtering out other encounter events; and / or filtering out encounter events whose corresponding encounter time is less than or equal to a set time threshold.
[0229] In one embodiment, each piece of telecommunication trajectory data in the telecommunication trajectory data also includes a patient's mobile phone number; the potential propagation graph acquisition unit is further used to: establish an association relationship using the mobile phone numbers of the target patients involved in each of the encounter events in the set of alternative encounter events as nodes, using different mobile phone numbers corresponding to the same encounter events as edges, and using the propagation direction as the direction of the edge.
[0230] In one embodiment, the construction module 5300 is also used to: sort the encounter events involved in the potential communication relationship graph according to the early and late corresponding encounter start time points; traverse the sorted encounter events to obtain a communication relationship chain composed of associated target patients.
[0231] In one embodiment, the construction module 5300 is also used to: divide the potential propagation relationship graph to obtain multiple sub-propagation relationship graphs; and sort the encounter events involved in each of the sub-propagation relationship graphs according to the early or late corresponding encounter starting time points.
[0232] In one embodiment, when there are multiple edges between any two nodes in the potential propagation relationship graph, the multiple edges are merged into one edge; the weight value of the edge between any two nodes in the potential propagation relationship graph is calculated; and according to the weight values of all the edges and a preset splitting algorithm, the potential propagation relationship graph is split to obtain multiple sub-propagation relationship graphs.
[0233] In one embodiment, the device also includes a first judgment module (not shown in the figure), which is used to: for each of the traversed encounter events, determine whether the active target patient in the encounter event is located in other transmission relationship chains, and obtain a first judgment result; perform different processing according to different first judgment results.
[0234] The first judgment module is also used for: when the first judgment result is that the active target patient in the encounter event is not located in other communication relationship chains, creating a new communication relationship chain with the active target patient as the communication source; adding the passive target patient in the encounter event to the child node of the active target patient to update the communication relationship chain.
[0235] In one embodiment, the device also includes a second judgment module (not shown in the figure), and the second judgment module is used to: when the first judgment result is that the active target patient in the encounter event is located in other communication relationship chains, determine whether the passive target patient in the encounter event is located in the other communication relationship chain to obtain a second judgment result; perform different processing according to different second judgment results.
[0236] The second judgment module is further used for: if the second judgment result is that the passive target patient is not located in the other propagation relationship chain, adding the passive target patient to the child node of the active target patient to update the other propagation relationship chain;
[0237] In the case where the second judgment result is that the passive target patient is located in other propagation relationship chains, judging whether the passive target patient is an ancestor node of the active target patient;
[0238] In the case where the passive target patient is the ancestor node of the target patient, no processing is performed on the other propagation relationship chains; and, in the case where the passive target patient is the ancestor node of the active target patient, and in all propagation relationship chains where the active target patient is located, the passive target patient is the ancestor node of the active target patient, a new propagation relationship chain with the active target patient as the propagation source is created, and the passive target patient is added to the child node of the active target patient to update the propagation relationship chain; or,
[0239] In the case where the passive target patient is not the ancestor node of the active target patient and the passive target patient does not exist in the child nodes of the active target patient, the passive target patient is added to the child nodes of the active target patient to update the other propagation relationship chains; and, in the case where the passive target patient is not the ancestor node of the target patient and the passive target patient exists in the child nodes of the active target patient, no processing is performed.
[0240] In one embodiment, the second judgment module is also used to: when the second judgment result is that the passive target patient is not located in other propagation relationship chains, add the passive target patient to the child node of the active target patient to update the other propagation relationship chains.
[0241] In one embodiment, the second acquisition module 5200 is further used to: provide an acquisition interface for acquiring telecommunication trajectory data; send a request for acquiring the telecommunication trajectory data of a target patient to a telecommunication data system through the acquisition interface, wherein the request carries the identity of the target patient and a query time period of the telecommunication trajectory data; and receive the telecommunication trajectory data of the target patient within the query time period returned by the telecommunication data system in response to the request.
[0242] In one embodiment, the propagation relationship chain is a tree structure relationship diagram;
[0243] The search module 5400 is also used to obtain the root node of the tree structure relationship diagram as the corresponding infection source.
[0244] In one embodiment, the device also includes a first display module (not shown in the figure), which is used to: obtain a set display mode in response to a request for obtaining the mining results of the mining propagation relationship chain; and display the constructed propagation relationship chain according to the display mode.
[0245] In one embodiment, the device also includes an update module (not shown in the figure), which is used to: provide a setting entry in response to an operation of setting a display mode; obtain the display mode input through the setting entry; and update the set display mode to the input display mode.
[0246] In one embodiment, the device further includes a storage module (not shown in the figure).
[0247] The storage module is used to store the corresponding propagation relationship chain with the specific time point as the index;
[0248] The display module is used to display the stored propagation relationship chain corresponding to the specific time point when responding to the display request containing the specific time point again.
[0249] In one embodiment, the device further includes a second display module (not shown in the figure), and the second display module is used to:
[0250] Provides a configuration switch for displaying the propagation relationship chain;
[0251] When the switch state of the configuration switch is turned on, at least one of the following items is displayed:
[0252] Patient information of all target patients in the communication relationship chain;
[0253] The contact time between target patients in the transmission relationship chain;
[0254] The contact points between target patients in the transmission relationship chain;
[0255] Displaying the historical driving trajectories of all target patients in the transmission relationship chain on a map displayed by an electronic device;
[0256] The target patients in the transmission chain who have been to the suspected origin.
[0257] <Storage Medium Embodiment>
[0258] This embodiment provides a computer-readable storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of the above method embodiments is implemented.
[0259] The present invention may be a device, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0260] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0261] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0262] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present invention.
[0263] Various aspects of the present invention are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flowchart and / or block diagram and the combination of the boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0264] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0265] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0266] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0267] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A method for tracing the source of an infectious disease, comprising: Obtain target patient groups based on infectious disease diagnosis and treatment data; Obtain telecommunication trajectory data of target patient groups; Constructing a communication relationship chain according to the telecommunication trajectory data; Find out the source of infection of the infectious disease based on the transmission relationship chain, Wherein, constructing a propagation relationship chain according to the telecommunication trajectory data includes: Acquire all base stations involved in the telecommunication trajectory data; For each of the base stations, obtaining other base stations within a predetermined distance range to form a base station group, wherein the predetermined distance range is set according to the infectious distance of the infectious disease; According to each of the base station groups and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each of the base station groups, a potential transmission relationship diagram of each of the target patients is obtained; According to the potential transmission relationship diagram, a transmission relationship chain consisting of associated target patients is constructed.
2. The method according to claim 1, wherein: Each piece of infectious disease diagnosis and treatment data in the infectious disease diagnosis and treatment data includes a patient identification, and any one or both of the time of illness and the time of diagnosis; The method of obtaining a target patient group based on infectious disease diagnosis and treatment data includes: sorting the patients from early to late according to the onset time or diagnosis time, and obtaining a predetermined number of patients with the earliest onset time or diagnosis time to form the target patient group.
3. The method according to claim 1, wherein: The obtaining of telecommunication trajectory data of the target patient group includes: Obtaining the mobile phone number corresponding to the identity identifier of each target patient in the target patient group; Based on the mobile phone number corresponding to the identity identifier of each target patient in the target patient group, obtaining telecommunication trajectory data of the target patient within a predetermined time range before and after the onset time or diagnosis time; Among them, each piece of telecommunication trajectory data in the telecommunication trajectory data at least includes a patient identification, a mobile phone number, a base station detection time and a base station location information.
4. The method according to claim 1, wherein: The constructing of a propagation relationship chain according to the telecommunication trajectory data comprises: Preprocessing the telecommunication trajectory data; The telecommunication track data after the preprocessing is used to construct a propagation relationship chain.
5. The method according to claim 4, wherein: The preprocessing includes a first filtering process: for each telecommunication trajectory data of the target patient, calculating the speed and / or acceleration of the trajectory point corresponding to each telecommunication trajectory data; Filter out telecommunication trajectory data corresponding to trajectory points with unreasonable speed and / or acceleration; and / or, The preprocessing includes merging processing: for each target patient's telecommunication trajectory data, multiple consecutive telecommunication trajectory data detected by the same base station are merged, and only the telecommunication trajectory data with the earliest detection time of the base station is retained.
6. The method according to claim 5, wherein: The preprocessing includes merging processing, and, for each target patient's telecommunication trajectory data, in the telecommunication trajectory data obtained after the merging processing, two telecommunication trajectory data with adjacent detection times of any base station correspond to different base stations; The method further comprises: For each telecommunication trajectory data of the target patient, a field for the time when the target patient leaves the base station is added to each telecommunication trajectory data obtained after the merging process; wherein, for each telecommunication trajectory data, the base station detection time of the telecommunication trajectory data is used as the time when the target patient of the previous telecommunication trajectory data leaves the location of the base station, and the base station detection time in each telecommunication trajectory data is the time when the target patient arrives at the location of the base station.
7. The method according to claim 1, wherein: The method further includes a step of displaying a propagation relationship chain up to a specific time point, the step comprising: Acquire a target patient group based on the infectious disease diagnosis and treatment data at the specific time point, and acquire telecommunication trajectory data of the target patient group; Establishing an inverted index based on the telecommunication trajectory data of the target patient group by the base station; Acquire all base stations involved in the inverted index; For each of the base stations, obtaining other base stations within a predetermined distance range to form a base station group; According to each of the base station groups and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each of the base station groups, a potential transmission relationship diagram of each of the target patients is obtained; According to the potential transmission relationship diagram, a transmission relationship chain consisting of associated target patients is constructed, and the transmission relationship chain is displayed.
8. The method according to claim 7, wherein: The step of establishing an inverted index for the telecommunication trajectory data of the target patient group based on the base station includes: performing predetermined processing on the telecommunication trajectory data of the target patient group; Searching for all base stations involved in the telecommunication trajectory data after the predetermined processing; Taking each base station as an index, the target patients who have arrived at the base station and the corresponding base station detection time in the telecommunication trajectory data after the predetermined processing are recorded.
9. The method according to claim 1 or 7, wherein: Each piece of telecommunication trajectory data in the telecommunication trajectory data includes the time when the patient arrived at the location of the base station and the time when the patient left the location of the base station; Each piece of infectious disease diagnosis and treatment data includes the patient's illness time and / or diagnosis time; The step of obtaining a potential transmission relationship diagram of each target patient composition based on each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group includes: For each base station group, according to the time when the patients involved in each base station in the base station group arrive at the location of the base station and the time when the patients leave the location of the base station, determine the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each of the encounter events; According to each of the encounter events, the encounter time, and the onset time and / or diagnosis time of the target patient involved in the encounter event, a correlation relationship is established between different target patients to obtain a potential transmission relationship diagram composed of each target patient; The encounter event indicates that two target patients are located at the same base station group at the same time; The encounter time indicates the encounter duration, the encounter start time point and the encounter end time point of the encounter event.
10. The method according to claim 9, wherein: For each base station group, according to the time when the patients involved in each base station in the base station group arrive at the location of the base station and the time when the patients leave the location of the base station, determining the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each encounter event, including: According to the time field when the target patient arrives at the location of the base station and the time field when the target patient leaves the location of the base station, all telecommunication trajectory data involved in the base stations in each base station group are sorted in order from early to late; According to the sorting results, an event in which the residence time of two target patients in the same base station group overlaps is determined as an encounter event, and the overlapping start time point, end time point and overlapping duration are determined as the encounter time.
11. The method according to claim 9, wherein: The establishing of association relationships between different target patients according to each of the encounter events, the encounter time, and the onset time and / or diagnosis time of the target patient involved in the encounter event includes: Among all the encounter events, the encounter events that meet the set conditions are filtered out to obtain a set of candidate encounter events; According to the onset time and / or diagnosis time of the target patient involved in each of the encounter events in the set of candidate encounter events, obtaining the propagation direction of each of the encounter events; According to each of the encounter events, the encounter time corresponding to the encounter event, and the propagation direction of the encounter event, an association relationship is established between different target patients.
12. The method according to claim 11, wherein: The filtering out of encounter events that meet the set conditions includes: When the number of occurrences of the same encounter event is greater than one, any one of the encounter events is retained and the other encounter events are filtered out; and / or, Filter out the encounter events whose corresponding encounter time is less than or equal to the set time threshold.
13. The method according to claim 11, wherein: Each piece of telecommunication trajectory data in the telecommunication trajectory data also includes the patient's mobile phone number; The establishing of association relationships between different target patients according to each of the encounter events, the encounter time corresponding to the encounter event, and the propagation direction of the encounter event includes: An association relationship is established with the mobile phone numbers of the target patients involved in each of the encounter events as nodes, the same encounter events corresponding to different mobile phone numbers as edges, and the propagation direction as the direction of the edge.
14. The method according to claim 9, wherein: The step of constructing a transmission relationship chain consisting of associated target patients according to the potential transmission relationship graph includes: Sorting the encounter events involved in the potential communication relationship graph according to the early and late corresponding encounter start time points; Traverse the sorted encounter events to obtain the communication relationship chain consisting of the associated target patients.
15. The method according to claim 14, wherein: Before the step of sorting the encounter events involved in the potential propagation relationship graph according to the early and late corresponding encounter start time points, the method further includes: dividing the potential propagation relationship graph to obtain multiple sub-propagation relationship graphs; The step of sorting the encounter events involved in the potential propagation relationship graph according to the early or late corresponding encounter start time points includes: sorting the encounter events involved in each of the sub-propagation relationship graphs according to the early or late corresponding encounter start time points.
16. The method according to claim 15, wherein: The step of dividing the potential propagation relationship graph to obtain a plurality of sub-propagation relationship graphs includes: In the case where there are multiple edges between any two nodes in the potential propagation relationship graph, the multiple edges are merged into one edge; Calculate the weight value of the edge between any two nodes in the potential propagation relationship graph; According to the weight values of all the edges and a preset segmentation algorithm, the potential propagation relationship graph is segmented to obtain multiple sub-propagation relationship graphs.
17. The method according to claim 14, wherein: The step of traversing the sorted encounter events to obtain a propagation relationship chain consisting of associated target patients includes: For each of the traversed encounter events, determine whether the active target patient in the encounter event is located in other transmission relationship chains to obtain a first determination result; and perform different processing according to different first determination results; Among them, different processing is performed according to the different first judgment results, including: when the first judgment result is that the active target patient in the encounter event is not located in other communication relationship chains, a new communication relationship chain with the active target patient as the communication source is created; and the passive target patient in the encounter event is added to the child node of the active target patient to update the communication relationship chain.
18. The method according to claim 17, wherein: The performing different processing according to different first judgment results also includes: In the case where the first judgment result is that the active target patient in the encounter event is located in other communication relationship chains, judging whether the passive target patient in the encounter event is located in the other communication relationship chains to obtain a second judgment result; performing different processing according to different second judgment results; The performing different processing according to different second judgment results includes: If the second judgment result is that the passive target patient is not located in the other propagation relationship chain, the passive target patient is added to the child node of the active target patient to update the other propagation relationship chain; In the case where the second judgment result is that the passive target patient is located in the other propagation relationship chain, judging whether the passive target patient is an ancestor node of the active target patient; In the case where the passive target patient is the ancestor node of the active target patient, no processing is performed on the other propagation relationship chains; and, in the case where the passive target patient is the ancestor node of the active target patient, and in all propagation relationship chains where the active target patient is located, the passive target patient is the ancestor node of the active target patient, a new propagation relationship chain with the active target patient as the propagation source is created, and the passive target patient is added to the child node of the active target patient to update the propagation relationship chain; or, In the case where the passive target patient is not the ancestor node of the active target patient and the passive target patient does not exist in the child nodes of the active target patient, the passive target patient is added to the child nodes of the active target patient to update the other propagation relationship chains; and, in the case where the passive target patient is not the ancestor node of the target patient and the passive target patient exists in the child nodes of the active target patient, no processing is performed.
19. The method according to claim 1, wherein: The obtaining of telecommunication trajectory data of the target patient group includes: Sending a request for obtaining the telecommunication trajectory data of a target patient to a telecommunication data system through a telecommunication trajectory data acquisition interface, wherein the request carries an identity of the target patient and a query time period of the telecommunication trajectory data; The telecommunication trajectory data of the target patient within the query time period is received and returned by the telecommunication data system in response to the request.
20. The method according to claim 1, wherein: The propagation relationship chain is a tree structure relationship chain; The step of finding the source of infection of the infectious disease based on the transmission relationship chain includes: The root node of the tree structure relationship chain is obtained as the corresponding infection source.
21. The method according to claim 1, wherein: The method further comprises: In response to a request for obtaining a mining result of a mining propagation relationship chain, obtaining a set display mode; The constructed propagation relationship chain is displayed according to the display mode.
22. The method according to claim 21, wherein: The method further comprises: In response to an operation of setting a display mode, providing a setting entry; Obtaining the display mode input through the setting entry; The set display mode is updated to the input display mode.
23. The method according to claim 7, wherein: The method further comprises: The corresponding propagation relationship chain is stored with the specific time point as an index; When responding to the display request containing the specific time point again, the stored propagation relationship chain corresponding to the specific time point is displayed.
24. The method according to claim 1, wherein: The method further comprises: Provides a configuration switch for displaying the propagation relationship chain; When the switch state of the configuration switch is turned on, at least one of the following items is displayed: Patient information of all target patients in the communication relationship chain; The contact time between target patients in the transmission relationship chain; The contact points between target patients in the transmission relationship chain; Displaying the historical driving trajectories of all target patients in the propagation relationship diagram on a map displayed by an electronic device; The target patients in the transmission chain who have been to the suspected origin.
25. A device for tracing the source of an infectious disease, comprising: The first acquisition module is used to acquire the target patient group based on the infectious disease diagnosis and treatment data; The second acquisition module is used to obtain the telecommunication trajectory data of the target patient group; A construction module, used to construct a propagation relationship chain according to the telecommunication trajectory data; A search module is used to find the source of infection of the infectious disease based on the transmission relationship chain. Among them, when constructing a propagation relationship chain according to the telecommunication trajectory data, the construction module is used to obtain all base stations involved in the telecommunication trajectory data; for each base station, other base stations within a predetermined distance range are obtained to form a base station group, and the predetermined distance range is set according to the infectious distance of the infectious disease; according to each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group, a potential propagation relationship graph composed of each target patient is obtained; according to the potential propagation relationship graph, a propagation relationship chain composed of each associated target patient is constructed.
26. The traceability device according to claim 25, wherein: Each piece of infectious disease diagnosis and treatment data in the infectious disease diagnosis and treatment data includes a patient identity, and any one or both of the time of illness and the time of diagnosis; The first acquisition module is also used to: sort the patients from early to late according to the onset time or diagnosis time, and acquire a predetermined number of patients with the earliest onset time or diagnosis time to form the target patient group.
27. The traceability device according to claim 25, wherein: The second acquisition module is further used to: obtain the mobile phone number corresponding to the identity identifier of each target patient in the target patient group; based on the mobile phone number corresponding to the identity identifier of each target patient in the target patient group, obtain the telecommunication trajectory data of the target patient within a predetermined time range before and after the onset time or diagnosis time; Among them, each piece of telecommunication trajectory data in the telecommunication trajectory data at least includes a patient identification, a mobile phone number, a base station detection time and a base station location information.
28. The traceability device according to claim 25, wherein: The construction module is further used for: preprocessing the telecommunication trajectory data; and constructing a propagation relationship chain using the preprocessed telecommunication trajectory data.
29. The traceability device according to claim 28, wherein: The preprocessing includes a first filtering process, and the building module is further used to: for each target patient's telecommunication trajectory data, calculate the speed and / or acceleration of the trajectory point corresponding to each telecommunication trajectory data; filter out the telecommunication trajectory data corresponding to the trajectory point with unreasonable speed and / or acceleration; and / or, The preprocessing includes merging processing, and the building module is also used to: for each target patient's telecommunication trajectory data, merge multiple consecutive telecommunication trajectory data detected by the same base station, and only retain the telecommunication trajectory data with the earliest base station detection time.
30. The traceability device according to claim 29, wherein: The preprocessing includes merging processing, and for each target patient's telecommunication trajectory data, in the telecommunication trajectory data obtained after the merging processing, two telecommunication trajectory data with adjacent detection times of any base station correspond to different base stations, The construction module is also used for: for each telecommunication trajectory data of the target patient, adding a field of the time when the target patient leaves the base station to each telecommunication trajectory data obtained after the merging process; wherein, for each telecommunication trajectory data, the base station detection time of the telecommunication trajectory data is used as the time when the target patient of the previous telecommunication trajectory data leaves the location of the base station, and the base station detection time in each telecommunication trajectory data is the time when the target patient arrives at the location of the base station.
31. The traceability device according to claim 25, wherein: The device also includes a display module; The display module is used to: respond to a display request including a specific time point, obtain a target patient group based on the infectious disease diagnosis and treatment data based on the specific time point, and obtain telecommunication trajectory data of the target patient group; An inverted index is established based on the telecommunication trajectory data of the target patient group for the base station; all base stations involved in the inverted index are obtained; for each base station, other base stations within a predetermined distance range are obtained to form a base station group; based on each base station group and the telecommunication trajectory data and infectious disease diagnosis and treatment data of the target patients involved in each base station group, a potential propagation relationship graph consisting of each target patient is obtained; based on the potential propagation relationship graph, a propagation relationship chain consisting of each associated target patient is constructed, and the propagation relationship chain is displayed.
32. The traceability device according to claim 31, wherein: The display module is also used to: perform predetermined processing on the telecommunication trajectory data of the target patient group; search for all base stations involved in the telecommunication trajectory data after the predetermined processing; and use each base station as an index to record the target patients who have arrived at the base station in the telecommunication trajectory data after the predetermined processing and the corresponding base station detection time.
33. The traceability device according to claim 31, wherein: Each piece of telecommunication trajectory data includes the time when the patient arrived at the location of the base station and the time when the patient left the location of the base station; each piece of infectious disease diagnosis and treatment data includes the time when the patient became ill and / or the time when the patient was diagnosed; The construction module and the display module both include a potential propagation graph acquisition unit; The potential propagation graph acquisition unit is used to: for each base station group, determine the encounter events between different target patients occurring in the base station group and the encounter time corresponding to each of the encounter events according to the time when the patients involved in each base station in the base station group arrive at the location of the base station and the time when the patients leave the location of the base station; According to each of the encounter events, the encounter time, and the onset time and / or diagnosis time of the target patient involved in the encounter event, a correlation relationship is established between different target patients to obtain a potential transmission relationship diagram composed of each target patient; The encounter event indicates that two target patients are located at the same base station group at the same time; The encounter time indicates the encounter duration, the encounter start time point and the encounter end time point of the encounter event.
34. The traceability device according to claim 33, wherein: The potential propagation graph acquisition unit is further used to: sort all telecommunication trajectory data involved in the base stations in each base station group in order from early to late according to the time field when the target patient arrives at the location of the base station and the time field when the target patient leaves the location of the base station; According to the sorting result, the time when the two target patients have overlapping residence times in the same base station group is determined as an encounter time event, and the overlapping starting time point, ending time point and overlapping duration are determined as the encounter time.
35. The traceability device according to claim 33, wherein: The potential propagation graph acquisition unit is also used to: filter out the encounter events that meet the set conditions among all the encounter events to obtain a set of alternative encounter events; obtain the propagation direction of each encounter event based on the infectious disease diagnosis and treatment data of the target patients involved in each encounter event in the set of alternative encounter events; and establish an association relationship between different target patients based on each encounter event, the encounter time corresponding to the encounter event, and the propagation direction of the encounter event.
36. The traceability device according to claim 35, wherein: The filtering out the encounter events that meet the set conditions includes: when the number of occurrences of the same encounter event is greater than one, retaining any one of the encounter events and filtering out other encounter events; and / or filtering out the encounter events whose corresponding encounter time is less than or equal to a set time threshold.
37. The traceability device according to claim 35, wherein: Each piece of telecommunication trajectory data in the telecommunication trajectory data also includes the patient's mobile phone number; The potential propagation graph acquisition unit is also used to establish an association relationship using the mobile phone numbers of the target patients involved in each of the encounter events in the set of candidate encounter events as nodes, the same encounter events corresponding to different mobile phone numbers as edges, and the propagation direction as the direction of the edge.
38. The traceability device according to claim 33, wherein: The construction module is also used to: sort the encounter events involved in the potential communication relationship graph according to the early and late corresponding encounter start time points; traverse the sorted encounter events to obtain a communication relationship chain consisting of associated target patients.
39. The traceability device according to claim 38, wherein: The construction module is also used to: divide the potential propagation relationship graph to obtain multiple sub-propagation relationship graphs; and sort the encounter events involved in each of the sub-propagation relationship graphs according to the early or late corresponding encounter starting time points.
40. The traceability device according to claim 39, wherein: The construction module is also used to: when there are multiple edges between any two nodes in the potential propagation relationship graph, merge the multiple edges into one edge; calculate the weight value of the edge between any two nodes in the potential propagation relationship graph; and split the potential propagation relationship graph according to the weight values of all the edges and a preset splitting algorithm to obtain multiple sub-propagation relationship graphs.
41. The traceability device according to claim 38, wherein: The device also includes a first judgment module; The first judgment module is used to: for each of the traversed encounter events, determine whether the active target patient in the encounter event is located in other transmission relationship chains to obtain a first judgment result; and perform different processing according to different first judgment results; The first judgment module is further configured to: if the first judgment result is that the active target patient in the encounter event is not located in other communication relationship chains, create a new communication relationship chain with the active target patient as the communication source; The passive target patient in the encounter event is added to the child node of the active target patient to update the propagation relationship chain.
42. The traceability device according to claim 41, wherein: The device also includes a second judgment module; The second judgment module is used to: when the first judgment result is that the active target patient in the encounter event is located in other communication relationship chains, judge whether the passive target patient in the encounter event is located in the other communication relationship chains to obtain a second judgment result; and perform different processing according to different second judgment results; The second judgment module is further used for: if the second judgment result is that the passive target patient is not located in the other propagation relationship chain, adding the passive target patient to the child node of the active target patient to update the other propagation relationship chain; In the case where the second judgment result is that the passive target patient is located in other propagation relationship chains, judging whether the passive target patient is an ancestor node of the active target patient; In the case where the passive target patient is the ancestor node of the target patient, no processing is performed on the other propagation relationship chains; And, in the case where the passive target patient is the ancestor node of the active target patient, and in all the propagation relationship chains where the active target patient is located, the passive target patient is the ancestor node of the active target patient, then a new propagation relationship chain with the active target patient as the propagation source is created, and the passive target patient is added to the child node of the active target patient to update the propagation relationship chain; or, In the case where the passive target patient is not an ancestor node of the active target patient, and the passive target patient is not included in the child nodes of the active target patient, the passive target patient is added to the child nodes of the active target patient to update the other propagation relationship chains; Furthermore, in the case where the passive target patient is not an ancestor node of the target patient, and the passive target patient exists in the child node of the active target patient, no processing is performed.
43. The traceability device according to claim 25, wherein: The second acquisition module is further used to: provide an acquisition interface for acquiring telecommunication trajectory data; send a request for acquiring the telecommunication trajectory data of a target patient to a telecommunication data system through the acquisition interface, wherein the request carries an identity of the target patient and a query time period of the telecommunication trajectory data; and receive the telecommunication trajectory data of the target patient within the query time period returned by the telecommunication data system in response to the request.
44. The traceability device according to claim 25, wherein: The propagation relationship chain is a tree structure relationship diagram; The search module is also used to obtain the root node of the tree structure relationship diagram as the corresponding infection source.
45. The traceability device according to claim 25, wherein: The device also includes a first display module; The first display module is used to: in response to a request for obtaining a mining result of a mining propagation relationship chain, obtain a set display mode; and display the constructed propagation relationship chain according to the display mode.
46. The traceability device according to claim 45, wherein: The device also includes an update module; The updating module is used for: providing a setting entry in response to an operation of setting a display mode; acquiring a display mode input through the setting entry; and updating the set display mode to the input display mode.
47. The traceability device according to claim 31, wherein: The device also includes a storage module; The storage module is used to store the corresponding propagation relationship chain with the specific time point as the index; The display module is used to display the stored propagation relationship chain corresponding to the specific time point when responding to the display request containing the specific time point again.
48. The traceability device according to claim 25, wherein: The device further comprises a second display module; the second display module is used to: provide a configuration switch for displaying a propagation relationship chain; When the switch state of the configuration switch is turned on, at least one of the following items is displayed: Patient information of all target patients in the communication relationship chain; The contact time between target patients in the transmission relationship chain; The contact points between target patients in the transmission relationship chain; Displaying the historical driving trajectories of all target patients in the transmission relationship chain on a map displayed by an electronic device; The target patients in the transmission chain who have been to the suspected origin.
49. An apparatus comprising at least one computing device and at least one storage device, wherein: The at least one storage device is used to store instructions, which implement the method according to any one of claims 1 to 24 when executed by the at least one computing device.
50. A computer-readable storage medium, wherein: A computer program is stored thereon, which implements the method according to any one of claims 1 to 24 when executed by a processor.
