Data processing system for determining location of target equipment
By filtering the IP list of the target device, using geohash grid coding to determine the workplace and home site, the problems of low efficiency and poor accuracy in the prior art are solved, and efficient and accurate equipment geolocation is achieved.
Patent Information
- Application Number
- CN202411969403.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-18
AI Technical Summary
The method of determining the location of the target device in the prior art is inefficient and has poor accuracy, and fails to effectively combine the IP information and geographical location information of the device connection.
By obtaining the target IP list of the target device, filter out the top two specified IP lists, use geohash grid encoding to generate the target geographical area, determine the device's workplace and home location, and filter it based on the location information of the IP address.
The efficiency and accuracy of determining the location of the target device are improved, and the location information of the IP address is filtered, and the IP information and geographical location information of the device connection are combined to improve the accuracy of obtaining the location of the target device.
Smart Images

Figure CN119854200A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a data processing system for determining the location of a target device. Background Art
[0002] In today's digital age, determining the location of a device is extremely important not only for security reasons but also to provide data support for positioning services. With the continuous development of mobile communication technology, network coverage has become more extensive, and WiFi networks are widely used in homes and workplaces. Determining the location of a device through WiFi feature information and the connection between the device and WiFi has become a hot research direction.
[0003] The method for determining the location of the target device in the prior art is to obtain the number of times the user connects to WiFi, as well as information such as residence and work place provided by the user, and determine the location of the target device based on the WiFi network connection information and geographic location of the mobile terminal. A large amount of data is extracted and screened, which reduces efficiency and is limited to the number of WiFi connections. The IP information of the device connection is not combined with the geographic location information corresponding to the device, which reduces the accuracy of obtaining the location of the target device. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is: a data processing system for determining the location of a target device, comprising: a processor and a memory storing a computer program, when the computer program is executed by the processor, the following steps are implemented:
[0005] S100, obtaining a target IP list corresponding to a target device, wherein the target IP list includes a plurality of target IPs, and the target IPs are IPs corresponding to WiFi interfaces to which the target device has been connected within N days.
[0006] S200, according to the target IP list, obtain a first target IP list and a second target IP list, wherein the first target IP list includes several first target IPs, the first target IPs are target IPs within a first preset time period obtained from the target IP list, and the second target IP list includes several second target IPs, the second target IPs are target IPs within a second preset time period obtained from the target IP list.
[0007] S300, according to the first target IP list and the second target IP list, obtain a first designated IP list and a second designated IP list, wherein the first designated IP list includes a plurality of first designated IPs, the first designated IPs are the first target IPs ranked top two in terms of the number of occurrences obtained from the first target IP list, and the second designated IP list includes a plurality of second designated IPs, the second designated IPs are the second target IPs ranked top two in terms of the number of occurrences obtained from the second target IP list;
[0008] S400, obtaining a first key IP list and a second key IP list according to the first designated IP list and the second designated IP list, wherein the first key IP list and the second key IP list are obtained by screening the first designated IP in the first designated IP list and the second designated IP list.
[0009] S500: Determine the working location of the target device according to the first key IP list.
[0010] S600: Determine the home address of the target device according to the second key IP list.
[0011] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the data processing system for determining the location of a target device provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:
[0012] A data processing system for determining the location of a target device comprises: a processor and a memory storing a computer program. When the computer program is executed by the processor, the following steps are implemented: obtaining a target IP list corresponding to the target device, obtaining a first target IP list and a second target IP list according to the target IP list, obtaining a first designated IP list and a second designated IP list according to the first target IP list and the second target IP list, obtaining a first key IP list and a second key IP list according to the first designated IP list and the second designated IP list, determining the work location of the target device according to the first key IP list, and determining the home location of the target device according to the second key IP list. The present invention screens the IP to which the device is connected based on the location information of the IP address, thereby improving the efficiency of obtaining the location of the target device. The present invention is not limited to the number of times the device is connected to the IP. The location of the target device is determined by combining the IP information connected to the device with the geographical location information corresponding to the device, thereby improving the accuracy of obtaining the location of the target device.
[0013] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 A flowchart of a computer program executed by a data processing system for determining a location of a target device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0016] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0017] Example
[0018] This embodiment provides a data processing system for determining the location of a target device, the system comprising: a processor and a memory storing a computer program, when the computer program is executed by the processor, the following steps are implemented, such as: Figure 1 As shown:
[0019] S100, obtaining a target IP list corresponding to a target device, wherein the target IP list includes a plurality of target IPs, and the target IPs are IPs corresponding to WiFi interfaces to which the target device has been connected within N days.
[0020] Specifically, the target device is a portable computer device that is installed with several applications and can connect to Wi-Fi, such as a mobile phone or other target device.
[0021] Specifically, the value range of N is 30 to 45, wherein those skilled in the art know that N can be selected according to actual needs, all of which fall within the protection scope of the present invention and will not be described in detail here.
[0022] Specifically, the target device is collected once every preset time span within N days.
[0023] Preferably, the preset time span is 1 hour.
[0024] S200, according to the target IP list, obtain a first target IP list and a second target IP list, wherein the first target IP list includes several first target IPs, the first target IPs are target IPs within a first preset time period obtained from the target IP list, and the second target IP list includes several second target IPs, the second target IPs are target IPs within a second preset time period obtained from the target IP list.
[0025] Specifically, the first preset time period is from 9:00 to 21:00 from Monday to Friday.
[0026] Specifically, the second preset time period is other time periods within N days except the first preset time period.
[0027] S300, according to the first target IP list and the second target IP list, obtain the first designated IP list and the second designated IP list, wherein the first designated IP list includes several first designated IPs, the first designated IPs are the first target IPs ranked top two in terms of the number of occurrences obtained from the first target IP list, and the second designated IP list includes several second designated IPs, the second designated IPs are the second target IPs ranked top two in terms of the number of occurrences obtained from the second target IP list.
[0028] Specifically, the top two are the top two ranked from largest to smallest.
[0029] S400, obtaining a first key IP list and a second key IP list according to the first designated IP list and the second designated IP list, wherein the first key IP list and the second key IP list are obtained by screening the first designated IP in the first designated IP list and the second designated IP list.
[0030] Specifically, S400 also includes the following steps:
[0031] S401, obtain the target identifier list A corresponding to the first specified IP list = {A1, ..., A j , ..., A n}, A jThe target identifier corresponding to the i-th first specified IP.
[0032] Specifically, in S401, A is obtained by the following steps: j :
[0033] S4011, obtaining a target geographical area corresponding to the i-th first designated IP, wherein the target geographical area is an area where the first designated IP address is located.
[0034] S4012, when the target geographical area meets the preset conditions, obtain A j =“1”.
[0035] Specifically, the preset condition is: βx≥βy, x>y, βx is the number of geohash grids generated by encoding the target geographical area according to an x-bit character string length, βx is the number of geohash grids generated by encoding the target geographical area according to a y-bit character string length, wherein it can be understood that: when the target geographical area meets the preset condition, the first key IP in the first key list is the first designated IP in the first designated IP list, and the second key IP in the second key list is the second designated IP in the second designated IP list.
[0036] S4013, when the target geographical area does not meet the preset conditions, obtain A j =“0”.
[0037] S402, when A j When all are "1", the first key IP list is obtained as the first designated IP list and the second key IP list is obtained as the second designated IP list.
[0038] S403, when there is A j When it is "0", A j The corresponding i-th first designated IP is deleted from the first designated IP list and inserted into the second designated IP list to obtain the first key IP list to delete A j The first designated IP list and the second key IP list after the corresponding i-th first designated IP are inserted into A j The corresponding second designated IP list after the i-th first designated IP.
[0039] S500: Determine the working location of the target device according to the first key IP list.
[0040] Specifically, S500 also includes the following steps:
[0041] S501, obtaining a first key quantity, wherein the first key quantity is the quantity of first key IPs in a first key IP list.
[0042] S502, determining a first target IP according to the first key quantity, wherein the first target IP is obtained in S502 through the following steps:
[0043] S5021, when the first key quantity is 1, obtaining the first key IP as the first target IP.
[0044] S5022: When the first key number is greater than 1, obtain a first target priority list D corresponding to the first key IP list = {D1, ..., D e , ..., D f}, where D e is the first target priority corresponding to the e-th first key IP, e=1…f, f is the number of first key IPs in the first key IP list, D e Meet the following conditions:
[0045] T e is the duration that the target device connects to the eth first key IP within N days, T max is the maximum duration of the first key IP connected by the target device within N days, α e It is the number of times the target device connects to the e-th first key IP within N days.
[0046] S5023, when D e When it is the largest first target priority in D, the corresponding e-th key IP is obtained as the first target IP.
[0047] S503, according to the first target IP, obtain a first target location ID list corresponding to the target device and a first target quantity list E corresponding to the first target location ID list = {E1, ..., E r ,……,E s}, the first target location ID list includes a plurality of first target location IDs, E r is the number of first targets corresponding to the rth first target position ID, r=1...s, s is the number of first target position IDs in the first target position ID list.
[0048] Specifically, the first target location ID is a geohash character string corresponding to the first target location, wherein the first target location is a location where a target device appears in a target geographic area corresponding to the first target IP.
[0049] Specifically, the first target quantity is the number of times the target device appears at the first target location within N days.
[0050] S504, when E r When the number of first targets is the largest in E, confirm that the first target IP corresponds to the target geographic area Er The corresponding first target location is the working place of the target device.
[0051] S600: Determine the home address of the target device according to the second key IP list.
[0052] Specifically, the method of determining the home location of the target device in S600 is consistent with the method of determining the work location of the target device in S500.
[0053] Specifically, S600 also includes the following steps:
[0054] S601, obtaining a second key quantity, wherein the second key quantity is the quantity of second key IPs in a second key IP list.
[0055] S602, determining a second target IP according to the second key quantity, wherein the second target IP is obtained in S602 through the following steps:
[0056] S6021, when the second key quantity is 1, obtain the second key IP as the second target IP.
[0057] S6022: When the second key number is greater than 1, obtain the second target priority list G corresponding to the second key IP list = {G1, ..., G v , ..., G b}, where D v is the second target priority corresponding to the vth second key IP, v = 1...b, b is the number of second key IPs in the second key IP list, D v Meet the following conditions:
[0058] T e is the duration that the target device connects to the e-th second key IP within N days, T max is the maximum duration of the target device connecting to the second key IP within N days, α v The number of times the target device connects to the vth second key IP within N days.
[0059] S6023, when D v When it is the largest second target priority in D, the corresponding vth key IP is obtained as the second target IP.
[0060] S603, according to the second target IP, obtain a second target location ID list corresponding to the target device and a second target quantity list F corresponding to the second target location ID list = {F1, ..., F g , ..., F h}, the second target location ID list includes a plurality of second target location IDs, F gis the number of second targets corresponding to the rth second target position ID, g=1…h, h is the number of second target position IDs in the second target position ID list.
[0061] Specifically, the second target location ID is a geohash character string corresponding to the second target location, wherein the second target location is a location where the target device appears in a target geographic area corresponding to the second target IP.
[0062] Specifically, the second target quantity is the number of times the target device appears at the second target location within N days.
[0063] S604, when F g When the number of second targets is the largest in F, confirm that the second target IP corresponds to the target geographic area F g The corresponding second target location is the working place of the target device.
[0064] From the above content, it can be seen that the target IP list corresponding to the target device is classified and filtered, and the IP to which the device is connected is filtered based on the location information of the IP address, which improves the efficiency of obtaining the location of the target device. It is not limited to the number of times the device connects to the IP. The IP information of the device connection is combined with the geographical location information corresponding to the device to determine the location of the target device, which improves the accuracy of obtaining the location of the target device.
[0065] The present embodiment provides a data processing system for determining the location of a target device, the system comprising: a processor and a memory storing a computer program, when the computer program is executed by the processor, the following steps are implemented: obtaining a target IP list corresponding to the target device, obtaining a first target IP list and a second target IP list based on the target IP list, obtaining a first designated IP list and a second designated IP list based on the first target IP list and the second target IP list, obtaining a first key IP list and a second key IP list based on the first designated IP list and the second designated IP list, determining the work location of the target device based on the first key IP list, and determining the home location of the target device based on the second key IP list. The present embodiment filters the IP to which the device is connected based on the location information of the IP address, thereby improving the efficiency of obtaining the location of the target device, and is not limited to the number of times the device is connected to the IP. The IP information of the device connection is combined with the geographical location information corresponding to the device to determine the location of the target device, thereby improving the accuracy of obtaining the location of the target device.
[0066] Although some specific embodiments of the present invention have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It should also be understood by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A data processing system for determining the location of a target device, characterized in that: The system comprises: a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented: S100, obtaining a target IP list corresponding to the target device, wherein the target IP list includes a plurality of target IPs, and the target IPs are IPs corresponding to WiFi interfaces to which the target device has been connected within N days; S200, according to the target IP list, obtaining a first target IP list and a second target IP list, wherein the first target IP list includes a plurality of first target IPs, the first target IPs are target IPs within a first preset time period obtained from the target IP list, and the second target IP list includes a plurality of second target IPs, the second target IPs are target IPs within a second preset time period obtained from the target IP list; S300, according to the first target IP list and the second target IP list, obtain a first designated IP list and a second designated IP list, wherein the first designated IP list includes a plurality of first designated IPs, the first designated IPs are the first target IPs ranked top two in terms of the number of occurrences obtained from the first target IP list, and the second designated IP list includes a plurality of second designated IPs, the second designated IPs are the second target IPs ranked top two in terms of the number of occurrences obtained from the second target IP list; S400, obtaining a first key IP list and a second key IP list according to the first designated IP list and the second designated IP list, wherein the first key IP list and the second key IP list are obtained by screening the first designated IP in the first designated IP list and the second designated IP list; S500, determining the working location of the target device according to the first key IP list; S600: Determine the home address of the target device according to the second key IP list.
2. The data processing system for determining the location of a target device according to claim 1, characterized in that: The target device is a portable computer device that has several applications installed and can connect to Wi-Fi.
3. The data processing system for determining the location of a target device according to claim 1, characterized in that: The first preset time period is from 9:00 to 21:00 from Monday to Friday, and the second preset time period is other time periods within N days except the first preset time period.
4. The data processing system for determining the location of a target device according to claim 1, characterized in that: S400 also includes the following steps: S401, obtain the target identifier list A corresponding to the first specified IP list = {A1, ..., A j , ..., A n }, A j The target identifier corresponding to the i-th first designated IP; S402, when A j When all are "1", the first key IP list is obtained as the first designated IP list and the second key IP list is obtained as the second designated IP list; S403, when there is A j When it is "0", A j The corresponding i-th first designated IP is deleted from the first designated IP list and inserted into the second designated IP list to obtain the first key IP list to delete A j The first designated IP list and the second key IP list after the corresponding i-th first designated IP are inserted into A j The corresponding second designated IP list after the i-th first designated IP.
5. The data processing system for determining the location of a target device according to claim 4, characterized in that: In S401, A is obtained by the following steps: j : S4011, obtaining a target geographical area corresponding to the i-th first designated IP, wherein the target geographical area is an area where the first designated IP address is located; S4012, when the target geographical area meets the preset conditions, obtain A j = "1"; S4013, when the target geographical area does not meet the preset conditions, obtain A j ="0".
6. The data processing system for determining the location of a target device according to claim 1, characterized in that: S500 also includes the following steps: S501, obtaining a first key quantity, wherein the first key quantity is the quantity of first key IPs in a first key IP list; S502, determining a first target IP address according to a first key quantity; S503, according to the first target IP, obtain a first target location ID list corresponding to the target device and a first target quantity list E corresponding to the first target location ID list = {E1, ..., E r ,……,E s }, the first target location ID list includes a plurality of first target location IDs, E r is the number of first targets corresponding to the rth first target position ID, r=1…s, s is the number of first target position IDs in the first target position ID list; S504, when E r When the number of first targets is the largest in E, confirm that the first target IP corresponds to the target geographic area E r The corresponding first target location is the working place of the target device.
7. The data processing system for determining the location of a target device according to claim 6, characterized in that: In S502, the first target IP is obtained through the following steps: S5021, when the first key quantity is 1, obtaining the first key IP as the first target IP; S5022: When the first key number is greater than 1, obtain a first target priority list D corresponding to the first key IP list = {D1, ..., D e , ..., D f }, where D e is the first target priority corresponding to the e-th first key IP, e=1…f, f is the number of first key IPs in the first key IP list, D e Meet the following conditions: T e is the duration that the target device connects to the eth first key IP within N days, T max is the maximum duration of the first key IP connected by the target device within N days, α e The number of times the target device connects to the e-th first key IP within N days; S5023, when D e When it is the largest first target priority in D, the corresponding e-th key IP is obtained as the first target IP.
8. The data processing system for determining the location of a target device according to claim 7, characterized in that: The first target location ID is a geohash character string corresponding to the first target location, wherein the first target location is a location where a target device appears in a target geographic area corresponding to the first target IP.