Object recognition method, device, electronic device and readable storage medium
Through the analysis of employees' positioning data, the time series of their points of interest is determined to determine whether the quarantine period is met, which solves the problems of low verification efficiency and poor accuracy in the existing technology, and achieves effective monitoring and containment of the epidemic.
Patent Information
- Application Number
- CN202010479519.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-05-29
AI Technical Summary
In the existing technology, it is inefficient and error-prone for epidemic prevention personnel to conduct return-to-work verification for each employee of each enterprise, which increases the risk of the spread of the epidemic. Especially when there are a large number of enterprises and rapid changes in employee dynamics, it is difficult to effectively contain it. The spread of the epidemic.
By obtaining employees' positioning data, determine their POI time series within a preset time period, determine whether they meet the quarantine period constraints, and then determine whether the employee is a target object, and output prompt information to monitor and contain the spread of the epidemic.
It has achieved effective monitoring of whether employees have returned to work in violation of regulations during the epidemic, improved verification efficiency and accuracy, reduced the risk of false information, and effectively curbed the spread of the epidemic.
Smart Images

Figure CN113742606B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of big data, and in particular to an object recognition method, device, electronic device and readable storage medium. Background Art
[0002] Currently, in the absence of specific medicines and vaccines, extraordinary isolation measures are the only effective way to curb the spread of human-to-human diseases.
[0003] As the epidemic is gradually brought under control, many companies are gradually resuming work. In order to meet production needs and safety requirements, relevant departments have formulated a series of constraints on the quarantine period. Only employees who meet the constraints can return to work. For example, the constraints are: outsiders who return to the local area from place A and have been quarantined for less than 15 days are not allowed to return to work. The common practice is that companies regularly report the status of employees returning to work, and relevant epidemic prevention staff verify the status of employees.
[0004] In the above monitoring method, epidemic prevention personnel need to manually check every user of each enterprise, which is inefficient, error-prone and has low accuracy. Summary of the invention
[0005] The embodiments of the present invention provide an object recognition method, device, electronic device and readable storage medium, which use positioning data to monitor users, thereby effectively monitoring whether users violate regulations in returning to work during the epidemic, thereby achieving the purpose of curbing the spread of the epidemic.
[0006] In a first aspect, an embodiment of the present application provides an object recognition method, comprising:
[0007] Acquire positioning data of an object to be processed at different time points within a preset time period, the positioning data being two-dimensional coordinates of longitude and latitude, determine points of interest (POIs) of the object to be processed at different time points within the preset time period based on the positioning data, so as to obtain a POI time series of the object to be processed, the POI time series at least storing a correspondence between the time points and the POIs, determine whether the object to be processed belongs to a target object based on the POI time series, and output prompt information, wherein the prompt information is used to indicate whether the object to be processed is a target object.
[0008] In a feasible design, the points of interest (POI) of the object to be processed at different time points within the preset time period are determined based on the positioning data to obtain the POI time series of the object to be processed, including: reverse address parsing the positioning data at different time points to obtain the POI at the corresponding time points; and sorting the correspondence between the time points and the POI within the preset time period in chronological order to generate the POI time series of the object to be processed.
[0009] In a feasible design, the above method also includes: determining at least one working time period from the preset time period, determining the POI corresponding to each time point within the working time period, and taking the POI with the most appearances as the working location of the object to be processed.
[0010] In a feasible design, determining whether the object to be processed belongs to the target object according to the POI time series includes: determining whether there is a POI indicated by a constraint condition among the POIs included in the POI time series, and the time period indicated by the constraint condition includes the preset time period; if there is a POI indicated by the constraint condition among the POIs included in the POI time series, determining that the object to be processed belongs to the target object.
[0011] In a feasible design, there are multiple objects to be processed, and before determining whether the object to be processed belongs to the target object according to the POI time series, it also includes: dividing the preset time period into at least two time slices, different time slices correspond to different sets of interest points, and any one of the at least two time slices contains at least one time point; for any one of the at least two time slices, according to the distance between any two points of interest in the corresponding point of interest set, and the POI time series of the multiple objects to be processed, the multiple objects to be processed are divided into different subsets, and the distance between the respective points of interest of two objects to be processed belonging to the same subset is less than a preset threshold.
[0012] In a feasible design, determining whether the object to be processed belongs to the target object according to the POI time series includes: determining a target time slice from the at least two time slices, the target time slice being included in the constraint time indicated by the constraint condition; determining a target subset from a target POI set, the target POI set being a POI set corresponding to the target time slice, the POI corresponding to the target subset at least including the POI indicated by the constraint condition; and taking the object to be processed in the target subset as the target object.
[0013] In a feasible design, obtaining the positioning data of the object to be processed at different time points within a preset time period includes: receiving location information reported by the terminal device of the object to be processed; or, obtaining the positioning data using the order information of the object to be processed purchased through the terminal device.
[0014] In a second aspect, an embodiment of the present application provides an object recognition device, including:
[0015] A processing unit is used to obtain positioning data of the object to be processed at different time points within a preset time period, wherein the positioning data is a two-dimensional coordinate of longitude and latitude, and to determine points of interest (POIs) of the object to be processed at different time points within the preset time period according to the positioning data, so as to obtain a POI time series of the object to be processed, wherein the POI time series at least stores a corresponding relationship between the time points and the POIs, and to determine whether the object to be processed belongs to a target object according to the POI time series, and to output prompt information, wherein the prompt information is used to indicate whether the object to be processed is a target object;
[0016] The output unit is used to output prompt information, where the prompt information is used to indicate whether the object to be processed is a target object.
[0017] In a feasible design, the processing unit, when determining the points of interest (POI) of the object to be processed at different time points within the preset time period based on the positioning data to obtain the POI time series of the object to be processed, is used to reverse address parse the positioning data of the different time points to obtain the POI of the corresponding time points, and sort the correspondence between the time points and the POI within the preset time period in chronological order to generate the POI time series of the object to be processed.
[0018] In a feasible design, the processing unit is also used to determine at least one working time period from the preset time period, determine the POI corresponding to each time point within the working time period, and use the POI with the most appearances as the working location of the object to be processed.
[0019] In a feasible design, when the processing unit determines whether the object to be processed belongs to the target object based on the POI time series, it is used to determine whether there is a POI indicated by a constraint condition among the POIs included in the POI time series, and the time period indicated by the constraint condition includes the preset time period. If there is a POI indicated by the constraint condition among the POIs included in the POI time series, it is determined that the object to be processed belongs to the target object.
[0020] In a feasible design, there are multiple objects to be processed. The processing unit, before determining whether the object to be processed belongs to the target object according to the POI time series, is further used to divide the preset time period into at least two time slices, and different time slices correspond to different sets of points of interest. Any one of the at least two time slices contains at least one time point. For any one of the at least two time slices, according to the distance between any two points of interest in the corresponding point of interest set and the POI time series of the multiple objects to be processed, the multiple objects to be processed are divided into different subsets, and the distance between the respective points of interest of two objects to be processed belonging to the same subset is less than a preset threshold.
[0021] In a feasible design, when the processing unit determines whether the object to be processed belongs to the target object according to the POI time series, it is used to determine a target time slice from the at least two time slices, the target time slice is included in the constraint time indicated by the constraint condition, and a target subset is determined from the target POI set, the target POI set is the POI set corresponding to the target time slice, the POI corresponding to the target subset at least includes the POI indicated by the constraint condition, and the object to be processed in the target subset is taken as the target object.
[0022] In a feasible design, the processing unit, when obtaining the positioning data of the object to be processed at different time points within a preset time period, is used to receive the location information reported by the terminal device of the object to be processed; or, obtain the positioning data by using the order information of the object to be processed shopping through the terminal device.
[0023] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor, a memory, and executable instructions; wherein the executable instructions are stored in the memory and are configured to be executed by the processor, and the executable instructions include methods for executing the first aspect or various possible implementations of the first aspect as above.
[0024] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the method in the first aspect or various possible implementation methods of the first aspect.
[0025] The object recognition method, device, electronic device and readable storage medium provided by the embodiments of the present application, the server obtains the positioning data of the object to be processed at different time points within a preset time period, determines the POI according to the positioning data, and then obtains the POI time series of the object to be processed according to the different time points and the corresponding POI, and then determines whether the object to be processed belongs to the target object according to the POI time series and outputs prompt information. In this process, the server monitors the object to be processed using the positioning data actively reported by the terminal device, and the information obtained is all true and valid information. By using true and valid positioning information, it is effectively monitored whether the object to be processed has resumed work in violation of regulations during the epidemic, so as to achieve the purpose of curbing the spread of the epidemic. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0027] Figure 1 is a schematic diagram of the network architecture of the object recognition method provided in the embodiment of the present application;
[0028] Figure 2 is a flow chart of an object recognition method provided by an embodiment of the present application;
[0029] Figure 3 is a process schematic diagram of an object recognition method provided by an embodiment of the present application;
[0030] Figure 4 It is a schematic diagram of the process of spatiotemporal indexing in the object recognition method provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of the structure of an object recognition device provided in an embodiment of the present application;
[0032] Figure 6 A schematic diagram of the structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0033] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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 disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0034] At present, for highly contagious diseases, isolation is an effective means to curb the spread of the epidemic. In the absence of specific drugs and vaccines, "early detection and early isolation" effectively curbed the further spread of the epidemic. During the resumption of work and production, relevant departments have formulated a series of constraints, and employees can only return to work if these constraints are met. However, some employees of small and medium-sized enterprises and some employees who do not pay attention to the epidemic often return to work ahead of schedule before the quarantine period is over. On the one hand, returning to work without meeting the constraints will expose employees' physical health to great risks, and on the other hand, it may lead to ineffective epidemic control.
[0035] At present, in order to resume work and production safely, the common practice is for companies to regularly report the recent movement trajectories of their employees, and the staff of the relevant epidemic prevention departments will conduct random checks and verifications.
[0036] However, the above-mentioned method of checking each employee of each enterprise by epidemic prevention personnel is inefficient, prone to errors, and has low accuracy. Moreover, employees may feedback false information to the enterprise, resulting in inaccurate movement trajectories of employees regularly reported by the enterprise. At this time, epidemic prevention staff cannot verify the false information. The reason for the difficulty in verification is that there are a large number of enterprises and the number of people returning to work changes dynamically every day, but the energy and time of epidemic prevention personnel are effective. When an employee reports false information and returns to work in violation of regulations, and the employee is a virus carrier, it is very likely to cause the spread of the epidemic.
[0037] In view of this, the embodiments of the present application provide an object recognition method, device, electronic device and readable storage medium, which monitor users by utilizing positioning data, thereby effectively monitoring whether users have violated regulations in returning to work during the epidemic, thereby achieving the purpose of curbing the spread of the epidemic.
[0038] Figure 1 This is a schematic diagram of the network architecture of the object recognition method provided in the embodiment of the present application. Figure 1 , the network architecture includes terminal device 1, server 2 and terminal device 3. Terminal device 1 establishes a network connection with server 2, and terminal device 3 establishes a network connection with server 2. Terminal devices are electronic devices of employees, such as vehicle-mounted terminal devices, mobile phones, tablet computers, laptops, etc. Terminal device 3 is a terminal device of epidemic prevention staff, such as mobile phones, desktop computers, laptops, etc. Terminal device 1 periodically or irregularly pushes its own positioning data to server 2. Server 2 determines whether the user belongs to the target object based on the positioning data pushed by terminal device 1, and sends a prompt message to terminal device 3 to prompt the epidemic prevention staff whether a certain employee is the target object. In addition, server 2 can also send a prompt message to terminal device 1 to prompt the user whether he is in isolation, so that the user can decide whether to resume work based on the prompt message.
[0039] Below, Figure 1Taking the architecture shown in FIG. 1 as an example, the object recognition method described in the embodiment of the present application is described in detail. For example, see Figure 2 .
[0040] Figure 2 : is a flow chart of an object recognition method provided by an embodiment of the present application. This embodiment includes:
[0041] 101. Obtain positioning data of an object to be processed at different time points within a preset time period, wherein the positioning data is two-dimensional coordinates of longitude and latitude.
[0042] In the embodiment of the present application, the object to be processed is an ordinary employee, and the preset time period is flexibly set according to the needs. For example, if a constraint condition is that employees returning from place A cannot return to work within 15 days, the preset time period is 15 days. For another example, if it is only necessary to query whether a certain object to be processed has been to an epidemic area in the past 5 days, the preset time period is 5 days.
[0043] During a preset time period, the terminal device of the object to be processed reports positioning data to the server regularly or irregularly. For example, various applications (applications, APPs) are installed on the terminal device, such as shopping APPs, chat communication APPs, etc. When the object to be processed clicks on the APP on the terminal device to use the APP, the terminal device is triggered to report positioning data to the server. For another example, the APP on the terminal device periodically sends positioning data to the server, for example, the terminal device reports positioning data to the server once every 30 minutes.
[0044] In addition, in addition to obtaining positioning data through the APP, the server can also obtain positioning data using the order information of the object to be processed through the terminal device. For example, the object to be processed places an order using the shopping APP on the terminal device, and needs to fill in the delivery address when placing the order. After the goods arrive and the object to be processed signs for the goods, the shopping APP will record the order information such as the pickup time and pickup address. The server obtains the order information of the object to be processed through the terminal device, and extracts the positioning data based on the order information. The positioning data includes the correspondence between the pickup time point and the pickup address, where the pickup address is the longitude and latitude corresponding to the pickup address, or the pickup address is the name of a point of interest (POI), etc.
[0045] 102. Determine points of interest (POIs) of the object to be processed at different time points within the preset time period according to the positioning data, so as to obtain a POI time series of the object to be processed.
[0046] The POI time series at least stores the corresponding relationship between the time point and the POI.
[0047] Exemplarily, the positioning data reported by the APP on the terminal device is usually a two-dimensional coordinate of longitude and latitude. After receiving the positioning data, the server converts the positioning data into POIs with semantic information, such as an office building, a shop, a bus stop, a hot pot city, etc. The POIs corresponding to different time points are sorted in chronological order to obtain the POI time series of the object to be processed. Taking the preset time period of 8:00 am to 17:00 pm on a certain day as an example, the object to be processed reports positioning data at every hour during this period. The POIs corresponding to the positioning data at 9 o'clock, 10 o'clock, and 11 o'clock are all B Industrial Park, the positioning data at 12 o'clock is C Canteen, and the POIs corresponding to the positioning data at 13 o'clock, 14 o'clock, 15 o'clock, 16 o'clock and 17 o'clock are all B Industrial Park. The POI time series of the object to be processed is: {[9 o'clock, B Industrial Park], [10 o'clock, B Industrial Park], ..., [17 o'clock, B Industrial Park]}. It can be seen from this that the POI time series of an object to be processed represents the movement trajectory of the object to be processed within a preset time period.
[0048] 103. Determine whether the object to be processed belongs to a target object according to the POI time series.
[0049] Exemplarily, the target object refers to an object that meets the constraint conditions among multiple objects to be processed. Some constraints are saved on the server. A constraint usually includes time constraints and space constraints. For example, returning to the local area from A must be isolated for 10 days. For another example, the objects to be processed in area A must not return to work before YYYY-MM-DD. For another example, employees in the area with longitude x and latitude y must not return to work before YYYY-MM-DD.
[0050] After the server obtains a POI time series of an object to be processed, it determines whether the time points in the POI time series intersect with the time indicated by the constraint condition. If one or some time points in the POI time series fall within the constraint time range of the constraint condition, it further determines whether the POIs corresponding to these time points fall within the space indicated by the constraint condition. If the POI corresponding to a time point among these time points falls within the space indicated by the constraint condition, the object to be processed is considered to be a target object, and further measures need to be taken for the target object.
[0051] Taking the constraint that returning from place A to the local area requires 10 days of quarantine and the preset time period is 15 days as an example, if the POI time series of a pending object for the first 5 days indicates that the pending object is in place A, and the POI time series of the next 8 days from the 6th to the 13th day indicates that the pending object is in the local area and most of the POIs are a residential area, it means that the pending object is in quarantine during these 8 days. However, the POI time series on the 14th day indicates that the pending object is in the local area and most of the POIs are a workplace, which means that the pending object has directly resumed work without quarantine, which is an illegal resumption of work, and the pending object needs to continue to be quarantined. After a warning was issued to the pending object, it was found that most of the POIs of the pending object on the 15th day were residential areas and were in quarantine.
[0052] 104. Output prompt information, where the prompt information is used to indicate whether the object to be processed is a target object.
[0053] For example, the server sends a prompt message to the terminal device of the object to be processed to remind whether the object to be processed is the target object. For another example, the server sends a prompt message to the terminal device of the epidemic prevention staff to remind the epidemic prevention staff whether the object to be processed is the target object.
[0054] In the object recognition method provided by the embodiment of the present application, the server obtains the positioning data of the object to be processed at different time points within a preset time period, determines the POI based on the positioning data, and then obtains the POI time series of the object to be processed based on the different time points and the corresponding POI, and then determines whether the object to be processed belongs to the target object based on the POI time series and outputs prompt information. In this process, the server uses the positioning data actively reported by the terminal device to monitor the object to be processed, and the information obtained is all true and valid information. By using true and valid positioning information, it is effectively monitored whether the object to be processed has resumed work in violation of regulations during the epidemic, so as to achieve the purpose of curbing the spread of the epidemic.
[0055] Figure 3 This is a schematic diagram of the process of the object recognition method provided in the embodiment of the present application. Figure 3 The object recognition method provided in the embodiment of the present application includes three stages, namely, data preprocessing stage, work location mining stage and illegal resumption of work monitoring stage. Below, each stage is described in detail.
[0056] First, the data preprocessing stage.
[0057] The main purpose of the data preprocessing stage is to generate a POI time series for each object to be processed. In this stage, the server obtains the preset POI list and the positioning data reported by the object to be processed. The preset POI list is a known POI within a geographical range (spatial range), and the preset POI list stores the correspondence between multiple POIs and the longitude and latitude of each POI. In addition, the preset POI list also stores information such as the province, city, and district where each POI is located.
[0058] After obtaining the positioning data at different time points within a preset time period, the server reversely analyzes the positioning data corresponding to each time point to obtain a POI with semantic information. For example, the server establishes a network connection with the server of the map manufacturer, and the server sends the positioning data to the server of the map mall, and the map manufacturer's server converts the positioning data into a POI online and returns it. For another example, a preset POI list is pre-stored on the server. For each positioning data, the server uses the positioning data as the central information space query to find the POI closest to the positioning data, and uses the POI as the POI corresponding to the positioning data. For example, the server calculates the distance between the position indicated by the positioning data and each POI in the threshold POI list based on the longitude and latitude indicated by the positioning data and the longitude and latitude of each POI in the preset POI list, and uses the POI corresponding to the positioning data with the shortest distance. With this solution, the POI of the positioning data can be determined offline or online.
[0059] After obtaining the POI corresponding to each time point, the server sorts the correspondence between the time points and POIs within the preset time period in chronological order to generate a POI time series of the object to be processed. The POI time series is, for example: {[time point 1, POI1], [time point 2, POI2], ..., [time point n, POIn]}. In addition, each positioning data includes at least one pair of longitude and latitude coordinates. Therefore, when generating the POI time series, the server can also generate a quaternary group, for example, the POI time series is: {[time point 1, longitude 1, dimension 1, POI1], [time point 2, longitude 2, dimension 2, POI2], ..., [time point n, longitude n, dimension n, POIn]}. The purpose of generating the quaternary group is that when the constraint condition includes longitude and latitude information, the longitude and latitude in the quaternary group can be used to determine whether the object to be processed has been to the area indicated by the constraint condition.
[0060] In the embodiment of the present application, the POI time series of the object to be processed represents the movement trajectory of the object to be processed within a preset time period. In addition, after online shopping, the receiving behavior of the object to be processed can also reflect the spatial activity of the object to be processed to a certain extent. Therefore, in addition to generating the POI time series based on the positioning data, the server can also generate the positioning data using the order information. Alternatively, the server generates the POI time series based on the delivery time and delivery address in the order information. The server merges the POI time series generated based on the positioning data and the POI time series generated based on the delivery time and delivery address to obtain the final POI time series. For example, the POI time series generated based on the positioning data is: {[8:30, longitude 1, dimension 1, POI1], [9:40, longitude 2, dimension 2, POI2], [13:00, longitude 3, dimension 3, POI3]}, and the POI time series generated based on the delivery time and delivery address is {[11:30, longitude 4, dimension 4, POI4]}. The server arranges the POIs in the two POI time series in chronological order, thereby merging the two POI time series. The fused POI time series is: {[8:30, longitude 1, dimension 1, POI1], [9:40, longitude 2, dimension 2, POI2], [11:30, longitude 4, dimension 4, POI4], [13:00, longitude 3, dimension 3, POI3]}.
[0061] By adopting this solution, POI time series are generated by using multi-source data, so that the data is more comprehensive and the generated POI time series is more accurate.
[0062] In the above embodiment, after generating the POI time series of the objects to be processed, the server further performs spatiotemporal indexing on the POI time series of all the objects to be processed. During the spatiotemporal indexing process, the server divides the preset time period into at least two time slices, and different time slices correspond to different sets of points of interest, and any one of the at least two time slices contains at least one time point. Afterwards, for any one of the at least two time slices, the server divides the multiple objects to be processed into different subsets according to the distance between any two points of interest in the corresponding set of points of interest, and the POI time series of the multiple objects to be processed, and the distance between the points of interest of two objects to be processed belonging to the same subset is less than a preset threshold.
[0063] Figure 4 This is a schematic diagram of the process of spatiotemporal indexing in the object recognition method provided in the embodiment of the present application. Figure 4When there are multiple objects to be processed, the server performs spatiotemporal indexing on the POI time series of all objects to be processed after obtaining the POI time series of each object to be processed. The basic idea of spatiotemporal indexing is to store objects to be processed that are close in time and space together. In the spatiotemporal indexing process, first, the preset time period is divided into multiple time slices, such as t1, t2, t3, etc. n-2 ,t n-1 ,t n For example, if the preset time period is 9:00-18:00, the 8-hour duration is divided into 8 time slices, each of which is 1 hour long. For each time slice, the server stores the POIs corresponding to the time points of the time slice in the POI time series of the multiple objects to be processed in a set, as shown in the thick black solid line rectangle in the figure.
[0064] During the storage process, each POI is organized in the form of a tree. For example, for POIs belonging to the same POI set, the server stores the POIs that are closer to each other together, thereby dividing a POI set into multiple subsets, as shown in the three dotted rectangular boxes in the figure. For POIs belonging to the same subset, the server continues to divide the POIs that are closer to each other in the subset into groups, such as R1, R2, R3, R4, R5, R6, R7 and R8 in the figure. Each group stores the objects to be processed of POIs that are located at similar distances at similar time points. The circles with different filling methods in the figure represent different objects to be processed.
[0065] According to the above: Each spatiotemporal index consists of an identifier of a time slice and an identifier of a set, subset or even a group. When a constraint is given later, it is only necessary to determine which time slices need to be checked based on the time indicated by the constraint. Furthermore, after determining the time slice, the subset or even the group that needs to be checked is determined from the POI set corresponding to the time slice according to the space indicated by the constraint, thereby obtaining the spatiotemporal index. Then, only the objects to be processed in the subset or group targeted by the spatiotemporal index are fine-grainedly screened, without the need to check the entire preset time period and all POIs.
[0066] This solution can reduce the amount of data access and improve the efficiency of querying whether an enterprise has employees who have returned to work in violation of regulations.
[0067] Secondly, the work location exploration stage.
[0068] The purpose of the work location mining stage is to mine the work locations of the objects to be processed. In addition, the server can also group and sort the objects to be processed through an inverted index in the work location mining stage.
[0069] When mining work locations, the server determines at least one work time period from a preset time period, and then determines the POI corresponding to each time point within the work time period, and uses the POI with the most appearances as the work location of the object to be processed.
[0070] For example, the object to be processed may open the APP in different locations to generate positioning data, and it is also very likely to receive goods in different locations. Therefore, it is inaccurate to use all the POIs in the user's POI sequence to infer the user's work location. In order to avoid this problem, the server first determines a working time period, which is, for example, 9:00-17:00. After that, the server filters out the POIs that appear in the working time period from the POI time series of the object to be processed. Each time a POI appears, the number of occurrences of the POI is increased by 1, and the server uses the POI with the most occurrences in the working time period as the target user's work location.
[0071] By adopting this solution, the POIs in non-working hours are eliminated, so as to accurately determine the working location of the object to be processed.
[0072] Furthermore, some of the target users may have the same work location. The server classifies the target users according to their work locations and obtains a data organization form such as "work location-list of pending objects". If each work location is regarded as an enterprise, all pending objects (employees) of an enterprise can be obtained through the above-mentioned inverted index, which is convenient for the subsequent verification of safe resumption of work for an enterprise.
[0073] Finally, the monitoring stage for illegal resumption of work.
[0074] In this stage, the server uses the pre-established spatiotemporal index to check the employees who have returned to work in any enterprise within the monitoring range. If all employees of the enterprise meet the various constraints set by the relevant departments, the server considers that all employees of the enterprise are compliant; if there are one or more employees in the enterprise who do not meet the constraints, the enterprise is considered to have violated the rules in resuming work. This stage includes three parts: determining which employees have returned to work that day, conducting compliance checks on employees who have returned to work that day, and reminding them of violations in resuming work. The following is a detailed description of these three parts.
[0075] Part 1: How to determine which employees return to work that day.
[0076] Exemplarily, after the server determines the work location of each object to be processed based on the historical records, it can classify all the objects to be processed based on the work location, thereby determining the objects to be processed belonging to the same target location. Considering each work location as an enterprise, the enterprise user directory of each enterprise can be obtained through the above-mentioned inverted index. The historical records are positioning data within a preset time period, or positioning data within a longer time period, such as the past year, half a year, etc.
[0077] When the server screens the employees of an enterprise, for the enterprise to be screened (hereinafter referred to as the target enterprise), the server takes the enterprise as a POI and obtains all the objects to be processed whose work location is the POI within the target time period. These objects to be processed form a set of objects to be processed. Then, the server determines the intersection of the set of objects to be processed and the employees in the enterprise user directory. The objects to be processed included in the intersection are the employees who have returned to work within the target time period. The target time period is, for example, the working hours of the day.
[0078] In addition, regardless of whether the object to be processed is an employee of the target enterprise, the server enterprise, as a POI, obtains all the objects to be processed whose work location is the POI within the target time period. These objects to be processed are employees who return to work within the target time period, and they may not be employees of the target enterprise. The target time period is, for example, the working hours of the day.
[0079] The second part is to conduct compliance checks on employees who return to work that day.
[0080] In this step, the server performs compliance checks on all pending objects that have resumed work on that day one by one. Compliance means that the pending objects meet the constraints, and non-compliance means that the pending objects do not meet the constraints. During the inspection process, the server determines whether the pending object belongs to the target object by comparing the POI time series and constraints of the pending object within a preset time period. Among them, comparing the POI time series and constraints of the pending object within a preset time period means that the server determines whether there are POIs indicated by the constraints among the POIs included in the POI time series of the pending object, and the time period indicated by the constraints includes the preset time period. If there are POIs indicated by the constraints among the POIs included in the POI time series, it is determined that the pending object belongs to the target object.
[0081] For example, the day of the investigation is March 16, and the constraint is: those who have returned to the local area from area A and have been in quarantine for less than 15 days are not allowed to return to work. This constraint can be translated as: the time range is [March 1-March 16], and the spatial range is the standard time and space range of area A. If the POI time series of the object to be processed shows that the POI of the target user at a certain time point between March 1 and March 16 belongs to area A, it means that the object to be processed does not meet the constraint and is an object that needs to be isolated.
[0082] For example, the investigation day is March 16, and the constraint is: employees in area A are not allowed to return to work before May 1. This constraint can be translated as: the time range is [from the beginning of the epidemic to March 16], and the spatial range is the standard spatial range of area A, such as a city, a province, etc. If the POI time series of the object to be processed shows that the POI of the object to be processed at a certain time point in the period from the beginning of the epidemic to March 16 belongs to area A, it means that the object to be processed does not meet the constraint and is an object that needs to be isolated.
[0083] For example, the day of the investigation is March 16, and the constraint is: passengers who took flight F on March 10 cannot return to work before March 26. Assume that the departure time of flight F is 9:30 and the arrival time is 11:30. The constraint is: 1. The time range is from 9:00 to 9:30 on March 10, and the spatial range is the range of the departure place, such as an airport; 2. The time range is from 11:30 to 12:00 on March 10, and the spatial range is the range of the destination. If the POI time series of the object to be processed shows that the object to be processed appears at the departure place from 9:00 to 9:30 on March 10; or the object to be processed appears at the destination from 11:30 to 12:00 on March 10, it means that the object to be processed does not meet the constraint and is an object that needs to be isolated.
[0084] Part 3: Reminders for resuming work in violation of regulations.
[0085] For example, after checking all employees who have returned to work on that day, if the server finds that the target enterprise has employees who have returned to work in violation of regulations, it will automatically send a prompt message to the relevant staff of the epidemic prevention department so that the relevant epidemic prevention department can implement relevant measures in a timely manner.
[0086] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0087] Figure 5 1 is a schematic diagram of the structure of an object recognition device provided in an embodiment of the present application. The object recognition device 100 can be implemented in software and / or hardware. Figure 5 As shown, the object recognition device 100 includes:
[0088] The processing unit 11 is used to obtain positioning data of the object to be processed at different time points within a preset time period, wherein the positioning data is a two-dimensional coordinate of longitude and latitude, and determine points of interest (POIs) of the object to be processed at different time points within the preset time period according to the positioning data to obtain a POI time series of the object to be processed, wherein the POI time series at least stores a corresponding relationship between the time points and the POIs, and determine whether the object to be processed belongs to a target object according to the POI time series, and output prompt information, wherein the prompt information is used to indicate whether the object to be processed is a target object;
[0089] The output unit 12 is used to output prompt information, where the prompt information is used to indicate whether the object to be processed is a target object.
[0090] In a feasible design, the processing unit 11, when determining the points of interest (POI) of the object to be processed at different time points within the preset time period based on the positioning data to obtain the POI time series of the object to be processed, is used to reverse address parse the positioning data at different time points to obtain the POI at the corresponding time points, and sort the correspondence between the time points and the POI within the preset time period in chronological order to generate the POI time series of the object to be processed.
[0091] In a feasible design, the processing unit 11 is also used to determine at least one working time period from the preset time period, determine the POI corresponding to each time point within the working time period, and use the POI with the most appearances as the working location of the object to be processed.
[0092] In a feasible design, when the processing unit 11 determines whether the object to be processed belongs to the target object according to the POI time series, it is used to determine whether there is a POI indicated by a constraint condition among the POIs included in the POI time series, and the time period indicated by the constraint condition includes the preset time period. If there is a POI indicated by the constraint condition among the POIs included in the POI time series, it is determined that the object to be processed belongs to the target object.
[0093] In a feasible design, there are multiple objects to be processed. The processing unit 11, before determining whether the object to be processed belongs to the target object according to the POI time series, is further used to divide the preset time period into at least two time slices, and different time slices correspond to different sets of points of interest. Any one of the at least two time slices contains at least one time point. For any one of the at least two time slices, according to the distance between any two points of interest in the corresponding point of interest set and the POI time series of the multiple objects to be processed, the multiple objects to be processed are divided into different subsets, and the distance between the respective points of interest of two objects to be processed belonging to the same subset is less than a preset threshold.
[0094] In a feasible design, when the processing unit 11 determines whether the object to be processed belongs to the target object according to the POI time series, it is used to determine a target time slice from the at least two time slices, the target time slice is included in the constraint time indicated by the constraint condition, and a target subset is determined from the target POI set, the target POI set is the POI set corresponding to the target time slice, the POI corresponding to the target subset at least includes the POI indicated by the constraint condition, and the object to be processed in the target subset is taken as the target object.
[0095] In a feasible design, the processing unit 11, when obtaining the positioning data of the object to be processed at different time points within a preset time period, is used to receive the location information reported by the terminal device of the object to be processed; or, obtain the positioning data by using the order information of the object to be processed shopping through the terminal device.
[0096] The certificate recognition device provided in the embodiment of the present application can execute the actions of the server in the above method embodiment. Its implementation principle and technical effects are similar and will not be repeated here.
[0097] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 As shown, the electronic device 200 includes:
[0098] Processor 21 and memory 22;
[0099] The memory 22 stores executable instructions;
[0100] The at least one processor 21 executes the executable instructions stored in the memory 22, so that the processor 21 executes the method applied to the server as above.
[0101] The specific implementation process of the processor 21 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0102] Optionally, the electronic device 200 further includes a communication component 23 , wherein the processor 21 , the memory 22 and the communication component 23 may be connected via a bus 24 .
[0103] An embodiment of the present application further provides a computer-readable storage medium, in which executable instructions are stored. When the executable instructions are executed by a processor, they are used to implement the method applied to the server as described above.
[0104] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0105] It should be understood that the present disclosure is not limited to the exact structures that have been 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 present disclosure is limited only by the appended claims.
Claims
1. An object recognition method, characterized in that: include: Acquire positioning data of the object to be processed at different time points within a preset time period, wherein the positioning data is two-dimensional coordinates of longitude and latitude, and the positioning data is location information reported by a terminal device of the object to be processed or obtained by using order information of the object to be processed purchased through the terminal device; Determine, according to the positioning data, points of interest (POIs) of the object to be processed at different time points within the preset time period to obtain a first POI time series of the object to be processed; Generate a second POI time series according to the delivery time and the delivery address in the order information, merge the first POI time series and the second POI time series to obtain a target POI time series, wherein the target POI time series at least stores a corresponding relationship between the time point and the POI; Determine whether the object to be processed belongs to the target object according to the constraint conditions and the target POI time series, wherein the constraint conditions include constraint time and constraint space; Outputting prompt information, wherein the prompt information is used to indicate whether the object to be processed is a target object; There are multiple objects to be processed, and before determining whether the object to be processed belongs to the target object according to the constraint condition and the POI time series, the method further includes: Dividing the preset time period into at least two time slices, different time slices corresponding to different sets of points of interest, and any one of the at least two time slices containing at least one time point; For any one of the at least two time slices, the multiple objects to be processed are divided into different subsets according to the distance between any two points of interest in the corresponding point of interest set and the POI time series of the multiple objects to be processed, and the distance between the respective points of interest of two objects to be processed belonging to the same subset is less than a preset threshold; Correspondingly, determining whether the object to be processed belongs to the target object according to the constraint condition and the target POI time series includes: According to the constraint time, determining a target time slice from at least two time slices divided by the preset time, wherein the target time slice is included in the constraint time indicated by the constraint condition; According to the constraint space, a target subset is determined from a target POI set, the target POI set is a POI set corresponding to the target time slice, the POI corresponding to the target subset at least includes the POI indicated by the constraint condition, the POI set stores the POIs corresponding to the multiple objects to be processed in one time slice, the POI set includes multiple subsets, and the distance between the respective POIs of two objects to be processed in the same subset is less than a preset threshold; The objects to be processed in the target subset are taken as target objects.
2. The method according to claim 1, characterized in that The step of determining, according to the positioning data, points of interest (POIs) of the object to be processed at different time points within the preset time period to obtain a first POI time series of the object to be processed includes: Reverse geocoding the location data at different time points to obtain the POI at the corresponding time point; The correspondence between the time points and the POIs within the preset time period is sorted in chronological order to generate a first POI time series of the object to be processed.
3. The method according to claim 1, characterized in that The method further comprises: Determine at least one working time period from the preset time period; The POI corresponding to each time point within the working time period is determined, the POI with the most appearances is used as the work location of the object to be processed, and the employees of the enterprise are checked for illegal resumption of work based on the work location.
4. The method according to any one of claims 1 to 3, characterized in that: The determining whether the object to be processed belongs to the target object according to the constraint condition and the POI time series includes: Determine whether there is a POI indicated by a constraint condition among the POIs included in the POI time series, where the time period indicated by the constraint condition includes the preset time period; If there is a POI indicated by the constraint condition among the POIs included in the POI time series, it is determined that the object to be processed belongs to the target object.
5. An object recognition device, characterized in that: include: A processing unit, used to obtain positioning data of the object to be processed at different time points within a preset time period, wherein the positioning data is two-dimensional coordinates of longitude and latitude, and the positioning data is location information reported by a terminal device of the object to be processed or obtained by using order information of a purchase made by the object to be processed through a terminal device; Determine, according to the positioning data, points of interest (POIs) of the object to be processed at different time points within the preset time period to obtain a first POI time series of the object to be processed; Generate a second POI time series according to the delivery time and the delivery address in the order information, fuse the first POI time series and the second POI time series to obtain a target POI time series, wherein the target POI time series at least stores a corresponding relationship between the time point and the POI, determine whether the object to be processed belongs to the target object according to the constraint condition and the target POI time series, and output prompt information, wherein the prompt information is used to indicate whether the object to be processed is the target object, wherein the constraint condition includes a constraint time and a constraint space; An output unit, used for outputting prompt information, wherein the prompt information is used for indicating whether the object to be processed is a target object; There are multiple objects to be processed, and the processing unit is specifically used to: According to the constraint time, determining a target time slice from at least two time slices divided by the preset time, wherein the target time slice is included in the constraint time indicated by the constraint condition; According to the constraint space, a target subset is determined from a target POI set, the target POI set is a POI set corresponding to the target time slice, the POI corresponding to the target subset at least includes the POI indicated by the constraint condition, the POI set stores the POIs corresponding to the multiple objects to be processed in one time slice, the POI set includes multiple subsets, and the distance between the respective POIs of two objects to be processed in the same subset is less than a preset threshold; Taking the object to be processed in the target subset as the target object; The processing unit, before determining whether the object to be processed belongs to the target object according to the POI time sequence, is further used to: divide the preset time period into at least two time slices, different time slices correspond to different sets of points of interest, and any one of the at least two time slices contains at least one time point; For any one of the at least two time slices, the multiple objects to be processed are divided into different subsets according to the distance between any two points of interest in the corresponding point of interest set and the POI time series of the multiple objects to be processed, and the distance between the respective points of interest of two objects to be processed belonging to the same subset is less than a preset threshold.
6. An electronic device, characterized in that: include: Memory, processor; A memory for storing program instructions; A processor is used to call and execute the program instructions in the memory to perform the method steps described in any one of claims 1 to 4.
7. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 4.
