Disclosure of Invention
The invention mainly aims to provide a terminal motion state identification method, a terminal motion state identification device and a storage medium based on a communication network, aiming at improving the accuracy of terminal motion state identification and realizing accurate evaluation of a motion track and a residence state of a position positioning terminal user.
In order to achieve the above object, the present invention provides a method for identifying a motion state of a terminal based on a communication network, comprising the steps of:
acquiring sampling data of a terminal in a communication network, wherein the sampling data comprises a plurality of records of different sampling points, and the records comprise sampling point positions uploaded by the terminal when the terminal moves to corresponding sampling points and corresponding uploading time;
classifying the plurality of records according to the sampling point positions and the uploading time in the records to obtain first class data and second class data, wherein the first position variation range of the sampling points corresponding to the first class data is larger than the second position variation range of the sampling points corresponding to the second class data;
obtaining third-class data for the first-class data groups according to the recorded sampling point positions and the uploading time in the first-class data, wherein the position change range of the sampling point corresponding to each group in the third-class data is smaller than the first position change range;
and determining the motion state of the terminal according to the first grouping characteristic information of the third type of data and/or the second grouping characteristic information of the second type of data.
Optionally, the first type of data includes a plurality of first sub-record sequences, records in the first sub-record sequences are arranged according to a sequence of upload time, and the step of grouping the first type of data according to the sampling point position and the upload time of each record in the first type of data to obtain the third type of data includes:
grouping the first sub-recording sequences according to the sampling point positions and the uploading time of all records in each first sub-recording sequence to obtain a plurality of first sub-sequences and a plurality of second sub-sequences, wherein the third type of data comprises the plurality of first sub-sequences and the plurality of second sub-sequences;
defining the record arranged at the forefront in each first subsequence as a starting record and the record arranged at the last as an end record, wherein the distance between the sampling point position of the starting record in each first subsequence and the sampling point positions of other records in the corresponding first subsequence is smaller than or equal to a first preset distance, and the time interval between the uploading time of the starting record in each first subsequence and the uploading time of the corresponding end record is larger than a first preset time length.
Optionally, the step of classifying the plurality of records according to the sampling point positions and the uploading time in each record to obtain the first class data and the second class data includes:
sequencing the plurality of records according to the sequence of the uploading time in the plurality of records to obtain a record sequence;
determining a plurality of first sub-recording sequences meeting a first preset condition in the recording sequence as the first type of data, and determining a plurality of second sub-recording sequences not meeting the first preset condition in the recording sequence as the second type of data;
the first preset condition comprises a first sub-condition and a second sub-condition, the first sub-condition comprises that the time interval of the uploading time corresponding to any two adjacent records in the corresponding sub-record sequence is less than or equal to a second preset time length, and the distance between the corresponding sampling point positions is less than or equal to a second preset distance, the second sub-condition comprises that the number of records meeting the set condition in the corresponding sub-record sequence is greater than a first preset number, and the set condition is that the sampling point positions of the corresponding records are different from those of the adjacent records.
Optionally, the record includes base station information, the base station information is identification information of a communication base station to which the terminal accesses when the corresponding record is uploaded, the records in the second type of data are arranged according to a sequence of uploading time, and the step of determining the motion state of the terminal according to the first grouping feature information of the third type of data and/or the second grouping feature information of the second type of data includes:
grouping the second type of data according to the uploading time and the base station information recorded in the second type of data to obtain a plurality of third subsequences;
the time interval of the uploading time corresponding to any two adjacent records in the third subsequence is less than or equal to a third preset time length, the number of base stations corresponding to the third subsequence is less than or equal to a second preset number, and the number of the base stations is counted according to the base station information in the records of the corresponding third subsequence;
and determining the motion state of the terminal according to the sub-packet characteristic information corresponding to the plurality of third sub-sequences, wherein the second packet characteristic information comprises the sub-packet characteristic information.
Optionally, the step of determining the motion state of the terminal according to the sub-packet characteristic information corresponding to the plurality of third sub-sequences includes:
when the number of records included in the third subsequence is less than a third preset number, determining that the terminal is in an unknown state within a sampling time period corresponding to the third subsequence;
when the number of records included in the third subsequence is greater than or equal to the third preset number, the moving time corresponding to the third subsequence is greater than a fourth preset time length, and the corresponding movement range is smaller than a preset range, determining that the terminal is in a static state within a sampling time period corresponding to the third subsequence;
when the number of records included in the third subsequence is greater than or equal to the third preset number, if the moving time corresponding to the third subsequence is less than or equal to the fourth preset duration, or the corresponding movement range is greater than or equal to the preset range, determining that the terminal is in a low-speed movement state within the sampling time period corresponding to the third subsequence;
the sub-grouping feature information comprises the moving time and the moving range, wherein the moving time and the moving range are determined according to the uploading time and the sampling point positions in the corresponding third sub-sequence.
Optionally, the record includes base station information, the base station information is identification information of a communication base station to which the terminal accesses when the corresponding record is uploaded, the third type of data includes a plurality of sub-packets, and the step of determining the motion state of the terminal according to the first packet feature information of the third type of data and/or the second packet feature information of the second type of data includes:
when the sub-packet meets a second preset condition, determining that the terminal is in a high-speed motion state in a sampling time period corresponding to the sub-packet; the second preset condition comprises that the maximum moving distance corresponding to the sub-packet is larger than a third preset distance and the corresponding average speed is larger than a first preset speed, or the second preset condition comprises that the moving range corresponding to the sub-packet is larger than a preset range, the road occupation ratio corresponding to the sub-packet is larger than a preset value and the average speed corresponding to the sub-packet is larger than the first preset speed;
when the sub-packet meets a third preset condition, determining that the terminal is in a static state in a sampling time period corresponding to the sub-packet; the third preset condition includes that the motion range corresponding to the sub-packet is smaller than or equal to the preset range, the corresponding average speed is smaller than or equal to the first preset speed, and the number of base stations corresponding to the sub-packet is smaller than a fourth preset number;
when the sub-packet does not meet the second preset condition and the third preset condition, determining that the terminal is in a low-speed motion state within a sampling time period corresponding to the sub-packet;
the first packet characteristic information comprises the base station number, the movement range, the maximum movement distance, the road occupation ratio and the average speed, wherein the base station number is obtained according to the statistics of the base station information in the corresponding sub-packet, and the movement range, the maximum movement distance, the road occupation ratio and the average speed are determined according to the uploading time and the sampling point position in the corresponding sub-packet.
Optionally, the third type of data includes a plurality of subsequences, where the records in each subsequence are arranged according to the order of uploading time, any two adjacent records in the subsequences are defined as a first record and a second record in turn, and before the step of determining the motion state of the terminal according to the first grouping feature information of the third type of data and/or the second grouping feature information of the second type of data, the method further includes:
determining the instantaneous speed and the movement direction of the terminal corresponding to each second record in the third type of data, wherein the instantaneous speed and the movement direction are determined according to the uploading time and the sampling point positions of the corresponding first record and the corresponding second record;
when the instantaneous speed of the second record is greater than a second preset speed and the included angle between the moving direction of the second record and the moving direction of the first record corresponding to the second record is within a preset angle range, deleting the second record; the preset angular range has a maximum value and a minimum value.
Optionally, the step of acquiring the sampling data of the terminal in the communication network includes:
and acquiring MDT data and MME data of the terminal, wherein the sampling data comprises the MDT data and the MME data.
Furthermore, in order to achieve the above object, the present application also proposes an apparatus comprising: a memory, a processor and a communication network based terminal motion state identification program stored on the memory and operable on the processor, the communication network based terminal motion state identification program when executed by the processor implementing the steps of the communication network based terminal motion state identification method as described in any one of the above.
In addition, in order to achieve the above object, the present application also proposes a storage medium having stored thereon a communication network based terminal motion state identification program, which when executed by a processor implements the steps of the communication network based terminal motion state identification method as described in any one of the above.
The invention provides a terminal motion state identification method based on a communication network, which obtains the sampled data of a terminal by obtaining records which are uploaded by the terminal in the communication network and comprise corresponding sampling point positions and corresponding time when the terminal moves to different sampling points, classifies the sampled data according to the sampling point positions and the uploading time in the records to obtain first class data and second class data, further groups the first class data to obtain third class data with a relatively smaller variation range of the sampling point positions, determines the motion state of the terminal according to first grouping characteristic information of the third class data and/or second grouping characteristic information of the second class data, only considers the continuity of the time and the position compared with the prior art for the grouping rule of the sampled data, adds the limitation on the variation range of the sampling point positions in the grouping rule, can more accurately group the sampled data locally, the motion characteristics of the terminal are reflected more accurately, the accuracy of terminal motion state identification is improved, and the accurate evaluation of the motion track and the residence state of the position positioning terminal user is realized.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: acquiring sampling data of a terminal in a communication network, wherein the sampling data comprises a plurality of records of different sampling points, and the records comprise the sampling point positions and corresponding uploading time uploaded when the terminal moves to the corresponding sampling points; classifying the plurality of records according to the sampling point positions and the uploading time in the records to obtain first-class data and second-class data, wherein the first position variation range of the sampling points corresponding to the first-class data is larger than the second position variation range of the sampling points corresponding to the second-class data; obtaining third-class data for the first-class data groups according to the recorded sampling point positions and the uploading time in the first-class data, wherein the position change range of the sampling point corresponding to each group in the third-class data is smaller than the first position change range; and determining the motion state of the terminal according to the first grouping characteristic information of the third type of data and/or the second grouping characteristic information of the second type of data.
In the prior art, the network quality evaluation work mainly acquires sampling data through a terminal, and carries out terminal motion state identification by grouping the acquired sampling data, the grouping rule of the sampling data and the identification rule of the terminal motion state are compared one-sidedly, the grouping rule only considers the continuity of time and position, and the grouping rule has no way of accurately grouping and identifying the motion state of the terminal in various use scenes, so that the acquired terminal motion identification result has deviation, and the accurate evaluation of the motion track and the residence state of a position positioning terminal user is influenced.
The invention provides the solution, and aims to improve the accuracy of terminal motion state identification and realize accurate evaluation of the motion track and the residence state of a position location terminal user.
The embodiment of the invention provides a device.
In an embodiment of the present invention, referring to fig. 1, an apparatus includes: a processor 1001 (e.g., a CPU) and amemory 1002. Thememory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). Thememory 1002 may alternatively be a storage device separate from theprocessor 1001.
Those skilled in the art will appreciate that the configuration of the device shown in fig. 1 is not intended to be limiting of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, amemory 1002, which is a kind of computer-readable storage medium, may include therein a terminal motion state recognition program based on a communication network. In the apparatus shown in fig. 1, theprocessor 1001 may be configured to call a communication network based terminal motion state identification program stored in thememory 1002, and perform the operations of the relevant steps of the communication network based terminal motion state identification method in the following embodiments.
The embodiment of the invention also provides a terminal motion state identification method based on the communication network, which is applied to the device.
Referring to fig. 2, a first embodiment of the method for identifying a motion state of a terminal based on a communication network is provided. In this embodiment, the method for identifying a motion state of a terminal based on a communication network includes:
step S10, acquiring sampling data of a terminal in a communication network, wherein the sampling data comprises a plurality of records of different sampling points, and the records comprise sampling point positions uploaded by the terminal when the terminal moves to corresponding sampling points and corresponding uploading time;
the sampling data comprises a plurality of records uploaded by the terminal, and the records are specifically information of the current moment uploaded by the terminal when the terminal moves to the sampling point, wherein the information comprises the position of the sampling point and the time of the current moment when the terminal executes the uploading action. Further, the sample point location includes the longitude and latitude of the sample point.
The method and the device can provide a basis for identifying the motion state of the terminal by acquiring the sampling data of the terminal in the communication network, and ensure the accuracy of identifying the motion state of the terminal.
Step S20, classifying the plurality of records according to the sampling point positions and the uploading time in the records to obtain first class data and second class data, wherein the first position variation range of the sampling points corresponding to the first class data is larger than the second position variation range of the sampling points corresponding to the second class data;
specifically, the position variation range of the sampling points is a distribution range of the sampling points, and can represent the moving range of the terminal. Furthermore, the variation range of the position of the first type of data relative to the sampling point of the second type of data is larger, which represents that the first type of data moves in a larger range relative to the second type of data within the sampling time period, and the characteristic of the first type of data in the moving process is better, and the first type of data can be used as the identification basis of the terminal in a high-speed motion state.
By classifying the plurality of records into the first type data and the second type data, the motion characteristics of the terminal under two classification conditions are ensured to be accurately determined, and the accuracy of the motion state identification of the terminal is improved.
Step S30, grouping the first type data according to the recorded sampling point position and uploading time in the first type data to obtain third type data, wherein the position variation range of the sampling point corresponding to each group in the third type data is smaller than the first position variation range;
specifically, the variation range of the position of the third type of data relative to the sampling points of the first type of data is smaller, the third type of data is obtained by further grouping the first type of data, and records with similar sampling point positions in the records uploaded by the terminal during moving are divided into a group, so that the records are divided into groups of a plurality of local areas.
It should be noted that the grouping of the third type data is further subdivided on the basis of the grouping of the first type data. For example, after a record belonging to a different group in the first type of data is further grouped to obtain a third type of data, the record does not belong to the same group in the third type of data either.
By adding the limitation on the variation range of the sampling point position of the terminal during moving, the sampling data can be grouped locally more accurately, so that the motion characteristics of the terminal can be reflected more accurately, and the accuracy of the motion state identification of the terminal can be improved.
Step S40, determining the motion state of the terminal according to the first packet characteristic information of the third type data and/or the second packet characteristic information of the second type data.
The grouping characteristic information is specifically information representing the motion rule of the terminal, is obtained through calculation according to the uploading time and the sampling point position, and the motion rule of the terminal can be determined through the grouping characteristic information, so that the motion state of the terminal in the corresponding sampling time period is determined. The motion state of the terminal is specifically divided into a high-speed motion state, a low-speed motion state, a static state and an unknown state, wherein the high-speed motion state, the low-speed motion state and the static state respectively represent that the terminal moves at a high speed, moves at a low speed and is static, and the unknown state represents that the terminal state cannot be determined.
The motion state of the terminal is determined through the grouping characteristic information, the motion state of the terminal is accurately determined, and the accuracy of the motion state identification of the terminal is ensured.
The invention provides a terminal motion state identification method based on a communication network, which obtains the sampling data of a terminal by obtaining records which are uploaded by the terminal in the communication network and comprise corresponding sampling point positions and corresponding time when the terminal moves to different sampling points, classifies the sampling data according to the sampling point positions and the uploading time in the records to obtain first class data and second class data, further groups the first class data to obtain third class data with a relatively smaller sampling point position change range, determines the motion state of the terminal according to the first grouping characteristic information of the third class data and/or the second grouping characteristic information of the second class data, only considers the continuity of time and position compared with the grouping rule of the sampling data in the prior art, adds the limitation on the sampling point position change range in the grouping rule, can more accurately group the sampling data, the motion characteristics of the terminal are reflected more accurately, the accuracy of terminal motion state identification is improved, and the accurate evaluation of the motion track and the residence state of the position positioning terminal user is realized.
Further, in this embodiment, the step of acquiring the sampling data of the terminal in the communication network includes: and acquiring MDT data and MME data of the terminal, wherein the sampling data comprises the MDT data and the MME data.
Specifically, the MDT (minimization of drive-Test) data includes a reporting time, a current primary serving cell identifier, a user temporary identifier, a longitude, and a latitude. The MME data is S1-MME XDR data, the S1-MME is a control plane interface of a mobile management node function, and the XDR (Extended Detection and Response) data comprises reporting time, a current main service cell identifier, a user temporary identifier and an international mobile subscriber identity number.
In specific implementation, the two data are associated through the reporting time, the current main service cell identifier and the user temporary identifier, the association rule is that the current main service cell identifier and the user temporary identifier of the two data are matched, and the reporting time difference of the two data is within a preset difference. For example, the preset difference is 5 minutes. Matching MDT data and MME data can be obtained through association, and the international mobile subscriber identity number is backfilled to the MDT data.
The sampling data comprises the mixture of two kinds of data, the uploading time is the reporting time of the MDT data, the sampling point position is the longitude and latitude of the MDT data, the terminal identification is the international mobile subscriber identification code number, and the base station information is the current main service cell identification.
It should be noted that there may be several terminals uploading the sample data, and the sample data belonging to the same terminal can be determined according to the user temporary identifier, and the sample data having the same user temporary identifier is identified to determine the motion state of the corresponding terminal. The sampling data of the corresponding terminal can be accurately obtained by associating the MDT data with the MME data, and the accuracy of identifying the motion state of the terminal is ensured.
Further, based on the above embodiments, a second embodiment of the method for identifying a motion state of a terminal based on a communication network is provided. In this embodiment, referring to fig. 3, the step of classifying the plurality of records according to the sampling point positions and the uploading time in each record to obtain the first type data and the second type data includes:
step S21, the plurality of records are sequenced according to the sequence of the uploading time in the plurality of records, and a record sequence is obtained;
the record sequence refers to a plurality of records that are ordered according to a preset rule sequence, and in this embodiment, the preset rule is ordered according to the uploading time of the records.
In specific implementation, the uploading time of the plurality of records is traversed, and the time sequence is sequenced according to the sequence of the uploading time. By time-sequentially ordering the plurality of records, a basis for classifying and grouping the records or determining the identification of the motion state of the terminal is provided, and the efficiency of the classification, grouping and identification process of the motion state of the terminal is improved.
Step S22, determining that a plurality of first sub-recording sequences that satisfy a first preset condition in the recording sequence are the first type of data, and determining a plurality of second sub-recording sequences that do not satisfy the first preset condition in the recording sequence are the second type of data; the first preset condition comprises a first sub-condition and a second sub-condition, the first sub-condition comprises that the time interval of the uploading time corresponding to any two adjacent records in the corresponding sub-record sequence is less than or equal to a second preset time length, and the distance between the corresponding sampling point positions is less than or equal to a second preset distance, the second sub-condition comprises that the number of records meeting the set condition in the corresponding sub-record sequence is greater than a first preset number, and the set condition is that the sampling point positions of the corresponding records are different from those of the adjacent records.
It should be noted that, the first sub-recording sequence and the second sub-recording sequence respectively identify the sub-recording sequences that satisfy the first preset condition and do not satisfy the first preset condition in the recording sequence, and do not reorder the records; meanwhile, the first sub-recording sequence and the second sub-recording sequence are the result of grouping the recording sequences according to a first preset condition, each sub-recording sequence is a group, and the plurality of sub-recording sequences are a plurality of groups.
For example, it is assumed that the recording sequence includes records of sequence numbers 1 to 20, and after the determination by the first preset condition, it is determined that sequence numbers 1 to 6 are a first sub-recording sequence, sequence numbers 7 to 11 are a second sub-recording sequence, and sequence numbers 12 to 20 are a first sub-recording sequence, and the first sub-recording sequence and the second sub-recording sequence are arranged in a mixed manner, meanwhile, sequence numbers 1 to 6 and sequence numbers 12 to 20 belong to the first type of data, and sequence numbers 7 to 11 belong to the second type of data.
And classifying the record sequence through a first preset condition to obtain first-class data and second-class data, so as to provide a basis for further grouping the records and ensure the accuracy of the identification of the motion state of the terminal.
Specifically, the definition of the first sub-condition represents the continuity of time and position among records, and the records in the corresponding sampling period are uploaded by the terminal within a certain time period and a certain range; and recording the continuous change of the corresponding sampling point in the limited characterization sequence of the second sub-condition, wherein the terminal continuously moves in the corresponding sampling time period.
During specific implementation, through traversing the records in the record sequence, defining the former record as a first record and the latter record as a second record, determining whether the time interval of uploading time of the first record and the second record is less than or equal to a second preset time length, and whether the distance between the corresponding sampling point positions of the first record and the second record is less than or equal to a second preset distance, if so, dividing the first record and the second record into the same sub-record sequence, if not, dividing the first record and the second record into different sub-record sequences, and after the determination is completed, judging the next adjacent record until the traversal is completed, so as to obtain a plurality of sub-record sequences; and determining whether each sub-recording sequence comprises records of which the number meeting a set condition is larger than a first preset number, wherein the set condition is that the sampling point positions of the corresponding records are different from those of the adjacent records, when the determination is yes, the corresponding sub-recording sequence is a first sub-recording sequence and belongs to first type data, and when the determination is not, the corresponding sub-recording sequence is a second sub-recording sequence and belongs to second type data.
TABLE 1
Illustratively, referring to table 1, there are records of serial numbers 1 to 11, the values of the distances between the time interval and the sampling point position are all obtained from the previous record determination, and the distance between the time interval and the sampling point position recorded by serial number 1 is set to 0. The continuously different quantities of the sampling point positions represent whether the sampling point positions of the corresponding records are the same as the sampling point positions of the previous record, when the sampling point positions are different, the counting is increased by one, and when the sampling point positions are the same, the counting is reset to be 0. The second preset duration is 2 minutes, the second preset distance is 3000 meters, and the first preset number is 6. According to a first preset condition, a first sub-recording sequence of serial numbers 1 to 7, a second sub-recording sequence of serial number 8 and a second sub-recording sequence of serial numbers 9 to 11 can be obtained in groups. Each item in the table is illustrated as an example, and does not limit the content of the sample data or the record.
In the embodiment, the plurality of records are sorted, grouped and classified, the plurality of records are divided preliminarily, and a basis is provided for further grouping and determining the motion characteristic information of the groups, so that the accuracy of the motion state identification of the terminal is ensured.
Further, based on any of the above embodiments, a third embodiment of the method for identifying a motion state of a terminal based on a communication network is provided. In this embodiment, the first type of data includes a plurality of first sub-recording sequences, and the records in the first sub-recording sequences are arranged according to the order of uploading time. Based on this, referring to fig. 4, the step of obtaining the third type data for the first type data packet according to the sampling point position and the uploading time of each record in the first type data includes:
step S31, grouping the first sub-recording sequences according to the sampling point positions and the uploading times of the records in each first sub-recording sequence, to obtain a plurality of first sub-sequences and a plurality of second sub-sequences, where the third type of data includes the plurality of first sub-sequences and the plurality of second sub-sequences; defining the record arranged at the forefront in each first subsequence as a starting record and the record arranged at the last as an end record, wherein the distance between the sampling point position of the starting record in each first subsequence and the sampling point positions of other records in the corresponding first subsequence is smaller than or equal to a first preset distance, and the time interval between the uploading time of the starting record in each first subsequence and the uploading time of the corresponding end record is larger than a first preset time length.
Specifically, each first sub-recording sequence is further grouped according to the sampling point position and the uploading time of each record in each first sub-recording sequence in the first type of data. It should be noted that each first sub-recording sequence may be grouped into an indefinite number of first sub-sequences and second sub-sequences, and when none of the records in the first sub-recording sequence can satisfy the condition for forming the first sub-sequence, the first sub-recording sequence is determined to be the second sub-sequence; the third kind of data includes several mixed first subsequence and second subsequence.
And limiting the distribution range of the sampling point positions corresponding to each record in the first sub-record sequence, dividing groups of the sampling points distributed in a first preset distance range of the initial record sampling points, and continuously moving the record representation terminals corresponding to the groups in the first preset distance range. For example, the first predetermined distance is 100 meters.
During specific implementation, defining a record with the earliest uploading time in a first sub-record sequence as a first record, sequentially setting the record after the first record as a second record, a third record and the like, determining whether the distance between the position of a sampling point of the second record and the position of the sampling point of the first record is smaller than or equal to a first preset distance, judging the position distance of the sampling point of the third record when the distance is determined to be the first preset distance, and sequentially judging the records until the determination is negative according to the sequence arrangement sequence; for example, when the distance between the sampling point position of the sixth record and the sampling point position of the first record is determined to be greater than a first preset distance, the time interval of the uploading time of the first record and the uploading time of the fifth record are obtained, and when the time interval is determined to be greater than the first preset time, the first record to the fifth record are determined to form a first subsequence; when the time interval is determined to be smaller than or equal to a first preset time length, determining that the first record to the fifth record form a second subsequence; if the sixth record is the first record, the sixth and subsequent records are judged again whether to form another first sub-sequence. For example, the first preset time period is 5 minutes.
In the implementation, the position distribution of the sampling points is limited during further grouping, and the sampling data can be grouped locally more accurately, so that the motion characteristics of the terminal can be reflected more accurately, and the accuracy of the motion state identification of the terminal can be improved.
Further, based on any of the above embodiments, a fourth embodiment of the method for identifying a motion state of a terminal based on a communication network is provided. In this embodiment, the record includes base station information, where the base station information is identification information of a communication base station to which the terminal accesses when the corresponding record is uploaded, and the records in the second type of data are arranged according to a sequence of uploading time. Based on this, referring to fig. 5, step S40 includes:
step S41, when the number of records included in the third subsequence is less than a third preset number, determining that the terminal is in an unknown state within a sampling time period corresponding to the third subsequence;
step S42, when the number of records included in the third subsequence is greater than or equal to the third preset number, the moving time corresponding to the third subsequence is greater than a fourth preset duration, and the corresponding moving range is smaller than a preset range, determining that the terminal is in a stationary state within the sampling time period corresponding to the third subsequence;
step S43, when the number of records included in the third subsequence is greater than or equal to the third preset number, and if the moving time corresponding to the third subsequence is less than or equal to the fourth preset duration, or the corresponding moving range is greater than or equal to the preset range, determining that the terminal is in a low-speed moving state within the sampling time period corresponding to the third subsequence;
the sub-grouping feature information comprises the moving time and the moving range, wherein the moving time and the moving range are determined according to the uploading time and the sampling point positions in the corresponding third sub-sequence.
It should be noted that, the identification information of the mobile communication base station accessed by the terminal when the corresponding record is uploaded is determined according to the recorded base station information, and the number of the base stations can be obtained by performing deduplication after counting the base station identification information recorded in the sequence. The distribution range of the sampling points can be limited by limiting the number of base stations of the sequence.
Specifically, the obtaining step of the movement range is to obtain the maximum longitude, the maximum latitude, the minimum longitude and the minimum latitude of the sampling point positions recorded by the corresponding sequence, and obtain the movement range according to a rectangle formed by the maximum longitude, the maximum latitude, the minimum longitude and the minimum latitude; the travel time is determined as the time interval between the earliest upload time and the latest upload time of each record in the corresponding sequence.
When the time interval between two adjacent records is smaller than or equal to a third preset time length, determining whether a previous record in the adjacent records is divided into a third subsequence, when the adjacent records are determined not to be divided into the same third subsequence, when the adjacent records are determined to be divided into the same third subsequence, determining whether base station information of a sequence corresponding to the previous record comprises base station information of a next record, when the adjacent records are determined to be included, dividing the adjacent records into the same sequence, when the adjacent records are determined not to be included, obtaining the number of base stations according to the base station information of the sequence corresponding to the previous record and the base station information of the next record, determining whether the number of the base stations is smaller than or equal to a second preset number, determining that the adjacent records are divided into the same sequence, and when the adjacent records are determined not to be divided into different sequences. For example, the third predetermined period of time is 120 minutes and the second predetermined amount is 2.
And further grouping the second type of data to obtain a plurality of third subsequences with more similar motion characteristics, so that the accuracy of motion state identification of the terminal is ensured.
The record in the unknown state representation sequence is not enough to provide information for identifying the motion state of the terminal, and the motion state of the terminal in the corresponding sampling time period cannot be judged. Illustratively, the fourth predetermined duration is 0, the predetermined range is 200 meters, and the third predetermined number is 2.
In this embodiment, after the second type of data is further grouped, a group which can better represent the rule of the motion state of the terminal is obtained, and the motion state of the terminal in the corresponding sampling time period of the second type of data is identified according to the sub-group characteristic information, so that the accuracy of the motion state identification of the terminal is improved.
Further, based on any of the above embodiments, a fifth embodiment of the method for identifying a motion state of a terminal based on a communication network is provided. In this embodiment, the record includes base station information, where the base station information is identification information of a communication base station to which the terminal accesses when the corresponding record is uploaded, and the third type of data includes a plurality of sub-packets. Based on this, referring to fig. 6, step S40 includes:
step S44, when the sub-packet meets a second preset condition, determining that the terminal is in a high-speed motion state in a sampling time period corresponding to the sub-packet; the second preset condition comprises that the maximum moving distance corresponding to the sub-packet is larger than a third preset distance and the corresponding average speed is larger than a first preset speed, or the second preset condition comprises that the moving range corresponding to the sub-packet is larger than a preset range, the road occupation ratio corresponding to the sub-packet is larger than a preset value and the average speed corresponding to the sub-packet is larger than the first preset speed;
step S45, when the sub-packet meets a third preset condition, determining that the terminal is in a static state in a sampling time period corresponding to the sub-packet; the third preset condition includes that the motion range corresponding to the sub-packet is smaller than or equal to the preset range, the corresponding average speed is smaller than or equal to the first preset speed, and the number of base stations corresponding to the sub-packet is smaller than a fourth preset number;
step S46, when the sub-packet does not satisfy the second preset condition and the third preset condition, determining that the terminal is in a low-speed motion state within the sampling time period corresponding to the sub-packet;
the first packet characteristic information comprises the base station number, the movement range, the maximum movement distance, the road occupation ratio and the average speed, wherein the base station number is obtained according to the statistics of the base station information in the corresponding sub-packet, and the movement range, the maximum movement distance, the road occupation ratio and the average speed are determined according to the uploading time and the sampling point position in the corresponding sub-packet.
Illustratively, the predetermined range is 200 meters, the predetermined value is 0.3, the third predetermined distance is 1000 meters, the first predetermined speed is 15km/h, and the fourth predetermined number is 2.
Specifically, the step of obtaining the maximum moving distance is to obtain the maximum moving distance according to the maximum distance between any two sampling point positions in the traversal sequence; in addition, the road occupation ratio is obtained by dividing the maximum moving distance by the total moving distance, and the total moving distance is the sum of distances between adjacent recording corresponding sampling point positions in the sequence; the average speed is obtained by dividing the total moving distance by the moving time; the step of obtaining the motion range and the moving time can be referred to the fourth embodiment, and is not described herein.
The motion parameters corresponding to the sequence are determined according to the uploading time and the sampling point position of each record in the sequence, the motion rule of the terminal in the sampling time period of the corresponding sequence can be accurately determined according to the motion parameters, and the accuracy of the motion state identification of the terminal is improved.
In this embodiment, by acquiring the grouping feature information of the sequence and limiting the grouping feature information, the motion feature of the terminal in the sampling time period corresponding to the sequence is accurately determined, the motion state of the terminal is identified, and the accuracy of identifying the motion state of the terminal is improved.
Further, based on any of the above embodiments, the third type data includes a plurality of subsequences, the records in each subsequence are arranged according to the sequence of uploading time, and any two adjacent records in the subsequences are defined as a first record and a second record in sequence. Before step S40, the method further includes:
determining the instantaneous speed and the movement direction of the terminal corresponding to each second record in the third type of data, wherein the instantaneous speed and the movement direction are determined according to the uploading time and the sampling point positions of the corresponding first record and the corresponding second record; when the instantaneous speed of the second record is greater than a second preset speed and the included angle between the moving direction of the second record and the moving direction of the first record corresponding to the second record is within a preset angle range, deleting the second record; the preset angular range has a maximum value and a minimum value.
Specifically, the step of acquiring the instantaneous speed is to acquire the time interval between the uploading time of the second record and the uploading time of the first record and the distance between the sampling point positions, and acquire the instantaneous speed according to the time and the distance, wherein the instantaneous speed is the instantaneous speed corresponding to the second record; and determining the movement direction according to the second record and the sampling point position of the first record, wherein the movement direction is the movement direction corresponding to the second record. Illustratively, the second preset speed is 400km/h, the minimum value of the preset angle is 150 °, and the maximum value of the preset angle is 210 °.
By identifying and deleting the records influencing the identification of the motion state of the terminal, the reliability of the grouping characteristic information is improved, and the accuracy of the identification of the motion state of the terminal is improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a terminal motion state identification program based on a communication network, and the terminal motion state identification program based on the communication network, when executed by a processor, implements the relevant steps of any of the above terminal motion state identification methods based on the communication network.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.