CN112738727B - Activity track analysis method and system based on communication record - Google Patents

Activity track analysis method and system based on communication record Download PDF

Info

Publication number
CN112738727B
CN112738727B CN202011562964.7A CN202011562964A CN112738727B CN 112738727 B CN112738727 B CN 112738727B CN 202011562964 A CN202011562964 A CN 202011562964A CN 112738727 B CN112738727 B CN 112738727B
Authority
CN
China
Prior art keywords
base station
communication
communication record
spherical distance
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011562964.7A
Other languages
Chinese (zh)
Other versions
CN112738727A (en
Inventor
林鑫
江汉祥
黄志炜
苏再添
施志明
刘志祥
陈俊珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meiya Pico Information Co Ltd
Original Assignee
Xiamen Meiya Pico Information Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Meiya Pico Information Co Ltd filed Critical Xiamen Meiya Pico Information Co Ltd
Priority to CN202011562964.7A priority Critical patent/CN112738727B/en
Publication of CN112738727A publication Critical patent/CN112738727A/en
Application granted granted Critical
Publication of CN112738727B publication Critical patent/CN112738727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/20Services signaling; Auxiliary data signalling, i.e. transmitting data via a non-traffic channel
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses an activity track analysis method and system based on communication records. Calculating the spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and obtaining a current base station and a current communication record corresponding to the current base station by comparing the spherical distance with respective radiation radii of the two base stations; calculating the spherical distance between the current base station and a base station adjacent to the current base station, and obtaining a new current base station by comparing the spherical distance with the radiation radii of the current base station and the adjacent base station; and calculating the spherical distance between the new current base station and the adjacent base station of the new current base station, and circularly executing the step S4 to traverse all the base stations of the remaining communication records to be processed to obtain an activity trace map corresponding to the current base station of the communication records to be processed. The technical problems that the accuracy caused by determining the moving track according to the change of each longitude and latitude position is not high, or the moving track cannot be accurately reflected according to the mechanical dotting of the position of the base station are solved.

Description

Activity track analysis method and system based on communication record
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to an activity track analysis method and system based on communication records.
Background
As is well known, mobile phones have become an indispensable part of people's lives, and people can contact each other, send messages, read articles, play games, surf the internet, and the like through the mobile phones. Each communication with the outside generates a communication record, and the communication records contain rich contents, including interests, hobbies, character quality, activity tracks and the like, wherein the activity tracks are one of very important hidden data, which is particularly important for activity track extraction, especially in the field of data analysis and judgment.
Currently, some base stations can be uniquely determined simply by a Mobile Country Code (MCC), a Mobile Network Code (MNC), a Location Area Code (LAC), and a base station Code (CID), and synchronize the longitude and latitude of the base station. However, the method of determining the moving trajectory according to the latitude and longitude position change of the base station is not feasible, and the trajectory obtained by the above method has a significant error. The main reason is that with the development of 4G and 5G technologies, the previous era of 1.5KM or more base stations has passed, and now there may be two or more base stations on a building, and the above method is used for analysis, which not only can not obtain effective activity track results, but also can mislead the results, so how to develop more accurate and valuable activity tracks becomes a problem to be solved urgently.
Disclosure of Invention
The embodiment of the application aims to provide a method and a system for analyzing an activity track based on communication records, and the method and the system solve the technical problems that the activity track is not high in accuracy due to the fact that the longitude and latitude are synchronized by only adopting MCC + MNC + LAC + CID, and the activity track is determined according to the position change of each longitude and latitude, or cannot be accurately reflected according to the mechanical dotting of the position of a base station, and the like.
In a first aspect, an embodiment of the present application provides an activity track analysis method based on communication records, where the method includes:
s1: the method comprises the steps of obtaining communication records of the mobile terminal, and sequencing according to time to obtain to-be-processed communication records of the mobile terminal;
s2: synchronizing the longitude and latitude and the radiation radius of each base station in the communication record to be processed by utilizing the base station information table;
s3: calculating the spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and obtaining the current base station and the current communication record corresponding to the current base station by comparing the spherical distance with the respective radiation radius of the two base stations;
s4: calculating the spherical distance between the current base station and a base station adjacent to the current base station, and obtaining a new current base station by comparing the spherical distance with the radiation radii of the current base station and the adjacent base station, wherein the adjacent base station is a base station point corresponding to a communication record which is adjacent to the current communication record and is not traversed; and
s5: and calculating the spherical distance between the new current base station and the adjacent base station of the new current base station, and circularly executing the step S4 to traverse all the base stations of the remaining communication records to be processed to obtain an activity trace map corresponding to the current base station of the communication records to be processed.
In the method, firstly, communication records are extracted, sequencing is carried out according to time, then, after longitude and latitude information of the communication base stations is synchronized according to a base station information table, an overlapping part is calculated according to the radiation radius of each base station and the spherical distance, namely the same position, and the fact that the mobile terminal does not move is proved. The method perfectly solves the problem that misleading is easy to occur in the analysis of the dialog sheet activity track in the technical development, and can be easily expanded to the application fields of other activity track analyses, particularly fields related to 4G and 5G.
In some embodiments, comparing the spherical distance to the respective radial sizes of the two base stations comprises the sub-steps of
Calculating the spherical distance d1 between the base station n and the base station n-1 corresponding to the nth and the (n-1) th communication records in the communication records to be processed;
in response to the fact that the spherical distance d1 is smaller than or equal to the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n as the current base station;
continuously calculating the spherical distance d2 between the base station n +1 and the base station n corresponding to the n +1 th communication record and the nth communication record in the communication records to be processed;
in response to the fact that the spherical distance d2 is larger than the radiation radius of the base station n +1 and larger than the radiation radius of the base station n, deleting the nth communication record, and taking the base station n +1 as a new current base station;
wherein n represents a positive integer.
In the method, the radiation radiuses of two corresponding base stations in adjacent communication records are compared with the spherical distance of the two base stations, whether the mobile terminal moves is judged, a new current base station is selected, the radiation radiuses and the spherical distance of the current base station are continuously compared, base stations in all the communication records are traversed circularly, the current base stations in all the communication records are obtained, and the accurate moving track formed by the current base station of the mobile terminal is obtained.
In some embodiments, in response to the spherical distance d1 being greater than the radiation radius of the base station n and less than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the (n-1) th corresponding base station n-1 as the current base station;
continuously calculating the spherical distance d3 between the base station n-2 and the base station n-1 corresponding to the n-2 th communication record and the n-1 th communication record in the communication records to be processed;
in response to the fact that the spherical distance d3 is smaller than or equal to the radiation radius of the base station n-2 and larger than the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n-2 as a new current base station;
wherein n represents a positive integer.
In some embodiments, the spherical distance is calculated as follows:
d=R*arcos[cos(YA)*cos(YB)*cos(XA-XB)+sin(YA)*sin(YB)]
wherein d represents a spherical distance, the longitude and latitude of the base station a are represented as (XA, YA), the longitude and latitude of the base station B are represented as (XB, YB), R represents an earth radius, and R =6371 KM. And further accurately recording the motion track of the mobile terminal in the communication record by calculating the spherical distance between the two base stations.
In some embodiments, the step S1 includes the sub-steps of:
s11: sequencing the communication records of the mobile terminal according to the time sequence, and deleting the communication record data generated at the same moment;
s12: and combining the communication record data of the continuous same position area code information and base station coding information to obtain the communication record to be processed.
In the method, the communication records are sequenced according to time sequence, and the continuous same position area code information and base station coding information are deleted at the same time, so that the communication data records of the same base station can be deleted in advance, and the subsequent operation speed is improved.
In some embodiments, the communication record data includes mobile country code, mobile network number, location area code, and base station coded field information. There may be only one base station site by virtue of the mobile country code, mobile network number, location area code and base station coded field information.
In some embodiments, a unique corresponding base station is determined according to the mobile country code, the mobile network number, the location area code and the base station code in each communication record to be processed, and the latitude and longitude and the radiation radius of the base station corresponding to each communication record in the communication records to be processed are synchronized by combining the base station information table. The longitude and latitude and the radiation radius of the base stations are determined, so that the spherical distance between the two base stations can be conveniently calculated subsequently, and the operation of accurately judging the moving track is realized.
In a second aspect, an embodiment of the present application provides an activity track analysis system based on communication records, including:
the to-be-processed communication record module is configured to acquire the communication records of the mobile terminal, and sort the communication records according to time to acquire the to-be-processed communication records of the mobile terminal;
the base station radiation radius module is configured for synchronizing the longitude and latitude and the radiation radius of each base station in the communication record to be processed by utilizing the base station information table;
the current communication recording module is configured to calculate the spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and obtain the current base station and the current communication record corresponding to the current base station by comparing the spherical distance with the respective radiation radius of the two base stations;
the new current communication record module is configured to calculate the spherical distance between the current base station and a base station adjacent to the current base station, and obtain a new current base station by comparing the spherical distance with the radiation radii of the current base station and the adjacent base station, wherein the adjacent base station is a base station point corresponding to a communication record which is adjacent to the current communication record and is not traversed; and
and the active trace graph module is configured to calculate the spherical distance between the new current base station and the base station adjacent to the new current base station, and circularly execute the new current communication recording module to traverse all the base stations of the remaining communication records to be processed to obtain the active trace graph corresponding to the current base station of the communication records to be processed.
In some embodiments, the current communication record module and/or the new current communication record module comprises:
calculating the spherical distance d1 between the base station n and the base station n-1 corresponding to the nth and the (n-1) th communication records in the communication records to be processed;
in response to the fact that the spherical distance d1 is smaller than or equal to the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n as the current base station;
continuously calculating the spherical distance d2 between the base station n +1 and the base station n corresponding to the n +1 th communication record and the nth communication record in the communication records to be processed;
in response to the fact that the spherical distance d2 is larger than the radiation radius of the base station n +1 and larger than the radiation radius of the base station n, deleting the nth communication record, and taking the base station n +1 as a new current base station;
wherein n represents a positive integer.
In some embodiments, the current communication record module and/or the new current communication record module further comprises:
deleting the (n-1) th communication record and taking the (n-1) th corresponding base station n-1 as the current base station in response to the fact that the spherical distance d1 is larger than the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1;
continuously calculating the spherical distance d3 between the base station n-2 and the base station n-1 corresponding to the n-2 th communication record and the n-1 th communication record in the communication records to be processed;
in response to the fact that the spherical distance d3 is smaller than or equal to the radiation radius of the base station n-2 and larger than the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n-2 as a new current base station;
wherein n represents a positive integer.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; storage means for storing one or more programs which, when executed by one or more processors, cause the one or more processors to carry out a method as described in any one of the implementations of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method as described in any implementation manner of the first aspect.
According to the method and the system for analyzing the activity track based on the communication record, the longitude and the latitude of the position of a base station and the radiation radius are synchronously obtained according to MCC + MNC + LAC + CID in the call ticket communication record data; and then calculating the spherical distance between two continuous different base stations according to time sequence. And finally, comparing the calculated spherical distance with the radiation radius to obtain the moving track. The activity track is judged from a single position to a position which is similar to the single position in the range, so that the information mining of the activity track in the communication record data is effectively completed, and meanwhile, the method can also be applied to other scenes needing the activity track. The judgment of approximate equality is carried out through the self-created relationship between the radiation radius of the slave base station and the spherical distance between the two base station points, the moving track can be accurately judged, the correctness of the data is greatly improved, and the value of the data is greatly improved. By the scheme, the activity track can be correctly analyzed. The solution can also be easily extended to other application fields involving activity traces, in particular fields related to 4G and 5G.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram for one embodiment of a method for activity trace analysis based on communication records, according to the present application;
FIG. 3 is a flow chart of an activity trace analysis method based on communication records according to the present application;
FIG. 4 is a graph of position determination of spherical distance between two base stations for a method of activity trace analysis based on communication records according to the present application;
FIG. 5 is a block diagram illustrating one embodiment of a system for activity trace analysis based on communication records according to the present application;
FIG. 6 is a schematic diagram illustrating a calculation of a spherical distance between two neighboring base stations according to an embodiment of a system for analyzing an activity trace based on communication records according to the present application;
FIG. 7 is a graph of the effect of incorporating spherical distance screening in accordance with an embodiment of a communication record based activity trace analysis system according to the present application;
FIG. 8 is a schematic block diagram of a computer system suitable for use to implement the electronic device of an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which a method for activity trace analysis based on communication records according to an embodiment of the present application may be applied.
As shown in fig. 1, system architecture 100 may include terminal device 101, network 102, and server 103. Network 102 is the medium used to provide communication links between terminal devices 101 and server 103. Network 102 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The relevant person may use the terminal device 101 to interact with the server 103 via the network 102 to receive or send messages or the like. Various communication client applications, such as a drawing application, an instant messaging tool, a search application, a web browser application, and the like, may be installed on the terminal device 101.
The terminal device 101 may be various electronic devices including, but not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), etc., and a fixed terminal such as a digital TV, a desktop computer, etc.
The server 103 may be a server providing various services, for example, a server providing the terminal device 101 with a function of calculating a spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and obtaining a current base station and a current communication record corresponding to the current base station by comparing the spherical distance with respective radiation radii of the two base stations. The server can send the calculated spherical distance between the two base stations corresponding to the adjacent communication records in the communication records to be processed to the terminal device, and obtain the current base station and the current communication records corresponding to the current base station by comparing the spherical distance with the respective radiation radius of the two base stations.
It should be noted that, an activity trace analysis method based on a communication record provided in the embodiment of the present application is generally executed by the terminal device 101, and accordingly, an activity trace analysis system based on a communication record is generally disposed in the terminal device 101.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, servers, etc., as desired for an implementation.
With continued reference to FIG. 2, a flow diagram 200 of one embodiment of a communication record based activity trace analysis method according to the present application is shown. The method comprises the following steps:
step 201, obtaining the communication record of the mobile terminal, and sequencing according to time to obtain the to-be-processed communication record of the mobile terminal.
In this embodiment, the call ticket communication record data is sorted in time sequence, the continuously same rows of LAC and CID are combined, the fields such as duration and the like are combined, the unnecessary fields are discarded, and the continuously same LAC and CID do not appear in the combined data.
In a specific embodiment, step 201 includes sequencing the communication records of the mobile terminal in time sequence, and deleting the communication record data occurring at the same time; and combining the communication record data of the continuous same position area code information and base station coding information to obtain the to-be-processed communication record without the continuous position area code information and the base station coding information.
Step 202, synchronizing the longitude and latitude and the radiation radius of each base station in the communication record to be processed by using the base station information table.
In this embodiment, according to MCC + MNC + LAC + CID, the latitude and longitude and the radiation radius are synchronized by using the base station information table. The communication record data includes field information of a mobile country code, a mobile network number, a location area code, and a base station code. And according to the mobile country code, the mobile network number, the position area code and the base station code in each communication record to be processed, determining the only corresponding base station, and synchronizing the longitude and latitude and the radiation radius of the base station corresponding to each communication record in the communication records to be processed by combining a base station information table.
And 203, calculating the spherical distance between the two base stations corresponding to the adjacent communication records in the communication records to be processed, and comparing the spherical distance with the respective radiation radius of the two base stations to obtain the current base station and the current communication record corresponding to the current base station.
In this embodiment, the spherical distance between two base stations is calculated according to the longitude and latitude of the base station corresponding to the two pieces of communication data, and the specific calculation method is as follows:
earth radius R =6371 KM; the longitude and latitude (XA, YA) of a base station point A and the longitude and latitude (XB, YB) of a base station point B; ③ two-point spherical distance d1= R × arcos [ cos (YA) ] cos (YB) ] cos (XA-XB) + sin (YA) sin (YB) ].
And 204, calculating the spherical distance between the current base station and a base station adjacent to the current base station, and comparing the spherical distance with the radiation radii of the current base station and the adjacent base station to obtain a new current base station, wherein the adjacent base station is a base station point corresponding to the communication record which is adjacent to the current communication record and is not traversed.
In this embodiment, the radiation radius of the base station a is r1, the radiation radius of the base station B is r2, and the spherical distance between the base station a and the base station B is d1, wherein if d1< r1& & d1< r2 is that the motion trajectory is not changed, the next piece of data is discarded, and the step 204 is continuously executed; if d1< r1& & d1> r2 is that the activity track is not changed, discarding the next piece of data, and continuing to step 204; if d1> r1& & d1< r2, in order to ensure the continuity and integrity of the data, this case is regarded as an active track change, the piece of data is saved (but the piece of data is marked as a possible occurrence position), and the step 204 is continuously executed by taking the piece of data as a starting point; if d1> r1& & d1> r2, that is, there is a change in the active track, this piece of data is saved, and the execution of step 204 is continued with this piece of data as a starting point.
Step 205, calculating the spherical distance between the new current base station and the base station adjacent to the new current base station, and executing step 204 in a circulating manner to traverse all the base stations of the remaining communication records to be processed, so as to obtain an activity trace diagram corresponding to the current base station of the communication records to be processed.
In this embodiment, the new current base station is taken as a starting point, the base stations of the remaining communication records to be processed are continuously executed until base stations on all the communication records are traversed, all the current base stations are drawn according to a time sequence, and an accurate activity trace diagram is obtained.
In a specific embodiment, it is known that a wang person flies to a place B from a place A, the wang person needs to be implemented at the place B, a base station position is extracted according to the information of a wang person bill, the wang person is judged to depart from the airport and live in a hotel at present, but the place is provided with three hotels a, B and c, the situation is displayed according to the bill, the base station radiation radius at the calling position of the hotel for the first time can cover the hotel a, the base station radiation for the second time can radiate the a and B, and the spherical radii of the two base stations are smaller than the d1 and smaller than the two base station radiation radii, so that the possibility that the wang person live in the a is high, and the possibility of the B is high; the third time telephone base station spherical distance d2 from the first time base station spherical distance d3 from the second time base station spherical distance, wherein d2 is within the first and third time call base station radiation radius, d3 is greater than the second and third time call base station radiation radius, so wangzhi is definitely living in hotel a.
Referring to fig. 3, it shows a flowchart of an activity trace analysis method based on communication records according to the present application, and specifically includes the following sub-steps:
step 301, loading communication record data, sequencing according to time sequence, and synchronizing longitude and latitude and radiation radiuses r1 and r 2. And loading the communication record data, sequencing the communication record data according to time sequence, and synchronizing the longitude and latitude and the radiation radius of the base station in each piece of communication record data by combining the base station information table.
Step 302, read row. The execution principal traverses each line of data of the loaded communication record data in turn.
Step 303, determine if it is empty. The execution main body judges whether each line of data of the loaded communication record data is empty, if not, the step 304 is executed after the spherical distance d of the longitude and latitude of the two adjacent data is calculated, and if the line of data is empty, the operation is finished.
Step 304, (d > r1& & d > r 2) Or (d > r1& & d < r 2). And judging that the mobile terminal does not move according to the fact that the radiation radius of each base station and the spherical distance are calculated to have an overlapping part, namely the same position. When the d > r1& & d > r2 or d > r1& & d < r2, the spherical distance is greater than the radiation radius of the base station, it is proved that the mobile terminal is moving, and the current base station is saved.
Step 305, save the line data.
In some specific embodiments, the spherical distance d between the longitude and latitude of two adjacent data is calculated in step 303, as shown in fig. 4, fig. 4 shows a position determination diagram of the spherical distance between two base stations according to an activity track analysis method based on communication records of the present application. As shown in fig. 4, a base station a and a base station B are two corresponding base stations in two adjacent records in the communication record data, the radiation radius of the base station a is R1, the radiation radius of the base station B is R2, and the earth radius R =6371KM, and the base station information table obtains the longitude and latitude (XA, YA) of the base station a and the longitude and latitude (XB, YB) of the base station B, so that the specific calculation formula of the two-point spherical distance d1 between the base station a and the base station B is as follows: d1= R × arccos [ cos (ya) × cos (yb) × cos (XA-XB) + sin (ya) × sin (yb) ].
With continuing reference to FIG. 5, which illustrates a block diagram of one embodiment of a communication record based activity trace analysis system according to the present application, as shown in FIG. 5, an activity trace analysis system 500 includes the following elements.
The to-be-processed communication record module 501 is configured to obtain the communication records of the mobile terminal, sort the communication records according to time, and obtain the to-be-processed communication records of the mobile terminal.
The base station radiation radius module 502 is configured to synchronize the longitude and latitude and the radiation radius of each base station in the to-be-processed communication record by using the base station information table.
The current communication record module 503 is configured to calculate a spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and obtain the current base station and a current communication record corresponding to the current base station by comparing the spherical distance with respective radiation radii of the two base stations.
A new current communication record module 504 configured to calculate a spherical distance between the current base station and a neighboring base station of the current base station, and obtain a new current base station by comparing the spherical distance with the radiation radii of the current base station and the neighboring base station, where the neighboring base station is a base station point corresponding to a communication record which is adjacent to the current communication record and has not traversed.
And an active trace graph module 505 configured to calculate a spherical distance between the new current base station and a base station adjacent to the new current base station, and execute the new current communication record module in a circulating manner to traverse all the remaining base stations with the to-be-processed communication records to obtain an active trace graph corresponding to the current base station with the to-be-processed communication records. And the to-be-processed communication record module is configured to acquire the communication records of the mobile terminal, sort the communication records according to time and acquire the to-be-processed communication records of the mobile terminal.
In some specific embodiments, the current communication recording module 503 and/or the new current communication recording module 504 includes:
calculating the spherical distance d1 between the base station n and the base station n-1 corresponding to the nth and the (n-1) th communication records in the communication records to be processed;
in response to the fact that the spherical distance d1 is smaller than or equal to the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n as the current base station;
continuously calculating the spherical distance d2 between the base station n +1 and the base station n corresponding to the n +1 th communication record and the nth communication record in the communication records to be processed;
in response to the fact that the spherical distance d2 is larger than the radiation radius of the base station n +1 and larger than the radiation radius of the base station n, deleting the nth communication record, and taking the base station n +1 as a new current base station;
wherein n represents a positive integer.
In some specific embodiments, the current communication record module 503 and/or the new current communication record module 504 further includes:
deleting the (n-1) th communication record and taking the (n-1) th corresponding base station n-1 as the current base station in response to the fact that the spherical distance d1 is larger than the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1;
continuously calculating the spherical distance d3 between the base station n-2 and the base station n-1 corresponding to the n-2 th communication record and the n-1 th communication record in the communication records to be processed;
in response to the fact that the spherical distance d3 is smaller than or equal to the radiation radius of the base station n-2 and larger than the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n-2 as a new current base station;
wherein n represents a positive integer.
In some specific embodiments, referring to fig. 6 and fig. 7, fig. 6 is a schematic diagram illustrating a schematic diagram of calculating a spherical distance between two adjacent base stations according to an embodiment of a system for analyzing an activity track based on a communication record of the present application, as shown in fig. 6, obtained by using the above-mentioned system for analyzing an activity track based on a communication record, and using a comparison between a radiation radius of two base stations and the spherical distance, specifically: the base station A radiates with the radius rA > d1, the base station B is abandoned, and the base station A is used as the current base station point to continue calculation and comparison; rA > d7, abandoning the base station C, and continuously calculating and comparing the base station A as the current base station point; d8> rA & & D8> rD reserved base station D, and the base station D is used as the current base station point to continue calculation and comparison; d4< rD, discarding the base station E, and continuously taking the base station D as the current base station point to continuously calculate and compare; d9, rD & & d9> rF, reserving the base station F, and taking the base station F as the current base station point again to continue calculation and comparison; d6< rF, abandon base station G, use base station F as the final target point of the movement trajectory, and finally obtain the effect diagram combining spherical distance screening of an embodiment of the movement trajectory analysis system based on communication records as shown in fig. 7, which can very intuitively and accurately reflect movement trajectories a to D to F. The activity track analysis system based on the communication records has the advantages of high analysis speed and high accuracy, can accurately dig out activity track information, and can further analyze the activity range and habits of users for the use of related personnel.
According to the activity track analysis system based on the communication records, the activity track can be analyzed through the ticket communication records on the first aspect, the activity position and range of a mobile phone number user can be found easily, and then the living range and habit of the user of the mobile phone number can be judged, so that the intention of the mobile phone number user can be known, and valuable information can be provided for evidence obtaining, studying and judging and follow-up action on the user. In the second aspect, the method creates the steps that the activity track is judged from a single position to an approximate single position in the range; the judgment of the relationship between the radiation radius of the base station and the spherical distance between two base stations is approximately equal. The method ensures the accuracy of the extracted data and finds greater value from the limited data. And in the third aspect, the problem of extracting the wrong activity track from the call bill along with the technical development is solved, and more accurate, more and more valuable information is extracted.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing the electronic device of an embodiment of the present application. The electronic device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU) 801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. Various programs and data necessary for the operation of the system 800 are stored in the RAM 803. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: including an input portion 806, an output portion 807, a storage portion 808, a communication portion 809, a drive 810, a removable medium 811. The drive 810 can be connected to the I/O interface 805 as needed, and a removable medium 811 is mounted on the drive 810 as needed, so that a computer program read out therefrom is mounted into the storage section 808 as needed.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. Computer program code for carrying out operations of the present application may be written in one or more programming languages, or a combination thereof. The program code may execute entirely on the trainer computer, partly on the trainer computer, as a stand-alone software package, partly on the trainer computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the trainer computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present application may be implemented by software or hardware. The modules described may also be provided in a processor, which may be described as: a processor comprises a to-be-processed communication recording module, a base station radiation radius module, a current communication recording module, a new current communication recording module and an active track map module. The names of these modules do not limit the unit itself in some cases, for example, the module for recording the to-be-processed communication may also be described as "acquiring the communication record of the mobile terminal, sorting the communication record according to time, and acquiring the to-be-processed communication record of the mobile terminal".
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements in which any combination of the features described above or their equivalents does not depart from the spirit of the invention disclosed above. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (8)

1. A method for analyzing an activity track based on a communication record, the method comprising:
s1: the method comprises the steps of obtaining communication records of the mobile terminal, and sequencing according to time to obtain to-be-processed communication records of the mobile terminal;
s2: synchronizing the longitude and latitude and the radiation radius of each base station in the communication record to be processed by utilizing a base station information table;
s3: calculating the spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and comparing the spherical distance with the respective radiation radius of the two base stations to obtain a current base station and a current communication record corresponding to the current base station;
s4: calculating the spherical distance between the current base station and a base station adjacent to the current base station, and obtaining a new current base station by comparing the spherical distance with the radiation radii of the current base station and the adjacent base station, wherein the adjacent base station is a base station point corresponding to a communication record which is adjacent to the current communication record and is not traversed; and
s5: calculating the spherical distance between the new current base station and a base station adjacent to the new current base station, and executing the step S4 in a circulating manner to traverse all the base stations with the remaining communication records to be processed to obtain an activity trace diagram corresponding to the current base station with the communication records to be processed;
wherein comparing the spherical distance with respective radiation radius of the two base stations comprises the following substeps:
calculating the spherical distance d1 between the base station n and the base station n-1 corresponding to the nth and the (n-1) th communication records in the communication records to be processed;
in response to the fact that the spherical distance d1 is smaller than or equal to the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n as a current base station;
continuously calculating the spherical distance d2 between the base station n +1 and the base station n corresponding to the n +1 th communication record and the nth communication record in the communication records to be processed;
in response to the fact that the spherical distance d2 is larger than the radiation radius of the base station n +1 and larger than the radiation radius of the base station n, deleting the nth communication record, and taking the base station n +1 as a new current base station;
further comprising:
in response to the fact that the spherical distance d1 is larger than the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the (n-1) th corresponding base station n-1 as the current base station;
continuously calculating the spherical distance d3 between the base station n-2 and the base station n-1 corresponding to the n-2 th communication record and the n-1 th communication record in the communication records to be processed;
in response to the fact that the spherical distance d3 is smaller than or equal to the radiation radius of the base station n-2 and larger than the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n-2 as a new current base station;
wherein n represents a positive integer.
2. The method of claim 1, wherein the spherical distance is calculated as follows:
d=R*arcos[cos(YA)*cos(YB)*cos(XA-XB)+sin(YA)*sin(YB)]
wherein d represents a spherical distance, the longitude and latitude of the base station a are represented as (XA, YA), the longitude and latitude of the base station B are represented as (XB, YB), R represents an earth radius, and R =6371 KM.
3. The method according to claim 1, wherein the step S1 includes the sub-steps of:
s11: sequencing the communication records of the mobile terminal according to the time sequence, and deleting the communication record data occurring at the same moment;
s12: and combining the communication record data of the continuous same position area code information and base station coding information to obtain the to-be-processed communication record.
4. The method of claim 3, wherein the communication record data comprises mobile country code, mobile network number, the location area code, and base station coded field information.
5. The method according to claim 4, wherein a unique corresponding base station is determined according to the mobile country code, the mobile network number, the location area code and the base station code in each of the communication records to be processed, and the latitude and longitude and the radiation radius of the base station corresponding to each of the communication records to be processed are synchronized in combination with the base station information table.
6. An activity track analysis system based on communication records, the system comprising:
the system comprises a to-be-processed communication record module, a to-be-processed communication record module and a processing module, wherein the to-be-processed communication record module is configured to acquire communication records of the mobile terminal and sort the communication records according to time to acquire the to-be-processed communication records of the mobile terminal;
the base station radiation radius module is configured to synchronize the longitude and latitude and the radiation radius of each base station in the communication record to be processed by utilizing a base station information table;
the current communication record module is configured to calculate a spherical distance between two base stations corresponding to adjacent communication records in the communication records to be processed, and obtain a current base station and a current communication record corresponding to the current base station by comparing the spherical distance with respective radiation radii of the two base stations;
a new current communication record module configured to calculate a spherical distance between the current base station and a base station adjacent to the current base station, and obtain a new current base station by comparing the spherical distance with radiation radii of the current base station and the adjacent base station, where the adjacent base station is a base station point corresponding to a communication record adjacent to the current communication record and not traversed; and
the active trace map module is configured to calculate a spherical distance between the new current base station and a base station adjacent to the new current base station, and circularly execute the new current communication record module to traverse all the base stations of the remaining communication records to be processed, so as to obtain an active trace map corresponding to the current base station of the communication records to be processed;
wherein the current communication recording module and/or the new current communication recording module comprises:
calculating the spherical distance d1 between the base station n and the base station n-1 corresponding to the nth and the (n-1) th communication records in the communication records to be processed;
in response to the fact that the spherical distance d1 is smaller than or equal to the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n as a current base station;
continuously calculating the spherical distance d2 between the base station n +1 and the base station n corresponding to the (n + 1) th communication record and the nth communication record in the communication records to be processed;
in response to the fact that the spherical distance d2 is larger than the radiation radius of the base station n +1 and larger than the radiation radius of the base station n, deleting the nth communication record, and taking the base station n +1 as a new current base station;
the current communication recording module and/or the new current communication recording module further comprises:
in response to the fact that the spherical distance d1 is larger than the radiation radius of the base station n and smaller than or equal to the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the (n-1) th corresponding base station n-1 as the current base station;
continuously calculating the spherical distance d3 between the base station n-2 and the base station n-1 corresponding to the n-2 th communication record and the n-1 th communication record in the communication records to be processed;
in response to the fact that the spherical distance d3 is smaller than or equal to the radiation radius of the base station n-2 and larger than the radiation radius of the base station n-1, deleting the (n-1) th communication record, and taking the base station n-2 as a new current base station;
wherein n represents a positive integer.
7. An electronic device, comprising:
one or more processors;
a storage system for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN202011562964.7A 2020-12-25 2020-12-25 Activity track analysis method and system based on communication record Active CN112738727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011562964.7A CN112738727B (en) 2020-12-25 2020-12-25 Activity track analysis method and system based on communication record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011562964.7A CN112738727B (en) 2020-12-25 2020-12-25 Activity track analysis method and system based on communication record

Publications (2)

Publication Number Publication Date
CN112738727A CN112738727A (en) 2021-04-30
CN112738727B true CN112738727B (en) 2022-07-08

Family

ID=75616188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011562964.7A Active CN112738727B (en) 2020-12-25 2020-12-25 Activity track analysis method and system based on communication record

Country Status (1)

Country Link
CN (1) CN112738727B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6026890B2 (en) * 2011-10-31 2016-11-16 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America POSITION ESTIMATION DEVICE, POSITION ESTIMATION METHOD, PROGRAM, AND INTEGRATED CIRCUIT
CN103167511B (en) * 2011-12-15 2016-06-01 中国电信股份有限公司 The acquisition processing method of base stations in wireless communication networks station spacing and device
CN108471595A (en) * 2017-02-23 2018-08-31 中国移动通信集团四川有限公司 Checking base station position method and apparatus
US20180335501A1 (en) * 2017-05-19 2018-11-22 Nokia Technologies Oy Method and system for indoor localization of a mobile device
CN109561480B (en) * 2018-12-26 2021-03-19 中国联合网络通信集团有限公司 Base station position deviation rectifying method and system
CN109362100B (en) * 2018-12-26 2021-08-03 中国联合网络通信集团有限公司 Base station evaluation method and system based on communication signaling
US10402455B1 (en) * 2019-04-07 2019-09-03 Viraj Phanse Location and content based search for a mobile device
CN111954160A (en) * 2020-08-20 2020-11-17 南京邮电大学 Method for converting two-dimensional mobile phone signaling data into three-dimensional space trajectory data

Also Published As

Publication number Publication date
CN112738727A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US9313233B2 (en) Systems and methods for detecting associated devices
EP3471374B1 (en) Method and device for identifying type of geographic location at where user is located
US8798641B2 (en) Method and apparatus for location prediction
US20100050185A1 (en) Context Conflict Resolution and Automatic Context Source Maintenance
US8830909B1 (en) Methods and systems to determine user relationships, events and spaces using wireless fingerprints
CN110619076A (en) Search term recommendation method and device, computer and storage medium
CN104994125B (en) Method for sending information, information display method and device
CN114422267B (en) Flow detection method, device, equipment and medium
US20140149070A1 (en) Method and system for analyzing movement trajectories
Kim et al. Employing user feedback for semantic location services
CN112132661A (en) Information pushing method and device based on taxi taking preference of user
CN110619027B (en) House source information recommendation method and device, terminal equipment and medium
CN111475746B (en) Point-of-interest mining method, device, computer equipment and storage medium
CN107689991B (en) Information pushing method and device and server
CN113704378A (en) Method, device, equipment and storage medium for determining accompanying information
Burkhard et al. Extracting regular mobility patterns from sparse CDR data without a priori assumptions
CN114385772A (en) Position information generation method, device, equipment and computer readable medium
CN112738727B (en) Activity track analysis method and system based on communication record
CN108241678B (en) Method and device for mining point of interest data
CN110672086B (en) Scene recognition method, device, equipment and computer readable medium
US20140004875A1 (en) Ascertaining presence regions for mobile telephony
CN108170795B (en) Information pushing method, device and equipment
Nurmi Identifying meaningful places
CN110619087B (en) Method and apparatus for processing information
CN110519686B (en) Method, device and equipment for recognizing preset place and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant