Terminal scene judging method and deviceTechnical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for determining a terminal scene.
Background
With the rapid development of the mobile internet and the popularization of the 4G technology, the number of users accessing the internet through the mobile phone is increased rapidly, and the very fast mobile internet experience becomes a key factor for measuring the perception of the users, so that an operator is urgently required to improve the traditional optimization means and improve the network quality according to the current network development form. The effective terminal scene identification method can provide a basis for subsequent network planning and optimization work, provide useful environment information for terminal application, and provide detailed user scene information for network quality evaluation.
The positioning of the mobile terminal is an important premise for judging the terminal scene, the existing terminal positioning mainly depends on a sensor or other special equipment, and the terminal of the method has to preset special positioning equipment, so that the cost is higher. In general, sensor standards set by terminals of different brands and different signals are not uniform, so that the collected data standards are not unique, and accurate threshold values are difficult to set when a user scene is determined according to confidence, and finally the accuracy of scene determination is reduced.
Disclosure of Invention
The embodiment of the invention provides a terminal scene judging method and device, which are used for solving the problem that the data source standards are not uniform when a terminal is positioned and improving the accuracy of terminal scene judgment.
The terminal scene judging method provided by the embodiment of the invention comprises the following steps:
acquiring a communication signaling of a terminal within a set time;
determining a resident cell of the terminal in the set time according to the communication signaling in the set time;
if the number of the resident base stations to which the resident cells belong in the set time is not less than three, determining the gravity center of a polygon with the position of each resident base station as a vertex;
taking the number of communication signaling of the terminal in each resident base station as a weight, and adjusting the gravity center of the polygon to obtain the position information of the terminal in the set time;
and determining the scene of the terminal at least according to the position information of the terminal.
Optionally, after determining the cell in which the terminal resides within the set time, the method further includes:
if the number of the resident base stations to which the resident cells belong in the set time is two, determining a midpoint between the positions of the two resident base stations;
and adjusting the position of the midpoint by taking the number of the communication signaling of the terminal in the two resident base stations as a weight value to obtain the position information of the terminal in the set time.
Optionally, after determining the cell in which the terminal resides within the set time, the method further includes:
and if the number of the resident base stations to which the resident cells belong in the set time is one, determining the position information of the terminal in the set time according to the positions of the resident base stations.
Optionally, the determining the scene of the terminal according to at least the location information of the terminal within the set time includes:
taking the set time as a period, if the distance between the position of the terminal in the nth period and the position of the terminal in the reference period is determined not to be larger than a distance threshold, classifying the position information of the terminal in the nth period and the position information of the terminal in the first period into the same group, wherein n is an integer larger than or equal to 2, and the reference period is the first period in each group;
determining whether the maximum time difference positioned in the same group is greater than a time threshold, if so, determining that the scene of the terminal is an indoor scene;
otherwise, the scene of the terminal is an outdoor scene.
Optionally, after determining whether the maximum time difference located in the same packet is greater than the time threshold, the method further includes:
determining a cell scene of a resident cell of the terminal in each period of the same group;
adding the communication signaling quantities of all resident cells in the same cell scene to obtain the communication signaling quantity of the cell scene;
and determining the cell scene with the maximum communication signaling quantity exceeding the quantity threshold value in all the cell scenes as the scene of the terminal.
Optionally, the communication signaling includes S1-MME interface signaling and S1-U interface signaling;
the determining the resident cell of the terminal in the set time according to the communication signaling in the set time includes:
determining the cell information of the S1-U interface signaling according to the cell information of the S1-MME interface signaling;
and determining the resident cell of the terminal according to the cell information of the S1-U interface signaling.
A terminal scene determination device, comprising:
the data acquisition module is used for acquiring a communication signaling of the terminal within a set time;
a cell determining module, configured to determine a cell where the terminal resides in the set time according to the communication signaling in the set time;
a position determining module, configured to determine a center of gravity of a polygon having a position of each residing base station as a vertex if the number of residing base stations to which the residing cell belongs within the set time is not less than three;
the position correction module is used for adjusting the gravity center of the polygon by taking the number of the communication signaling of the terminal in each resident base station as a weight value to obtain the position information of the terminal in the set time;
and the scene judging module is used for determining the scene of the terminal at least according to the position information of the terminal.
Optionally, the position determining module is further configured to determine a midpoint between the positions of the two camping base stations if the number of the camping base stations to which the camping cell belongs within the set time is two;
the location correction module is further configured to adjust the location of the midpoint by using the number of the communication signaling of the terminal in the two resident base stations as a weight, so as to obtain location information of the terminal within the set time.
Optionally, the location determining module is further configured to determine, if the number of the camping base stations to which the camping cell belongs within the set time is one, location information of the terminal within the set time according to the location of the camping base station.
Optionally, the scene determining module is configured to:
taking the set time as a period, if the distance between the position of the terminal in the nth period and the position of the terminal in the reference period is determined not to be larger than a distance threshold, classifying the position information of the terminal in the nth period and the position information of the terminal in the first period into the same group, wherein n is an integer larger than or equal to 2, and the reference period is the first period in each group;
determining whether the maximum time difference positioned in the same group is greater than a time threshold, if so, determining that the scene of the terminal is an indoor scene;
otherwise, the scene of the terminal is an outdoor scene.
Optionally, the scene determination module is further configured to:
determining a cell scene of a resident cell of the terminal in each period of the same group;
adding the communication signaling quantities of all resident cells in the same cell scene to obtain the communication signaling quantity of the cell scene;
and determining the cell scene with the maximum communication signaling quantity exceeding the quantity threshold value in all the cell scenes as the scene of the terminal.
Optionally, the communication signaling includes S1-MME interface signaling and S1-U interface signaling;
the cell determination module is configured to:
determining the cell information of the S1-U interface signaling according to the cell information of the S1-MME interface signaling;
and determining the resident cell of the terminal according to the cell information of the S1-U interface signaling.
In the embodiment of the invention, the communication signaling of the terminal in the set time is obtained, and the communication signaling contains the information of the terminal resident cell, so the resident cell of the terminal in the set time can be determined according to the communication signaling. Then, the geographic position of the terminal is determined according to the position of the base station of the resident cell. Specifically, if the number of the base stations of the resident cell of the terminal in the set time is not less than three, the base stations of the resident cells are used as vertexes to form a polygon, and the gravity center of the polygon is determined. Because the terminal resides in different residence time in each residence cell and the amount of generated signaling is different, it is not accurate enough to determine the position of the terminal only according to the center of gravity position of the polygon. The embodiment of the invention takes the quantity of the communication signaling of the terminal of each resident base station as the weight, adjusts the center of gravity of the polygon, and obtains the position information of the terminal in the set time, namely, the communication signaling of the terminal in a certain resident cell is more, the terminal is considered to stay in the resident cell for a longer time, and the position of the terminal is more biased to the resident cell. And finally, determining the scene of the terminal according to the position information of the terminal. In the embodiment of the invention, the communication signaling data of the terminal is used as the basis for terminal positioning in the process of judging the terminal scene, and the accuracy of terminal scene judgment is improved due to the unification of the data source standards. And the terminal is positioned at the geographic position by adopting a polygonal positioning method, the judgment result of the terminal position is closer to the actual position in the terminal, and the accuracy is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a terminal scenario determination method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a moving track of a terminal and a base station through which the terminal passes according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for determining a terminal scenario according to an embodiment of the present invention;
FIG. 4 is a flowchart of a terminal scene refining method in which a terminal is an indoor scene in the embodiment of the present invention;
FIG. 5 is a flowchart of a terminal scene refining method in which the terminal is an outdoor scene in the embodiment of the present invention;
fig. 6 is a schematic diagram of a terminal scene determination device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In embodiments of the present invention, the term "terminal" refers to a device (device) that provides voice and/or data connectivity to a user, including a wireless terminal or a wired terminal. The wireless terminal may be a handheld device having wireless connection capabilities, or other processing device connected to a wireless modem, a mobile terminal communicating with one or more core networks via a radio access network. For example, wireless terminals may be mobile telephones (or "cellular" telephones) and computers with mobile terminals. As another example, a wireless terminal may be a portable, pocket, hand-held, computer-included, or vehicle-mounted mobile device. As another example, a wireless terminal may be a mobile station (mobile station), an access point (access point), or a part of a User Equipment (UE).
In the embodiments of the present invention, the term "base station" includes, but is not limited to, a node, a station controller, an Access Point (AP), or any other type of interface device capable of operating in a wireless environment.
In the prior art, generally, the position of a terminal is positioned by means of data collected by a sensor of the terminal, and then a scene where the terminal is located is determined.
In order to solve the above problem, an embodiment of the present invention provides a method for determining a terminal scenario, where a flow of the method is shown in fig. 1, and the method may include the following steps:
s101, acquiring a communication signaling of the terminal within a set time.
The communication signaling comprises S1-MME interface signaling and S1-U interface signaling of the terminal. The S1-MME interface is an interface between an eNB (Evolved Node B) and an MME (Mobility Management Entity), and is used to transmit session Management and Mobility Management information, that is, control plane information, and mainly completes functions of radio access bearer control of the S1 interface, operation and maintenance dedicated to the interface, and the like. The S1-U interface is an interface between the eNB and the S-GW (Serving GateWay), establishes a tunnel between the eNB and the S-GW, transmits user service data, and carries a UE internet data packet.
And S102, determining the resident cell of the terminal in the set time according to the communication signaling in the set time.
In the embodiment of the invention, the S1-MME interface signaling and the S1-U interface signaling are collected, and because the cell information in the S1-U interface signaling is incomplete and only has the information of the initial cell and the final cell when the user service is established and disconnected, the cell information in the processes of cell switching and the like needs to be obtained from the S1-MME interface signaling. The step S102 includes:
determining the cell information of the S1-U interface signaling according to the cell information of the S1-MME interface signaling;
and determining the resident cell of the terminal according to the cell information of the S1-U interface signaling.
Specifically, after an S1-MME call ticket and an S1-U call ticket are collected, an S1-MME interface signaling and an S1-U interface signaling of the same terminal are identified through an IMSI, the S1-MME interface signaling and the S1-U interface signaling are associated according to the starting time and the ending time of user service, the S1-U interface signaling is identified by the ECI (E-UTRAN Cell Identifier ) of the S1-MME interface signaling in the same time period, namely, each communication signaling in the S1-U interface signaling is filled with an ECI field according to the corresponding S1-MME interface signaling, and therefore the S1-U interface signaling can completely reflect the Cell occupation condition of the terminal in a network within the set time.
And S103, if the number of the resident base stations to which the resident cells belong in the set time is not less than three, determining the gravity center of a polygon with the position of each resident base station as a vertex.
And S104, taking the number of the communication signaling of the terminal in each resident base station as a weight, and adjusting the gravity center of the polygon to obtain the position information of the terminal in the set time.
And S105, determining the scene of the terminal at least according to the position information of the terminal.
In the embodiment of the invention, the communication signaling of the terminal in the set time is obtained, and the communication signaling contains the information of the terminal resident cell, so the resident cell of the terminal in the set time can be determined according to the communication signaling. Then, the geographic position of the terminal is determined according to the position of the base station of the resident cell. Specifically, if the number of the base stations of the resident cell of the terminal in the set time is not less than three, the base stations of the resident cells are used as vertexes to form a polygon, and the gravity center of the polygon is determined. Because the terminal resides in different residence time in each residence cell and the amount of generated signaling is different, it is not accurate enough to determine the position of the terminal only according to the center of gravity position of the polygon. The embodiment of the invention takes the quantity of the communication signaling of the terminal of each resident base station as the weight, adjusts the center of gravity of the polygon, and obtains the position information of the terminal in the set time, namely, the communication signaling of the terminal in a certain resident cell is more, the terminal is considered to stay in the resident cell for a longer time, and the position of the terminal is more biased to the resident cell. And finally, determining the scene of the terminal according to the position information of the terminal. In the embodiment of the invention, the communication signaling data of the terminal is used as the basis for terminal positioning in the process of judging the terminal scene, and the accuracy of terminal scene judgment is improved due to the unification of the data source standards. And the terminal is positioned at the geographic position by adopting a polygonal positioning method, the judgment result of the terminal position is closer to the actual position in the terminal, and the accuracy is further improved.
The polygon positioning method in the embodiment of the invention mainly comprises the steps of forming the resident cells of the terminal into polygons, wherein each resident cell is a vertex of each polygon, and then determining the position of the terminal according to the gravity center position of each polygon. Since the cell is a regional concept, the base station position of each resident cell can be selected as the vertex of the polygon. The geographical position of the base station in each resident cell can be obtained according to the ECI identifier in the S1-U interface signaling, and is represented by longitude and latitude and is marked as (X, Y).
In the embodiment of the invention, the S1-MME interface signaling and the S1-U interface signaling within the set time are obtained, and the ECI in the S1-MME interface signaling is utilized to perform cell information back filling on the S1-U interface signaling, so that the S1-U interface signaling can completely reflect the cell occupation condition of a user in a network. According to the cell information in the S1-U interface signaling, the corresponding base station position of the cell can be found, and the geographical position of the base station in the resident cell accessed by the terminal within the set time is obtained and is counted as (x)1,y1)、(x2,y2)……(xN,yN). If the user terminal is in a static state within the set time, the position of the terminal is a fixed point; if the user terminal is in a motion state within the set time, in order to facilitate processing, in the embodiment of the present invention, the location of the terminal within the set time is simplified into one point, and the location coordinate of the terminal within the set time is determined according to the geographic location coordinate of the base station accessed by the terminal within the set time. The following situations can be classified according to the different number of base stations of the corresponding resident cell of the terminal.
In the first case:
and if the number of the resident base stations to which the resident cell belongs in the set time is one, determining the position information of the terminal in the set time according to the position of the base station of the resident cell. That is, within a set time (e.g. 2 minutes), a terminal is in a cell, may be stationary in the cell, or may move in the cell, and the terminal accesses the base station corresponding to the cell, and takes the location of the base station as the location of the terminal within the 2 minutes.
Specifically, if the motion trajectory of the terminal within the set time is located in two or more camping cells, and the camping cells share one base station, the position of the base station is still considered as the position of the terminal within the 2 minutes.
In the second case:
if the number of the camping base stations to which the camping cell belongs in the set time is two, step S102 further includes:
determining a midpoint between the two camped base station locations;
and adjusting the position of the midpoint by taking the number of the communication signaling of the terminal in the two resident base stations as a weight value to obtain the position information of the terminal in the set time.
Specifically, the base station location of the camping cell 1 is recorded as (x)
1,y
1) The base station location of the camping cell 2 is marked as (x)
2,y
2) The midpoint between the two base stations is
The location of the terminal can be determined from the midpoint location. If the terminal dwells in one of the two residential cells for a longer time, the terminal is considered to be located closer to the residential cell with the longer dwell time, and at this time, the number of communication signaling generated by the terminal in the residential cell with the longer dwell time is larger. Therefore, the position coordinates of the center point can be corrected by taking the signaling quantity of the S1-U interfaces of the terminal in the two resident cells as a weight value, so as to obtain the position coordinates of the terminal. Recording the number of S1-U interface signaling of the terminal in the resident cell 1 as T
1And the number of S1-U interface signaling generated by the terminal in the resident cell 2 is recorded as T
2Then the position of the terminal is:
simplifying the formula 2 to obtain the position coordinates of the terminal as follows:
specifically, if the terminal generates the same amount of S1-U interface signaling in two camping cells, the midpoint between the two base stations is taken as the position of the terminal, that is, the terminal position coordinate is the terminal position coordinate within the set time
In the third case:
if the number of the base stations residing in the residential cell of the terminal in the set time (such as 2 minutes) is three, each residential cell forms a triangle according to the longitude and latitude positions, and the three vertexes of the triangle are the positions of the three base stations residing in the cell and are marked as (x)1,y1)、(x2,y2) And (x)3,y3). The geographic position of the terminal is determined from the position of the center of gravity of the triangle, since the center of gravity is the intersection of the median lines of the three sides of the triangle, and this point must be located inside the triangle.
Theoretically, the outer center of the triangle is the center of the circle circumscribed by the triangle, and the distances from the outer center to each vertex of the triangle are equal, so that the position calculation of the static user terminal of the existing network is more consistent. However, if the ue is in motion, the three base stations that the ue passes through are most likely to be an obtuse triangle, as shown in fig. 2, the outer center of the triangle is outside the triangle, which is not suitable for the actual situation of the location of the ue, and therefore, the position of the center of gravity of the triangle is selected to determine the location of the ue.
In a rectangular plane coordinate system, the coordinates of the triangle's center of gravity are the arithmetic mean of the coordinates of the vertices, i.e., the coordinates of the triangle's center of gravity are
Similar to the principle in the second case, the longer the terminal dwells in one of the three camping cells, the more communication signaling the terminal generates in the camping cell, and the closer the terminal position is to the camping cell is consideredThe base station location of the cell is reserved. Therefore, the number of S1-U interface signaling occurring in the camping cell 1 by the terminal is recorded as T1The number of S1-U interface signaling occurring in camped cell 2 is denoted as T2The number of S1-U interface signaling occurring in the camped cell 3 is denoted as T3Number of communication signalings T1、T2、T3Substituting the position of the terminal into the formula 4, and correcting the position of the terminal to obtain the position coordinate of the terminal as follows:
in a fourth case:
if the number of the resident base stations to which the resident cells of the terminal belong in the set time (such as 2 minutes) is N, and N is greater than 3, each resident cell forms a polygon according to the longitude and latitude positions, each vertex of the polygon is the resident base station position of each resident cell, and the polygon is marked as (x)1,y1)、(x2,y2)……(xN,yN). Similar to the method in the third case, the geographical position of the terminal may be determined from the position of the center of gravity of the polygon.
In geometry, for a polygon with uniform quality, the polygon may be divided into a plurality of triangles, and the center of gravity of the polygon may be determined according to the centers of gravity of the plurality of triangles. Dividing the polygon into a plurality of triangles, and solving the gravity center and the area of each triangle; as a two-dimensional polygon, taking the area of each triangle as a weight, and multiplying the weight by the barycentric coordinate of each triangle respectively; and respectively dividing the weighted average value of the obtained coordinates by the total area of the polygon to obtain the barycentric coordinates of the polygon.
In embodiments of the present invention, specifically, a polygon having N vertices is split into N-2 triangles, where the N-2 triangles include all the edges of the polygon. The coordinates of the center of gravity of each triangle, denoted as (x), are obtained from the calculation method in the third casei,yi). At the same time, the area S of each triangle is calculatedi. The triangle area is calculated as follows:
three vertices A (x) of triangle ABCa,ya)、B(xb,yb)、C(xc,yc) Arranged in the counterclockwise direction, the area of the triangle ABC is as follows:
let SGeneral assemblyFor this total area of the polygon, the position coordinates (x, y) of the terminal are:
after the position of the terminal is determined, the scene of the terminal can be judged according to the motion state of the terminal. Step S105 includes:
taking the set time as a period, if the distance between the position of the terminal in the nth period and the position of the terminal in the reference period is determined not to be larger than a distance threshold, classifying the position information of the terminal in the nth period and the position information of the terminal in the first period into the same group, wherein n is an integer greater than or equal to 2, and the reference period is the first period in each group;
determining whether the maximum time difference positioned in the same group is greater than a time threshold, if so, determining that the scene of the terminal is an indoor scene;
otherwise, the scene of the terminal is an outdoor scene.
Specifically, the position coordinates of the terminal within the set time are determined according to steps S101 to S104, and the position coordinates of the terminal are determined every period with the set time as a period. And if the distance is less than or equal to a distance threshold value, such as 200 meters, then the distance between the position of the next period and the reference position is continuously judged. And when the distance from the position of the mth period to the reference position is larger than the distance threshold, taking the position of the period before the mth period as a group, and taking the position of the mth period as the reference point of the next group.
For example, if the position of the terminal is calculated every 2 minutes for two hours, 60 position points of the terminal are calculated. Taking the 1 st position point as a reference position of the first grouping, comparing the distance between the 2 nd position point and the 1 st position point to obtain that the distance is less than 200 m, putting the 2 nd position point into the first grouping, and continuously comparing the distance between the 3 rd position point and the 1 st position point. Until the distance between the 5 th position point and the 1 st position point is more than 200 meters, the 5 th position point is taken as the reference position of the second group, and then the distance between the 6 th position point and the 5 th position point is compared. The previous 1 st position point to 4 th position point are all the first grouping. And respectively enabling the distances from the 6 th position point to the 13 th position point to the 5 th position point to be less than 200 meters, enabling the distances from the 14 th position point to the 5 th position point to be more than 200 meters, regarding the 5 th position point to the 13 th position point as a second group, regarding the 14 th position point as a third group, and the like.
It is determined whether the scene of the packet is indoor or outdoor according to the time taken by each packet. Since the time for each location point in a packet is 2 minutes, it can be determined whether the time difference between the first location point and the last location point in the same packet, i.e., the maximum time difference in the packet, is greater than a time threshold. If the time threshold value is larger than the time threshold value, the group is an indoor scene; otherwise, the packet is an outdoor scene.
Further, a more detailed scene division may be made for a terminal that has been determined as an indoor scene or an outdoor scene. After determining whether the maximum time difference between the same packet is greater than the time threshold, the method further includes:
determining a cell scene of a resident cell of the terminal in each period of the same group;
adding the communication signaling quantities of all resident cells in the same cell scene to obtain the communication signaling quantity of the cell scene;
and determining the cell scene with the maximum communication signaling quantity exceeding the quantity threshold value in all the cell scenes as the scene of the terminal.
For a terminal in an indoor scene, through analyzing a communication signaling of the terminal, base station basic information corresponding to a cell can be found according to the cell basic information, so that whether the scene of a resident cell of the terminal occupies a room or a macro station is determined. And determining the quantity of the communication signaling occupying the indoor space and the quantity of the communication signaling occupying the macro station in the communication signaling of the terminal in each period of the same group. Calculating the ratio of the number of the communication signaling occupying the room to the total number of the communication signaling (namely p + q), and recording the ratio as p; and calculating the ratio of the number of the communication signaling occupying the macro station to the total number of the communication signaling, and recording the ratio as q. Comparing p and q with a scene threshold (for example, 80%), and if p is greater than 80%, determining that the terminal scene is an indoor stable scene occupying the room; if q is greater than 80%, the terminal scene is an indoor stable scene occupying the macro station; and if both p and q are not more than 80%, the terminal scene is an indoor stable scene occupying the indoor branch and the macro station.
For the terminal in the outdoor scene, the terminal in the outdoor scene may be further divided into a low-speed terminal, a medium-speed terminal, or a high-speed terminal according to the moving speed of the terminal. The distance moved by the terminal in each period can be determined through the previous calculation, and the displacement of the terminal in unit time can be obtained, namely the speed of the terminal.
After the scene of the terminal is divided into an indoor scene or an outdoor scene and the outdoor scene is divided according to the speed, the scene of the terminal can be further refined into 7 scenes, including: campus scenes, residential area scenes, business area scenes, scenic area scenes, subway scenes and high-speed rail scenes.
According to the cell basic information in the communication signaling of the terminal, the corresponding cell scene can be searched, and the cell scene to which the resident cell of the terminal belongs in n periods is determined. And calculating the communication signaling quantity of the terminal in the same cell scene, namely the sum of the communication signaling quantities of all resident cells in the cell scene. And taking the cell scene with the maximum communication signaling quantity and exceeding the quantity threshold value as the scene of the terminal. For example, the residence cells of a certain terminal in two hours are cell 1, cell 2, cell 3 and cell 4, wherein the cell scene of cell 1 is a campus scene, and the number of corresponding communication signaling is 5; the cell scene of the cell 2 is a commercial cell scene, and the number of corresponding communication signaling is 100; the cell scene of the cell 3 is a residential area scene, the number of communication signaling is 10, the cell scene of the cell 4 is a campus scene, and the number of communication signaling is 5. The cell scene is a campus scene, a business area scene and a residential area scene, the corresponding communication signaling amount is 10, 100 and 10, and the scene of the terminal is the business area scene because the communication signaling amount of the business area scene is the maximum and the proportion exceeds 80%.
Further, it may be determined that a single scene occupancy of the terminal is greater than a scene threshold, such as 80%, the terminal is determined to be in the scene. Specifically, the determination method is as follows:
(a) and campus scene: and for three indoor scenes and low-speed outdoor scenes, judging the cell scene of the terminal communication signaling, and if more than 80% of the communication signaling occurs in the campus, judging that the terminal scene is the campus scene.
(b) And residential area scene: and judging the cell scene of the terminal communication signaling for the three indoor scenes and the low-speed outdoor scene, and if more than 80% of the communication signaling occurs in the residential area, judging that the terminal scene is the residential area scene.
(c) Business district scene: and for the three indoor scenes, judging the cell scene of the terminal communication signaling, and if more than 80% of the communication signaling occurs in a commercial area, judging that the terminal scene is the commercial area scene.
(d) And scenic spot scene: and judging the cell scene of the terminal communication signaling for the three indoor scenes and the low-speed outdoor scene, and if more than 80% of the communication signaling occurs in the scenic spot, judging that the terminal scene is the scenic spot scene.
(e) And subway scene: and judging the cell scene of the terminal communication signaling for three indoor scenes and three outdoor scenes, and if more than 80% of the communication signaling occurs in the subway, judging that the terminal scene is the subway scene.
(f) And high-speed rail scene: and for a high-speed outdoor scene, judging a cell scene of a terminal communication signaling, and if more than 80% of the communication signaling occurs in a high-speed rail, judging that the terminal scene is a high-speed rail scene.
It should be noted that, because the position of the terminal can be moved, the scene determination of the terminal is related to time, that is, the terminal can be an indoor user in the first hour, an outdoor low-speed user in the second hour, and then an outdoor high-speed user, and if the scene of the terminal changes, the scene of the terminal needs to be determined separately in different time intervals.
In order to more clearly understand the present invention, the above-mentioned process is described in detail below by specific examples. The scenario described in this specific example is a scenario in which a mobile phone of a user is determined within 4 hours of the afternoon of a certain day, and the process is shown in fig. 3 and includes:
s201, acquiring communication signaling of the terminal within 4 hours.
S202, setting the period to be 2 minutes, and determining the resident cell of the terminal in every 2 minutes.
S203, judging the number of the resident base stations to which the resident cells of the terminal belong, and if the number of the resident base stations is 1, executing a step S204; if there are 2, go to step S205; if not less than 3, go to step S206.
And S204, the resident base station position is the position of the terminal.
S205, determining a midpoint between the positions of the two resident base stations, and correcting the midpoint according to the number of communication signaling of the terminals in the two resident base stations to obtain the position of the terminal.
S206, determining the center of gravity of the polygon with the positions of the plurality of resident base stations as vertexes, and correcting the position of the center of gravity according to the number of communication signals of the terminal in each resident base station to obtain the position of the terminal.
And S207, calculating according to the position of the terminal every 2 minutes, and grouping the positions of the users according to the distance threshold of 200 meters.
S208, judging whether the duration time of the terminal on one group is more than 20 minutes, if so, executing a step S209; otherwise, step S210 is performed.
And S209, the terminal scene is an indoor scene.
And S210, the terminal scene is an outdoor scene.
After the terminal scene is divided into an indoor scene or an outdoor scene, the indoor scene and the outdoor scene can be further refined respectively.
For an indoor scenario, as shown in fig. 4, the process includes the following steps:
s211, judging whether the communication signaling occupying the indoor division is greater than 80% or the communication signaling occupying the macro station is greater than 80%, and if the communication signaling occupying the indoor division is greater than 80%, executing step S212; if the communication signaling occupying the macro station is greater than 80%, executing step S213; if the ratio of the communication signaling occupying the room to the communication signaling occupying the macro station is not greater than 80%, step S214 is executed.
And S212, the terminal scene is an indoor stable scene occupying the room.
And S213, the terminal scene is an indoor stable scene occupying the macro station.
And S214, the terminal scene is an indoor stable scene occupying the indoor branch and the macro station.
For an outdoor scenario, as shown in fig. 5, the process includes the following steps:
s215, judging the moving speed v of the terminal, and if v is more than 0 and less than or equal to 20km/h, executing a step S216; if the v is less than or equal to 60km/h and less than 20km/h, executing the step S217; if v >60km/h, step S218 is executed.
And S216, the terminal scene is a low-speed scene.
And S217, the terminal scene is a medium-speed scene.
And S218, the terminal scene is a high-speed scene.
The terminal can be divided into 7 specific scenes according to the indoor scene or the outdoor scene where the terminal is located and the communication signaling number ratio corresponding to the cell scene of the terminal, which are described in detail above and are not described herein again.
Based on the same technical concept, an embodiment of the present invention further provides a terminal scene determination apparatus, as shown in fig. 6, including:
adata obtaining module 61, configured to obtain a communication signaling of the terminal within a set time;
acell determining module 62, configured to determine a cell where the terminal resides in the set time according to the communication signaling in the set time;
aposition determining module 63, configured to determine a center of gravity of a polygon having a position of each residing base station as a vertex if the number of the residing base stations to which the residing cell belongs within the set time is not less than three;
aposition correction module 64, configured to adjust the center of gravity of the polygon by using the number of communication signaling of the terminal in each resident base station as a weight, so as to obtain position information of the terminal within the set time;
and ascene determining module 65 for determining the scene of the terminal at least according to the position information of the terminal.
Optionally, theposition determining module 63 is further configured to determine a midpoint between the positions of the two camping base stations if the number of the camping base stations to which the camping cell belongs within the set time is two;
thelocation correcting module 64 is further configured to use the number of the communication signaling of the terminal in the two resident base stations as a weight, and adjust the location of the midpoint to obtain the location information of the terminal within the set time.
Optionally, theposition determining module 63 is further configured to determine, if the number of the camping base stations to which the camping cell belongs within the set time is one, the position information of the terminal within the set time according to the position of the camping base station.
Optionally, thescene determining module 65 is configured to:
taking the set time as a period, if the distance between the position of the terminal in the nth period and the position of the terminal in the reference period is determined not to be larger than a distance threshold, classifying the position information of the terminal in the nth period and the position information of the terminal in the first period into the same group, wherein n is an integer larger than or equal to 2, and the reference period is the first period in each group;
determining whether the maximum time difference positioned in the same group is greater than a time threshold, if so, determining that the scene of the terminal is an indoor scene;
otherwise, the scene of the terminal is an outdoor scene.
Optionally, thescene determining module 65 is further configured to:
determining a cell scene of a resident cell of the terminal in each period of the same group;
adding the communication signaling quantities of all resident cells in the same cell scene to obtain the communication signaling quantity of the cell scene;
and determining the cell scene with the maximum communication signaling quantity exceeding the quantity threshold value in all the cell scenes as the scene of the terminal.
Optionally, the communication signaling includes S1-MME interface signaling and S1-U interface signaling;
acell determination module 62 configured to:
determining the cell information of the S1-U interface signaling according to the cell information of the S1-MME interface signaling;
and determining the resident cell of the terminal according to the cell information of the S1-U interface signaling.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.