CN116033350A - Service implementation method based on position location, data processing method and device - Google Patents

Service implementation method based on position location, data processing method and device Download PDF

Info

Publication number
CN116033350A
CN116033350A CN202111264022.5A CN202111264022A CN116033350A CN 116033350 A CN116033350 A CN 116033350A CN 202111264022 A CN202111264022 A CN 202111264022A CN 116033350 A CN116033350 A CN 116033350A
Authority
CN
China
Prior art keywords
terminal
data record
data
station
subway station
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111264022.5A
Other languages
Chinese (zh)
Inventor
陈维
解文博
王酉祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN202111264022.5A priority Critical patent/CN116033350A/en
Priority to PCT/CN2022/124920 priority patent/WO2023071804A1/en
Publication of CN116033350A publication Critical patent/CN116033350A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/02Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points taking into account a variable factor such as distance or time, e.g. for passenger transport, parking systems or car rental systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Abstract

The application discloses a service implementation method based on position location, a data processing method and a device. Comprising the following steps: when the first condition is met, the terminal acquires a cell signal of the current position; the terminal determines the position information of the current position according to the cell signal; and the terminal executes the service matched with the current position according to the position information.

Description

Service implementation method based on position location, data processing method and device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a service implementation method, a data processing method and a device based on location positioning.
Background
With the rapid development of the internet, location-based services (LBS) are increasingly used. Key technologies for location services include indoor location positioning or scene recognition. Indoor location positioning refers to determining the location coordinates of a terminal in an indoor environment, and scene identification refers to determining an application scene to which the terminal belongs in the indoor environment (for example, the terminal just enters the indoor environment or is about to leave the indoor environment), wherein scene identification needs to be realized based on location positioning.
Position location or scene recognition within a subway station is a typical location service application. The subway is taken as a main urban transportation means in the city, the scene of the subway station is closely related to the life of people, and the position service surrounding the subway station can bring more convenience and better use experience for people.
In subway stations or similar scenes, how to better realize scene recognition or position positioning, thereby providing better service for users so as to improve user experience is a problem to be solved at present.
Disclosure of Invention
The embodiment of the application provides a service implementation method based on position location, a data processing method and a device.
In a first aspect, a method for implementing a service based on location positioning is provided, including: when the first condition is met, the terminal acquires a cell signal of the current position; the terminal determines the position information of the current position according to the cell signal; and the terminal executes the service matched with the current position according to the position information.
Alternatively, the location information may include location description information or location identification. Unlike the position coordinate information, the position description information and the position identification may be information that is predefined and used for position discrimination, for example, the position information may be a subway station name or a subway station ID.
In the implementation manner, on one hand, the terminal performs the position positioning when the first condition is met, so that invalid position positioning can be avoided, and further the power consumption of the terminal is reduced; on the other hand, the terminal performs the service matching with the current position according to the current position, so that the user experience can be improved, for example, when the current position is determined to be the entrance or the exit of the subway station, the terminal can display the identification code for subway train payment on the terminal screen, so that the user can use the identification code to pay train payment conveniently.
In a possible implementation manner, the determining, by the terminal, location information of a current location according to the cell signal includes: and the terminal determines the position information corresponding to the cell signal of the current position according to the corresponding relation between the cell signal and the position information.
In a possible implementation manner, the correspondence between the cell signal and the location information includes correspondence between the identifier of the cell signal and the location information; the determining the location information corresponding to the cell signal of the current location includes: and determining the position information corresponding to the identification of the cell signal according to the identification of the cell signal of the current position.
In one possible implementation manner, the correspondence between the cell signals and the location information includes correspondence between the identities and intensities of the cell signals and the location information; the determining the location information corresponding to the cell signal of the current location includes: and determining position information corresponding to the identification and the intensity of the cell signal according to the identification and the intensity of the cell signal of the current position.
In one possible implementation, the location information includes subway station location information including subway station identification information and subway station scene information including a subway station entrance identification, a subway station exit identification, or a subway station in-station identification.
In one possible implementation manner, the meeting the first condition includes: the position location timing comes and the position location starting condition is satisfied. In the implementation manner, the position location is performed only when the first condition is met, so that invalid position location operation can be avoided, and further, the power consumption of the terminal can be saved.
In one possible implementation, the position location opportunity comes, including: the terminal is on a screen and unlocks the screen; or detecting a motion state of continuous walking in the state of the screen-on state of the terminal; or detecting that the cell is changed during the screen-lighting period of the terminal; or the terminal in the off-screen state is periodically awakened.
In one possible implementation manner, the meeting the position location starting condition includes at least one of the following:
the cell identification contained in the cell signal received when the terminal is awakened is different from the cell identification contained in the cell signal received before the terminal is awakened;
the cell identification contained in the cell signal received by the terminal is not included in a scene recognition shielding list, and the scene recognition shielding list is used for storing the identification of the cell which does not need scene recognition;
the terminal is in a non-riding motion state.
In one possible implementation, the method further includes: if the terminal fails to position location according to the cell signal of the current position and the failure times reach a set threshold, adding the cell identification in the cell signal of the current position into the scene recognition shielding list.
In the above implementation manner, if the positioning according to the cell signal of the current position fails and the number of recognition times reaches the set threshold, it indicates that the positioning cannot be performed on the cell signal, so that the cell identifier in the cell signal can be added to the field Jing Shibie shielding list, so as to avoid the subsequent ineffective positioning, and further save the terminal power consumption.
In a possible implementation manner, the terminal performs a service matched with the current position according to the position information, including: and if the position indicated by the position information is the entrance or the exit of the subway station, the terminal displays the identification code for subway train payment on a screen.
In the implementation manner, if the identified position is the entrance or the exit of the subway station, the terminal can automatically display the identification code for subway riding payment on a screen, so that a user can conveniently pay riding.
In a possible implementation manner, the terminal performs a service matched with the current position according to the position information, including: and if the position indicated by the position information is in the subway station of the first subway station, the terminal acquires the time prediction information of the subway train reaching the first subway station, and displays the time prediction information on a screen or broadcasts the time prediction information through voice.
In the implementation manner, if the identified position is in the subway station, the terminal can automatically acquire the time prediction information of the arrival of the subway train at the subway station, and perform voice broadcasting or display on a screen, so that a user can know the arrival time of the train conveniently.
In a possible implementation manner, the terminal performs a service matched with the current position according to the position information, including: if the scene indicated by the position information is in a subway station of the second subway station and the motion state detected by the terminal is a riding state, the terminal displays arrival reminding information on a screen or broadcasts the arrival reminding information through voice, and the arrival reminding information is used for prompting arrival at the second subway station.
In the implementation manner, if the identified position is in the subway station and the terminal detects that the current motion state is the riding state, the terminal can automatically carry out the arrival reminding so as to facilitate the riding of the user.
In one possible implementation, the method further includes: the terminal detects a first trigger event, and starts data acquisition in response to the first trigger event; the terminal records the corresponding relation between the cell signal and the position information according to the received cell signal; and the terminal ends the data acquisition.
In the implementation manner, the terminal performs data acquisition to further obtain the data for performing position location, so that the data for performing position location can be obtained according to the user behavior habit, for example, the data acquisition can be performed according to the user's commuting habit or route, and the requirements of the user can be met when the position location is performed based on the data acquired by the terminal.
In one possible implementation, the first trigger event includes: the terminal obtains the entering permission through a first device arranged at the entrance of the subway station, so that data acquisition can be started when the terminal (user) enters the subway station to acquire cell signals in a specific area (such as the subway station).
In one possible implementation manner, the terminal ends the data acquisition, including: the terminal detects a second trigger event; and the terminal responds to the second trigger event to finish the data acquisition. With this implementation, it can be achieved that the data acquisition process is ended based on event-driven. The data acquisition process is started and ended under the drive of an event, so that the data acquisition can be controlled to be performed in a certain time and/or space, the power consumption of a terminal can be saved, and the data acquisition can be performed in a targeted manner.
In one possible implementation, the second triggering event includes: the terminal obtains the outbound permission through a second device arranged at the exit of the subway station, so that data acquisition can be finished when the subway station is outbound, and the data acquisition is performed in a certain space; or the first timer is overtime, and the first timer is started by the terminal in response to the first trigger event, so that the time length of data acquisition can be controlled to avoid excessive consumption of power consumption of the terminal in the data acquisition process; or the second timer is started when the terminal senses that the terminal leaves the second area, so that the data acquisition can be performed for a period of time when the terminal senses that the terminal leaves the second area.
In a possible implementation manner, the correspondence between the cell signals and the position information is stored in an acquisition data set, wherein the acquisition data set comprises at least one data record; the method further comprises the steps of: the terminal obtains a positioning data set for positioning the terminal according to the data records with the confidence degree meeting the requirements in the collected data set, wherein the positioning data set comprises at least one data record, and each data record in the positioning data set is used for storing the corresponding relation between the cell signal and the position information.
In the implementation manner, the positioning data set for the position positioning is generated based on the data records with the confidence coefficient meeting the setting requirement, so that the reliability of the position positioning can be ensured.
In a second aspect, a data processing method is provided, including: the method comprises the steps that a terminal detects a first trigger event, and data acquisition is started in response to the first trigger event, wherein the first trigger event comprises that the terminal senses that the terminal enters a first area; the terminal records the corresponding relation between the cell signal and the position information according to the received cell signal; and the terminal ends the data acquisition.
In the implementation manner, on one hand, the data acquisition process is started under the drive of an event, so that the data acquisition can be controlled to be performed in a certain time and/or space, the power consumption of a terminal can be saved, and the data acquisition can be performed in a targeted manner; on the other hand, the collected data conforms to the behavior habit of the user, and provides a data base and source for subsequent data obtained for position location based on the collected data (such as the correspondence between cell signals and position information).
In one possible implementation, the first trigger event includes: the terminal obtains an inbound grant through a first device provided at an entrance of the subway station.
In one possible implementation manner, the terminal ends the data acquisition, including: the terminal detects a second trigger event; and the terminal responds to the second trigger event to finish the data acquisition.
In one possible implementation, the second triggering event includes: the terminal senses that the terminal leaves the second area; or a first timer times out, the first timer being started by the terminal in response to the first trigger event; or a second timer times out, the second timer being started when the terminal senses that the terminal leaves the second area.
In one possible implementation, the terminal senses an event leaving the second area, including: the terminal obtains an outbound permission through a second device arranged at the exit of the subway station.
In one possible implementation manner, the recording, by the terminal, a correspondence between the cell signal and the location information according to the received cell signal includes: the terminal responds to the first trigger event to generate a first data record, wherein the first data record is used for storing the corresponding relation between the cell signal received by the terminal and the position information of the current position of the terminal; the terminal responds to the cell signal received by the terminal to generate a second data record, wherein the second data record is used for storing information of the cell signal received by the terminal; and the terminal responds to the sensing of leaving the second area, and generates a third data record, wherein the third data record is used for storing the corresponding relation between the cell signal received by the terminal and the position information of the current position of the terminal.
In one possible implementation manner, the first data record is an inbound data record, and the inbound data record includes: cell identification and subway station position information; the second data record is an intra-station data record, and the intra-station data record comprises: cell identification; the third data record is an outbound data record, and the outbound data record includes: cell identity, subway station location information.
Optionally, the inbound data record, the outbound data record, and the in-station data record further include: at least one of tracking area identification, operator identification and country code, wherein the tracking area identification, the operator identification and the country code come from a cell signal received by the terminal.
Optionally, the subway station position information in the inbound data record, the outbound data record and the in-station data record further includes: the city name of the city in which the subway station is located.
In one possible implementation, at least one of the following information is further included in the inbound data record, the in-station data record, and/or the outbound data record: acquisition time, acquisition times, signal intensity and the motion state detected by the terminal.
In one possible implementation, the inbound data record further includes evaluation information, where the evaluation information includes at least one of a verification success number, a verification failure number, and a recall rate; the verification success times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is entered, the verification failure times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is entered, and the recall rate is determined according to the verification success times and the verification failure times; and/or the outbound data record further comprises evaluation information, wherein the evaluation information comprises at least one of verification success times, verification failure times and recall rate; the verification success times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is left, the verification failure times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is left, and the recall rate is determined according to the verification success times and the verification failure times.
Optionally, the method further comprises: when the terminal senses that a subway station is entered, the terminal performs scene recognition according to a cell identifier contained in a received cell signal to obtain recognized subway station position information; if the subway station position information obtained according to scene recognition is the same as the subway station position information queried according to the POI returned by the first equipment (such as a station entry gate) at the entrance, updating the verification success times in the station entry data record by the terminal, and updating the recall rate in the station entry data record according to the verification failure times in the station entry data record and the updated verification success times; otherwise, updating the verification failure times in the inbound data record, and updating the recall rate in the inbound data record according to the verification success times in the inbound data record and the updated verification failure times.
Optionally, the method further comprises: when the terminal senses that the subway station is away, the terminal performs scene recognition according to the cell identification contained in the received cell signal to obtain recognized subway station position information; if the subway station position information obtained according to scene recognition is the same as the subway station position information queried according to POIs returned by second equipment (such as an outbound gate) at the exit, the terminal updates the verification success times in the outbound data record, and updates the recall rate in the outbound data record according to the verification failure times in the outbound data record and the updated verification success times; otherwise, updating the verification failure times in the outbound data record, and updating the recall rate in the outbound data record according to the verification success times in the outbound data record and the updated verification failure times.
In one possible implementation, the method further includes: adding subway station position information into the station data records between the first station data record adjacent to the inbound data record and the second station data record according to the sequence from front to back of the acquisition time, wherein the added subway station position information is the same as the subway station position information in the inbound data record; the second station internal data record is a station internal data record with a first motion state being a riding state in the station entering data records arranged in sequence from front to back according to the acquisition time; adding subway station position information into the station data records between the third station data record and the fourth station data record adjacent to the outbound data record according to the sequence of the acquisition time from the back to the front, wherein the added subway station position information is the same as the subway station position information in the outbound data record; the fourth intra-station data record is an intra-station data record with a first movement state being a riding state in the inbound data records arranged in sequence from back to front according to the acquisition time.
In one possible implementation, the method further includes: determining a first time length between the inbound data records and the in-station data records of a first riding state according to the sequence of time from front to back, adding the first time length into a stay time length set corresponding to the inbound subway station, and determining an inbound stay time length threshold corresponding to the inbound subway station according to the updated stay time length in the stay time length set corresponding to the inbound subway station; if the first time length is greater than the inbound stay time threshold, taking the acquisition time of the inbound data record as a starting point, selecting an intra-station data record in the inbound stay time threshold, and adding subway station position information in the inbound data record into the selected intra-station data record; otherwise, adding the subway station position information in the inbound data record to the in-station data record between the inbound data record and the first riding state data record; and/or determining a second duration from the outbound data record to the data record of the first riding state according to the sequence of time from back to front, adding the second duration into a stay duration set corresponding to the outbound subway station, and determining an outbound stay duration threshold corresponding to the outbound subway station according to the updated stay duration in the stay duration set corresponding to the outbound subway station; if the second time length is greater than the outbound stay time threshold, selecting an in-station data record within the outbound stay time threshold by taking the acquisition time of the outbound data record as a starting point, and adding the sticker position information in the outbound data record into the selected in-station data record; otherwise, the subway station position information in the outbound data record is added into the station data record between the first riding state data records.
In one possible implementation, the correspondence between the cell signals and the location information is stored to a collection data set, which includes at least one data record therein. The method further comprises the steps of: the terminal obtains a positioning data set for positioning according to the data records with the confidence coefficient meeting the requirements in the collected data set, wherein the positioning data set comprises at least one data record, and the data record in the positioning data set is used for storing the corresponding relation between the cell signal and the position information.
In one possible implementation, the confidence level satisfies a required data record, and at least one of the following conditions is satisfied:
recording incoming data with recall rate greater than a set threshold;
outbound data records with recall rates greater than a set threshold;
the edge degree meets the required intra-station data record, wherein the edge degree is represented by the ratio of the acquisition times in the intra-station data record to the maximum acquisition times, and the maximum acquisition times are the maximum acquisition times in all intra-station data records containing the same subway station position information;
an inbound data record, an intra-station data record and an outbound data record with acquisition time after the appointed time; the specified time is before the current time, and the duration from the specified time to the current time is equal to the set duration.
In one possible implementation, the data record of the positioning data set includes: the subway station comprises a cell identifier, subway station position information and a first scene type identifier or a second scene type identifier, wherein the first scene type identifier is used for indicating that a scene corresponding to a data record is an entrance and an exit of a subway station, and the second scene type identifier is used for indicating that the scene corresponding to the data record is in the subway station.
In a third aspect, there is provided a communication apparatus comprising: one or more processors; wherein the instructions of the one or more computer programs, when executed by the one or more processors, cause the communications apparatus to perform the method of any of the first aspect or the method of any of the second aspect described above.
In a fourth aspect, there is provided a computer readable storage medium comprising a computer program which, when run on a computing device, causes the computing device to perform the method of any one of the first aspects or the method of any one of the second aspects.
In a fifth aspect, there is provided a chip coupled to a memory for reading and executing program instructions stored in the memory to implement the method of any one of the first aspect or the method of any one of the second aspect.
In a sixth aspect, there is provided a computer program product which, when invoked by a computer, causes the computer to perform the method of any of the first aspects or the method of any of the second aspects.
The advantages of the second aspect to the sixth aspect are described above with reference to the advantages of the first aspect, and the description is not repeated.
Drawings
Fig. 1 is a schematic view of a scenario in an embodiment of the present application;
fig. 2 is a schematic structural diagram of a terminal in an embodiment of the present application;
FIG. 3 is a block diagram of one implementation of an embodiment of the present application;
fig. 4, fig. 5, and fig. 6 are schematic flow diagrams of a data acquisition method according to an embodiment of the present application;
fig. 7 is a schematic diagram of a data acquisition flow in an application scenario of a subway station in an embodiment of the present application;
FIG. 8 is a schematic diagram of an implementation of adding location information in a data record according to an embodiment of the present application;
FIG. 9 is a schematic flow chart of adding location information in a data record according to an embodiment of the present application;
FIG. 10 is a flow chart of selecting a data record meeting a confidence requirement according to an embodiment of the present application;
fig. 11 is a schematic diagram of a terminal and a network side server cooperatively generating a positioning data set in the embodiment of the present application;
FIG. 12 is a schematic diagram of a position location process in an embodiment of the present application;
fig. 13 is a schematic diagram of a position locating process according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in further detail with reference to the accompanying drawings. It should be understood that the terms "first," "second," and the like in the description and in the claims of the present application and in the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion, such as a series of steps or elements. The method, system, article, or apparatus is not necessarily limited to those explicitly listed but may include other steps or elements not explicitly listed or inherent to such process, method, article, or apparatus.
The data processing method and the service implementation method based on the position positioning can be applied to subway stations, the subway stations are usually closed spaces, an entrance and an exit are arranged, an entrance gate is arranged at the entrance, an exit gate is arranged at the exit, and the entrance gate and the exit gate can be used for processing subway riding payment. A subway station has a plurality of wireless communication network devices (e.g., base stations) deployed therein. It is understood that a subway station as referred to herein may include an underground portion or an above-ground portion of the subway station, or both. Wherein the underground part of a subway station is typically an enclosed space in which a plurality of base stations are deployed. The aerial part of the subway station is also usually an enclosed space, a base station can be deployed in the enclosed space of the aerial part, and a terminal in the enclosed space can also receive signals sent by the base station deployed in the enclosed space, and possibly signals sent by the base station deployed outside the enclosed space.
In the embodiment of the application, the terminal can receive the signal sent by the base station in the subway station, perform data acquisition according to the received signal to obtain an acquisition data set, further perform data processing (such as data mining) according to the acquisition data set to obtain a positioning data set for performing position positioning and/or scene recognition, so that the terminal can perform position positioning and/or scene recognition based on the positioning data set, and further provide corresponding service for a user according to the position positioning and/or scene recognition result.
In some embodiments of the present application, the meaning of position location and scene recognition is substantially the same, the scene recognition being based on position location. The scene information may be understood as a kind of position information, for example, the subway station a is position information, and the entrance of the subway station a or the entrance of the subway station may be understood as position information, and may also be understood as scene information. In the subway station application scenario, the position information may refer to subway station position information, where the subway station position information includes subway station identification information and subway station scene information, and the subway station scene information includes a subway station entrance identifier (for indicating a subway station entrance), a subway station exit identifier (for indicating a subway station exit), or a subway station intra-station identifier (for indicating a subway station intra-station).
In the embodiment of the present application, a signal transmitted by a base station is referred to as a cell signal. The cell signal may include a cell identifier (such as a cell ID, abbreviated as CID), and may further include information such as a tracking area identifier, a country code configured in the base station device, and the like. It is understood that the cell signal may also be referred to as a base station signal.
It will be appreciated that the network devices deployed within the subway station may also be other types of wireless communication network devices, such as may include bluetooth beacons (or bluetooth base stations). Taking bluetooth beacons as an example, a terminal may receive signals (may be referred to as bluetooth signals) sent by the bluetooth beacons, and perform data acquisition and data mining to obtain a positioning data set for performing position location and/or scene recognition. The signal sent by the bluetooth beacon can include information such as the identification of the bluetooth beacon. It will be appreciated that for various network devices (e.g., including base stations, bluetooth beacons, etc.) that may be deployed in the first area, the signals transmitted thereby may be collectively referred to as wireless signals.
It should be noted that, the embodiment of the application may also be applicable to a scenario similar to a subway station scenario, for example, a place or area where a plurality of base stations are deployed and where an entrance and an exit are provided, an entrance device may be provided at the entrance, an exit device may be provided at the exit, and the entrance device and the exit device may interact with a terminal in a non-contact manner, so as to perform payment operations or other response operations for entering and leaving a certain subway station from the terminal. Such a scenario may include, for example, an exhibition hall, a venue, etc. For ease of description, some embodiments of the present application refer to such an area or location as a "first area," which in other embodiments is embodied as a subway station.
Based on the above term explanation, fig. 1 exemplarily shows a schematic view of a scenario of an embodiment of the present application, where a network device and a terminal may be included. Taking the first area 10 as an example, the first area 10 may be an underground part of a subway station or a local area of the underground part, an entrance gate 11 is disposed at an entrance of the first area 10, and an exit gate 12 is disposed at an exit of the first area 10. A plurality of network devices, such as network devices (13 a-13 g) in fig. 1, are deployed within the first area 10. Each network device may communicate with the terminal 100 wirelessly.
Network devices (13 a-13 g), also referred to as radio access network devices, are used to access terminals to devices in the wireless network. Such as a base station (e.g., an access point) may refer to a device in an access network that communicates over the air-interface, through one or more cells, with wireless terminals. Illustratively, the access network device may include one or more access devices for deployment in an indoor environment (such as in a subway station), such as in the case of a subway station scenario, the network devices (13 a-13 g) may include a femto base station dedicated to the subway station deployed inside the subway station, or may also include a base station, a small station, a micro station, etc. in a future communication network, and the embodiments of the present application are not limited.
The terminal 100 may be a mobile phone, a tablet computer, a wearable device (such as a smart watch or smart glasses) with a wireless communication function, or the like. Exemplary embodiments of the terminal include, but are not limited to, piggybacking
Figure BDA0003324447900000081
Or other operating system device. The terminal may also be other portable devices as long as the portable device can receive the cell signal and generate a data record.
In this embodiment, the terminal 100 in the first area 10 may generate an acquisition data set according to the received cell signals from the network devices (13 a to 13 e), and obtain a positioning data set for implementing position positioning and/or scene recognition according to the generated acquisition data set. The terminal may perform location positioning and/or scene recognition in the first enclosed area 10 according to the positioning data set, and may further provide corresponding services for the user according to the location positioning result and/or the scene recognition result. Wherein the relevant description of the acquisition data set and the positioning data set can be seen in fig. 3.
Illustratively, as shown in fig. 2, there is a schematic diagram of one possible structure of the terminal 100. The terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 151, a wireless communication module 152, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a gyro sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the terminal 100 may also include other sensors such as a pressure sensor, an acceleration sensor, a gyro sensor, an ambient light sensor, a bone conduction sensor, etc., which are not shown).
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the present application, terminal 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (application processor, AP), a modem, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. The controller may be a neural hub and a command center of the terminal 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
The internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 executes various functional applications of the terminal 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store, among other things, an operating system, code for an application program, and the like. The storage data area may store statistics of data transmission recorded during use of the terminal 100, a threshold (a condition for judging whether a timing period for adjusting the RRC connection release timer is satisfied), and the like.
In addition, the internal memory 121 may include a high-speed random access memory, and may also include a nonvolatile memory, such as one or more magnetic disk storage devices, flash memory devices, universal flash memory (universal flash storage, UFS), and the like. In some embodiments, the processor 110 may cause the terminal 100 to perform the data processing method or the service implementation method based on scene recognition provided in the embodiments of the present application by executing instructions stored in the internal memory 121, and/or instructions stored in a memory provided in the processor 110.
Of course, the codes of the data processing method or the service method based on position location, and the information such as the collected data set and the positioning data set provided in the embodiment of the present application may also be stored in the external memory. In this case, the processor 110 may execute code stored in an external memory for implementing the above-described method of the embodiments of the present application through the external memory interface 120.
The external memory interface 120 may be used to connect an external memory card (e.g., micro SD card) to realize the memory capability of the extension terminal 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, information such as a collection data set and a positioning data set generated by the terminal is stored in an external memory card.
The wireless communication function of the terminal 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, a modem processor, a baseband processor, and the like. Based on the wireless communication function, the terminal can receive signals (such as cell signals sent by the base station) sent by the network equipment, and perform data acquisition according to the received signals to obtain an acquired data set.
Based on the detection data of the acceleration sensor 180B, the terminal 100 can determine a motion state. For example, the motion state may include a riding state and a non-riding state, and the non-riding state may further include a stay state, a walking state, a running state, and the like.
Optionally, a near field communication (near field communication, NFC) chip may be integrated in the terminal 100, so that the terminal may perform subway train payment through a contactless operation based on the NFC chip.
By way of example, fig. 3 shows a block diagram of one implementation of an embodiment of the present application. The processing operations shown in fig. 3 are all performed by the same terminal.
As shown in fig. 3, when the data acquisition initiation condition is satisfied, the terminal initiates data acquisition including generating a data record from the cell signal received by the terminal, the data record being stored to an acquisition data set. Furthermore, the terminal can also end data acquisition to save terminal power consumption. Illustratively, the terminal ends data acquisition when the data acquisition end condition is satisfied.
Illustratively, satisfying the data acquisition initiation condition may include the following: if a first trigger event occurs, the data acquisition starting condition is met, and the terminal responds to the first trigger event to start data acquisition. The first trigger event includes the terminal sensing entry into the first region. Taking a subway station scenario as an example, the first trigger event is that the terminal obtains an entering permission through a first device (such as an entering gate) at an entrance of the subway station, such as making a contactless (or inductive) riding payment.
For example, if the subway riding payment is performed by adopting an identification code (such as a two-dimensional code) scanning manner, when an inbound gate set at the entrance of the subway scans an identification code (such as a two-dimensional code) for subway riding payment displayed on a screen of a terminal and identifies payment account information in the identification code, the inbound gate sends a payment request containing the payment account information to a payment server, and after the payment server completes payment operation according to the payment account, the payment server sends a first payment response to the terminal because the payment account is associated with the terminal, and the terminal starts data acquisition after receiving the first payment response. In another example, if the identification code includes terminal identification information, the access gate may send a first payment response to the terminal according to the terminal identification information, and the terminal initiates data collection after receiving the first payment response.
For example, if the subway riding payment is performed by adopting the NFC method, after the inbound gate set at the entrance of the subway senses the signal of the NFC chip in the terminal, the payment account information in the NFC chip is read, the inbound riding payment information is written into the payment account, and the terminal can start data collection when the inbound gate is detected to write the inbound riding payment information into the NFC chip.
Illustratively, satisfying the data acquisition end condition may include the following: if a second trigger event occurs, the data acquisition ending condition is met, and the terminal responds to the second trigger event to end data acquisition.
Illustratively, the second triggering event may include any one of the following events:
event 1: the terminal senses a departure from a second area, such as from a subway station. If the event occurs, the condition for ending the data acquisition is met, and the terminal ends the data acquisition.
Taking a subway station scenario as an example, the second trigger event is that the terminal obtains an outbound permission through a second device (such as an outbound gate) at an entrance of the subway station, such as making a contactless (or inductive) bus payment.
For example, if the subway riding payment is performed by adopting an identification code (such as a two-dimensional code) scanning manner, when an outbound gate machine set at the subway exit scans an identification code (such as a two-dimensional code) for subway riding payment displayed on a screen of a terminal and identifies payment account information in the identification code, the outbound gate machine sends a payment request containing the payment account information to a payment server, and after the payment server completes payment operation according to the payment account, the payment server sends a second payment response to the terminal because the payment account is associated with the terminal, and the terminal ends data acquisition after receiving the second payment response. In another example, if the identification code includes terminal identification information, the outbound gate may send a second payment response to the terminal according to the terminal identification information, and the terminal may end data collection after receiving the second payment response.
For another example, if the subway riding payment is performed by adopting the NFC method, after the outbound gate set at the subway exit senses the signal of the NFC chip in the terminal, the payment account information in the NFC chip is read, the outbound riding payment information is written into the payment account, and the terminal can end data collection when the inbound gate is detected to write the outbound riding payment information into the NFC chip.
Event 2: the first timer times out. If the event occurs, the condition for ending the data acquisition is met, and the terminal ends the data acquisition.
The first timer is a timer inside the terminal, and is started and stopped by the terminal. The first timer is used for controlling the time length of the terminal for data acquisition in a first area (such as a subway station), and the overlong time for data acquisition in the area is avoided, so that excessive data storage and processing overhead can be avoided, and the power consumption of the terminal can be saved.
Illustratively, the first timer is initiated by the terminal in response to a first trigger event. Further, the first timer may be stopped when the terminal responds to the second trigger event. Taking a subway station application scene as an example, when a terminal performs station entering, riding and paying through a station entering gate of a subway station entrance, a first timer can be started; if the first timer has not timed out when the terminal makes an outbound ride payment through the inbound gate of the subway station exit, the terminal may stop the first timer.
For example, the duration of the first timer may be set according to an application scenario, for example, when the embodiment of the present application is applied to a subway station scenario, the duration of the first timer may be set to 90 minutes.
Event 3: the second timer times out. If the event occurs, the condition for ending the data acquisition is met, and the terminal ends the data acquisition.
The second timer is a timer inside the terminal and is started or stopped by the terminal. The second timer is used for controlling the time length of data acquisition after the terminal leaves the second area, so that on one hand, cell signals in the area near the periphery of the inlet and outlet of the first area can be acquired, on the other hand, the overlong time of data acquisition can be avoided, excessive data storage and processing expenditure can be avoided, and the power consumption of the terminal can be saved.
Illustratively, the second timer is started when the terminal senses that the second zone is left. Taking the application scene of the subway station as an example, after the terminal performs the outbound riding payment through the outbound gate of the subway station outlet, the second timer can be started.
For example, the duration of the second timer may be set according to an application scenario, such as when the embodiment of the present application is applied to a subway station scenario, the duration of the second timer may be set to 15 seconds.
In the embodiment of the application, the terminal can acquire the data such as the information, the position information and the like of the cell signal through data acquisition. The terminal may store the collected data as data records that are stored to a collection data set, which may also be referred to as a collection database. The terminal can store the collected data records into the collected data set according to the collection time sequence, so that the data records in the collected data set are arranged according to the collection time sequence from front to back. Each data record in the collection data set at least comprises: the acquired cell identifier may further include an acquisition time.
Position information is also included in the data records collected at the entrance and exit of the first region. The location information may include location description information or a location identification. In other words, the position information in the embodiment of the present application may be predefined, for example, taking a subway station scene as an example, where the position information may be a subway station name, or a subway station ID, further may further include a city name where the subway station is located, the station name of the subway station where the entrance gate is located is included in the data record generated by the terminal responding to the entrance bus payment event performed by the entrance gate of the subway station, and the station name of the subway station where the exit gate is located is included in the data record generated by the terminal responding to the exit bus payment event performed by the exit gate of the subway station.
Optionally, the data record of the collected data set may further include information of tracking area identifier, operator identifier, country code, etc., where the information is derived from the cell signal received by the terminal. The tracking area identifier is used for identifying the tracking area to which the cell belongs, the operator identifier is used for identifying the operator to which the corresponding cell base station belongs, and the country code is used for identifying the country to which the cell base station belongs.
Optionally, the data record of the collected data set may further include a motion state corresponding to the data record. The terminal may determine the motion state based on detection data of a sensor (such as an acceleration sensor) provided in the terminal. Alternatively, the movement state may include a riding state and a non-riding state, and the non-riding state may further include a stay state, a walking state, a running state, and the like.
Optionally, the data record of the collected data set may further include the collection times. The number of acquisitions in the data record is used to indicate the number of times the same cell signal was received.
Optionally, the data record of the collected data set may further include evaluation information corresponding to the data record, where the evaluation information is used to evaluate the confidence level or validity of the data record. The evaluation information can be obtained by checking the acquired data record based on the position locating result when the terminal enters and exits the first area.
Optionally, cell signal strength information, such as received signal strength (received signal strength indication, RSSI), may also be included in the data record in the collection data set.
The detailed process of collecting the data set is obtained through the data collection process, please refer to fig. 4.
As shown in fig. 3, after obtaining the collected data set, the terminal may perform data processing such as data mining on the collected data set to obtain a positioning data set, where the positioning data set is used for performing position positioning and/or scene recognition.
Optionally, the data mining or data processing of the collected data set may be performed in the following two stages:
the first stage: adding position information into the data record which does not contain the position information according to the motion state corresponding to the data record and the personal riding habit portrait of the user; the personal riding habit representation of the user refers to the riding stay time of the user at each subway station (from entering to leaving from the station);
and a second stage: selecting data records meeting the confidence coefficient requirements, and generating a positioning data set according to the data records meeting the confidence coefficient requirements.
The set of positioning data is also referred to as a positioning database. Each data record in the positioning data set at least comprises: cell identity, location information.
Optionally, the data records of the positioning data set may further include tracking area identification, operator identification, country code, etc., which are derived from the corresponding data records in the acquisition data set.
Optionally, the data record of the positioning data set may further include a first scene type identifier or a second scene type identifier. Wherein the first scene type identifier is used for indicating an entrance of the first area, and the second scene type identifier is used for indicating an inner area of the first closed area. Taking the subway station application scene as an example, the inbound data record and the outbound data record include a first scene type identifier, for example, the first scene type identifier has a value of 1, which indicates that the corresponding data record is an inbound data record or an outbound data record, and a cell corresponding to a cell identifier included in the inbound data record or the outbound data record is located at a position of an entrance and an exit of the subway station. For example, if one data record in the positioning data set includes the subway station name S1 and the first scene type identifier, it indicates that the position indicated by the data record is the entrance of the subway station S1. The in-station data record contains a second scene type identifier, for example, the value of the second scene type identifier is 0, which indicates that the corresponding data record is an in-station data record, and the cell corresponding to the cell identifier contained in the in-station data record is located in the subway station. For example, if one of the data records in the positioning data set includes the subway station name S1 and the second scene type identifier, it indicates that the location indicated by the data record is an inner area (e.g., a platform area) of the subway station S1.
The collection data sets are data mined and data processed to generate a detailed description of the location data sets, see below.
As shown in fig. 3, the terminal may perform position location and/or scene recognition based on the set of location data. Further, the terminal may also perform a corresponding service processing operation according to the result of the location positioning and/or the result of the scene recognition, that is, provide a corresponding service to the user, so as to improve the user experience. Specific implementations are described below.
Based on the above-mentioned fig. 3, taking the application of the embodiment of the present application to the subway station application scenario as an example, in one implementation manner, when the terminal performs the inbound riding payment operation through the subway station inbound gate, as a response to the event, the terminal starts the data acquisition process, and when the terminal performs the outbound riding payment operation through the subway station outbound gate, as a response to the event, the terminal may end the data acquisition process. That is, the data collection process of the terminal is based on the perception driver (sensing driven data collection, SDDC), and related events in the subway station scene perceived by the equipment are used as guidance to start and end the data collection flow, so that the directional data collection in time and space ranges based on the riding behaviors of the user is realized, the data collection is concentrated in the subway station scene in time and space layers, the data collection can be performed in a targeted manner, and the data collection efficiency can be improved. On the other hand, compared with the data acquisition method adopting a manual mode to acquire the data, the data acquisition method can improve the data acquisition efficiency.
Taking a subway station scene as an example, the data records in the collected data set are ordered according to time sequence, so that the time sequence information of the whole subway riding process of a user is reserved, and a foundation is provided for subsequent data processing to generate a positioning data set for position positioning and/or scene recognition.
Fig. 4 is a schematic flow chart of a data collection method according to an embodiment of the present application, through which a terminal may start data collection when a data collection start condition is met, generate a collection data set through data collection, and end data collection when a data collection end condition is met. The process is described by taking a second trigger event as an example of an event that the terminal senses to leave a second area (such as a subway station).
In this flow, the first data record, the second data record and the third data record represent data records generated based on different situations, wherein the data record generated when the terminal senses that the terminal enters the first area is called a first data record (also called an incoming data record in a subway station scene), the data record generated by the terminal according to the received cell signal in the first area is called a second data record (also called an in-station data record in the subway station scene), and the data record generated when the terminal senses that the terminal leaves the second area is called a third data record (also called an outgoing data record in the subway station scene). The first data record, the second data record, and the third data record are stored into the collection data set.
As shown in fig. 4, the process may include the steps of:
s410: and the terminal responds to the first trigger event, starts data acquisition and generates a first data record.
Because the first trigger event is a condition for starting data collection, when the first trigger event occurs, the terminal starts data collection and generates a first data record.
The first data record includes acquisition time, cell identification, and location information. The collection time may be the time when the first trigger event occurs, or the time when the data record is generated; the cell identifier is the cell identifier contained in the cell signal received by the terminal at the position when the first trigger event occurs or before and after the first trigger event occurs; the location information is used to indicate the location where the terminal is currently located, such as the name of the location, the location ID, etc. Optionally, the terminal may obtain location information corresponding to the POI information according to the point of interest (point of interest, POI) information carried in the payment response or other responses received when entering the first area.
Optionally, the first data record may further include information such as tracking area identifier, operator identifier, country code, etc., which are derived from the cell signal received by the terminal.
Optionally, the first data record further includes a motion state. The motion state may be, for example, a motion state determined by the terminal based on detection data of an associated sensor (e.g., including an acceleration sensor) in the terminal when the first data record is generated. The embodiment of the application does not limit the detection method of the motion state.
Optionally, the first data record further includes the number of acquisitions. After receiving the cell signal, the terminal may query, according to information (for example, including cell identifier, further including information such as tracking area identifier, operator identifier, country code, etc.) included in the cell signal, a data record that has been generated in the collected data set, if no data record that includes the same information is queried, the number of collection times in the currently generated first data record is set to 1, and if data records that include the same information are queried and the number is N (N is an integer greater than or equal to 1), the number of collection times in the currently generated first data record is set to n+1.
Optionally, the first data record further includes evaluation information. For example, the evaluation information may include at least one of a verification success number, a verification failure number, and a recall rate. The verification success times are times of the terminal to verify the position locating result successfully when the terminal senses that the terminal enters a first area (such as a certain subway station), the verification failure times are times of the terminal to verify the position locating result unsuccessfully when the terminal senses that the terminal enters the first area (such as a certain subway station), and the recall rate is determined according to the verification success times and the verification failure times.
The terminal may perform location positioning and/or scene recognition according to the cell identifier included in the cell signal, and compare the location information obtained by recognition with the location information obtained according to the POI, if the location information is the same as the location information obtained according to the POI, the number of times of verification success in the first data record generated currently is increased once, otherwise, the number of times of verification failure in the first data record generated currently is increased once. Further, the terminal calculates the recall rate according to the verification success times and the verification failure times in the first data record, and adds the calculated recall rate into the first data record.
Alternatively, the recall may be calculated using the following formula:
R=TP/(TP+FN)
wherein, R represents recall rate, TP represents verification success times, and FN represents verification failure times.
Optionally, the first data record may further include a first identifier, where the first identifier is used to indicate entry into the first area. Taking a subway station application scene as an example, the first identifier is an inbound identifier, and the terminal adds the inbound identifier in a first data record generated in response to a first trigger event.
Optionally, the first data record may further include a cell signal strength. Illustratively, the terminal may record the RSSI of the cell signal into the first data record.
S420: and the terminal generates a second data record according to the received cell signal.
In one possible implementation manner, after the terminal starts the data acquisition procedure, when detecting that the cell is changed, for example, when the terminal moves from one cell signal coverage area to another cell signal coverage area, the cell identifier included in the cell signal received by the terminal is different from the cell identifier included in the cell signal received last time, and then the terminal generates the second data record according to the currently received cell signal.
In another possible implementation manner, after the terminal starts the data acquisition procedure, if it is determined that the distance has been the last time the data record was generated, the terminal is in a moving state (such as a walking state) and the moving state continues for a set period of time, the terminal may generate the second data record according to the cell signal currently received.
In another possible implementation manner, after the terminal starts the data acquisition process, if the terminal determines that the terminal is in a walking state according to the counting condition of the step counter of the terminal, and the data record is generated last time, and the step number in the duration of the walking state reaches the set threshold, the terminal may generate the second data record according to the currently received cell signal.
The second data record includes, for example, acquisition time, cell identification. The acquisition time may be the time when the terminal receives the cell signal, or the time when the data record is generated.
Optionally, the second data record may further include information such as tracking area identification, operator identification, country code, etc., which is derived from the cell signal received by the terminal.
Optionally, the second data record further includes a motion state.
Optionally, the second data record further includes the number of acquisitions.
Optionally, the second data record may further include cell signal strength.
Optionally, a second identifier may be further included in the second data record, where the second identifier is used to indicate that the second identifier is in the first area. Taking the subway station application scene as an example, the second identifier is an in-station identifier, and the terminal adds the in-station identifier in the second data record.
It should be noted that after the data acquisition is started, a plurality of second data records may be generated. For example, after starting data acquisition, the terminal may move in the first area, that is, may move from the signal coverage of one base station to the signal coverage of another base station multiple times, and each time the signal coverage of one base station moves to the signal coverage of another base station, the terminal may generate a second data record according to the cell signal sent by the current base station.
S430: and the terminal responds to the second trigger event, generates a third data record and finishes data acquisition.
In this embodiment, the second triggering event is an event that the terminal senses that the terminal leaves the second area, for example, the terminal performs contactless riding payment through an outbound gate at the entrance of the subway station, and because the second triggering event is a condition for ending the data acquisition, when the second triggering event occurs, after the third data record is generated, the terminal ends the data acquisition.
The third data record includes the acquisition time, the cell identification, and the location information. The collection time may be the time when the second trigger event occurs, or the time when the data record is generated; the cell identifier is the cell identifier contained in the cell signal received by the terminal at the position when the second trigger event occurs or before and after the second trigger event occurs; the location information is used to indicate the location where the terminal is currently located, such as the name of the location, the location ID, etc. Optionally, the terminal may obtain the location information corresponding to the POI information according to the POI information carried in the payment response or other response received when leaving the second area.
Optionally, the third data record may further include information such as tracking area identifier, operator identifier, country code, etc., which are derived from the cell signal received by the terminal.
Optionally, the third data record further includes a motion state.
Optionally, the third data record further includes the number of acquisitions.
Optionally, the third data record further includes evaluation information. For example, the evaluation information may include at least one of a verification success number, a verification failure number, and a recall rate. The verification success times are times of the terminal to verify the position locating result successfully when the terminal senses that the terminal leaves a first area (such as a certain subway station), the verification failure times are times of the terminal to verify the position locating result unsuccessfully when the terminal senses that the terminal leaves a second area (such as a certain subway station), and the recall rate is determined according to the verification success times and the verification failure times.
The terminal may perform location positioning and/or scene recognition according to the cell identifier included in the cell signal, and compare the location information obtained by recognition with the location information obtained according to the POI, if the location information is the same as the location information obtained according to the POI, the number of times of verification success in the third data record generated currently is increased once, if the location information is not the same as the location information, the number of times of verification failure in the third data record generated currently is increased once, otherwise, the number of times of verification failure in the third data record generated currently is increased once. Further, the terminal calculates the recall rate according to the verification success times and the verification failure times in the third data record, and adds the calculated recall rate into the third data record.
Optionally, the third data record may further include a cell signal strength. Illustratively, the terminal may record the RSSI of the cell signal into a third data record.
Optionally, a third identifier may be further included in the third data record, where the third identifier is used to indicate that the second area is left. Taking the subway station application scene as an example, the third identifier is an outbound identifier, and the terminal adds the outbound identifier in a third data record generated in response to the second trigger event.
Fig. 5 is a schematic flow chart of another data collection method according to an embodiment of the present application, through which a terminal may start data collection when a data collection start condition is met, generate a collection data set through data collection, and end data collection when a data collection end condition is met (for example, when a first timer expires).
As shown in fig. 5, the process may include the steps of:
s510: and the terminal responds to the first trigger event, starts data acquisition and generates a first data record.
S520: the terminal starts a first timer.
S530: the terminal judges whether the first timer is overtime or not and whether a second trigger event occurs, if the first timer is not overtime and the second trigger event does not occur, the terminal goes to S540; if the first timer times out, the process goes to S550; if the second trigger event occurs, the process proceeds to S560.
S540: the terminal generates a second data record according to the received cell signal and returns to S530.
S550: and the terminal ends the data acquisition.
S560: and the terminal responds to the second trigger event, generates a third data record and finishes data acquisition.
Alternatively, the terminal may stop the first timer after the second trigger event occurs, or after the third data record is generated.
The method of generating the first, second and third data records in fig. 5 and the content included in the data records are the same as the relevant description in fig. 4.
Taking the embodiment of the application applied to a subway station scene as an example, in the implementation mode based on fig. 5, after the terminal carries out riding payment at a subway station entrance gate, starting data acquisition and starting a first timer, if the terminal does not carry out outbound riding payment at a subway station exit gate in a longer time, the first timer is overtime, and the terminal finishes data acquisition at the moment, so that the time length of the terminal for carrying out data acquisition is controlled to be not longer than the time length of the first timer under the condition that the terminal enters the subway station and stays in the station for a long time, and the terminal power consumption can be saved.
Fig. 6 is a schematic flow chart of another data collection method according to an embodiment of the present application, through which a terminal may start data collection when a data collection start condition is met, generate a collection data set through data collection, and end data collection when a data collection end condition (such as a second timer timeout) is met.
As shown in fig. 6, the process may include the steps of:
s610: and the terminal responds to the first trigger event, starts data acquisition and generates a first data record.
S620: and the terminal generates a second data record according to the received cell signal.
S630: the terminal responds to the second trigger event, generates a third data record and starts a second timer.
S640: if the second timer times out, the process proceeds to S650, otherwise, the process proceeds to S660.
S650: and the terminal ends the data acquisition.
S660: the terminal generates a second data record according to the received cell signal and returns to S640.
The method of generating the first, second and third data records and the content included in the data records in fig. 6 are the same as the relevant description in fig. 4.
Taking the application of the embodiment of the application to a subway station scene as an example, in the implementation manner based on fig. 6, after the subway station outbound gate performs outbound riding payment, the terminal does not immediately end data acquisition, but starts a second timer, during the operation of the second timer, the terminal keeps data acquisition, and when the second timer is overtime, the terminal ends data acquisition. Therefore, the second timer can control the terminal to continuously collect data for a period of time after the terminal is out of the station, and on one hand, cell signals in the area near the periphery of the gate of the subway station can be collected to obtain more comprehensive data records; on the other hand, the overlong data acquisition time can be avoided, excessive expenditure is avoided, invalid data records are generated, and the power consumption of the terminal can be saved.
In another possible implementation manner, the first timer may be started after the first trigger event occurs, and the data collection is finished when the first timer times out; if the first timer is not overtime and a second trigger event occurs, the terminal stops the first timer and starts the second timer, and when the second timer is overtime, the terminal ends data acquisition.
Fig. 7 illustrates a data acquisition process in the embodiment of the present application, taking a subway station application scenario as an example.
When the terminal performs contactless riding payment through the inbound gate of the subway station (such as riding payment through a two-dimensional code or riding payment through NFC), the terminal receives inbound riding payment information and starts data acquisition.
The terminal generates an inbound data record according to the received cell signal, acquires a corresponding subway station name according to the POI included in the received inbound riding payment information, and adds the subway station name into the inbound data record. Optionally, the inbound data record may include: the collection time, the cell identification, the collection times, the subway station names, the movement states and the evaluation information (such as the verification success times, the verification failure times and the recall rate) can further comprise the tracking area identification, the operator identification and the country code in the inbound record. Further, the inbound record may further include an inbound identifier (i.e., a first identifier). Further, the incoming record may also include cell signal strength.
After the terminal generates the inbound data record, the scene state is updated to the inbound state, and a first timer is started.
During operation of the first timer, as the terminal moves within the subway station, the terminal may move from the signal coverage of one base station to the signal coverage of another base station multiple times, each time to a new base station signal coverage, the terminal generates an in-station data record based on the currently received cell signal. Optionally, the in-station data record may include: the acquisition time, the cell identification, the acquisition times and the motion state, and further, the in-station record can also comprise a tracking area identification, an operator identification and a country code. Further, the in-station record may also include an in-station identifier (i.e., a second identifier). Further, the intra-station record may also include cell signal strength.
If the first timer is overtime, the terminal ends the data acquisition.
During the operation of the first timer, when the terminal performs contactless riding payment (such as riding payment through a two-dimensional code or riding payment using NFC) through an outbound gate of a subway station, the terminal receives outbound riding payment information, generates an outbound data record according to the received cell signal, acquires a corresponding subway station name according to a POI included in the received outbound riding payment information, and adds the subway station name to the outbound data record. Optionally, the outbound data record may include: the collection time, the cell identification, the collection times, the subway station names, the movement states and the evaluation information (such as the verification success times, the verification failure times and the recall rate) can further comprise the tracking area identification, the operator identification and the country code in the inbound record. Further, the outbound identifier (i.e., the third identifier) may also be included in the inbound record. Further, the outbound record may also include cell signal strength.
After the terminal generates the outbound data record, a second timer is started, and the scene state is updated to be the outbound state.
During operation of the second timer, the terminal generates an intra-station data record from the received cell signal.
If the second timer is overtime, the terminal ends the data acquisition.
The data record generated by the terminal is stored in a first data set in the terminal, and the above-described embodiments can be seen for a specific implementation of the data acquisition process.
By way of example, table 1 shows an example of data records generated during a ride.
Table 1: recording the acquired data:
Figure BDA0003324447900000171
Figure BDA0003324447900000181
the data record with the number 1 is an inbound data record, the data record with the number 13 is an outbound data record, the data records with the numbers 2-12 are collected in a subway station, and the data record with the number 14 is a data record collected after outbound payment is carried out through an outbound gate. The "time" field of the data record records the time when the terminal generates the inbound data record, the "cell identification" field records the cell identification contained in the cell signal received by the terminal, the "tracking area identification" field records the tracking area identification contained in the cell signal received by the terminal, the "operator identification" field records the operator identification contained in the cell signal received by the terminal, the "country code" field records the country code contained in the received cell signal in the communication, the contents of the "subway station name" field and the "city name" field are acquired by the terminal according to the POI in the received inbound payment information, and the "acquisition times" field records the times that the terminal acquires the same cell signal. The "motion status" field records the motion status detected by the terminal. The "recall" field is used to record the recall corresponding to the inbound data record. In this example, the number of verification successes corresponding to the inbound data field is equal to 10, and the number of verification failures is equal to 0, so the recall is equal to 1. The method for determining the number of verification successes and the number of verification failures and the method for generating the recall rate can be referred to the foregoing embodiments. Wherein the "record number" field is an optional field for an index of record field identification.
It should be noted that, in this example, the values of the information such as the cell identifier, the tracking area identifier, the operator identifier, the country code and the like in the data record are only exemplary descriptions for illustrating the embodiments of the present application, and do not represent the values in the real scene.
Based on the implementation of fig. 7, during the process from a user entering a subway station to exiting the subway station, a terminal held by the user can perform data acquisition in the subway station, and a data basis and a data source are provided for generating a timing data set for performing position location and/or scene recognition in the subway station scene.
The terminal can perform data processing on the collected data set to obtain a positioning data set for performing position positioning and/or scene recognition. For example, the terminal may process the collected data set according to a set time or period to obtain the positioning data set. For example, the terminal may process the data records collected for the day at a set time of day (e.g., at night when the terminal is loaded less). The method for generating a positioning data set by a terminal according to a collected data set is described below by taking a subway station application scene as an example.
Optionally, the data mining operation performed by the terminal on the data records in the collected data set may include a first stage data mining and a second stage data mining. Optionally, the data record after the first-stage data mining is completed may be stored in an intermediate data set, and the second-stage data mining is performed based on the intermediate data set, that is, the intermediate data set may be obtained by performing the first-stage data mining on the collected data set, and the positioning data set may be obtained by performing the second-stage data mining on the intermediate data set. Of course, the first-stage data mining and the second-stage data mining may also be directly performed on the collected data set to obtain the positioning data set.
Optionally, the first stage data mining may include: and adding the position information into the data record without the position information according to the motion state corresponding to the data record. Optionally, the method may further include: a first scene type identification is added to the inbound data record and the outbound data record, and a second scene type identification is added to the in-station data record.
The second stage of data mining may include: and selecting the data records meeting the confidence coefficient requirements according to the evaluation information, the acquisition times and other information of the data records, and generating a positioning data set according to the selected data records meeting the confidence coefficient requirements.
The data mining process is described in detail below.
Optionally, before adding the position information in the station data records that do not include the position information, the terminal may first segment the data records in the collected data set according to the single riding process, so as to obtain the data records corresponding to the single riding process. The single ride process includes a process from entering a subway station to exiting the subway station. In a possible implementation manner, if an inbound identifier is set in an inbound data record of the collected data set and an outbound identifier is set in an outbound data record, the terminal may segment the data record according to the inbound identifier and the outbound identifier. In another possible implementation manner, if the inbound data record in the collected data set is not provided with an inbound identifier and the outbound data record is not provided with an outbound identifier, the terminal may segment the data records according to the characteristic that the inbound data record and the outbound data record both include position information and the time sequence of the data records in the collected data set. Further, if no inbound identifier, outbound identifier or intra-station identifier is set in the data records in the collected data set, after the data records corresponding to the single riding process are divided, corresponding identifiers, such as inbound identifier, outbound identifier or intra-station identifier, can be added in the data records corresponding to the single riding process, so that the subsequent data mining is facilitated.
Further, if the total duration corresponding to the data records in the stations with the continuous plurality of movement states being riding states is smaller than the set threshold value, the movement states of the data records in the stations with the plurality of riding states are corrected to be in a non-riding state, such as a walking state or a stay state.
For example, for data records corresponding to a single riding process, position information may be added to the in-station data records that do not include position information according to the motion state corresponding to the data records. For example, for a data record corresponding to a single ride, the process of adding location information to the in-station data record may include: and adding subway station position information into the station data record between the first station data record and the second station data record adjacent to the inbound data record according to the sequence from front to back of the acquisition time, wherein the added subway station position information is the same as the subway station position information in the inbound data record. The second station internal data record is a station internal data record with a first motion state being a riding state in the inbound data records which are arranged in sequence from front to back according to the acquisition time. And adding subway station position information into the station data record between the third station data record and the fourth station data record adjacent to the outbound data record according to the sequence of the acquisition time from back to front, wherein the added subway station position information is the same as the subway station position information in the outbound data record. The fourth station internal data record is a station internal data record with the first motion state being a riding state in the inbound data records which are arranged in sequence from the back to the front according to the acquisition time.
Fig. 8 shows a schematic diagram of an implementation of adding location information in a data record. As shown in fig. 8, the data record with the number equal to 1 is an inbound data record, the data record with the number equal to 13 is an outbound data record, the inbound data record and the outbound data record, and the inbound data record and the outbound data record and the data record therebetween are data records corresponding to a single riding process. Wherein, the 'subway station name' in the station data records with the numbers of 2-12 is empty. When adding position information to the data record in the non-riding state of the numbers 2-12, the system can go down from the incoming data record until the data record in the first riding state (i.e. the data record with the number equal to 6), and according to the subway station name S1 in the incoming data record, add the same subway station name to the data record with the number of 2-5, go up from the outgoing data record until the data record in the first riding state (i.e. the data record with the number equal to 10), and according to the subway station name S3 in the outgoing data record, add the same subway station name to the data record with the number of 11-12.
It should be noted that the above only illustrates a method for adding location information in an in-station data record that does not include location information, which is not limited by the embodiment of the present application.
Taking the collected data records shown in table 1 as an example, in the first stage of data mining, according to the motion state corresponding to each data record, a subway station name S1 and a city a may be added to the data records with numbers 2-5, and a subway station name S3 and a city a may be added to the data records with numbers 11-12, as shown in table 2.
Table 2: data record after data mining in the first stage:
Figure BDA0003324447900000201
in other embodiments of the present application, the terminal may add location information to the in-station data records in the collected data set based on user behavior (e.g., stay time in the in-station subway station and out-station subway station) and motion status. For example, for a data record corresponding to a single ride, the following processing operations are performed:
operation 1: determining a first time length (i.e. the stay time length in the subway station of the arrival) between the data record of the arrival and the data record in the station in the first riding state according to the sequence of time from front to back, adding the first time length into a stay time length set corresponding to the subway station of the arrival, and determining a stay time length threshold corresponding to the subway station of the arrival according to the updated stay time length in the stay time length set corresponding to the subway station of the arrival; if the first time length is greater than the inbound stay time threshold, selecting an in-station data record in the inbound stay time threshold by taking the acquisition time of the inbound data record as a starting point, and adding subway station position information in the inbound data record into the selected in-station data record; otherwise, subway station position information in an inbound data record is added to an in-station data record (excluding the data record of the riding status) between the inbound data record and the first riding status data record.
Operation 2: determining a second duration (i.e. the duration of stay in the outbound subway station) between the outbound data record and the data record of the first riding state according to the sequence of time from back to front, adding the second duration into a set of duration of stay corresponding to the outbound subway station, and determining an outbound duration threshold corresponding to the outbound subway station according to the updated duration of stay in the set of duration of stay corresponding to the outbound subway station; if the second time length is longer than the outbound stay time threshold, taking the acquisition time of the outbound data record as a starting point, selecting the in-station data record within the outbound stay time threshold, and adding the subway station position information in the outbound data record into the selected in-station data record; otherwise, subway station position information in an outbound data record is added to an in-station data record (excluding the data record of the ride state) between the outbound data record and the first ride state data record.
In the implementation manner, the corresponding stay time length set of one subway station comprises historical information of the time length of the terminal in the subway station for a plurality of times, a stay time length threshold value is dynamically determined based on the stay time length in the set, and then a data record needing to be added with position information is selected according to the size relation between the current stay time length of the terminal in the subway station and the stay time length threshold value, so that the data record in the station which is suitable for the behavior habit of the user can be selected for position addition according to the behavior habit of the user, and is used as a data record for subsequent data mining to obtain data sources for position positioning and/or scene recognition, so that the finally obtained data record for position positioning and/or scene recognition accords with the behavior habit of the user, and the reliability of position positioning and/or scene recognition can be improved.
Optionally, the method for determining the inbound stay time threshold corresponding to the inbound subway station according to the updated stay time set corresponding to the inbound subway station (hereinafter referred to as stay time set 1) may include: if the number of the stay time lengths in the updated stay time length set 1 is smaller than the set threshold, determining that the inbound stay time length threshold is equal to the initial value, otherwise, determining the inbound stay time length threshold according to the stay time lengths in the stay time length set 1, for example, sorting the stay time lengths in the stay time length set 1 from small to large, dividing the stay time lengths into four equal parts, and determining the stay time length at the 3 rd division point as the inbound stay time length threshold, so that the determined stay time length threshold is matched with the behavior habit of the user. Of course, the embodiment of the present application may also calculate the stay time threshold by using other algorithms based on the stay time in the stay time set 1, which is not limited in this embodiment of the present application. The method for determining the threshold value of the stay time of the outbound subway station according to the updated stay time set corresponding to the outbound subway station is similar to the method.
Optionally, when the number of the stay durations in the stay duration set reaches the upper limit of the number, each newly added stay duration may delete the stay duration added earliest in the stay duration set. Illustratively, the upper limit of the number is equal to 100.
Fig. 9 shows a schematic flow of adding location information in a data record. As shown in fig. 9, the process may include the steps of:
s710: for the data records corresponding to the single ride, traversing downwards from the inbound data record and traversing upwards from the outbound data record.
S730: when traversing the data record to the first riding state, the flow proceeds to S740.
S740: for the downward traversing process from the inbound record, calculating a first time length from the inbound data record to the data record of the riding state of the current traversal, wherein the first time length is the stay time length in the inbound subway station. And adding the first time length into a stay time length set corresponding to the inbound subway station, so that the stay time length set is updated. By adopting the same method, for the upward traversing process from the outbound data record, determining the outbound stay time threshold corresponding to the outbound subway station.
S750: determining an inbound stay time threshold corresponding to the inbound subway station according to stay time in a stay time set corresponding to the inbound subway station; and determining an inbound stay time threshold corresponding to the outbound subway station according to the stay time in the stay time set corresponding to the outbound subway station.
S760: if the first time length (i.e., the stay time length in the inbound subway station) is greater than the inbound stay time length threshold corresponding to the inbound subway station, the method proceeds to S761, otherwise, the method proceeds to S762.
S761: and taking the acquisition time of the inbound data records as a starting point, selecting the in-station data records downwards, wherein the stay time corresponding to the selected in-station data records does not exceed the stay time threshold value, and adding the station names of the inbound subway stations into the selected in-station data records.
S762: from the inbound data record down to the data record of the first riding state, the station name of the inbound subway station is added to the in-station data record (not including the data record of the riding state) in the range.
For a specific implementation of this step, reference may be made to the previous embodiments.
S770-772 are processes for selecting corresponding in-station data records to add position information according to the magnitude relation between the stay time in the out-station subway station and the out-station stay time threshold corresponding to the out-station subway station in the upward traversing process of the out-station data records, and the specific implementation manner is similar to S760-762.
After the first stage data mining is completed, a second stage data mining may be performed to obtain a positioning data set. When the second-stage data mining is performed, a data record with the confidence meeting the requirement can be selected from the collected data set (for the case of performing the first-stage data mining and the second-stage data mining based on the collected data set), or a data record with the confidence meeting the requirement can be selected from the intermediate data set (for example, for the case of performing the first-stage data mining based on the collected data set to obtain the intermediate data set first and then performing the second-stage data mining based on the intermediate data set to obtain the positioning data set), and the positioning data set is obtained according to the selected data record.
Illustratively, the data record for which the confidence level meets the requirements satisfies at least one of the following conditions:
condition 1: the data record is an inbound data record.
That is, the inbound data record is considered to belong to a data record for which the confidence meets the requirements. The determination of which data records are inbound data records may be based on the inbound identification in the data records, or whether the data records are inbound data records may be based on whether the data records contain evaluation information.
Condition 2: and recording the incoming data with the recall rate larger than the set threshold.
Inbound data records with recall greater than a set threshold may be considered data records with confidence that are satisfactory. In the embodiment of the application, the reliability or effectiveness of the data record is represented by the recall rate, and the higher recall rate of the data record indicates that the reliability of the data record is higher, so that the data record with higher confidence can be selected for subsequent position location and/or scene recognition in the embodiment of the application, and the reliability of the position location and/or scene recognition can be further ensured.
Condition 3: the data record is an outbound data record.
That is, the outbound data record is considered to belong to a data record for which the confidence meets the requirements. The determination of which data records are outbound data records may be based on the outbound identification in the data records, or whether the data records are outbound data records may be based on whether the data records contain evaluation information.
Condition 4: and (5) recording outbound data with recall rate greater than a set threshold.
Condition 5: and (5) in-station data recording with the edge degree meeting the requirement.
The edge degree is used for representing the relative position between a cell indicated by a cell identifier and the center of a subway station, the edge degree is represented by the ratio of the acquisition times in the data records in the station to the maximum acquisition times, and the maximum acquisition times are the maximum acquisition times in all the data records in the station containing the same subway station position information.
For example, a corresponding edge degree may be determined for the in-station data record, to characterize whether the cell location corresponding to the in-station data record belongs to an edge location or a center location within the subway station. For example, for an in-station data record, the calculation formula of its corresponding edge degree can be expressed as:
α=count/maxCnt
wherein α is the edge degree of the data record in the station, count is the collection times contained in the data record in the station, maxCnt is the maximum collection times, and the maximum collection times refers to: and acquiring the maximum acquisition times in all the data records containing the subway station in the data set or the intermediate data set according to the subway station indicated by the position information contained in the data record in the station.
The value of the edge degree is larger than 0 and smaller than or equal to 1, and the larger the value of the edge degree is, the more likely the cell position corresponding to the corresponding data record is the center position in the subway station. In the embodiments of the present application, the intra-station data record having an edge degree greater than the set threshold is considered to be a data record satisfying the confidence requirement.
Sixth condition: data records (including inbound data records, in-station data records, and outbound data records) with acquisition times after a specified time. The appointed time is before the current time, and the duration from the current time is equal to the set duration. For example, a data record obtained within a set period of time starting at the current time is considered to be a data record of the acquisition time after a specified time. Wherein the set period of time is configurable, such as 180 days, i.e. the data record generated within 180 days from this day is considered to meet the sixth condition. The reliability of the data record is higher as the data record is closer to the current time, so that the reliability of the data record can be ensured by selecting the data record generated in a period of time closer to the current time, and the reliability of the subsequent position location or scene identification by using the data record can be ensured. On the other hand, by performing aging processing on the data, the storage overhead of the terminal can be saved.
Seventh condition: the movement state is not a data record of the riding state. In this embodiment of the present application, the data record in the station with the movement state being the riding state is generally collected when the terminal is located on the subway train, and the collected cell signal may be a cell signal in the subway tunnel.
The above conditions may be arbitrarily combined. For example, after excluding the data records whose motion state is not the riding state and the data records whose acquisition time is before the specified time, the inbound data records and outbound data records whose recall rate is greater than the set threshold value and the in-station data records whose edge degree is greater than the set threshold value may be selected from the remaining data records for generating the data records in the positioning data set.
Illustratively, table 3 shows the data records meeting the confidence requirement obtained after the second stage data mining based on the data records after the first stage data mining shown in table 2.
As shown in table 2, taking the data records of the number 2 and the number 11 as an example, the edge degree corresponding to the data record of the number 2 is equal to 7/(10+7+5+6+5) =0.2; the data record of number 11 corresponds to an edge degree equal to 8/(8+8+10+4) =0.27. Because the edge degrees corresponding to the data records in the stations with the numbers of 2-5, 11-12 and 14 are all larger than the set threshold value (the threshold value is equal to 0.1), and the data records in the stations are all recently generated data records (such as the data records generated within 10 days), the data records in the stations all meet the confidence requirement. Because the recall rate of the inbound data record of number 1 and the outbound data record of number 13 are both greater than the set threshold (the threshold is equal to 0.9) and are both recently generated data records, the inbound data record of number 1 and the outbound data record of number 13 also meet the confidence requirements. The data records generated by the terminal for position location and/or scene recognition according to the data records meeting the confidence requirements can be shown in table 3.
Table 3: and (3) performing data record meeting the confidence requirement after performing the second stage data mining:
Figure BDA0003324447900000241
for the outbound data record and the inbound data record, the value of the scene type field can be set to be 1, which indicates that the scene corresponding to the corresponding data record is the scene of the entrance and the exit of the subway station, and for the data record in the station, the value of the scene type field can be set to be 0, which indicates that the scene corresponding to the corresponding data record is the scene in the subway station.
Fig. 10 illustrates a process for selecting a data record from a collection of acquired data based on the definition of the conditions described above, resulting in a positioning data set. As shown, the path may include: at S801, the data record before 6 months in the collected data set is cleared, and of course, the 6 months are only examples, and other time periods may be also used, and the time period may be set according to the storage capability of the terminal. Through S801, the retained data record can be made to meet the sixth condition described above. For each data record remaining, the following steps are performed:
s802: if the number of successful verification times corresponding to the current data record is greater than 0 or the number of failed verification times is greater than 0, the process proceeds to S805, and if the number of successful verification times or the number of failed verification times is not set in the current data record, the process proceeds to S803.
In this embodiment of the present application, only the inbound data record and the outbound data record are set with the verification success number and/or the verification failure number, and if the verification success number or the verification failure number is greater than 0, the verification is indicated to be verified at least once. Therefore, if the current data record is the inbound data record or the outbound data record, the determination in S802 is yes, that is, the above condition 1 or condition 3 is satisfied.
If the current data record is an in-station data record, since the corresponding verification success number and verification failure number are not set in the in-station data record, it is necessary to determine whether the current in-station data record satisfies the fifth condition according to the edge degree.
S803: and judging whether the acquisition times contained in the current data record are more than or equal to 3 times, if so, switching to S804, otherwise, switching to S806.
In this step, if the number of acquisitions included in the current data record is less than 3, it indicates that the number of acquisitions of the cell identifier in the current data record is less, and it is highly likely that the cell identifier is the cell identifier of the edge cell in the subway station, and thus, the process proceeds to S806. If the number of acquisitions included in the current data record is greater than or equal to 3, the process further goes to S804 to determine whether the cell identifier in the current data record is the cell identifier of the edge cell in the subway station according to the edge degree.
It should be noted that, in this step, only the judgment threshold value of the number of acquisitions is equal to 3 as an example, and the embodiment of the present application does not limit the judgment threshold value.
S804: and determining whether the edge degree corresponding to the current data record is greater than or equal to 0.1, if so, switching to S805, otherwise, switching to S806.
In this step, if the edge degree corresponding to the current data record is greater than or equal to 0.1, it indicates that the cell corresponding to the cell identifier in the current data record is likely to be the center cell in the subway station.
It should be noted that, in this step, only the judgment threshold value of the edge degree is equal to 0.1 as an example, and the embodiment of the present application does not limit the judgment threshold value.
S805: data records in the positioning data set are generated according to the current data records.
S806: the cell identity in the current data record is added to the off-site cell list.
Optionally, in the embodiment of the present application, the terminal may further perform statistics or mining on the user behavior according to the data record in the collected data set, for example, determine the commuting behavior of the user according to the data record in the collected data set, and exemplarily, may determine information such as a working time or time period, a commuting duration, a commuting line, and the like of the user according to the data record in the collected data set.
In other embodiments of the present application, after the terminal generates the collected data set, the collected data set may be sent to a server on the network side, where the server performs data mining on the collected data set sent by the terminal and other terminals (such as performing first-stage data mining and second-stage data mining), to generate a positioning data set for location positioning and/or scene recognition. In other embodiments, after the terminal generates the collected data set, the collected data set may be subjected to a first stage data mining to obtain an intermediate data set, and the intermediate data set is sent to a server, where the server performs data mining and other processing data processing (such as performing a second stage data mining) on the intermediate data set sent by the terminal and other terminals, so as to generate a positioning data set for location positioning and/or scene recognition. Further, the server may publish the positioning data set, so that the terminal obtains the positioning data set, and may perform location positioning and/or scene recognition according to the positioning data set.
Illustratively, fig. 11 shows a schematic diagram of a terminal and a network side server cooperatively cooperating to generate a set of positioning data. As shown in the figure, the terminals 1 to N (N is an integer greater than 1) are located in the same city, the terminals 1 to N respectively generate collected data sets, and respectively perform first-stage data mining on the respective generated collected data sets (for example, including dividing data records corresponding to a single riding process, adding position information into the data records not including position information to obtain intermediate data sets), and the terminals 1 to N respectively send the respective intermediate data sets to a server on a network side. The foregoing embodiments may be referred to as an implementation manner in which the terminals 1 to N generate the collected data set, and an implementation manner in which the collected data set is subjected to the first-stage data mining.
The server performs second-stage data mining (for example, includes selecting data records with confidence meeting requirements according to evaluation information) according to the intermediate data sets sent from the terminal 1 to the terminal N, obtains positioning data sets for position positioning and scene recognition, and sends the positioning data sets to the terminal 1 to the terminal N respectively through a data publishing function.
For example, the server may combine the intermediate data sets sent by the terminals, for example, combine the data records having the same cell information (including, for example, cell identifier, further including, tracking area identifier, operator identifier, country code, etc.) and location information in the intermediate data sets of different terminals. For example, if the cell identity, the location information (such as subway station name and city name) and the operator identity contained in the M data records collected by the terminals 1 to N are the same, the M data records may be combined into one data record. Optionally, the number of acquisitions in the combined data records is the sum of the number of acquisitions in the M inbound data records, and the edge degree calculation may be performed based on the combined number of acquisitions. Optionally, the time in the merged data record is the earliest time in the M data records, so that the aging of the data records is performed based on the time. Optionally, if the M inbound data records are combined, the number of verification successes in the combined inbound data records is a sum of the number of verification successes in the M inbound data records, the number of verification failures in the combined inbound data records is a sum of the number of verification failures in the M inbound data records, and the recall in the combined inbound data records is calculated according to the number of verification successes and the number of verification failures in the combined inbound data records.
The method for the server to perform the second stage data mining on the combined data set to obtain the second data set is basically the same as the method for the terminal to perform the second stage data mining on the terminal to obtain the second data set in the above embodiment.
The server performs data processing operations such as data mining on the intermediate data sets sent by different terminals to generate a positioning data set for performing position positioning and/or scene recognition, so that the generated positioning data set contains wider and comprehensive data records, namely data records containing more cells, and the position positioning and/or scene recognition can be performed for the terminals better.
Optionally, if the data records collected from the terminal 1 to the terminal N cover multiple cities, the server may first store the data records belonging to the same city in the data sets corresponding to the cities, and process the data sets corresponding to the cities respectively, so as to obtain positioning data sets corresponding to the cities and used for performing position positioning and/or scene recognition. When the server sends the positioning data set to the terminal, the server can send the positioning data set corresponding to the corresponding city to the terminal according to the city in which the terminal is located.
According to the method for generating the positioning data set for positioning and/or scene recognition by adopting the cooperation of the terminal and the server, the community data can be effectively utilized while the riding behavior habit of the user is reserved at the terminal side, the cell information in the subway station can be accurately excavated, the data in the subdivision scene, such as the cell information at the position of the subway station, can be further excavated, and the cell information in the tunnel between subway stations can be further obtained, so that the position positioning or scene recognition result is more accurate.
For example, fig. 12 shows a schematic diagram of a position location procedure provided in an embodiment of the present application, where, as shown in the figure, the procedure may include:
s1010: if the first condition is satisfied, the process proceeds to S1020.
Optionally, in the embodiment of the present application, when the position location opportunity arrives, the terminal may determine whether the first condition is satisfied, if it is determined that the first condition is not satisfied, the position location and/or the scene recognition operation is not performed, otherwise, the position location and/or the scene recognition operation is performed.
Optionally, the meeting the first condition may include: the position location opportunity arrives and satisfies the position location starting condition, thereby the position location is started when the position location opportunity arrives and satisfies the position location starting condition, so as to reduce invalid position location operation and reduce terminal power consumption.
Alternatively, when the terminal is on screen and performs screen unlocking, or when a change of a cell where the terminal is located is detected during the screen-on period of the terminal, or when a walking motion state is detected in the screen-on state of the terminal, or when the terminal in the screen-off state is periodically awakened, the position positioning opportunity can be considered to come.
Optionally, the criterion for determining whether the position location starting condition is satisfied may include: whether the cell identifier contained in the cell signal received by the terminal is in the presence Jing Shibie shielding list, whether the cell identifier contained in the cell signal received by the terminal is identical to the cell identifier contained in the cell signal received when the event of the arrival of the last position location opportunity occurs, and the like. For example, if the cell identity included in the cell signal received by the terminal is not in the presence Jing Shibie mask list, the motion state of the terminal is not in the riding state, and the cell identity included in the cell signal received by the terminal is different from the cell identity included in the cell signal received when the event of the arrival of the last position location opportunity occurs, position location and/or scene recognition may be started.
Illustratively, the case where the first condition is satisfied may include one of the following cases:
Case 1: when the terminal is on screen and the screen is unlocked, if the cell identifier contained in the cell signal received by the terminal is not in the field Jing Shibie shielding list and the current motion state of the terminal is a non-riding state, the first condition is met. Alternatively, the terminal may determine the motion state of the terminal based on detection data of an associated sensor (such as an acceleration sensor) provided in the terminal.
Case 2: when the terminal continuously lights the screen and detects that the terminal is in a continuous walking motion state, if a cell identifier contained in a cell signal received by the terminal is not in the Jing Shibie shielding list, a first condition is met;
case 3: when the terminal detects that the cell is changed during the screen-on period, if the cell identifier contained in the cell signal received by the terminal is not in the field Jing Shibie shielding list and the current motion state of the terminal is a non-riding state, the first condition is met;
case 4: when the terminal in the off-screen state is periodically awakened, if the change of the cell is detected, namely the current cell is different from the cell in which the terminal is awakened last time, and the cell identification contained in the cell signal received by the terminal is not in the field Jing Shibie shielding list and the current motion state of the terminal is in the non-riding state, the first condition is met.
It should be noted that the above is only exemplary to list a few cases that satisfy the first condition, and the embodiment of the present application is not limited thereto.
When the position location opportunity arrives, whether to start position location and/or scene recognition is determined, for example, if the cell identifier received by the terminal is in the scene recognition shielding list, that is, the current position belongs to a non-subway station area, the position location and/or scene recognition in the subway station is not required to be started, so that the power consumption overhead of the terminal can be reduced as much as possible while the position location coverage rate is ensured.
The scene recognition mask list may include a cell identifier, where the cell identifier includes a cell identifier of a cell outside the subway station, for example, a cell identifier of a home and company area. The scene recognition mask list may be preconfigured, for example, the cell identification of the area outside the subway station is set in the scene recognition mask list in advance. The cell identities in the scene recognition mask list can also be obtained by the terminal through self-learning.
Illustratively, the process of obtaining the cell identity of the area outside the subway station by the terminal through self-learning and adding to the field Jing Shibie mask list may include: if the terminal fails to query the positioning data set according to the cell identifier contained in the received cell signal, and the accumulated number of times of query failure reaches a set number of times threshold (for example, greater than or equal to 20 times) when the positioning data set is queried according to the cell identifier, which indicates that the cell identifier may be a cell identifier of a cell outside the subway station, the cell identifier is added to the field Jing Shibie shielding list.
Alternatively, all or part of the cell identifiers in the scene recognition mask list may be derived from an off-subway-station cell list, where the cell identifiers included in the off-subway-station cell list are identifiers of non-subway-station area cells collected by the terminal. When the list of off-site cells is updated, the scene recognition mask list may be updated based on the updated list of off-site cells. Optionally, the list of cells outside the subway station may be cleaned according to a set period, and illustratively, the cell identifier that does not appear in the last half year is deleted according to the set period.
Alternatively, the cell identifier in the cell list outside the subway station may be preconfigured, or may be obtained by a method in the foregoing embodiment, or may be obtained by a self-learning method, for example, if the terminal queries for the positioning data set according to the cell identifier included in the received cell signal, and the cumulative number of times of querying for the positioning data set according to the cell identifier reaches a set number of times threshold, the cell identifier is added to the cell list outside the station.
S1020: the terminal obtains a cell signal of the current position, and determines the position information of the current position according to the cell signal.
Optionally, the terminal may determine the location information corresponding to the cell signal at the current location according to the correspondence between the cell signal and the location information. Optionally, the correspondence between the cell signal and the location information includes correspondence between an identifier of the cell signal and the location information, and the terminal may determine, according to the identifier of the cell signal at the current location, the location information corresponding to the identifier of the cell signal. Optionally, the correspondence between the cell signal and the location information includes correspondence between the identifier and the strength of the cell signal and the location information, and the terminal may determine the location information corresponding to the identifier and the strength of the cell signal according to the identifier and the strength of the cell signal in the current location.
Optionally, the correspondence between the cell signal and the location information may be stored as a positioning data set, and the terminal may query the positioning data set in the terminal according to the cell identifier in the cell signal, to obtain location information corresponding to the cell identifier, where the location information is a location positioning result.
In the step, the terminal queries a positioning data set according to the cell identifier, and can obtain a data record containing the cell identifier, wherein the data record comprises position information and/or scene information corresponding to the cell identifier. The terminal determines the position information and/or the scene information in the data record as a position locating result or a scene recognition result.
Wherein, the location information may include subway station names, city names, etc. The scene information may include information such as a first scene type identification or a second scene identification.
The positioning data set may be generated by the terminal based on the collected data set, or may be configured to the terminal by the network side, which is not limited in the embodiment of the present application.
Further, after S1020, the above-mentioned process may further include the following steps:
s1030: and the terminal executes the service matched with the current position according to the determined position information.
In a possible implementation manner, taking a subway station application scenario as an example, when the terminal identifies that the subway station is currently at an entrance or exit position of the subway station, an identification code for subway train payment is automatically displayed on a terminal screen, so that a user can conveniently use the identification code to perform code scanning payment. If the terminal further includes a first scene type identifier in the data record including the cell identifier according to the cell identifier included in the received cell signal, which indicates that the location indicated by the data record is an entrance or an exit of the subway station, the terminal displays an identifier code for subway train payment on a screen of the terminal.
Further, if the terminal receives the inbound riding payment response, the terminal can determine that the current inbound scene is the inbound scene, so that the time information of the subway train arriving at the subway station can be acquired and displayed on a terminal screen or broadcasted in a voice mode, and a user can know the prediction information of the subway train arrival time.
Further, if the terminal receives the outbound riding payment response information, the terminal can determine that the terminal is currently an outbound scene, so that the terminal can obtain the road traffic information, weather information and the like of the position after obtaining the position information (such as a subway station name) corresponding to the cell identifier according to the positioning data set, and output the obtained information, such as displaying on a terminal screen or broadcasting through voice. The method for generating the off-site cell list can be seen from the foregoing embodiments.
In a possible implementation manner, taking a subway station application scene as an example, when the terminal recognizes that the current position is in an internal area of a subway station, arrival time prediction information of a subway train is output, so that a user can take a bus conveniently. The terminal may further obtain and output time prediction information of arrival of the subway train at the subway station if the terminal is currently in a non-riding state. For example, the arrival time of the subway train can be displayed on the screen of the terminal, and can also be broadcasted in a voice mode.
In one possible implementation, taking a subway application scenario as an example, the terminal may perform a stop-arrival reminder. The terminal, if the terminal determines that the current riding state is the current riding state, then the terminal outputs a prompt message for reaching the subway station (namely, the subway station name contained in the queried data record).
In a possible implementation manner, taking a subway application scenario as an example, when the terminal queries the positioning data set according to the cell identifier contained in the received cell signal, and obtains the corresponding subway station name, push information associated with the subway station name can be obtained, and the push information is displayed on a screen of the terminal. Alternatively, the push information may include, but is not limited to, commercial promotional information or the like in the area surrounding the subway station.
Fig. 13 illustrates a position location process according to an embodiment of the present application. As shown in fig. 13, the position location procedure may be initiated in the following scenario:
Case 1: if S1101-S1102, after the terminal is on the screen and performs screen unlocking, the cell identifier included in the currently received cell signal is obtained, as shown in S1140-1150, the terminal determines whether the cell identifier is in the scene recognition mask list, if the cell identifier is not in the scene Jing Shibie mask list, further determines whether the current motion state of the terminal is in a riding state, i.e. if the terminal is on a vehicle, if the current motion state of the terminal is not in the riding state, a subsequent position locating process is started, otherwise, the position locating process is not started.
Case 2: if the motion state of the terminal is detected to be a continuous walking state during the continuous screen lighting period of the terminal as shown in S1111-S1112, the terminal acquires the cell identifier contained in the currently received cell signal, and judges whether the cell identifier is in the scene recognition shielding list as shown in S1140-1150, if the cell identifier is not in the scene Jing Shibie shielding list, further judges whether the current motion state of the terminal is in a riding state, namely, whether the terminal is on a vehicle, if the current motion state of the terminal is not in the riding state, the subsequent position positioning process is started, otherwise, the position positioning process is not started.
Case 3: as shown in S1121-1122, during the screen-on period of the terminal, if it is detected that the cell in which the terminal is located changes, that is, the signal coverage of one cell moves to the signal coverage of another cell, the cell identifier contained in the currently received cell signal is acquired, as shown in S1140-S1150, the terminal determines whether the cell identifier is in the scene recognition mask list, if the cell identifier is not in the scene Jing Shibie mask list, it further determines whether the current motion state of the terminal is in a riding state, that is, if the terminal is in a vehicle, then the subsequent position location procedure is started, and if the current motion state of the terminal is not in the riding state, otherwise, the position location procedure is not started.
Case 4: as shown in S1131-1133, when a terminal in an off-screen state is periodically awakened, acquiring a cell identifier contained in a currently received cell signal, and judging whether the cell identifier is the same as a cell identifier contained in a cell signal received when the terminal is awakened last time; as shown in S1040-S1050, if different, it is further determined whether the cell identifier is in the scene recognition mask list, if the cell identifier is not in the scene Jing Shibie mask list, it is further determined whether the current motion state of the terminal is in a riding state, that is, whether the terminal is on a vehicle, if the current motion state of the terminal is not in the riding state, the subsequent position locating process is started, otherwise, the position locating process is not started.
At S1160, the terminal performs position location according to the second data set.
In S1170, the terminal determines whether the identified position or scene is a position or scene in the subway station, if so, the process proceeds to S1180, otherwise, the process proceeds to S1190.
In the step, if the terminal inquires the subway station name corresponding to the cell identifier from the second data set according to the cell identifier, the current position of the terminal can be determined to be in the subway station. If the terminal does not inquire the subway station name corresponding to the cell identifier from the second data set according to the cell identifier, the terminal can be determined not to be in the subway station currently.
S1180: and updating the current scene state into the subway station by the terminal.
S1190: and updating the current scene state by the terminal to be outside the subway station.
Further, after S1190, the following steps may be performed:
s1191: updating the query failure times corresponding to the cell identifiers by the terminal, and if the query failure times reach a set time threshold value, turning to S1092;
s1192: the terminal adds the cell identity to the off-site cell list. Further, the terminal may update the time corresponding to the cell identifier in the off-site cell list.
Further, the above process may further include:
S1193: the terminal may update the scene recognition mask list based on the off-site cell list, e.g., add the cell identity in the off-site cell list to the field Jing Shibie mask list.
Further, the terminal may perform aging processing on the cell identifier in the off-site cell list according to the set period, for example, delete the cell identifier with an earlier time.
Taking the example that the terminal includes the positioning data set shown in table 3 as an example, the user holds the terminal to enter the subway station S1 to the station entrance gate, the user lights the screen of the terminal and unlocks the screen, the cell identifier included in the cell signal currently received by the terminal is 0001, the cell identifier 0001 is determined not to be included in the scene recognition shielding list, and the terminal is in the non-riding state currently, the terminal queries the second data set according to the cell identifier, the value of the scene type field in the queried data record is 1, the current scene is the entrance and exit scene of the subway station, so that the terminal automatically displays the two-dimension code for subway riding payment on the screen of the terminal, the user can pay riding payment, the user is avoided from opening the corresponding application program, and the user operation of the two-dimension code for subway riding payment is opened, and the user experience is improved.
When a user enters a station entering gate and holds the terminal to walk in a subway station, the terminal continuously lightens a screen, the terminal detects that a cell is changed, the terminal obtains a cell identifier contained in a currently received cell signal, the cell identifier contained in the cell signal is 0010, the terminal judges that the cell identifier is not contained in a shielding list, so that a positioning data set is inquired according to the cell identifier, a value of a scene type field in an inquired data record is 0, the current scene is a scene in the subway station, the terminal obtains subway train arrival information of the subway station S1 at the current time from a network side, and the information is displayed on the screen of the terminal, so that the user can know the arrival time of the subway train conveniently, and user experience is improved.
When a user holds the terminal and takes a subway train, the terminal continuously lights a screen, detects that a cell is changed, and judges that a cell identifier contained in a currently received cell signal is 1011, the terminal judges that the cell identifier is not included in a shielding list, so that a positioning data set is inquired according to the cell identifier, a subway station name field in the inquired data record is S3, and a scene type field in the inquired data record is 0, prompt information can be displayed on the screen of the terminal (or otherwise, prompt information is output, such as voice output is adopted) so as to prompt the user to arrive at the subway station S3, and the user is prevented from sitting at the station.
When a user holds the terminal and gets off the subway station S3, the terminal lights a screen and unlocks the screen, a cell signal is received, a cell identifier contained in the cell signal is 1101, the terminal judges that the cell identifier is not included in a shielding list, so that a positioning data set is inquired according to the cell identifier, a subway station name field in an inquired data record is S3, a scene identifier field is 1, and a two-dimensional code for subway riding payment is automatically displayed on the screen of the terminal, so that the user can finish payment operation by using the two-dimensional code.
The embodiment of the application also provides a computer readable storage medium, which is used for storing a computer program, and when the computer program is executed by a computer, the computer can implement the method provided by the embodiment of the method.
The present application also provides a computer program product, where the computer program product is configured to store a computer program, where the computer program when executed by a computer may implement the method provided by the foregoing method embodiment.
The embodiment of the application also provides a chip, which comprises a processor, wherein the processor is coupled with the memory and is used for calling the program in the memory to enable the chip to realize the method provided by the embodiment of the method.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (35)

1. A method for implementing a location-based service, comprising:
when the first condition is met, the terminal acquires a cell signal of the current position;
the terminal determines the position information of the current position according to the cell signal;
and the terminal executes the service matched with the current position according to the position information.
2. The method of claim 1, wherein the determining, by the terminal, location information for a current location based on the cell signal comprises:
and the terminal determines the position information corresponding to the cell signal of the current position according to the corresponding relation between the cell signal and the position information.
3. The method of claim 2, wherein the correspondence of cell signals and location information comprises correspondence of cell signal identifications and location information;
the determining the location information corresponding to the cell signal of the current location includes:
and determining the position information corresponding to the identification of the cell signal according to the identification of the cell signal of the current position.
4. The method of claim 2, wherein the correspondence of cell signals and location information comprises correspondence of cell signal identifications and intensities and location information;
The determining the location information corresponding to the cell signal of the current location includes:
and determining position information corresponding to the identification and the intensity of the cell signal according to the identification and the intensity of the cell signal of the current position.
5. The method of any of claims 1-4, wherein the location information comprises subway station location information comprising subway station identification information and subway station scene information comprising a subway station entrance identification, a subway station exit identification, or a subway station in-station identification.
6. The method of any one of claims 1-5, wherein the meeting a first condition comprises:
the position location timing comes and the position location starting condition is satisfied.
7. The method of claim 6, wherein the position location opportunity comes, comprising:
the terminal is on a screen and unlocks the screen; or alternatively
Detecting a motion state of continuous walking in a screen-on state of the terminal; or alternatively
Detecting that the cell is changed during the screen-lighting period of the terminal; or alternatively
And the terminal in the off-screen state is periodically awakened.
8. The method according to any of claims 6-7, wherein the meeting a position location initiation condition comprises at least one of:
The cell identification contained in the cell signal received when the terminal is awakened is different from the cell identification contained in the cell signal received before the terminal is awakened;
the cell identification contained in the cell signal received by the terminal is not included in a scene recognition shielding list, and the scene recognition shielding list is used for storing the identification of the cell which does not need scene recognition;
the terminal is in a non-riding motion state.
9. The method of claim 8, wherein the method further comprises:
if the terminal fails to position location according to the cell signal of the current position and the failure times reach a set threshold, adding the cell identification in the cell signal of the current position into the scene recognition shielding list.
10. The method according to any of claims 1-9, wherein the terminal performing a service matching the current location based on the location information, comprises:
and if the position indicated by the position information is the entrance or the exit of the subway station, the terminal displays the identification code for subway train payment on a screen.
11. The method according to any of claims 1-10, wherein the terminal performing a service matching the current location based on the location information, comprises:
And if the position indicated by the position information is in the subway station of the first subway station, the terminal acquires the time prediction information of the subway train reaching the first subway station, and displays the time prediction information on a screen or broadcasts the time prediction information through voice.
12. The method according to any of claims 1-11, wherein the terminal performing a service matching the current location based on the location information, comprises:
if the scene indicated by the position information is in a subway station of the second subway station and the motion state detected by the terminal is a riding state, the terminal displays arrival reminding information on a screen or broadcasts the arrival reminding information through voice, and the arrival reminding information is used for prompting arrival at the second subway station.
13. The method of any one of claims 1-12, wherein the method further comprises:
the terminal detects a first trigger event, and starts data acquisition in response to the first trigger event;
the terminal records the corresponding relation between the cell signal and the position information according to the received cell signal;
and the terminal ends the data acquisition.
14. The method of claim 13, wherein the first trigger event comprises:
the terminal obtains an inbound grant through a first device provided at an entrance of the subway station.
15. The method according to any of claims 13-14, wherein the terminal ending the data acquisition comprises:
the terminal detects a second trigger event;
and the terminal responds to the second trigger event to finish the data acquisition.
16. The method of claim 15, wherein the second trigger event comprises:
the terminal obtains an outbound permission through a second device arranged at an exit of the subway station; or alternatively
A first timer times out, the first timer being started by the terminal in response to the first trigger event; or alternatively
And the second timer is started when the terminal senses that the terminal leaves the second area.
17. A method according to any of claims 13-16, wherein the correspondence of cell signals and location information is stored to a collection data set comprising at least one data record;
the method further comprises the steps of:
The terminal obtains a positioning data set for positioning the terminal according to the data records with the confidence degree meeting the requirements in the collected data set, wherein the positioning data set comprises at least one data record, and each data record in the positioning data set is used for storing the corresponding relation between the cell signal and the position information.
18. A method of data processing, comprising:
the method comprises the steps that a terminal detects a first trigger event, and data acquisition is started in response to the first trigger event, wherein the first trigger event comprises that the terminal senses that the terminal enters a first area;
the terminal records the corresponding relation between the cell signal and the position information according to the received cell signal;
and the terminal ends the data acquisition.
19. The method of claim 18, wherein the first trigger event comprises:
the terminal obtains an inbound grant through a first device provided at an entrance of the subway station.
20. The method according to any of claims 18-19, wherein the terminal ending the data acquisition comprises:
the terminal detects a second trigger event;
and the terminal responds to the second trigger event to finish the data acquisition.
21. The method of claim 20, wherein the second trigger event comprises:
the terminal senses that the terminal leaves the second area; or alternatively
A first timer times out, the first timer being started by the terminal in response to the first trigger event; or alternatively
A second timer times out, the second timer being started when the terminal senses that the terminal leaves the second area.
22. The method of claim 21, wherein the terminal sensing an event exiting the second area comprises:
the terminal obtains an outbound permission through a second device arranged at the exit of the subway station.
23. The method according to any one of claims 18-22, wherein the recording, by the terminal, of the correspondence between the cell signals and the location information based on the received cell signals, comprises:
the terminal responds to the first trigger event to generate a first data record, wherein the first data record is used for storing the corresponding relation between the cell signal received by the terminal and the position information of the current position of the terminal;
the terminal responds to the cell signal received by the terminal to generate a second data record, wherein the second data record is used for storing information of the cell signal received by the terminal;
And the terminal responds to the sensing of leaving the second area, and generates a third data record, wherein the third data record is used for storing the corresponding relation between the cell signal received by the terminal and the position information of the current position of the terminal.
24. The method of claim 23, wherein:
the first data record is an inbound data record, and the inbound data record comprises: cell identification and subway station position information;
the second data record is an intra-station data record, and the intra-station data record comprises: cell identification;
the third data record is an outbound data record, and the outbound data record includes: cell identity, subway station location information.
25. The method of claim 24, wherein at least one of the inbound data record, the in-station data record, and/or the outbound data record further comprises at least one of: acquisition time, acquisition times, signal intensity and the motion state detected by the terminal.
26. The method of any of claims 24-25, wherein the inbound data record further comprises assessment information, the assessment information comprising at least one of a number of verification successes, a number of verification failures, and a recall; the verification success times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is entered, the verification failure times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is entered, and the recall rate is determined according to the verification success times and the verification failure times; and/or
The outbound data record also comprises evaluation information, wherein the evaluation information comprises at least one of verification success times, verification failure times and recall rate; the verification success times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is left, the verification failure times are times that the terminal verifies the positioning result successfully when the terminal senses that the subway station is left, and the recall rate is determined according to the verification success times and the verification failure times.
27. The method of any one of claims 24-26, wherein the method further comprises:
adding subway station position information into the station data records between the first station data record adjacent to the inbound data record and the second station data record according to the sequence from front to back of the acquisition time, wherein the added subway station position information is the same as the subway station position information in the inbound data record; the second station internal data record is a station internal data record with a first motion state being a riding state in the station entering data records arranged in sequence from front to back according to the acquisition time;
Adding subway station position information into the station data records between the third station data record and the fourth station data record adjacent to the outbound data record according to the sequence of the acquisition time from the back to the front, wherein the added subway station position information is the same as the subway station position information in the outbound data record; the fourth intra-station data record is an intra-station data record with a first movement state being a riding state in the inbound data records arranged in sequence from back to front according to the acquisition time.
28. The method of any one of claims 24-26, wherein the method further comprises:
determining a first time length between the inbound data records and the in-station data records of a first riding state according to the sequence of time from front to back, adding the first time length into a stay time length set corresponding to the inbound subway station, and determining an inbound stay time length threshold corresponding to the inbound subway station according to the stay time length set corresponding to the inbound subway station; if the first time length is greater than the inbound stay time threshold, taking the acquisition time of the inbound data record as a starting point, selecting an intra-station data record in the inbound stay time threshold, and adding subway station position information in the inbound data record to the selected intra-station data record; otherwise, adding the subway station position information in the inbound data record to the in-station data record between the inbound data record and the first riding state data record; and/or
Determining a second duration from the outbound data record to the data record of the first riding state according to the sequence of time from back to front, adding the second duration into a stay duration set corresponding to the outbound subway station, and determining an outbound stay duration threshold corresponding to the outbound subway station according to the stay duration set corresponding to the outbound subway station; if the second time length is greater than the outbound stay time threshold, selecting an in-station data record within the outbound stay time threshold by taking the acquisition time of the outbound data record as a starting point, and adding subway station position information in the outbound data record into the selected in-station data record; otherwise, the subway station position information in the outbound data record is added into the station data record between the first riding state data records.
29. The method according to any of claims 18-28, wherein the correspondence of cell signals and location information is stored to a collection data set, the collection data set comprising at least one data record therein;
the method further comprises the steps of:
The terminal obtains a positioning data set for positioning according to the data records with the confidence coefficient meeting the requirements in the collected data set, wherein the positioning data set comprises at least one data record, and the data record in the positioning data set is used for storing the corresponding relation between the cell signal and the position information.
30. The method of claim 29, wherein the locating data set data records include: the subway station comprises a cell identifier, subway station position information and a first scene type identifier or a second scene type identifier, wherein the first scene type identifier is used for indicating that a scene corresponding to a data record is an entrance and an exit of a subway station, and the second scene type identifier is used for indicating that the scene corresponding to the data record is in the subway station.
31. The method of any one of claims 29-30, wherein the confidence level satisfies a required data record, satisfying at least one of the following conditions:
recording incoming data with recall rate greater than a set threshold;
outbound data records with recall rates greater than a set threshold;
the edge degree meets the required intra-station data record, wherein the edge degree is represented by the ratio of the acquisition times in the intra-station data record to the maximum acquisition times, and the maximum acquisition times are the maximum acquisition times in all intra-station data records containing the same subway station position information;
An inbound data record, an intra-station data record and an outbound data record with acquisition time after the appointed time; the specified time is before the current time, and the duration from the specified time to the current time is equal to the set duration.
32. A communication device, comprising: one or more processors; wherein the instructions of the one or more computer programs, when executed by the one or more processors, cause the communications apparatus to perform the method of any of claims 1-17, or the method of any of claims 18-31.
33. A computer readable storage medium, characterized in that the computer readable storage medium comprises a computer program which, when run on a computing device, causes the computing device to perform the method of any one of claims 1-17, or any one of claims 18-31.
34. A chip, wherein the chip is coupled to a memory for reading and executing program instructions stored in the memory to implement the method of any one of claims 1-17, or the method of any one of claims 18-31.
35. A computer program product, characterized in that the computer program product, when called by a computer, causes the computer to perform the method of any one of claims 1-17, or the method of any one of claims 18-31.
CN202111264022.5A 2021-10-27 2021-10-27 Service implementation method based on position location, data processing method and device Pending CN116033350A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111264022.5A CN116033350A (en) 2021-10-27 2021-10-27 Service implementation method based on position location, data processing method and device
PCT/CN2022/124920 WO2023071804A1 (en) 2021-10-27 2022-10-12 Location positioning-based service implementation method, and data processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111264022.5A CN116033350A (en) 2021-10-27 2021-10-27 Service implementation method based on position location, data processing method and device

Publications (1)

Publication Number Publication Date
CN116033350A true CN116033350A (en) 2023-04-28

Family

ID=86069474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111264022.5A Pending CN116033350A (en) 2021-10-27 2021-10-27 Service implementation method based on position location, data processing method and device

Country Status (2)

Country Link
CN (1) CN116033350A (en)
WO (1) WO2023071804A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117295008A (en) * 2023-11-24 2023-12-26 荣耀终端有限公司 Information pushing method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117528423B (en) * 2024-01-05 2024-03-19 北京航空航天大学 Method and system for calculating real-time riding state of subway passenger based on mobile phone signaling

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050087864A (en) * 2005-06-24 2005-08-31 노키아 코포레이션 Location based services for mobile communication terminals
US8374632B2 (en) * 2010-01-04 2013-02-12 Alcatel Lucent Method and apparatus for providing geo-location enablement for wireless device
CN105992338B (en) * 2015-02-12 2019-12-24 阿里巴巴集团控股有限公司 Positioning method and device
CN107682811A (en) * 2017-10-19 2018-02-09 北京三快在线科技有限公司 A kind of localization method and device
CN107872875A (en) * 2017-12-21 2018-04-03 维沃移动通信有限公司 The method and device of network positions
CN110366096B (en) * 2019-05-30 2021-01-26 深圳数位传媒科技有限公司 Indoor scene identification method and device
CN111405466B (en) * 2020-03-20 2022-01-18 Oppo广东移动通信有限公司 Site identification method, arrival reminding method, device, terminal and storage medium
CN113207098B (en) * 2021-04-30 2022-09-16 Oppo广东移动通信有限公司 Site information determination method and device, mobile terminal and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117295008A (en) * 2023-11-24 2023-12-26 荣耀终端有限公司 Information pushing method and device
CN117295008B (en) * 2023-11-24 2024-04-05 荣耀终端有限公司 Information pushing method and device

Also Published As

Publication number Publication date
WO2023071804A1 (en) 2023-05-04

Similar Documents

Publication Publication Date Title
CN110381443B (en) Near field communication card activation method and device
US11182700B2 (en) Methods, devices, and systems for automatically detecting, tracking, and validating transit journeys
CN107845259B (en) Bus running condition real-time feedback system and bus real-time running data processing method
WO2023071804A1 (en) Location positioning-based service implementation method, and data processing method and apparatus
CN101836084B (en) A method and machine for generating map data and a method and navigation device for determining a route using map data
JP2020074179A (en) Ridesharing management device, ridesharing management method, and program
US20130063283A1 (en) Information providing device and information providing method
EP2608181B1 (en) Method for detecting traffic
WO2011089495A2 (en) Optimum travel times
US20130275368A1 (en) Maintaining Electrical Vehicle Recharging Station Data
CN104537837A (en) Method, device and system for obtaining traffic signs and determining traffic routes
CN111325559B (en) Payment control method and payment control system applied to buses
CN107341226B (en) Information display method and device and mobile terminal
CN114510542A (en) Method for generating motion trail, electronic equipment and server
JP5745887B2 (en) Billing system, fee management system and program
CN109074706B (en) Method and equipment for determining riding geographic position of user
CN108694638A (en) A kind of order, which moves back, changes method and device
Li et al. Travel patterns analysis of urban residents using automated fare collection system
CN113286262B (en) Service providing method and apparatus, computer-readable storage medium, and electronic device
CN113449902B (en) Information processing apparatus, information processing method, and information processing system
CN113160542A (en) Riding method and device based on information feedback
CN116418831A (en) Service implementation method based on position location, data processing method and device
CN109859476B (en) Entity object motion track analysis system based on vehicle
US20230162247A1 (en) System for determining billing for transportation usage
CN113108802B (en) Navigation method, device, server, system and medium

Legal Events

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