Data processing method and device

By analyzing the repetition of abnormal track segments and positioning data of the terminal device, identifying the virtual positioning behavior of the terminal device of the IOS system, solving the problem of virtual positioning and identification in the IOS system and improving system security.

CN112269940BInactive Publication Date: 2024-11-15BEIJING DIDI INFINITY TECH & DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011290602.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-17
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art cannot effectively identify and identify whether the terminal equipment of the IOS system is virtually positioned, resulting in a reduction in system security.

Method used

By obtaining the abnormal track segment of the terminal device, the number and proportion of abnormal positioning data are determined, so as to determine whether the terminal device is performing virtual positioning. There is no need to crack the system permissions when recurring positioning data.

Benefits of technology

It realizes effective identification of virtual positioning of terminal devices in the IOS system, improves system security, and avoids illegal operations caused by virtual positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112269940B_ABST
    Figure CN112269940B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a data processing method and device, the method comprising: obtaining an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment. Determine a first number of each abnormal positioning data in the abnormal trajectory segment. According to the first number of each abnormal positioning data and the second number of total positioning data in the abnormal trajectory segment, determine that the terminal device performs virtual positioning. By determining the abnormal trajectory segment of the terminal device and analyzing the proportion of the abnormal positioning data in the abnormal trajectory segment to the total positioning data, it is determined whether the terminal device has performed virtual positioning. Because the acquisition of positioning data does not require any system permissions, the virtual positioning of the terminal device of the IOS system can be effectively recognized based on the positioning data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to computer technology, and more particularly to a data processing method and device. Background Art

[0002] Currently, terminal devices can implement a positioning function, wherein the terminal devices can, for example, perform real positioning or virtual positioning.

[0003] When users use terminal devices for virtual positioning, they may perform some illegal operations, which will reduce the security of the system. Therefore, it is particularly important to identify the terminal devices for virtual positioning. For example, the terminal devices may have Android systems and Apple operating systems (iPhoXe OperatioX System, IOS).

[0004] Since the authority management of the IOS system is relatively strict, it is impossible to effectively implement virtual positioning identification on the terminal device of the IOS system in the prior art. Summary of the invention

[0005] The embodiments of the present application provide a data processing method and device to overcome the problem that it is impossible to effectively implement virtual positioning identification on a terminal device of an IOS system.

[0006] In a first aspect, an embodiment of the present application provides a data processing method, including:

[0007] Acquire an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment;

[0008] Determine a first quantity of each of the abnormal location data in the abnormal trajectory segment;

[0009] According to the first quantity of each abnormal positioning data and the second quantity of the total positioning data in the abnormal trajectory segment, it is determined that the terminal device performs virtual positioning.

[0010] In a possible design, determining that the terminal device performs virtual positioning according to the first quantity of each abnormal positioning data and the second quantity of total positioning data in the abnormal trajectory segment includes:

[0011] Sort the first quantities of each of the abnormality location data in descending order to obtain the top X abnormality location data, where X is an integer greater than or equal to 1;

[0012] Obtaining a sum of a first number of the top X anomaly location data;

[0013] According to the sum and the second amount of total positioning data in the abnormal trajectory segment, it is determined that the terminal device performs virtual positioning.

[0014] In a possible design, determining that the terminal device performs virtual positioning according to the sum and the second amount of total positioning data in the abnormal trajectory segment includes:

[0015] determining a ratio of the sum to a second amount of total positioning data in the abnormal trajectory segment;

[0016] If the ratio is greater than or equal to a preset threshold, it is determined that the terminal device performs virtual positioning.

[0017] In a possible design, the step of obtaining an abnormal trajectory segment of a terminal device includes:

[0018] Determine the first moment when the trajectory of the terminal device becomes abnormal;

[0019] A trajectory segment of a preset time length before the first moment is determined as the abnormal trajectory segment.

[0020] In a possible design, the step of obtaining an abnormal trajectory segment of a terminal device includes:

[0021] According to the positioning data of the terminal device, a trajectory segment in which the positioning data appears repeatedly is determined to obtain the abnormal trajectory segment.

[0022] In one possible design, the positioning data includes at least one of the following: longitude, latitude, and local time.

[0023] In a second aspect, an embodiment of the present application provides a data processing device, including:

[0024] An acquisition module, used for acquiring an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment;

[0025] A determination module, used to determine a first quantity of each of the abnormal location data in the abnormal trajectory segment;

[0026] The determination module is further used to determine that the terminal device performs virtual positioning according to the first number of each abnormal positioning data and the second number of total positioning data in the abnormal trajectory segment.

[0027] In a possible design, the determining module is specifically used to:

[0028] Sort the first quantities of each of the abnormality location data in descending order to obtain the top X abnormality location data, where X is an integer greater than or equal to 1;

[0029] Obtaining a sum of a first number of the top X anomaly location data;

[0030] According to the sum and the second amount of total positioning data in the abnormal trajectory segment, it is determined that the terminal device performs virtual positioning.

[0031] In a possible design, the determining module is specifically used to:

[0032] determining a ratio of the sum to a second amount of total positioning data in the abnormal trajectory segment;

[0033] If the ratio is greater than or equal to a preset threshold, it is determined that the terminal device performs virtual positioning.

[0034] In a possible design, the acquisition module is specifically used for:

[0035] Determine the first moment when the trajectory of the terminal device becomes abnormal;

[0036] A trajectory segment of a preset time length before the first moment is determined as the abnormal trajectory segment.

[0037] In a possible design, the acquisition module is specifically used for:

[0038] According to the positioning data of the terminal device, a trajectory segment in which the positioning data appears repeatedly is determined to obtain the abnormal trajectory segment.

[0039] In one possible design, the positioning data includes at least one of the following: longitude, latitude, and local time.

[0040] In a third aspect, an embodiment of the present application provides a data processing device, including:

[0041] Memory, used to store programs;

[0042] A processor is used to execute the program stored in the memory. When the program is executed, the processor is used to execute the method described in the first aspect and any one of the various possible designs of the first aspect.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect and any one of the various possible designs of the first aspect.

[0044] The embodiment of the present application provides a data processing method and device, the method comprising: obtaining an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment. Determine a first number of each abnormal positioning data in the abnormal trajectory segment. According to the first number of each abnormal positioning data and the second number of total positioning data in the abnormal trajectory segment, determine that the terminal device performs virtual positioning. By determining the abnormal trajectory segment of the terminal device and analyzing the proportion of the abnormal positioning data in the abnormal trajectory segment to the total positioning data, it is determined whether the terminal device has performed virtual positioning. Because the acquisition of positioning data does not require any system permissions, the virtual positioning of the terminal device of the IOS system can be effectively recognized based on the positioning data. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0046] Figure 1 A schematic diagram of implementing virtual positioning of a terminal device provided in an embodiment of the present application;

[0047] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;

[0048] Figure 3 Another flow chart of the data processing method provided in the embodiment of the present application;

[0049] Figure 4 A schematic diagram of sorting abnormal location data provided in an embodiment of the present application;

[0050] Figure 5 A schematic diagram of an implementation of determining the proportion of abnormal location data provided in an embodiment of the present application;

[0051] Figure 6 A flowchart of a data processing method provided in an embodiment of the present application;

[0052] Figure 7 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;

[0053] Figure 8 A schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] In order to better understand the technical solution of the present application, the background technology involved in the present application is firstly introduced in further detail:

[0056] Terminal devices can usually implement a positioning function, and many applications rely on the positioning function of the terminal devices to implement corresponding business processing.

[0057] However, in addition to normal positioning functions, terminal devices can also realize virtual positioning. For example, in a terminal device of the IOS system, assuming that the current actual location of the terminal device is at location A, the user can modify the system time of the terminal device, or turn off the global positioning system (Global Positioning System, GPS) of the terminal device to change the positioning data of the terminal device to location B to realize virtual positioning of the terminal device.

[0058] Some users may perform some illegal operations by using terminal devices for virtual positioning. Figure 1 Taking the scenario of online car-hailing drivers accepting orders as an example, the implementation method of illegal operations based on virtual positioning is explained. Figure 1 A schematic diagram of implementing virtual positioning of a terminal device provided in an embodiment of the present application.

[0059] like Figure 1 As shown, for example, an online car-hailing driver can modify the system time of the terminal device, such as adjusting the system time of the terminal device to at least one hour before the current time, or turning off the GPS of the terminal device. At this time, the positioning data reported by the terminal device to the server will remain at the current location, thereby realizing the virtual positioning of the terminal device.

[0060] In one possible scenario, for example, an online car-hailing driver can drive to the airport pick-up point, then modify the system time of the terminal device or turn off the GPS of the terminal device. At this time, the positioning data uploaded to the server by the terminal device will always be located at the pick-up point, thereby realizing the virtual positioning of the terminal device. Afterwards, the online car-hailing driver can, for example, perform illegal order acceptance operations based on the virtual positioning.

[0061] Therefore, it is particularly important to detect whether the terminal device has virtual positioning behavior. However, since the authority management of the terminal device of the IOS system is relatively strict, the existing technology cannot effectively realize the identification of virtual positioning on the terminal device of the IOS system.

[0062] In response to the problems in the prior art, the present application proposes the following technical concept: the collection time of the positioning data reported by the terminal device to the server is constantly changing, but when the terminal device performs virtual positioning by modifying the system time or turning off the GPS, the local time and position in the positioning data reported to the server will remain unchanged, where the local time will remain at the time when the terminal device modifies the system time or turns off the GPS, and the position will be fixed at a certain fixed position. Therefore, by determining the concentration of abnormal positioning data of the terminal device within a trajectory, the virtual positioning of the terminal device of the IOS system can be effectively identified.

[0063] The data processing method provided in the present application is described in detail below in conjunction with specific embodiments. It should be noted that the execution subject of each embodiment in the present application may be, for example, the server introduced above, or may also be a device with data processing function such as a processor or microprocessor. This embodiment does not impose any special restrictions on the specific implementation method of the execution subject, and any device that can perform data processing can be used as the execution subject of each embodiment in the present application.

[0064] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application.

[0065] like Figure 2 As shown, the method includes:

[0066] S201. Obtain an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment.

[0067] In this embodiment, the user may carry the terminal device to move, so the positioning data of the terminal device will generate a series of tracks, and in the tracks of the terminal device, an abnormal track segment of the terminal device may be obtained.

[0068] The abnormal trajectory segment may include multiple positioning data. In a possible implementation, the positioning data may include at least one of the following: longitude, latitude, and local time, wherein the local time refers to the system time when the terminal device collects the longitude and latitude.

[0069] Among the multiple positioning data, for example, at least one abnormal positioning data may be included. The abnormal positioning data is only the positioning data that appears at least twice in the abnormal trajectory segment. It can be understood as the positioning data that appears repeatedly in the abnormal trajectory segment. For example, there is a certain positioning data in the abnormal trajectory segment:

[0070] Longitude = 101, latitude = 30, local time is 2020-08-20 15:30:30.

[0071] For example, if the positioning data appears 10 times in the abnormal trajectory segment, it can be determined that the current positioning data is abnormal trajectory data.

[0072] In addition to abnormal positioning data, multiple positioning data can also include normal positioning data. Normal positioning data refers to positioning data that only appears once in the abnormal trajectory segment. It can be understood that even if the terminal device stays at a certain location, the longitude and latitude remain unchanged, but the local time will change. Therefore, in normal positioning data, each two positioning data are different.

[0073] In this embodiment, an abnormal trajectory segment refers to a trajectory segment that includes at least one abnormal positioning data. In a possible implementation method of obtaining an abnormal trajectory segment of a terminal device, for example, the first moment when the trajectory of the terminal device becomes abnormal can be first determined, and then a trajectory segment of a preset time length before the first moment can be determined as an abnormal trajectory segment.

[0074] For example, through data analysis, it can be determined that a certain online car-hailing driver has a lot of airport orders. Then, the first moment when the online car-hailing driver's airport orders started can be determined, that is, from this moment the trajectory of the terminal device began to become abnormal. For example, the trajectory segment within 30 minutes before the first moment can be used as an abnormal trajectory segment. The specific setting of the preset time length can be selected according to actual needs. This embodiment does not specifically limit the specific setting of the preset time length.

[0075] In another possible implementation, because the abnormal trajectory segment is a trajectory segment including abnormal positioning data, for example, the trajectory segment where the positioning data repeatedly appears can be determined based on the positioning data of the terminal device, thereby obtaining the abnormal trajectory segment.

[0076] For example, after analyzing the positioning data of the terminal device, if it is found that the positioning data always appears repeatedly in a certain trajectory segment, the trajectory segment can be determined as an abnormal trajectory segment.

[0077] The present embodiment does not impose any particular limitation on the specific implementation method for determining the abnormal trajectory segment, which can be selected according to actual needs, as long as the determined abnormal trajectory segment includes repeated abnormal positioning data.

[0078] S202: Determine a first quantity of each abnormal location data in the abnormal trajectory segment.

[0079] In this embodiment, at least one abnormal positioning data may appear in the abnormal trajectory segment, and the quantity of each abnormal positioning data may be determined respectively, thereby obtaining at least one first quantity.

[0080] For example, in the example introduced above, for example, there is a certain positioning data in the abnormal trajectory segment: longitude = 101, latitude = 30, and the local time is 2020-08-20 15:30:30. For example, the positioning data appears 10 times in the abnormal trajectory segment, then the first number of the current abnormal positioning data is 10.

[0081] For another example, in the abnormal trajectory segment, there is a positioning data: longitude = 20, latitude = 45, and the local time is 2020-08-20 17:30:30. For example, the positioning data appears 5 times in the abnormal trajectory segment, then the first number of the current abnormal positioning data is 5.

[0082] Referring to the above introduction, the first quantity of each abnormal positioning data in the abnormal trajectory segment can be determined.

[0083] S203: Determine that the terminal device performs virtual positioning according to the first quantity of each abnormal positioning data and the second quantity of the total positioning data in the abnormal trajectory segment.

[0084] In this embodiment, in addition to determining the first number of each abnormal positioning data, the second number of the total positioning data in the abnormal trajectory segment can also be determined. Then, based on the first number and the second number, the proportion of the abnormal positioning data in the abnormal trajectory segment can be determined. When the proportion of the abnormal positioning data is high in the total number of positioning data, it can be determined that virtual positioning has occurred in the terminal device.

[0085] It is worth noting that the acquisition of positioning data does not require additional system permissions. Therefore, in this embodiment, by obtaining abnormal trajectory segments, and then based on the proportion of abnormal positioning data in the abnormal trajectory segments in the total positioning data, it is possible to effectively determine whether the terminal device of the IOS system has performed virtual positioning.

[0086] The data processing method provided by the embodiment of the present application includes: obtaining an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment. Determine the first number of each abnormal positioning data in the abnormal trajectory segment. According to the first number of each abnormal positioning data and the second number of total positioning data in the abnormal trajectory segment, determine that the terminal device performs virtual positioning. By determining the abnormal trajectory segment of the terminal device and analyzing the proportion of the abnormal positioning data in the abnormal trajectory segment to the total positioning data, it is determined whether the terminal device has performed virtual positioning. Because the acquisition of positioning data does not require any system permissions, the virtual positioning of the terminal device of the IOS system can be effectively recognized based on the positioning data.

[0087] Based on the above embodiments, the data processing method provided by the present application is further described in detail below in conjunction with specific embodiments. Figure 3 Another flow chart of the data processing method provided in the embodiment of the present application, Figure 4 A schematic diagram of sorting abnormal location data provided in an embodiment of the present application, Figure 5 A schematic diagram of an implementation of determining the proportion of abnormal location data provided in an embodiment of the present application.

[0088] like Figure 3 As shown, the method includes:

[0089] S301. Obtain an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment.

[0090] The implementation method of S301 is the same as that of S201, and will not be described in detail here.

[0091] S302: Determine a first quantity of each abnormal location data in the abnormal trajectory segment.

[0092] A possible implementation method for determining the first number of each abnormal location data is described below in conjunction with Table 1:

[0093] Table 1:

[0094] Local time longitude latitude 2020-08-20 15:30:30 101 30 2020-08-20 15:30:30 101 30 2020-08-20 15:30:30 101 30 2020-08-20 15:30:30 101 30 2020-08-20 15:30:30 101 30 2020-08-20 14:30:30 21 67 2020-08-20 14:30:30 21 67 2020-08-20 14:30:30 21 67 2020-08-20 15:00:30 33 80 2020-08-20 15:01:30 33 87

[0095] Table 1 above may be part of the positioning data in the abnormal trajectory segment, for example. In a possible implementation, for example, the three features of local time, longitude, and latitude in the positioning data may be combined as a key, and the number of positioning points under each key may be counted. For example, the following four keys may exist in Table 1 above, namely:

[0096] key1: local time: 2020-08-20 15:30:30, longitude 101, latitude 30;

[0097] key2: local time: 2020-08-20 14:30:30, longitude 21, latitude 67;

[0098] key3: local time: 2020-08-20 15:00:30, longitude 33, latitude 80;

[0099] key4: local time: 2020-08-20 15:01:30, longitude 33, latitude 87;

[0100] Referring to Table 1 above, it can be determined that the number of positioning data corresponding to key1 is 5, the number of positioning data corresponding to key2 is 3, the number of positioning data corresponding to key3 is 1, and the number of positioning data corresponding to key4 is 1.

[0101] Therefore, it can be determined that the positioning data corresponding to the above key1 and key2 are abnormal positioning data, and the corresponding first quantities are 5 and 3 respectively.

[0102] In the actual implementation process, the first number of each abnormality location data depends on the specific implementation of the abnormal trajectory segment, and this embodiment does not impose any special limitation on this.

[0103] S303: sort the first quantities of each abnormality location data in descending order to obtain top X abnormality location data, where X is an integer greater than or equal to 1.

[0104] After determining the first quantity of each abnormality location data, the first quantity of each abnormality location data can be sorted in descending order from large to small, and then the top X abnormality location data are obtained, where X is an integer greater than or equal to 1, and the specific value of X can be selected according to actual needs, and this embodiment does not impose any special restrictions on this.

[0105] In a possible implementation, assuming that the value of X is 5, the implementation method can refer to Figure 4 , assuming that there are 8 abnormal location data in the abnormal trajectory segment, namely abnormal location data 1, abnormal location data 2, abnormal location data 3, abnormal location data 4, abnormal location data 5, abnormal location data 6, abnormal location data 7, and abnormal location data 8, wherein the first quantity corresponding to each abnormal location data is as follows Figure 4 shown.

[0106] After sorting the first quantities of each abnormal location data from large to small, for example, it can be obtained Figure 4The sorting shown in the figure is then performed to obtain the top 5 abnormal location data, which can be Figure 4 The abnormal location data shown by the shadows in the figure are abnormal location data 1, abnormal location data 2, abnormal location data 3, abnormal location data 4, and abnormal location data 5 respectively.

[0107] The above is an exemplary introduction based on the value of X being 5. In actual implementation, the specific setting of X can be selected according to actual needs, and this embodiment does not impose any special restrictions on this.

[0108] S304: Obtain the sum of the first quantities of the top X abnormal location data.

[0109] S305: Determine a ratio of the sum to a second amount of total positioning data in the abnormal trajectory segment.

[0110] After determining the top X anomaly location data, the sum of the first quantities of the X anomaly location data may be determined according to the respective first quantities of the X anomaly location data. For example, using the above example, see Figure 5 The sum of the first quantities of current abnormality location data 1, abnormality location data 2, abnormality location data 3, abnormality location data 4, and abnormality location data 5 is 43.

[0111] And, assuming that the second number of total positioning data in the abnormal trajectory segment is 50, then determine the ratio of the sum of the first number of the top X abnormal positioning data to the second number of the total positioning data, for example, see Figure 5 , the current total is 43, assuming that the second number of total positioning data is 50, the ratio of the two can be 0.86.

[0112] In the actual implementation process, the sum of the first quantity, the second quantity of the total second data, and the final ratio all depend on the implementation of the specific abnormal trajectory segment, which is not limited in this embodiment.

[0113] S306: If the ratio is greater than or equal to a preset threshold, determine that the terminal device performs virtual positioning.

[0114] After determining the ratio of the sum of the first number of abnormal positioning data ranked in the top X to the second number of total positioning data, the ratio may be compared with a preset threshold to determine whether the terminal device performs virtual positioning.

[0115] In one possible implementation, if it is determined that the ratio is greater than or equal to a preset threshold, it can be determined that the terminal device performs virtual positioning. For example, the preset threshold can be set to 0.7. For example, the above example can be referred to, where the ratio is 0.86, then it can be determined that the ratio is greater than 0.7. At this time, it can be determined that the terminal device performs virtual positioning. In the actual implementation process, the specific implementation of the preset threshold can be selected according to actual needs, and this embodiment does not impose any special restrictions on this.

[0116] In another possible implementation, if it is determined that the ratio is less than a preset threshold, in order to avoid false detection, it can be determined that the terminal device has not performed virtual positioning, and detection can be continued thereafter.

[0117] The data processing method provided by the embodiment of the present application includes: obtaining an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment. Determine the first number of each abnormal positioning data in the abnormal trajectory segment. Sort the first number of each abnormal positioning data in descending order to obtain the top X abnormal positioning data, wherein X is an integer greater than or equal to 1. Obtain the sum of the first number of the top X abnormal positioning data. Determine the ratio of the sum to the second number of total positioning data in the abnormal trajectory segment. If the ratio is greater than or equal to a preset threshold, it is determined that the terminal device performs virtual positioning. By obtaining the ratio between the sum of the number of the top X abnormal positioning data in the abnormal positioning data and the total number of positioning data, and then comparing the ratio with the preset threshold to determine whether the terminal device performs virtual positioning, it can be simply and efficiently implemented to identify whether the terminal device performs virtual positioning, effectively ensuring the efficiency of identifying the terminal device for virtual positioning, and comparing the ratio with the preset threshold to determine whether the terminal device performs virtual positioning, which can effectively ensure the accuracy of identifying virtual positioning.

[0118] Based on the above embodiments, the data processing method in the present application is systematically introduced in combination with a specific example. Figure 6 A flowchart of a data processing method provided in an embodiment of the present application.

[0119] like Figure 6 As shown, positioning data can be collected according to the terminal device, wherein the main fields collected include: longitude, latitude, collection time, and local time.

[0120] Then, the abnormal trajectory segments in the positioning data are selected. In one possible implementation, assuming that a certain online car-hailing driver has a lot of airport orders, the trajectory of the time period from 30 minutes before the start of the airport order to the start of the order can be filtered as the abnormal trajectory segment.

[0121] The positioning data in the abnormal trajectory segment is counted to obtain the number of each positioning data. In one possible implementation, for example, the three features of local time, longitude, and latitude can be combined as a key to count the occurrence of the positioning data corresponding to this key. For example, it can be counted that the positioning data with a local time of 2020-08-20 15:30:30, longitude = 101, and latitude = 30 appears a total of 10 times in the abnormal trajectory segment.

[0122] Then, the number of occurrences corresponding to each positioning data can be sorted to obtain the top X positioning data, and the total number N of positioning points in the abnormal trajectory segment can be determined. In order to ensure accuracy, X can be set to an integer less than or equal to 5, for example.

[0123] Then, the number of occurrences corresponding to the top X positioning data are added together to obtain the total number of occurrences corresponding to these positioning data N1, so that the proportion of the number of occurrences of the top X positioning data in the total positioning data can be calculated, and the ratio a=N1 / N can be obtained.

[0124] Finally, the obtained ratio a is compared with the preset threshold. It can be understood that the larger the ratio is, the more abnormal the current trajectory segment is. Then, when it is determined that the ratio a is greater than or equal to the preset threshold, the terminal device can be determined to perform virtual positioning. In one possible implementation method, the preset threshold can be set to above 0.7, for example. This embodiment does not impose any special restrictions on the specific implementation method of the preset threshold.

[0125] To sum up, the data processing method provided in the embodiment of the present application identifies whether the terminal device is performing virtual positioning through the anomalies of the local time, longitude, and latitude in the positioning data. In this process, there is no need to crack any system permissions, that is, the effective identification of the virtual positioning of the terminal device of the IOS system can be achieved, and the virtual positioning is determined by comparing the proportion of abnormal positioning data in the total positioning data with a preset threshold, which can effectively ensure the efficiency and accuracy of determining the virtual positioning of the terminal device.

[0126] Figure 7 This is a schematic diagram of the structure of the data processing device provided in the embodiment of the present application. Figure 7 As shown, the device 70 includes: an acquisition module 701 and a determination module 702.

[0127] An acquisition module 701 is used to acquire an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment;

[0128] A determination module 702 is used to determine a first quantity of each of the abnormal location data in the abnormal trajectory segment;

[0129] The determination module 702 is further configured to determine that the terminal device performs virtual positioning according to the first quantity of each abnormal positioning data and the second quantity of the total positioning data in the abnormal trajectory segment.

[0130] In a possible design, the determining module 702 is specifically configured to:

[0131] Sort the first quantities of each of the abnormality location data in descending order to obtain the top X abnormality location data, where X is an integer greater than or equal to 1;

[0132] Obtaining a sum of a first number of the top X anomaly location data;

[0133] According to the sum and the second amount of total positioning data in the abnormal trajectory segment, it is determined that the terminal device performs virtual positioning.

[0134] In a possible design, the determining module 702 is specifically configured to:

[0135] determining a ratio of the sum to a second amount of total positioning data in the abnormal trajectory segment;

[0136] If the ratio is greater than or equal to a preset threshold, it is determined that the terminal device performs virtual positioning.

[0137] In a possible design, the acquisition module 701 is specifically used for:

[0138] Determine the first moment when the trajectory of the terminal device becomes abnormal;

[0139] A trajectory segment of a preset time length before the first moment is determined as the abnormal trajectory segment.

[0140] In a possible design, the acquisition module 701 is specifically used for:

[0141] According to the positioning data of the terminal device, a trajectory segment in which the positioning data appears repeatedly is determined to obtain the abnormal trajectory segment.

[0142] In one possible design, the positioning data includes at least one of the following: longitude, latitude, and local time.

[0143] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0144] Figure 8 A schematic diagram of the hardware structure of a data processing device provided in an embodiment of the present application is shown in FIG. Figure 8As shown, the data processing device 80 of this embodiment includes: a processor 801 and a memory 802;

[0145] Memory 802, used to store computer-executable instructions;

[0146] The processor 801 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the data processing method in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0147] Optionally, the memory 802 may be independent or integrated with the processor 801 .

[0148] When the memory 802 is independently provided, the data processing device further includes a bus 803 for connecting the memory 802 and the processor 801 .

[0149] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the data processing method executed by the above data processing device is implemented.

[0150] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0151] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application.

[0152] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0153] The memory may include a high-speed RAM memory, and may also include a non-volatile storage XVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk.

[0154] The bus may be an ISA bus, a PCI bus, or an EISA bus. The bus may be an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0155] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0156] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A data processing method, characterized in that: include: Acquire an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment; Determine a first quantity of each of the abnormal location data in the abnormal trajectory segment; According to the first number of each abnormal positioning data and the second number of the total positioning data in the abnormal trajectory segment, determining that the terminal device performs virtual positioning; the virtual positioning includes a positioning situation where the actual positioning does not match the real positioning; Wherein, determining the first quantity of each abnormal location data in the abnormal trajectory segment comprises: Determine the key of each of the abnormal location data according to the local time, longitude, and latitude in each of the abnormal location data; Determine the number of positioning points of each key according to the key of each abnormal positioning data; According to the number of positioning points of each key, a first quantity of each abnormal positioning data is determined.

2. The method according to claim 1, characterized in that The step of determining, based on the first quantity of each abnormal positioning data and the second quantity of the total positioning data in the abnormal trajectory segment, that the terminal device performs virtual positioning includes: Sort the first quantities of each of the abnormality location data in descending order to obtain the top X abnormality location data, where X is an integer greater than or equal to 1; Obtaining a sum of a first number of the top X anomaly location data; According to the sum and the second amount of total positioning data in the abnormal trajectory segment, it is determined that the terminal device performs virtual positioning.

3. The method according to claim 2, characterized in that The step of determining, based on the sum and the second amount of total positioning data in the abnormal trajectory segment, that the terminal device performs virtual positioning includes: determining a ratio of the sum to a second amount of total positioning data in the abnormal trajectory segment; If the ratio is greater than or equal to a preset threshold, it is determined that the terminal device performs virtual positioning.

4. The method according to claim 1, characterized in that: The obtaining of the abnormal trajectory segment of the terminal device includes: Determine the first moment when the trajectory of the terminal device becomes abnormal; A trajectory segment of a preset time length before the first moment is determined as the abnormal trajectory segment.

5. The method according to claim 4, characterized in that The obtaining of the abnormal trajectory segment of the terminal device includes: According to the positioning data of the terminal device, a trajectory segment in which the positioning data appears repeatedly is determined to obtain the abnormal trajectory segment.

6. The method according to any one of claims 1 to 5, characterized in that: The positioning data includes at least one of the following: longitude, latitude, and local time.

7. A data processing device, characterized in that: include: An acquisition module, used for acquiring an abnormal trajectory segment of a terminal device, wherein the abnormal trajectory segment includes at least one abnormal positioning data, and the abnormal positioning data is positioning data that appears at least twice in the abnormal trajectory segment; A determination module, used to determine a first quantity of each of the abnormal location data in the abnormal trajectory segment; The determination module is further used to determine that the terminal device performs virtual positioning according to the first number of each abnormal positioning data and the second number of total positioning data in the abnormal trajectory segment; the virtual positioning includes a positioning situation where the actual positioning does not match the real positioning; The determination module is also used to determine the key of each of the abnormal location data according to the local time, longitude and latitude in each of the abnormal location data; determine the number of positioning points of each key according to the key of each of the abnormal location data; and determine the first quantity of each of the abnormal location data according to the number of positioning points of each of the keys.

8. The device according to claim 7, characterized in that The determination module is specifically used for: Sort the first quantities of each of the abnormality location data in descending order to obtain the top X abnormality location data, where X is an integer greater than or equal to 1; Obtaining a sum of a first number of the top X anomaly location data; According to the sum and the second amount of total positioning data in the abnormal trajectory segment, it is determined that the terminal device performs virtual positioning.

9. The device according to claim 8, characterized in that The determination module is specifically used for: determining a ratio of the sum to a second amount of total positioning data in the abnormal trajectory segment; If the ratio is greater than or equal to a preset threshold, it is determined that the terminal device performs virtual positioning.

10. The device according to any one of claims 7 to 9, characterized in that: The acquisition module is specifically used for: Determine the first moment when the trajectory of the terminal device becomes abnormal; A trajectory segment of a preset time length before the first moment is determined as the abnormal trajectory segment.

11. The device according to any one of claims 7 to 9, characterized in that: The acquisition module is specifically used for: According to the positioning data of the terminal device, a trajectory segment in which the positioning data appears repeatedly is determined to obtain the abnormal trajectory segment.

12. The device according to any one of claims 7 to 9, characterized in that: The positioning data includes at least one of the following: longitude, latitude, and local time.

13. A data processing device, characterized in that: include: Memory, used to store programs; A processor, configured to execute the program stored in the memory; when the program is executed, the processor is configured to execute the method according to any one of claims 1 to 6.

14. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, cause the computer to perform the method as claimed in any one of claims 1 to 6.