Disclosure of Invention
In order to solve the technical problem that epidemic prevention data are difficult to effectively realize according to activity tracks in the related technology, the disclosure provides an epidemic situation database updating method and device.
An epidemic situation database updating method is applied to an epidemic situation data statistics center, and the method at least comprises the following steps:
acquiring a first activity track of a first intelligent terminal in a set time period; determining an activity influence area of the first activity track according to the longitude and latitude coordinates of each track point in the first activity track;
determining a second activity track which has intersection with the activity influence area in the set time period, and establishing an association relation between a second intelligent terminal corresponding to the second activity track and the first intelligent terminal;
generating a track network diagram according to the first activity track and the second activity track, and storing the track network diagram into a preset epidemic situation database;
when detecting that the first intelligent terminal has epidemic situation data change, according to the first change data of the first intelligent terminal, and
determining second change data of each second intelligent terminal according to the intersection of a second activity track corresponding to each second intelligent terminal and the activity influence area;
and updating the first change data and the second change data into a track network diagram in the epidemic situation database according to the incidence relation.
Preferably, the step of determining the second change data of each second intelligent terminal according to the first change data of the first intelligent terminal and the intersection of the second activity track corresponding to each second intelligent terminal and the activity influence area specifically includes:
determining a target area corresponding to the intersection of a second activity track corresponding to each second intelligent terminal and the activity influence area, wherein the target area is a sub-area of the activity influence area;
determining a contact probability corresponding to the target area according to the category information of the target area, wherein the category information is used for representing the air circulation and the personnel concentration of the target area;
weighting the first change data based on the contact probability of the target area corresponding to each second intelligent terminal to obtain target change data;
mapping the target change data to a pre-stored data mapping table corresponding to each second intelligent terminal to obtain second change data of each second intelligent terminal;
the target change data is used for representing contact behavior data between a second target person corresponding to the second intelligent terminal and a first target person corresponding to the first intelligent terminal in a target area corresponding to the second intelligent terminal, the contact behavior data comprises limb contact behavior data and language contact behavior data, the data mapping table is used for establishing a mapping relation between the contact behavior data and the infection probability, and the second change data is used for representing the probability of infection of the second target person corresponding to the second intelligent terminal by the first target person.
Preferably, the step of updating the first change data and the second change data to the trajectory network diagram in the epidemic situation database according to the association relationship specifically includes:
setting first marking information for a first activity track of the first change data in a track network diagram in the epidemic situation database;
and setting second marking information for a second activity track of each second change data in the track network diagram in the epidemic situation database according to the incidence relation between the first change data and each second change data.
Preferably, the method further comprises:
generating prompt information according to the first changed data and each second changed data;
and issuing the prompt information to the first intelligent terminal and each second intelligent terminal.
Preferably, the step of obtaining a first activity track of the first intelligent terminal in a set time period specifically includes:
acquiring conversion logic information corresponding to the first intelligent terminal and used for carrying out longitude and latitude coordinate conversion on the position information of the first intelligent terminal;
extracting a plurality of longitude and latitude conversion protocols for converting the logic information and a positioning authorization protocol, wherein the longitude and latitude conversion protocols are used for indicating a first intelligent terminal to convert different position information into longitude and latitude coordinates, the positioning authorization protocol is used for indicating the broadcasting behavior of the position information opened to the outside by the first intelligent terminal, and the epidemic situation data statistics center acquires the different longitude and latitude coordinates corresponding to the first intelligent terminal through the broadcasting behavior;
mapping the longitude and latitude conversion protocol and the positioning authorization protocol to a preset positioning information conversion thread to obtain an offset coefficient for converting longitude and latitude coordinates aiming at the first intelligent terminal, wherein the offset coefficient is used for representing an error of the first intelligent terminal when converting position information into the longitude and latitude coordinates;
receiving position information broadcasted by the first intelligent terminal, wherein the position information comprises all initial longitude and latitude information of the first intelligent terminal in the set time period;
fitting all the initial longitude and latitude information according to the time sequence to obtain an initial activity track; and correcting the initial moving track based on the offset coefficient to obtain a first moving track.
Preferably, the step of determining a second activity track intersecting with the activity influence area within the set time period specifically includes:
there will be an intersection with the activity affecting area within the set period of time, or
And determining a target activity track partially falling into the activity influence area in the set time period as a second activity track intersecting with the activity influence area.
Preferably, the step of establishing an association relationship between a second intelligent terminal corresponding to the second activity track and the first intelligent terminal specifically includes:
setting a main association identifier for a second intelligent terminal corresponding to the second activity track;
and setting a slave association identifier corresponding to the master association identifier for the first intelligent terminal, wherein the master association identifier and the slave association identifier are in one-to-one correspondence.
An epidemic situation database updating device is applied to epidemic situation data statistics center, the device includes at least:
the area determining module is used for acquiring a first activity track of the first intelligent terminal in a set time period; determining an activity influence area of the first activity track according to the longitude and latitude coordinates of each track point in the first activity track;
the relationship establishing module is used for determining a second activity track which has intersection with the activity influence area in the set time period and establishing an incidence relationship between a second intelligent terminal corresponding to the second activity track and the first intelligent terminal;
the track generation module is used for generating a track network graph according to the first activity track and the second activity track and storing the track network graph into a preset epidemic situation database;
the change detection module is used for determining second change data of each second intelligent terminal according to first change data of the first intelligent terminal and intersection of a second activity track corresponding to each second intelligent terminal and the activity influence area when the first intelligent terminal is detected to have epidemic situation data change;
and the data updating module is used for updating the first change data and the second change data into the track network diagram in the epidemic situation database according to the incidence relation.
An epidemic situation data statistics center, comprising:
a processor, and
a non-volatile memory and a network interface connected with the processor;
the processor is used for calling the computer program in the nonvolatile memory through a network interface and running the computer program through the memory of the processor so as to execute the epidemic situation database updating method.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the epidemic situation database updating method described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and determining a movement influence area of the first movement track according to the longitude and latitude coordinates of each track point in the first movement track, determining a second intelligent terminal corresponding to a second movement track with intersection with the movement influence area, and further generating a track network diagram based on the first movement track and the second movement track. Therefore, when the situation data change of the first intelligent terminal is detected, the second change data corresponding to each second intelligent terminal is determined according to the first change data, and the track network diagram in the situation database is updated in time in a linkage mode.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In order to solve the problem that the epidemic situation database is difficult to effectively update epidemic prevention data according to a single activity track, the disclosure provides an epidemic situation database updating method and device, which can take the interactivity and contact range of different activity tracks into consideration, thereby realizing the linkage update of epidemic prevention data in the epidemic situation database.
Fig. 1 is a schematic diagram of communication connection of an epidemic situation database updating system 100 according to the present disclosure, where the epidemic situation database updating system 100 includes an epidemic situation data statistics center 200 and a plurality of intelligent terminals 300, and the epidemic situation data statistics center 200 communicates with each intelligent terminal 300 and obtains a localization tracking right authorized by each intelligent terminal 300.
In one possible embodiment, the epidemic data statistics center 200 can be a computer device with data processing and information analysis capabilities. The smart terminal 300 may be a mobile phone, a smart band, or other terminal devices that can be conveniently carried or worn by a person, and is not limited herein.
Further, the epidemic situation data statistics center 200 is provided with an epidemic situation database, and the epidemic situation database can be used for recording epidemic prevention data of different areas, such as activity tracks of people, diagnosed districts or information of people with contact history. In detail, the epidemic situation data statistics center 200 can analyze the interactivity and the contact of the activity track acquired based on the intelligent terminal 300, so as to realize the linkage update of epidemic prevention data in the epidemic situation database.
Please refer to fig. 2, which is a flowchart illustrating an epidemic situation database updating method according to the present disclosure, the method can be applied to the epidemic situation data statistics center 200 in fig. 1, and can be specifically implemented by the following steps.
Step S21, acquiring a first activity track of the first intelligent terminal in a set time period; and determining the activity influence area of the first activity track according to the longitude and latitude coordinates of each track point in the first activity track.
In detail, the set period may be a certain period before the day. For example, when the day is x month y day of 2020, the set period may be a period from z day of x month of 2020 to y day of x month of 2020. The first activity track may be determined from a GPS positioning system of the first smart terminal. The first movable track can be formed by fitting a plurality of track points, and each track point corresponds to one longitude and latitude coordinate. The different longitude and latitude coordinates may represent that the first target person corresponding to the first intelligent terminal is in different occasions.
In one example, the first target person was determined to have passed through streets, parks, and gyms by analyzing the latitude and longitude coordinates of each track point in the first activity track. Whereas in streets, parks, gyms, etc., the probability of contact between the first target person and the other person is different, the activity affecting area in step S21 can be used to characterize the corresponding area of the first target person that may contact the other person.
Step S22, determining a second activity track intersecting with the activity influence area in the set time period, and establishing an association relationship between a second intelligent terminal corresponding to the second activity track and the first intelligent terminal.
In a possible implementation manner, if there is an intersection between the second activity track and the activity influence area, or the second activity track partially falls into the activity influence area, or the second activity track completely falls into the activity influence area, it can be regarded that there is an intersection between the second activity track and the activity influence area. In detail, the same identifier may be assigned to the second intelligent terminal and the first intelligent terminal to establish an association relationship between the second intelligent terminal and the first intelligent terminal.
And step S23, generating a track network diagram according to the first activity track and the second activity track, and storing the track network diagram into a preset epidemic situation database.
In a specific implementation, the number of the second activity tracks may be multiple, and the track network map may be generated according to an intersection between the first activity track and the second activity track. The track network graph is used for associating and integrating the first activity track and the plurality of second activity tracks.
Step S24, when detecting that the first intelligent terminal has the epidemic situation data change, determining second change data of each second intelligent terminal according to the first change data of the first intelligent terminal and the intersection of the second activity track corresponding to each second intelligent terminal and the activity influence area.
And step S25, updating the first change data and the second change data to a track network diagram in the epidemic situation database according to the incidence relation.
In the embodiment related to the present disclosure, the change of the epidemic situation data of the first intelligent terminal may be understood as that the first target person corresponding to the first intelligent terminal is diagnosed, and in this case, the second activity track having the intersection may be determined according to the activity influence track of the first target person, and the second change data of the second intelligent terminal corresponding to the second activity track may be determined.
For ease of understanding, a specific example is described below.
First, it is determined from the first moving trajectory Q1 that the first target person N1 has stopped at three places, which are, respectively, a place a, a place B, and a place C, and further, it is determined that the area of influence of the place a is ZA, the area of influence of the place B is ZB, and the area of influence of the place C is ZC.
Secondly, it is determined that the second intelligent terminal intersected with the influence region ZA in the set time period is P21 and a corresponding second active track Q21, the second intelligent terminal intersected with the influence region ZB is P22 and a corresponding second active track Q22, and the second intelligent terminal intersected with the influence region ZC is P23 and a corresponding second active track Q23. Further, the association relationship between the first intelligent terminal P1 and the second intelligent terminals P21-P23 is respectively established.
Then, a track network graph Q0 is built according to the first activity track Q1 and the second activity tracks Q21-Q23 and stored in an epidemic situation database.
After the first target person N1 is diagnosed at a later time node, the first change data "diagnosed" may be set for the first smart terminal P1, the infection probability of the second target person N21-N23 corresponding to the second smart terminal P21-P23 is determined according to the propagation coefficient of the affected zone ZA-ZC, and the second change data of each second smart terminal is generated according to the infection probability. In the present embodiment, the second alteration data includes the following categories:
(1) there is close contact with the case;
(2) there is general contact with the case;
(3) there was no contact with the case.
Furthermore, the first change data and the second change data can be updated to the trace network graph Q0 in the epidemic situation database, so that linkage update of epidemic prevention data in the epidemic situation database is achieved.
It can be understood that, by the method disclosed in the above steps S21-S25, the activity influence area of the first activity track can be determined according to the longitude and latitude coordinates of each track point in the first activity track, the second intelligent terminal corresponding to the second activity track with intersection with the activity influence area can be determined, and then the track network diagram can be generated based on the first activity track and the second activity track. Therefore, when the situation data change of the first intelligent terminal is detected, the second change data corresponding to each second intelligent terminal is determined according to the first change data, and the track network diagram in the situation database is updated in time in a linkage mode.
In practical applications, the probability of contact between persons corresponding to different activity-affecting zones is different. For example, in a location where the space is relatively closed, the probability of contact may be relatively high. Also for example, in a more open space, the probability of contact may be less.
On the basis, in order to accurately determine the second change data, in a possible alternative, the step of determining the second change data of each second intelligent terminal according to the first change data of the first intelligent terminal and the intersection of the second activity track corresponding to each second intelligent terminal and the activity influence area in step S24 may specifically include the contents described in sub-steps S241 to S243 below.
Step S241, determining a target area corresponding to an intersection of the second activity track corresponding to each second intelligent terminal and the activity influence area, where the target area is a sub-area of the activity influence area.
Step S242, determining a contact probability corresponding to the target area according to the category information of the target area, where the category information is used to represent the air circulation and the personnel density of the target area.
In step S242, the contact probability is used to represent the probability of making limb contact or talking contact between people in the target area, and in the target area where the air flow is good and the people are less dense, the contact probability is smaller, and vice versa.
Step S243, weighting the first change data based on the contact probability of the target area corresponding to each second intelligent terminal to obtain target change data; and mapping the target change data to a pre-stored data mapping table corresponding to each second intelligent terminal to obtain second change data of each second intelligent terminal.
In step S243, the target change data is used to represent contact behavior data between a second target person corresponding to the second intelligent terminal and a first target person corresponding to the first intelligent terminal in a target area corresponding to the second intelligent terminal, where the contact behavior data includes limb contact behavior data and language contact behavior data, the data mapping table is used to establish a mapping relationship between the contact behavior data and an infection probability, and the second change data is used to represent a probability that the second target person corresponding to the second intelligent terminal is infected by the first target person.
When the method described in the above steps S241 to S243 is applied, the contact probability of the target area can be taken into account, so that the second change data of each second intelligent terminal can be accurately determined on the basis of the first change data.
Optionally, in order to ensure synchronous update of the trajectory network graph in the epidemic situation database, in a possible embodiment, the step of updating the first change data and the second change data into the trajectory network graph in the epidemic situation database according to the association relationship in step S25 may specifically include the method described in sub-step S251-step S252 below.
Step S251, setting first marking information for a first activity track of the track network diagram of the first change data in the epidemic situation database.
Step S252, according to the association relationship between the first change data and each second change data, setting second mark information for a second activity track of each second change data in the track network diagram in the epidemic situation database.
In the present embodiment, the first flag information and each of the second flag information are different from each other. In detail, in step S251, a specific implementation manner of setting first flag information for the first activity track in the track network diagram of the first change data in the epidemic situation database may be: and filling the first activity track in the track network graph in the epidemic situation database.
Likewise, the specific implementation manner of setting the second mark information for the second activity track may also be as above. Therefore, the track network diagram in the epidemic situation database can present different activity tracks with different filling colors, so that the target personnel corresponding to the different activity tracks can be traced conveniently in the later period, the updating efficiency of the track network diagram in the epidemic situation database is improved, and the readability of the track network diagram can also be improved.
In an alternative embodiment, on the basis of the above steps S21-S25, the epidemic situation database updating method can further include the following steps S26-S27.
Step S26, generating a presentation information from the first changed data and each of the second changed data.
And step S27, sending the prompt information to the first intelligent terminal and each second intelligent terminal.
In the above step S26-step S27, the prompt information is used to prompt the first target person and the second target person to perform an epidemic prevention measure, such as timely reporting to a community, timely going to a designated hospital for diagnosis and treatment, or timely isolating. Therefore, the second intelligent terminal which is associated with the first intelligent terminal can be timely notified when the first intelligent terminal is detected to have epidemic situation data change, and therefore epidemic prevention efficiency is improved.
In another example, in order to accurately determine the first activity track of the first intelligent terminal in the set time period, the positioning offset phenomenon of the first intelligent terminal needs to be taken into account. For this reason, in step S21, the step of acquiring the first activity track of the first intelligent terminal in the set time period may specifically include the following sub-steps.
Step S211, acquiring conversion logic information corresponding to the first intelligent terminal and used for performing longitude and latitude coordinate conversion on the location information of the first intelligent terminal.
Step S212, a plurality of longitude and latitude conversion protocols and a positioning authorization protocol of the conversion logic information are extracted.
In step S212, the longitude and latitude conversion protocol is configured to instruct the first intelligent terminal to convert different location information into longitude and latitude coordinates, the positioning authorization protocol is configured to instruct the first intelligent terminal to open a broadcasting behavior of the location information to the outside, and the epidemic situation data statistics center obtains the different longitude and latitude coordinates corresponding to the first intelligent terminal through the broadcasting behavior.
Step S213, mapping the longitude and latitude conversion protocol and the positioning authorization protocol to a preset positioning information conversion thread to obtain an offset coefficient for performing longitude and latitude coordinate conversion aiming at the first intelligent terminal.
In step S213, the offset coefficient is used to represent an error of the first intelligent terminal when converting the location information into longitude and latitude coordinates.
Step S214, receiving the position information broadcasted by the first intelligent terminal.
In step S214, the location information includes all initial longitude and latitude information of the first intelligent terminal within the set time period.
Step S215, fitting all the initial longitude and latitude information according to the time sequence to obtain an initial activity track; and correcting the initial moving track based on the offset coefficient to obtain a first moving track.
When the method described in the above step 214-step 215 is applied, the positioning offset phenomenon of the first intelligent terminal can be taken into account, so as to accurately determine the first activity track of the first intelligent terminal in the set time period.
In another example, the step of determining the second activity track intersecting with the activity influence area in the set time period in step S22 may specifically include the following steps: and determining a target activity track which has an intersection point with the activity influence area within the set time period or partially falls into the activity influence area within the set time period as a second activity track which has an intersection with the activity influence area.
It can be understood that the second activity track can be determined comprehensively and accurately by the method.
Further, the step of establishing an association relationship between the second intelligent terminal and the first intelligent terminal corresponding to the second activity track may be specifically implemented in the following manner.
Firstly, setting a main association identifier for a second intelligent terminal corresponding to the second activity track.
And then, setting a slave association identifier corresponding to the master association identifier for the first intelligent terminal.
It can be understood that, in the embodiment of the present application, the master association identifier corresponds to the slave association identifier one to one, so that the association relationship between the first intelligent terminal and different second intelligent terminals can be accurately determined, and confusion of the association relationship is avoided.
In an alternative embodiment, the content acquisition described in step S21 for the first activity trace of the first intelligent terminal in the set time period may be further implemented by the following sub-steps.
(1) And acquiring the positioning logic of the first intelligent terminal and all positioning points in the set time period.
(2) When the first intelligent terminal is determined to have the positioning offset area in the set time period according to the positioning logic, determining a first positioning distance between each positioning point of the first intelligent terminal in the non-positioning offset area and each positioning point of the first intelligent terminal in the positioning offset area according to the positioning point of the first intelligent terminal in the positioning offset area and the positioning time of the first intelligent terminal.
(3) And switching the positioning point of which the first positioning distance between the positioning point of the first intelligent terminal under the non-positioning offset area and the positioning point under the positioning offset area is the minimum value to the positioning offset area.
(4) And fitting the positioning points of the first intelligent terminal in the non-positioning offset region according to the positioning points and the positioning time of the first intelligent terminal in the non-positioning offset region to obtain a first activity track of the first intelligent terminal in a set time period.
When the contents described in the steps (1) to (4) are applied, the positioning offset region and the non-positioning offset region of the first intelligent terminal during positioning can be taken into account, so that the first activity track can be accurately determined according to the positioning point of the non-positioning offset region.
The various technical features in the above embodiments can be arbitrarily combined, so long as there is no conflict or contradiction between the combinations of the features, but the combination is limited by the space and is not described one by one, and therefore, any combination of the various technical features in the above embodiments also belongs to the scope disclosed in the present specification.
Corresponding to the embodiment of the epidemic situation database updating method, the application also provides an embodiment of an epidemic situation database updating device and an epidemic situation data statistics center.
The embodiment of the epidemic situation database updating device can be applied to an epidemic situation data statistics center. The embodiments of the apparatus may be implemented by software, or by hardware, or by a combination of hardware and software. The software implementation is taken as an example, and as a device in a logical sense, a processor of an epidemic situation data statistics center in which the device is located reads corresponding computer program instructions in a nonvolatile memory into a memory for operation.
From a hardware aspect, as shown in fig. 3, a hardware structure diagram of an epidemic situation data statistics center 200 where an epidemic situation database updating apparatus 201 is located in the present application is shown, except for the processor 210, the memory 230, the network interface 240, and the nonvolatile memory 220 shown in fig. 3, in an embodiment, an apparatus where the apparatus is located may also include other hardware according to an actual function of the apparatus, which is not shown in fig. 3 one by one.
Further, the processor 210 is configured to call the computer program in the non-volatile memory 220 through the network interface 240, and run the computer program through the memory 230 of the processor 210, so as to execute the above epidemic situation database updating method.
In another example, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by the processor 210 to implement the epidemic situation database updating method described above
Fig. 4 is a functional block diagram of an epidemic situation database updating apparatus 201 according to the present application. Specifically, the epidemic situation database updating apparatus 201 includes: the system comprises a region determining module 2011, a relationship establishing module 2012, a track generating module 2013, a change detecting module 2014 and a data updating module 2015.
The area determining module 2011 is configured to obtain a first activity track of the first intelligent terminal in a set time period; and determining the activity influence area of the first activity track according to the longitude and latitude coordinates of each track point in the first activity track.
The relationship establishing module 2012 is configured to determine a second activity track having an intersection with the activity influence area within the set time period, and establish an association relationship between a second intelligent terminal corresponding to the second activity track and the first intelligent terminal.
The track generation module 2013 is configured to generate a track network map according to the first activity track and the second activity track, and store the track network map in a preset epidemic situation database.
And the change detection module 2014 is used for determining second change data of each second intelligent terminal according to the first change data of the first intelligent terminal, the second activity track corresponding to each second intelligent terminal and the intersection of the activity influence areas when detecting that the first intelligent terminal has epidemic situation data change.
The data updating module 2015 is configured to update the first change data and the second change data to the trajectory network graph in the epidemic situation database according to the association relationship.
For the specific implementation principle of the above modules, please refer to the implementation principle corresponding to step S21-step S25 shown in fig. 2, which will not be further described herein.
To sum up, the epidemic situation database updating method and device disclosed by the disclosure can determine the activity influence area of the first activity track according to the longitude and latitude coordinates of each track point in the first activity track, determine the second intelligent terminal corresponding to the second activity track with intersection with the activity influence area, and further generate the track network diagram based on the first activity track and the second activity track. Therefore, when the situation data change of the first intelligent terminal is detected, the second change data corresponding to each second intelligent terminal is determined according to the first change data, and the track network diagram in the situation database is updated in time in a linkage mode.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.