WO2023071804A1 - 一种基于位置定位的服务实现方法、数据处理方法及装置 - Google Patents

一种基于位置定位的服务实现方法、数据处理方法及装置 Download PDF

Info

Publication number
WO2023071804A1
WO2023071804A1 PCT/CN2022/124920 CN2022124920W WO2023071804A1 WO 2023071804 A1 WO2023071804 A1 WO 2023071804A1 CN 2022124920 W CN2022124920 W CN 2022124920W WO 2023071804 A1 WO2023071804 A1 WO 2023071804A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
data record
data
subway station
station
Prior art date
Application number
PCT/CN2022/124920
Other languages
English (en)
French (fr)
Inventor
陈维
解文博
王酉祥
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023071804A1 publication Critical patent/WO2023071804A1/zh

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

Definitions

  • the present application relates to the field of communication technology, and in particular to a location-based service realization method, data processing method and device.
  • LBS location-based service
  • the key technologies of location services include indoor location positioning or scene recognition.
  • Indoor position positioning refers to determining the location coordinates of the terminal in the indoor environment.
  • Scene identification refers to determining the application scene to which the terminal belongs in the indoor environment (for example, the terminal has just entered the indoor environment or is about to leave the indoor environment).
  • Scene identification requires Realization based on location positioning.
  • the subway is the main means of transportation in the city.
  • the scene of the subway station is closely related to people's life.
  • the location service around the subway station can bring more convenience and better user experience to people.
  • Embodiments of the present application provide a location-based service implementation method, a data processing method, and a device.
  • a service implementation method based on location positioning including: when the first condition is met, the terminal obtains the cell signal of the current location; the terminal determines the location information of the current location according to the cell signal; the terminal according to The location information executes a service matching the current location.
  • the location information may include location description information or a location identifier. Different from the location coordinate information, the location description information and the location identifier may be predefined and used for location distinction.
  • the location information may be a subway station name or a subway station ID.
  • the terminal since the terminal performs position positioning only when the first condition is met, invalid position positioning can be avoided, thereby reducing the power consumption of the terminal; Matching services can improve user experience. For example, when the current location is determined to be the entrance or exit of a subway station, the terminal can display the identification code used for subway ride payment on the terminal screen to facilitate users to use the Identification code for ride payment.
  • the determining the location information of the current location by the terminal according to the cell signal includes: determining, by the terminal, the location information corresponding to the cell signal of the current location according to the correspondence between the cell signal and location information. location information.
  • the correspondence between the cell signal and location information includes the correspondence between the identity and strength of the cell signal and the location information; the determining the location information corresponding to the cell signal at the current location, The method includes: according to the identity and strength of the cell signal at the current location, determining location information corresponding to the identity and strength of the cell signal.
  • the location information includes subway station location information
  • the subway station location information includes subway station identification information and subway station scene information
  • the subway station scene information includes a subway station entrance logo, a subway station Exit sign or subway station sign.
  • the meeting the first condition includes: a location location opportunity arrives and a location location start condition is satisfied.
  • position positioning is performed only when the above first condition is satisfied, so that invalid position positioning operations can be avoided, and power consumption of the terminal can be saved.
  • the arrival of the location positioning opportunity includes: the terminal turns on the screen and unlocks the screen; or, the terminal detects a continuous walking motion state while the screen is turned on; or, the terminal During the on-screen period, it is detected that the cell where the cell is located has changed; or, the terminal in the off-screen state is periodically woken up.
  • the satisfying the position location start condition includes at least one of the following:
  • the cell identifier contained in the cell signal received when the terminal is awakened is different from the cell identifier 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 the scene identification mask list, and the scene identification mask list is used to store the identification of the cell that does not need to perform scene identification;
  • the terminal is in a non-riding motion state.
  • the method further includes: if the terminal fails to perform location positioning based on the cell signal at the current location, and the number of failures reaches a set threshold, then adding the cell signal at the current location to The cell identity of the cell is added to the scene identification shielding list.
  • the location positioning fails based on the cell signal at the current location, and the number of recognition times reaches the set threshold, it indicates that the location location of the cell signal has been unable to be performed, so the cell identifier in the cell signal can be added to the
  • the scene recognition shielding list is used to avoid subsequent invalid location positioning, thereby saving terminal power consumption.
  • the terminal performs a service matching the current location according to the location information, including: if the location indicated by the location information is an entrance or exit of a subway station, the terminal The identification code used to pay for the subway ride is displayed on the screen.
  • the terminal can automatically display the identification code used for subway ride payment on the screen, so as to facilitate the user to pay for rides.
  • the terminal executes a service matching the current location according to the location information, including: if the location indicated by the location information is within a subway station of the first subway station, then the The terminal acquires time prediction information of the subway train arriving at the first subway station, and displays the time prediction information on a screen or broadcasts the time prediction information by voice.
  • the terminal can automatically obtain the forecast information of the arrival time of the subway train at the subway station, and broadcast or display it on the screen, so that the user can know the arrival time of the train.
  • the terminal executes the service matching the current location according to the location information, including: if the scene indicated by the location information is in the subway station of the second subway station, and the The motion state detected by the terminal is the riding state, then the terminal displays the arrival reminder information on the screen or broadcasts the arrival reminder information by voice, and the arrival reminder information is used to prompt arrival at the second subway station .
  • the terminal can automatically remind the station arrival to facilitate the user to ride.
  • the method further includes: the terminal detects a first trigger event, and starts data collection in response to the first trigger event; the terminal records the cell signal and The corresponding relationship of the location information; the terminal ends the data collection.
  • the terminal performs data collection to further obtain data for location positioning, which can be used to obtain data for location location according to user behavior habits, for example, data collection can be performed according to the user's commuting habits or routes , when the location is positioned based on the data collected by the terminal, the user's needs can be met.
  • the first trigger event includes: the terminal obtains an entry permit through a first device installed at the entrance of the subway station, so that the terminal (user) can open the data when entering the subway station. Acquisition to collect cell signals in a specific area (such as a subway station).
  • the terminal ending the data collection includes: the terminal detecting a second trigger event; the terminal ending the data collection in response to the second trigger event.
  • the data collection process can be ended based on event-driven. The data collection process is started and ended under the drive of events, so the data collection can be controlled within a certain time and/or space, so that the power consumption of the terminal can be saved, and data collection can also be carried out in a targeted manner.
  • the second trigger event includes: the terminal obtains an exit permit through a second device installed at the exit of the subway station, so that the data collection can be ended when exiting the station, so that the data collection within a certain space; or the first timer expires, the first timer is started by the terminal in response to the first trigger event, so that the time length of data collection can be controlled to avoid excessive data collection process Consuming the power consumption of the terminal; or the second timer expires, the second timer is started when the terminal senses leaving the second area, so that the data can be continued for a period of time when the terminal senses leaving the second area collection.
  • the corresponding relationship between the cell signal and the location information is stored in a collection data set, and the collection data set includes at least one data record; the method further includes: the terminal according to the Collect data records whose confidence meets the requirements in the data set to obtain a positioning data set for the terminal to perform position positioning, the positioning data set includes at least one data record, and each data record in the positioning data set uses It is used to store the corresponding relationship between the cell signal and the location information.
  • the positioning data set used for position positioning is generated based on the data records whose confidence meets the set requirements, which can ensure the reliability of position positioning.
  • a data processing method including: a terminal detects a first trigger event, and starts data collection in response to the first trigger event, where the first trigger event includes the terminal sensing that the terminal enters a first area; The terminal records the corresponding relationship between the cell signal and the location information according to the received cell signal; the terminal ends the data collection.
  • the data collection process is started under the drive of events, so the data collection can be controlled within a certain time and/or space, so that the power consumption of the terminal can be saved, and data collection can also be carried out in a targeted manner;
  • the collected data is consistent with the user's behavior habits, and provides a data basis and source for subsequent data for location positioning based on the collected data (such as the correspondence between cell signals and location information).
  • the first trigger event includes: the terminal obtains an entry permit through a first device set at an entrance of a subway station.
  • the terminal ending the data collection includes: the terminal detecting a second trigger event; the terminal ending the data collection in response to the second trigger event.
  • the second trigger event includes: the terminal senses that it has left the second area; or a first timer expires, and the first timer It is started by a trigger event; or the second timer expires, and the second timer is started when the terminal senses that it leaves the second area.
  • the terminal sensing the event of leaving the second area includes: the terminal obtains an exit permit through a second device arranged at an exit of the subway station.
  • the terminal records the correspondence between the cell signal and the location information according to the received cell signal, including: the terminal generates a first data record in response to the first trigger event, and the The first data record is used to store the corresponding relationship between the cell signal received by the terminal and the location information of the current location of the terminal; the terminal generates a second data record in response to the cell signal received by the terminal, the The second data record is used to store the information of the cell signal received by the terminal; the terminal generates a third data record in response to sensing leaving the second area, and the third data record is used to store the cell signal received by the terminal The corresponding relationship between the signal and the location information of the current location of the terminal.
  • the first data record is an inbound data record, and the inbound data record includes: cell identification and subway station location information; the second data record is an in-station data record, so The in-station data record includes: a cell identifier; the third data record is an outbound data record, and the outbound data record includes: a cell identifier and subway station location information.
  • the inbound data record, the outbound data record, and the in-station data record also include: at least one of a tracking area identifier, an operator identifier, and a country code, the tracking area identifier, The operator identifier and the country code come from a cell signal received by the terminal.
  • the subway station location information in the inbound data record, the outbound data record, and the in-station data record further includes: the city name of the city where the subway station is located.
  • the inbound data record, the in-site data record and/or the outbound data record further include at least one of the following information: collection time, collection times, signal strength, The motion state detected by the terminal.
  • the inbound data record also includes evaluation information, and the evaluation information includes at least one of the number of successful verifications, the number of failed verifications, and the recall rate; wherein, the number of successful verifications is when The number of times that the terminal successfully verifies the positioning result when the terminal senses entering the subway station, the number of verification failures is the number of times the terminal fails to verify the positioning result when the terminal senses entering the subway station, and the recall The rate is determined according to the number of successful verifications and the number of failed verifications; and/or, the outbound data record further includes evaluation information, and the evaluation information includes the number of successful verifications, the number of failed verifications, and the recall rate at least one item; wherein, the number of successful verifications is the number of successful verifications of the positioning result by the terminal when the terminal senses that it is leaving the subway station, and the number of failed verifications is the number of times when the terminal senses that it is leaving the subway station The number of times that the terminal fails to verify the positioning result, and the recall rate is determined according to
  • the method further includes: when the terminal senses entering a subway station, the terminal performs scene recognition according to the cell identifier contained in the received cell signal, and obtains the identified location information of the subway station; if according to The location information of the subway station obtained by the scene recognition is the same as the location information of the subway station queried according to the POI returned by the first device at the entrance (such as the entry gate), then the terminal updates the verification in the entry data record successfully times, and update the recall rate in the inbound data record according to the number of verification failures in the inbound data record and the updated number of successful verifications; otherwise, update the number of verification failures in the inbound data record, and Updating the recall rate in the inbound data record according to the verification success times and the updated verification failure times in the inbound data records.
  • the method further includes: when the terminal senses that it is leaving the subway station, the terminal performs scene recognition according to the cell identifier contained in the received cell signal, and obtains the identified location information of the subway station; if according to The location information of the subway station obtained by scene recognition is the same as the location information of the subway station queried according to the POI returned by the second device (such as the exit gate) at the exit, then the terminal updates the verification in the exit data record successfully times, and update the recall rate in the outbound data record according to the number of verification failures in the outbound data record and the updated number of successful verifications; otherwise, update the number of verification failures in the outbound data record, and Updating the recall rate in the outbound data record according to the number of successful verifications and the updated number of failed verifications in the outbound data record.
  • the method further includes: recording the first in-station data adjacent to the inbound data record into the in-station between the second in-station data records according to the order of collection time from front to back Adding subway station location information in the data record, the subway station location information added is the same as the subway station location information in the station data record; wherein, the data records in the second station are arranged according to the order of collection time from front to back In the inbound data record, the first in-station data record whose motion state is the riding state; according to the order of collection time from back to front, record the third in-station data adjacent to the outbound data record to the fourth in-station data Subway station location information is added in the data record in the station between records, and the subway station location information added is identical with the subway station location information in the described outbound data record; The first in-station data record whose motion state is the riding state among the incoming data records arranged in sequence before arrival.
  • the method further includes: determining the first duration between the in-station data record and the in-station data record of the first riding state in the order of time from front to back, and The first duration is added to the set of stay durations corresponding to the inbound subway station, and the arrival time corresponding to the inbound subway station is determined according to the updated stay duration in the stay duration set corresponding to the inbound subway station.
  • Station stay duration threshold if the first time length is greater than the station stop duration threshold, then take the collection time of the station data record as a starting point, select the data records in the station within the station stop duration threshold, and Add the subway station location information in the station entry data record to the selected in-station data record; otherwise, add the subway station location information in the station entry data record to the station entry data record to the first In the in-station data records between the ride state data records; and/or, according to the order of time from back to front, determine the second duration between the data records from the outbound data record to the first ride state , adding the second duration to the set of stay duration corresponding to the outbound subway station, and determining the corresponding duration of the outbound subway station according to the updated stay duration in the stay duration set corresponding to the outbound subway station outbound stay duration threshold; if the second duration is greater than the outbound stay duration threshold, then use the collection time of the outbound data record as a starting point to select in-station data within the outbound stay duration threshold record, and add the sticker location information in
  • the corresponding relationship between the cell signal and the location information is stored in a collection data set, and the collection data set includes at least one data record.
  • the method further includes: the terminal obtains a positioning data set for position positioning according to the data records whose confidence meets the requirements in the collected data set, the positioning data set includes at least one data record, and the positioning data The data records in the collection are used to store the correspondence between cell signals and location information.
  • the data records whose confidence meets the requirements meet at least one of the following conditions:
  • the marginal degree is represented by the ratio of the number of collections in the data record in the station to the maximum number of collections.
  • the maximum number of collections is the largest among all data records in the station containing the same subway station location information. collection times;
  • the data records of the positioning data set include: a cell identifier, subway station location information, and a first scene type identifier or a second scene type identifier, wherein the first scene type The identifier is used to indicate that the scene corresponding to the data record is the entrance and exit of the subway station, and the second scene type identifier is used to indicate that the scene corresponding to the data record is inside the subway station.
  • a communication device including: one or more processors; wherein, when instructions of one or more computer programs are executed by the one or more processors, the communication device performs the above-mentioned The method of any one of the first aspects, or the method of any one of the second aspects.
  • a computer-readable storage medium includes a computer program, and when the computer program is run on a computing device, the computing device is made to execute the computer program described in any one of the above-mentioned first aspects.
  • a chip is coupled with a memory, and is used to read and execute program instructions stored in the memory, so as to implement the method described in any one of the above-mentioned first aspects, or the second The method of any one of the aspects.
  • a computer program product is provided.
  • the computer program product When the computer program product is invoked by a computer, the computer executes the method described in any one of the above first aspects, or the method described in any one of the second aspect. described method.
  • FIG. 1 is a schematic diagram of a scene 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 an implementation manner of an embodiment of the present application.
  • Fig. 4, Fig. 5 and Fig. 6 are respectively the schematic flow diagrams of the data acquisition method provided by the embodiment of the present application;
  • Fig. 7 is a schematic diagram of the data acquisition process under the application scenario of the subway station in the embodiment of the present application.
  • FIG. 8 is a schematic diagram of an implementation of adding location information in data records in an embodiment of the present application.
  • FIG. 9 is a schematic flow diagram of adding location information in a data record in an embodiment of the present application.
  • FIG. 10 is a schematic flow diagram of selecting data records meeting confidence requirements in an embodiment of the present application.
  • FIG. 11 is a schematic diagram of a terminal and a network-side server cooperating to generate a positioning data set in an embodiment of the present application
  • FIG. 12 is a schematic diagram of a location positioning process in an embodiment of the present application.
  • FIG. 13 is a schematic diagram of a location positioning process in an embodiment of the present application.
  • the data processing method and location-based service implementation method provided by the embodiments of the present application can be applied to subway stations.
  • a subway station is usually a closed space with an entrance and an exit. There are exit gates, and the entry gates and exit gates can be used for the processing of subway ride payment.
  • Multiple wireless communication network devices (such as base stations) are deployed in the subway station. Understandably, the subway station mentioned here may include the underground part or the above-ground part of the subway station, or both the underground part and the above-ground part.
  • the underground part of the subway station is usually a closed space, in which multiple base stations are deployed.
  • the aboveground part of a subway station is usually also a closed space. Base stations can be deployed in the closed space above the ground. In this closed space, terminals can also receive signals sent by base stations deployed in the closed space, and may also receive signals from outside the closed space. Signals sent by deployed base stations.
  • the terminal can receive the signal sent by the base station in the subway station, and perform data collection according to the received signal to obtain the collected data set, and further perform data processing (such as data mining) according to the collected data set to obtain the A positioning data set for 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 can further provide users with corresponding Serve.
  • data processing such as data mining
  • location location and scene recognition have basically the same meaning, and scene recognition is implemented based on location location.
  • Scene information can be understood as a kind of location information, for example, subway station A is location information, the entrance of subway station A or the entrance of the subway station can be understood as location information, and can also be understood as scene information.
  • the location information may refer to location information of a subway station
  • the location information of a subway station includes identification information of a subway station and scene information of a subway station
  • the scene information of a subway station includes a logo of a subway station entrance (for Indicates the entrance of the subway station), the exit sign of the subway station (for indicating the exit of the subway station), or the sign in the subway station (for indicating the inside of the subway station).
  • the signal sent by the base station is called a cell signal.
  • the cell signal may include a cell identifier (such as cell ID, CID for short), and may also include tracking area identifiers, country codes configured in base station equipment, and other information. Understandably, a cell signal may also be called a base station signal.
  • the network equipment deployed in the subway station may also be other types of wireless communication network equipment, for example, may include a Bluetooth beacon (or called a Bluetooth base station).
  • the terminal can receive the signal sent by the Bluetooth beacon (may be referred to as a Bluetooth signal), and perform data collection and data mining to obtain a positioning data set for position positioning and/or scene recognition.
  • the signal sent by the Bluetooth beacon may include information such as an identifier of the Bluetooth beacon.
  • signals sent by them may be collectively referred to as wireless signals.
  • this embodiment of the present application can also be applied to a scene similar to a subway station scene, such as a place or area where multiple base stations are deployed and an entrance and exit are set up, and an entrance device can be set at the entrance, and an entrance device can be set at the exit.
  • Set the exit device, the entry device and the exit device can interact with the terminal in a non-contact manner, and perform payment operations or other response operations on the terminal entering and leaving a certain subway station.
  • scenes may include exhibition halls, stadiums, and the like.
  • the first area is embodied as a subway station.
  • FIG. 1 exemplarily shows a schematic diagram of a scene according to an embodiment of the present application, which may include network devices and terminals.
  • the first area 10 may be the underground part of the subway station or a local area of the underground part, and an entry gate 11 is arranged at the entrance of the first area 10, and at the exit of the first area 10
  • An exit gate 12 is provided at the place.
  • a plurality of network devices are deployed in the first area 10, such as the network devices (13a-13g) in FIG. 1 .
  • Each network device can communicate with the terminal 100 in a wireless manner.
  • Network devices (13a-13g), also called wireless access network devices, are devices used to connect terminals to wireless networks.
  • a base station eg, an access point
  • the access network device may include one or more access devices for deployment in an indoor environment (such as in a subway station).
  • the network devices (13a-13g) may include a subway station An internally deployed micro base station dedicated to a subway station, or may also include a base station, a small station, a micro station, etc. in a future communication network, which is not limited in this embodiment of the present application.
  • the terminal 100 may be a mobile phone, a tablet computer, or a wearable device with a wireless communication function (such as a smart watch or smart glasses, etc.). Exemplary embodiments of the terminal include, but are not limited to, carrying or devices with other operating systems.
  • the aforementioned terminal may also be other portable devices, as long as the portable device can receive cell signals and generate data records.
  • the terminal 100 in the first area 10 can generate a collection data set according to the received cell signals from the network equipment (13a-13e), and obtain a set of data for realizing position positioning and /or a collection of positioning data for scene recognition.
  • the terminal can perform position positioning and/or scene recognition in the first enclosed area 10 according to the positioning data set, and can further provide users with corresponding services according to the position positioning results and/or scene recognition results.
  • the relevant description of the collected data set and the positioning data set can be referred to FIG. 3 .
  • the terminal 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, Mobile communication module 151, wireless communication module 152, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and user An identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a gyroscope sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the terminal may also include other sensors, such as a pressure sensor, an acceleration sensor, a gyroscope sensor, an ambient light sensor, bone conduction sensor, etc., not shown in the figure).
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal 100 .
  • the terminal 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized 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 processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller may be the nerve center and command center of the terminal 100 . The controller can generate operation control signals according to the instruction opcode and timing signal, and complete the control of fetching and executing instructions.
  • the internal memory 121 may be used to store one or more computer programs including instructions.
  • the processor 110 executes various functional applications and data processing of the terminal 100 by executing instructions stored in the internal memory 121 .
  • the internal memory 121 may include an area for storing programs and an area for storing data.
  • the storage program area can store operating system, codes of application programs, and the like.
  • the storage data area can store statistical results of data transmission recorded during the use of the terminal 100, thresholds (for judging whether the conditions for adjusting the timing duration of the RRC connection release timer are satisfied), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, universal flash storage (universal flash storage, UFS) and the like.
  • the processor 110 may execute the instructions stored in the internal memory 121, and/or the instructions stored in the memory provided in the processor 110, so that the terminal 100 executes the data processing method or the data processing method provided by the embodiment of the present application. A service implementation method based on scene recognition.
  • the codes of the data processing method or the service method based on location positioning provided by the embodiment of the present application, and information such as collection data set and positioning data set can also be stored in an external memory.
  • the processor 110 may execute the code stored in the external memory through the external memory interface 120 for implementing the above method in the embodiment of the present application.
  • the external memory interface 120 may be used to connect an external memory card (for example, a Micro SD card), so as to expand the storage capacity of the terminal 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, information such as the collected data set and the positioning data set generated by the terminal are stored in the external memory card.
  • the wireless communication function of the terminal 100 may be realized by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modem processor and the baseband processor. Based on the above wireless communication function, the terminal can receive a signal sent by a network device (such as a cell signal sent by a base station), collect data according to the received signal, and obtain a collected data set.
  • a network device such as a cell signal sent by a base station
  • the terminal 100 can determine the motion state.
  • the motion state may include a riding state and a non-riding state, and the non-riding state may further include a staying state, a walking state, a running state, and the like.
  • a near field communication (near field communication, NFC) chip can also be integrated in the terminal 100, so that the terminal can perform subway ride payment through contactless operation based on the NFC chip.
  • NFC near field communication
  • FIG. 3 shows a block diagram of an implementation manner of the embodiment of the present application.
  • the processing operations shown in Fig. 3 are all performed by the same terminal.
  • the terminal starts data collection.
  • the data collection includes generating data records according to cell signals received by the terminal, and the data records are stored in the collection data set. Further, the terminal may also end data collection, so as to save power consumption of the terminal. Exemplarily, when the data collection end condition is satisfied, the terminal ends the data collection.
  • satisfying the data collection start condition may include the following situation: if a first trigger event occurs, the data collection start condition is satisfied, and the terminal starts data collection in response to the first trigger event.
  • the first trigger event includes that the terminal senses that it enters the first area. Taking the subway station scene as an example, the first trigger event is that the terminal obtains an entry permit through the first device (such as an entry gate) at the entrance of the subway station, such as performing contactless (or inductive) payment for travel. .
  • an identification code such as a two-dimensional code
  • the entry gate After identifying the payment account information in the identification code, the entry gate sends a payment request containing the payment account information to the payment server. After the payment server completes the payment operation according to the payment account, due to the The payment account is associated with the terminal, so the server sends the first payment response to the terminal, and the terminal starts data collection after receiving the first payment response.
  • the identification code includes terminal identification information
  • the gate at the station may send a first payment response to the terminal according to the terminal identification information, and the terminal starts data collection after receiving the first payment response.
  • the NFC method is used to pay for subway rides, when the entry gate installed at the entrance of the subway senses the signal of the NFC chip in the terminal, it will read the payment account information in the NFC chip and send The payment account is written into the inbound ride payment information, and the terminal can start data collection when it detects that the inbound gate machine writes the inbound ride payment information into the NFC chip.
  • satisfying the data collection end condition may include the following situation: if a second trigger event occurs, the data collection end condition is satisfied, and the terminal ends data collection in response to the second trigger event.
  • the second trigger event may include any of the following events:
  • Event 1 The terminal detects leaving the second area, such as leaving a certain subway station. If the event occurs, the condition for ending the data collection is satisfied, and the terminal ends the data collection.
  • the second trigger event is that the terminal obtains an exit permit through a second device (such as an exit gate) at the entrance of the subway station, such as performing contactless (or inductive) payment for travel. .
  • a second device such as an exit gate
  • an identification code such as a two-dimensional code
  • the identification code After identifying the payment account information in the identification code, the outbound gate sends a payment request containing the payment account information to the payment server. After the payment server completes the payment operation according to the payment account, due to the The payment account is associated with the terminal, so the server sends a second payment response to the terminal, and the terminal ends data collection after receiving the second payment response.
  • the identification code contains terminal identification information
  • the outbound gate can send a second payment response to the terminal according to the terminal identification information, and the terminal ends data collection after receiving the second payment response.
  • the exit gate set at the subway exit senses the signal of the NFC chip in the terminal, it will read the payment account information in the NFC chip and send The payment account is written into the outbound ride payment information, and the terminal can end the data collection when it detects that the entry gate writes the outbound ride payment information into the NFC chip.
  • Event 2 The first timer expires. If the event occurs, the condition for ending the data collection is satisfied, and the terminal ends the data collection.
  • the first timer is a timer inside the terminal, which is started and stopped by the terminal.
  • the first timer is used to control the length of time for the terminal to collect data in the first area (such as a subway station), to avoid excessive data collection in this area, thereby avoiding excessive data storage and processing overhead, and The power consumption of the terminal can be saved.
  • the first timer is started 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 the application scenario of a subway station as an example, after the terminal pays for the ride in and out of the station through the gate at the entrance of the subway station, the first timer can be started; If the first timer has not timed out during car payment, the terminal may stop the first timer.
  • the duration of the first timer can be set according to the application scenario.
  • the duration of the first timer can be set to 90 minutes.
  • Event 3 The second timer times out. If the event occurs, the condition for ending the data collection is satisfied, and the terminal ends the data collection.
  • the second timer is a timer inside the terminal, which is started or stopped by the terminal.
  • the second timer is used to control the length of time for the terminal to collect data after leaving the second area.
  • it can collect the signal of the cell near the periphery of the entrance and exit of the first area, and on the other hand, it can avoid excessive data collection time. In order to avoid excessive data storage and processing overhead, it can also save power consumption of the terminal.
  • the second timer is started when the terminal detects leaving the second area.
  • the second timer can be started.
  • the duration of the second timer can be set according to the application scenario.
  • the duration of the second timer can be set to 15 seconds.
  • the terminal can obtain data such as cell signal information and location information through data collection.
  • the terminal may store the collected data as data records, and these data records are stored in a collection of data, which may also be called a collection database.
  • the terminal may store the collected data records in the collection data set in order of collection time, so that the data records in the collection data collection are arranged in the order of collection time from front to back.
  • Each data record in the collected data set includes at least: the collected cell identifier, and further, the collected time may also be included.
  • the location information is also included in the data records collected at the entrance and exit of the first area.
  • the location information may include location description information or a location identifier. Different from the location coordinate information, the location information in the embodiment of the present application can be predefined and used for location distinction.
  • the location information can be the name of the subway station or the ID of the subway station , it may further include the name of the city where the subway station is located, and the data record generated by the terminal in response to the payment event for entering the station at the entrance gate of the subway station includes the station name of the subway station where the entrance gate is located, The station name of the subway station where the exit gate is located is included in the data record generated by the terminal in response to the outbound ride payment event at the exit gate of the subway station.
  • the data records of the collected data set may also include information such as tracking area identifiers, operator identifiers, and country codes, which are derived from cell signals received by the terminal.
  • the tracking area identifier is used to identify the tracking area to which the cell belongs
  • the operator identifier is used to identify the operator to which the base station of the corresponding cell belongs
  • the country code is used to identify the country to which the base station of the cell belongs.
  • the data record of the collected data set may also include the motion state corresponding to the data record.
  • the terminal can determine the motion state according to the detection data of a sensor (such as an acceleration sensor) set in the terminal.
  • the motion state may include a riding state and a non-riding state, and the non-riding state may further include a staying state, a walking state, a running state, and the like.
  • the data record of the collected data set may also include the number of collections.
  • the number of acquisitions in the data record is used to indicate the number of times the signal from the same cell is received.
  • the data records of the collected data set may also include evaluation information corresponding to the data records, and the evaluation information is used to evaluate the confidence or validity of the data records.
  • the evaluation information may be obtained by checking the collected data records based on the location positioning results when the terminal enters and exits the first area.
  • the data records in the collected data set may also include cell signal strength information, such as received signal strength indication (RSSI).
  • RSSI received signal strength indication
  • the terminal may perform data processing such as data mining on the collected data set to obtain a positioning data set, which is used for position positioning and/or scene recognition.
  • the following two stages of data mining or data processing can be performed on the collected data set:
  • the first stage According to the exercise state corresponding to the data record and the user's personal riding habit portrait, add location information to the data record that does not contain location information; the user's personal riding habit portrait refers to the user's stay in each subway station Duration (from entering the station to leaving the platform by train);
  • the second stage Select the data records that meet the confidence requirements, and generate a positioning data set based on the data records that meet the confidence requirements.
  • the location data set is also called a location database.
  • Each data record in the positioning data set includes at least: a cell identifier and location information.
  • the data records of the positioning data set may also include tracking area identifiers, operator identifiers, country codes, etc., and these information are derived from corresponding data records in the collected data sets.
  • the data records of the positioning data set may also include the first scene type identifier or the second scene type identifier.
  • the first scene type identification is used to indicate the entrance and exit of the first area
  • the second scene type identification is used to indicate the inner area of the first enclosed area.
  • the inbound data record and outbound data record contain the first scene type identifier.
  • the value of the first scene type identifier is 1, indicating that the corresponding data record is an inbound data record or an outbound data record.
  • the cell corresponding to the cell identifier contained in the inbound data record or the outbound data record is located at the entrance and exit of the subway station.
  • a data record in the positioning data set includes the subway station name S1 and the first scene type identifier
  • the location indicated by the data record is the entrance and exit of the subway station S1.
  • the data record in the station contains the second scene type identifier.
  • the value of the second scene type identifier is 0, indicating that the corresponding data record is an in-station data record, and the cell corresponding to the cell identifier contained in the station data record is located in the subway station .
  • the location indicated by the data record is the inner area of the subway station S1 (such as the platform area).
  • the terminal can perform position positioning and/or scene recognition based on the positioning data set. Further, the terminal may also perform corresponding service processing operations according to the location positioning result and/or the scene recognition result, that is, provide corresponding services to the user, so as to improve user experience.
  • the terminal can perform position positioning and/or scene recognition based on the positioning data set. Further, the terminal may also perform corresponding service processing operations according to the location positioning result and/or the scene recognition result, that is, provide corresponding services to the user, so as to improve user experience.
  • the terminal can perform position positioning and/or scene recognition based on the positioning data set. Further, the terminal may also perform corresponding service processing operations according to the location positioning result and/or the scene recognition result, that is, provide corresponding services to the user, so as to improve user experience.
  • the terminal when the terminal performs the payment operation for entering the station through the gate of the subway station, as a response to the event , the terminal starts the data collection process, and when the terminal performs an outbound ride payment operation through the exit gate of the subway station, as a response to the event, the terminal may end the data collection process.
  • the data collection process of the terminal is based on sensing driven data collection (SDDC), using the relevant events in the subway station scene perceived by the device as a guide to start and end the data collection process, thus realizing the user-based Behavioral directional data collection in time and space, so that data collection is concentrated in the subway station scene at the time and space level, data collection can be targeted, and data collection efficiency can be improved.
  • SDDC sensing driven data collection
  • using the data collection method provided in the embodiment of the present application can improve the data collection efficiency compared with manual data collection.
  • the data records in the collected data set are sorted in chronological order, the timing information of the whole process of the user's subway ride is preserved, and the subsequent data processing is used to generate the location and/or scene recognition.
  • the positioning data collection provided the basis.
  • FIG. 4 shows a schematic flow diagram of a data collection method provided by an embodiment of the present application.
  • the terminal can start data collection when the data collection start condition is met, generate a collection data set through data collection, and The data collection ends when the data collection end condition is met.
  • This process is described by taking the second trigger event as an example in which the terminal senses leaving the second area (such as a certain subway station).
  • 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 entering the first area is called the first data record (in In the subway station scene, it is also called the station data record), and the data record generated by the terminal in the first area according to the received cell signal is called the second data record (in the subway station scene, it is also called the in-station data record), and the terminal senses
  • the data record generated when leaving the second area is called the third data record (also called outbound data record in the subway station scenario).
  • the first data record, the second data record and the third data record are stored into the collection data set.
  • the process may include the following steps:
  • S410 The terminal starts data collection in response to a first trigger event, and generates a first data record.
  • the terminal Since 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 collection time, cell identifier, and location information.
  • the acquisition 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 location when the first trigger event occurs or before and after the occurrence ;
  • the location information is used to indicate the current location of the terminal, such as the name and location ID of the location.
  • the terminal may obtain the location information corresponding to the POI information according to the point of interest (POI) information carried in the payment response or other responses received when entering the first area.
  • POI point of interest
  • the first data record may further include information such as a tracking area identifier, an operator identifier, and a country code, and such information is derived from a cell signal received by the terminal.
  • the first data record also includes a motion state.
  • the motion state may be a motion state determined by the terminal according to detection data of related sensors (eg, including an acceleration sensor) in the terminal when generating the first data record.
  • detection data of related sensors eg, including an acceleration sensor
  • the embodiment of the present application does not limit the method for detecting the motion state.
  • the first data record further includes the number of collections.
  • the terminal can query the information in the collected data set according to the information included in the cell signal (for example, including the cell ID, and further including tracking area ID, operator ID, country code, etc.) For the generated data records, if no data records containing the same information are queried, the number of acquisitions in the currently generated first data record is set to 1, if the data records containing the same information are queried and the number is N(N is an integer greater than or equal to 1), then the number of acquisitions in the currently generated first data record is set to N+1.
  • the first data record further includes evaluation information.
  • the evaluation information may include at least one of the number of successful verifications, the number of failed verifications, and a recall rate.
  • the number of successful verifications is the number of times the terminal successfully verifies the location positioning result when the terminal senses that it has entered the first area (such as a certain subway station)
  • the number of failed verifications is the number of times that the terminal has successfully verified the location positioning result when it senses that it has entered the first area (such as a certain subway station). station)
  • the recall rate is determined based on the number of successful verifications and the number of failed verifications.
  • the terminal can perform position positioning and/or scene recognition according to the cell identifier contained in the cell signal, compare the identified position information with the position information obtained according to the POI, and if they are the same, If it indicates that the verification is successful, the number of successful verifications in the currently generated first data record is incremented once; otherwise, it indicates that the verification has failed, and the number of verification failures in the currently generated first data record is incremented by one. Further, the terminal calculates the recall rate according to the number of successful verifications and the number of failed verifications in the first data record, and adds the calculated recall rate to the first data record.
  • the recall rate can be calculated using the following formula:
  • R is the recall rate
  • TP is the number of successful verifications
  • FN is the number of failed verifications.
  • the first data record may further include a first identifier, where the first identifier is used to indicate entering the first area.
  • the first identifier is the entry identifier, and the terminal adds the entry identifier to the first data record generated in response to the first trigger event.
  • the first data record may further include cell signal strength.
  • the terminal may record the RSSI of the cell signal into the first data record.
  • S420 The terminal generates a second data record according to the received cell signal.
  • the terminal after the terminal starts the data collection process, when it detects that the cell it is in has changed, for example, when the terminal moves from the signal coverage area of one cell to the signal coverage area of another cell, the terminal receives If the cell identifier included in the cell signal is different from the cell identifier included in the last received cell signal, the terminal generates the second data record according to the currently received cell signal.
  • the terminal after the terminal starts the data collection process, if it is judged that the terminal is in a motion state (such as walking state) and the motion state lasts for a set period of time since the data record was generated last time, the terminal The second data record may be generated based on the currently received cell signal.
  • a motion state such as walking state
  • the motion state lasts for a set period of time since the data record was generated last time
  • the terminal after the terminal starts the data collection process, if it is judged to be in the walking state according to the counting situation of the step counter of the terminal, and the distance from the last generated data record, the steps within the duration of the walking state If the number reaches the set threshold, the terminal can generate the second data record according to the currently received cell signal.
  • the second data record includes collection time and cell identifier.
  • the collection time may be the time when the terminal receives the cell signal, or the time when the data record is generated.
  • the second data records may also include information such as tracking area identifiers, operator identifiers, and country codes, which are derived from cell signals received by the terminal.
  • the second data record also includes a motion state.
  • the second data record also includes the number of acquisitions.
  • the second data record may also include cell signal strength.
  • the second data record may further include a second identifier, where the second identifier is used to indicate that it is in the first area.
  • the second identifier is an in-station identifier, and the terminal adds the in-station identifier in the second data record.
  • multiple second data records may be generated.
  • the terminal may move within the first area, that is, it may move from the signal coverage area of one base station to the signal coverage area of another base station multiple times, each time moving from the signal coverage area of a base station When reaching the signal coverage of another base station, the terminal can generate a second data record according to the cell signal sent by the current base station.
  • S430 The terminal generates a third data record in response to the second trigger event, and ends data collection.
  • the second trigger event in the embodiment of the present application is the event that the terminal senses to leave the second area. For example, the terminal performs contactless payment for rides through the exit gate at the entrance of the subway station. Since the second trigger event is The condition for ending the data collection, therefore, when the second trigger event occurs, after generating the third data record, the terminal ends the data collection.
  • the third data record includes collection time, cell identifier, and 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 location when the second trigger event occurs or before and after the occurrence ;
  • the location information is used to indicate the current location of the terminal, such as the name and location ID of the location.
  • the terminal may obtain the location information corresponding to the POI information according to the POI information carried in the payment response or other responses received when leaving the second area.
  • the third data record may also include information such as a tracking area identifier, an operator identifier, and a country code, which are derived from cell signals received by the terminal.
  • the third data record also includes a motion state.
  • the third data record also includes the number of acquisitions.
  • evaluation information is also included in the third data record.
  • the evaluation information may include at least one of the number of successful verifications, the number of failed verifications, and a recall rate.
  • the number of successful verifications is the number of times the terminal successfully verifies the position positioning result when the terminal senses that it has left the first area (such as a certain subway station)
  • the number of failed verifications is the number of times when the terminal senses that it has left the second area (such as a certain subway station). station)
  • the recall rate is determined based on the number of successful verifications and the number of failed verifications.
  • the terminal can perform position positioning and/or scene recognition according to the cell identifier contained in the cell signal, compare the identified position information with the position information obtained according to the POI, and if they are the same, If it indicates that the verification is successful, the number of successful verifications in the currently generated third data record is incremented once; otherwise, it indicates that the verification has failed, and the number of verification failures in the currently generated third data record is incremented by one. Further, the terminal calculates the recall rate according to the number of successful verifications and the number of failed verifications in the third data record, and adds the calculated recall rate to the third data record.
  • the third data record may also include cell signal strength.
  • the terminal may record the RSSI of the cell signal into the third data record.
  • the third data record may further include a third identification, where the third identification is used to indicate leaving the second area.
  • the third identifier is an outbound identifier, and the terminal adds the outbound identifier to the third data record generated in response to the second trigger event.
  • FIG. 5 shows a schematic flow diagram of another data collection method provided by an embodiment of the present application.
  • the terminal can start data collection when the data collection start condition is satisfied, and generate a collection data set through data collection. And when the data collection end condition is met (for example, when the first timer times out), the data collection is ended.
  • the process may include the following steps:
  • S510 The terminal starts data collection in response to a first trigger event, and generates a first data record.
  • S520 The terminal starts a first timer.
  • S530 The terminal judges whether the first timer expires and whether the second trigger event occurs, if the first timer does not expire and the second trigger event does not occur, then proceed to S540; if the first timer expires, then proceed to S550 ; If the second trigger event occurs, go to S560.
  • S540 The terminal generates a second data record according to the received cell signal, and returns to S530.
  • S550 The terminal ends the data collection.
  • S560 The terminal generates a third data record in response to the second trigger event, and ends data collection.
  • the terminal may stop the first timer.
  • the method for generating the first data record, the second data record, and the third data record in FIG. 5 and the content included in the data records are the same as the related description in FIG. 4 .
  • the terminal starts data collection and starts the first timer after paying for the ride at the entrance gate of the subway station. If the terminal does not pay for outbound rides at the exit gates of the subway station for a long period of time, the first timer times out, and the terminal ends data collection at this time, so that when the terminal enters the subway station and stays in the station for a long time , controlling the time length of the terminal to collect data not to exceed the time length of the first timer, so that the power consumption of the terminal can be saved.
  • FIG. 6 shows a schematic flow diagram of another data collection method provided by an embodiment of the present application.
  • the terminal can start data collection when the data collection start condition is met, and generate a collection data set through data collection. And when the data collection end condition is satisfied (for example, the second timer times out), the data collection is ended.
  • the process may include the following steps:
  • S610 The terminal starts data collection in response to a first trigger event, and generates a first data record.
  • S620 The terminal generates a second data record according to the received cell signal.
  • S630 The terminal generates a third data record and starts a second timer in response to the second trigger event.
  • S650 The terminal ends the data collection.
  • S660 The terminal generates a second data record according to the received cell signal, and returns to S640.
  • the method for generating the first data record, the second data record, and the third data record in FIG. 6 and the content included in the data records are the same as the related description in FIG. 4 .
  • the terminal pays for the outbound ride at the exit gate of the subway station, it does not immediately end the data collection, but starts the second A timer, during which the second timer is running, the terminal keeps data collection, and when the second timer times out, the terminal ends the data collection.
  • the second timer can be used to control the terminal to continue to collect data for a period of time after exiting the station.
  • the one hand can collect the signal of the cell in the area near the periphery of the exit gate of the subway station to obtain more comprehensive data records; On the one hand, it can avoid excessive time for data collection, so as to avoid excessive overhead and generate invalid data records, and can also save terminal power consumption.
  • the first timer can also be started after the first trigger event occurs, and the data collection ends when the first timer expires; if the first timer does not expire, the second trigger occurs event, the terminal stops the first timer and starts the second timer, and when the second timer expires, the terminal ends the data collection.
  • FIG. 7 shows a data collection process in the embodiment of the present application by taking the application scenario of a subway station as an example.
  • the terminal When the terminal performs contactless payment for rides through the entry gates of the subway station (such as payment for rides through QR codes, or payment for rides using NFC), the terminal receives the payment information for rides in the station, and the terminal starts the data collection.
  • contactless payment for rides through the entry gates of the subway station such as payment for rides through QR codes, or payment for rides using NFC
  • the terminal generates an inbound data record according to the received cell signal, obtains the corresponding subway station name according to the POI included in the received inbound ride payment information, and adds the subway station name to the inbound data record.
  • the entry data record may include: collection time, cell identification, collection times, subway station name, exercise status, evaluation information (such as including the number of successful verifications, the number of failed verifications, and recall rate), further, further Station records may also include tracking area identification, operator identification, and country code. Further, the entry record may also include an entry identifier (that is, the first identifier). Further, the inbound record may also include cell signal strength.
  • the terminal After the terminal generates the inbound data record, it updates the scene state to the inbound state, and starts the first timer.
  • the terminal may move from the signal coverage area of one base station to the signal coverage area of another base station multiple times, each time moving to a new base station signal coverage area,
  • the terminal generates data records in the station according to the currently received cell signal.
  • the in-station data record may include: collection time, cell ID, number of collections, and motion status.
  • the in-station record may also include tracking area ID, operator ID, and country code.
  • the on-site record may also include an on-site identifier (that is, a second identifier).
  • the in-station record may also include cell signal strength.
  • the terminal ends the data collection.
  • the terminal receives the Car payment information, the terminal generates outbound data records according to the received cell signal, obtains the corresponding subway station name according to the POI included in the received outbound ride payment information, and adds the subway station name to the outbound data record .
  • the outbound data record may include: collection time, cell identification, collection times, subway station name, exercise status, evaluation information (such as including the number of successful verifications, the number of failed verifications, and recall rate), further, further Station records may also include tracking area identification, operator identification, and country code.
  • the inbound record may also include an outbound identifier (that is, a third identifier). Further, the outbound record may also include cell signal strength.
  • the terminal After the terminal generates the outbound data record, it starts the second timer, and updates the scene state to the outbound state.
  • the terminal During the running of the second timer, the terminal generates intra-station data records according to the received cell signal.
  • the terminal ends the data collection.
  • the data records generated by the terminal are stored in the first data set in the terminal.
  • Table 1 shows an example of data records generated during a ride.
  • the data record No. 1 is the inbound data record
  • the data record No. 13 is the outbound data record
  • the data records No. 2-12 are collected in the subway station
  • the data record No. 14 is collected through the outbound station
  • the "time” field of the data record records the time when the terminal generates the inbound data record
  • the "cell ID” field records the cell ID contained in the cell signal received by the terminal
  • the "tracking area ID” field records the The tracking area identifier contained in the cell signal received by the terminal
  • the "operator identifier” field records the operator identifier contained in the cell signal received by the terminal
  • the "country code” field records the cell received in the communication
  • the country code contained in the signal, the contents of the "subway station name” field and the "city name” field are obtained by the terminal according to the received POI in the payment information for inbound rides, and the "collection times” field records the terminal The number of times the signal of the same cell is collected.
  • the "motion state” field records the motion state detected by the terminal.
  • the "recall rate” field is used to record the recall rate corresponding to the inbound data record.
  • the number of successful verifications corresponding to the inbound data field is equal to 10
  • the number of failed verifications is equal to 0
  • the recall rate is equal to 1.
  • the "record number” field is an optional field, which is used for the index of the record field identification.
  • the values of the cell ID, tracking area ID, operator ID, country code and other information in the data record are only exemplary descriptions for explaining the embodiment of the application, and do not represent real scenarios The value below.
  • the terminal held by the user can collect data in the subway station, in order to generate a location and/or scenario for the subway station scene.
  • the identified set of timed data provides the data foundation and data source.
  • the terminal can perform data processing on the collected data set to obtain a positioning data set for position positioning and/or scene recognition.
  • the terminal may process the collected data set according to a set time or period, so as to obtain the positioning data set.
  • the terminal can process the data records collected on the day at a set time of the day (for example, at night when the terminal load is low).
  • the following uses a subway station application scenario as an example to describe a method for a terminal to generate a positioning data set based on a collected data set.
  • 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.
  • the data records after the first stage of data mining can be stored in the intermediate data set, and the second stage of data mining is based on the intermediate data set, that is, the first stage of data mining can be performed on the collected data set
  • the intermediate data set is obtained, and the positioning data set is obtained by performing second-stage data mining on the intermediate data set.
  • the first-stage data mining and the second-stage data mining can also be directly performed on the collected data set to obtain the positioning data set.
  • the first stage of data mining may include: adding location information to data records that do not contain location information according to the motion state corresponding to the data records.
  • it may further include: adding a first scene type identifier to the inbound data record and the outbound data record, and adding a second scene type identifier to the in-station data record.
  • the second stage of data mining may include: selecting data records that meet the confidence requirements based on the evaluation information and collection times of the data records, and generating a positioning data set based on the selected data records that meet the confidence requirements.
  • the terminal may first divide the data records in the collected data set according to a single ride process to obtain data records corresponding to a single ride process.
  • a single ride process includes the process from entering the subway station to leaving the subway station.
  • the terminal can process the data records according to the inbound mark and the outbound mark. segmentation.
  • the terminal can The data records all include the characteristics of the location information, as well as the time sequence of the data records in the collected data set, and the division of the data records is performed. Further, if the data record in the collected data set is not provided with an inbound sign, an outbound sign or an in-station sign, after the data record corresponding to the single ride process is divided, it can also be used in the single ride process. Add corresponding identifiers to the corresponding data records, such as inbound identifiers, outbound identifiers or on-site identifiers, so as to facilitate subsequent data mining.
  • the motion states of the multiple in-station data records of the riding state are corrected to the non-riding state, such as Calibrate to a walking state or a staying state.
  • position information can be added to the in-station data records that do not contain position information according to the motion state corresponding to these data records.
  • the process of adding location information to the in-station data record may include: according to the order of collection time from front to back, the first in-station data adjacent to the in-station data record Subway station location information is added to the in-station data record between the record and the second in-station data record, and the added subway station location information is the same as the subway station location information in the incoming data record.
  • the second in-station data record is the first in-station data record whose motion state is the riding state among the in-station data records arranged in the order of collection time from front to back.
  • the fourth in-station data record is the first in-station data record whose motion state is the riding state among the in-station data records arranged in the order of collection time from back to front.
  • Fig. 8 shows a schematic diagram of an implementation manner of adding location information in data records.
  • the data record with the number equal to 1 is the inbound data record
  • the data record with the number equal to 13 is the outbound data record
  • the inbound data record and the outbound data record is the inbound data record and the outbound data record
  • the inbound data record and the outbound data record are data records corresponding to a single ride process.
  • the "subway station name" in the data records in the stations numbered 2-12 is empty.
  • the subway station name S1 and city A can be added to the data records numbered 2-5 , add the subway station name S3 and city A to the data records numbered 11-12, as shown in Table 2.
  • Table 2 Data records after the first stage of data mining:
  • the terminal can add location information to the in-station data records in the collected data set according to the user behavior (such as the length of stay in the inbound subway station and outbound subway station) and exercise status.
  • user behavior such as the length of stay in the inbound subway station and outbound subway station
  • exercise status e.g., the length of stay in the inbound subway station and outbound subway station
  • Operation 1 According to the order of time from front to back, determine the first duration between the inbound data record and the in-station data record of the first riding state (that is, the length of stay in the inbound subway station), and set the first duration Add it to the set of stay time corresponding to the inbound subway station, and determine the inbound stay time threshold corresponding to the inbound subway station according to the updated stay time in the set of stay time corresponding to the inbound subway station; if the first If the duration is longer than the threshold of the duration of the inbound stay, then the collection time of the inbound data record is taken as the starting point to select the in-station data records within the threshold of the inbound sojourn duration, and the location information of the subway station in the inbound data record Add to the selected in-station data record; otherwise, add the subway station position information in the inbound data record to the in-station data record between the inbound data record and the first ride state data record (excluding the ride state data record). data record of vehicle state).
  • Operation 2 According to the order of time from back to front, determine the second duration between the outbound data record and the first ride state data record (that is, the length of stay in the outbound subway station), and set the second duration Added to the set of length of stay corresponding to the outbound subway station, and according to the length of stay in the set of length of stay corresponding to the outbound subway station after the update, determine the threshold of the length of stay in the station corresponding to the outbound subway station; if the second If the duration is longer than the threshold of the outbound sojourn duration, the in-station data record within the threshold of the outbound sojourn duration is selected from the collection time of the outbound data record, and the location information of the subway station in the outbound data record Add to the selected in-station data record; otherwise, add the subway station position information in the outbound data record to the in-station data record between the outbound data record and the first ride state data record (excluding the ride state data record). data record of vehicle state).
  • the stay time set corresponding to a subway station includes the historical information of the length of time that the terminal has stayed in the subway station for many times, and the stay time threshold is dynamically determined based on the stay time in the set, and then according to the terminal's current stay in the subway station
  • the size relationship between the length of stay in the station and the threshold of the length of stay Select the data records that need to add location information, so that according to the user behavior habits, select the data records in the station that are suitable for the behavior habits and add the location as a follow-up data mining
  • the method for determining the threshold value of the inbound stay time corresponding to the inbound subway station may include: if the updated stay If the number of stays in the duration set 1 is less than the set threshold, then determine that the threshold of the inbound stay is equal to the initial value; otherwise, determine the threshold of the inbound stay according to the stay in the set 1 of the stay.
  • the stay can be The length of stay in set 1 is sorted from small to large, and then divided into four equal parts. The length of stay at the third segmentation point is determined as the threshold of the length of stay in the station, so that the determined threshold of length of stay can be consistent with user behavior habits. match.
  • the embodiment of the present application may also use other algorithms to calculate the stay duration threshold based on the stay duration in the stay duration set 1, which is not limited in the embodiment of the present application.
  • the method for determining the outbound sojourn duration threshold based on the updated set of sojourn durations corresponding to the outbound subway station is similar to the above method.
  • the earliest added stay duration in the stay duration collection may be deleted.
  • the upper limit of the number is equal to 100.
  • Fig. 9 shows a schematic flow chart of adding location information in data records. As shown in Figure 9, the process may include the following steps:
  • S710 and S720 For the data records corresponding to a single ride, traverse downwards from the inbound data records (see S710), and traverse upwards from the outbound data records (see S720).
  • S740 For the process of traversing downward from the entry record, calculate the first duration from the entry data record to the data record of the currently traversed ride state, and the first duration is the length of stay in the incoming subway station. The first duration is added to the set of stay durations corresponding to the inbound subway station, so that the stay duration sets are updated. Using the same method, for the process of traversing upwards from the outbound data records, determine the outbound stay duration threshold corresponding to the outbound subway station.
  • S750 Determine the inbound sojourn duration threshold corresponding to the inbound metro station according to the sojourn duration in the sojourn duration set corresponding to the inbound metro station; determine the outbound sojourn duration according to the sojourn duration in the sojourn duration set corresponding to the outbound metro station The threshold for the length of stay in the station corresponding to the subway station.
  • S762 From the incoming data record down to the first data record of the riding state, add the station name of the incoming subway station to the data records in the station (excluding the data record of the riding state) within the range.
  • S770 ⁇ 772 is for the process of traversing upwards from the outbound data records, according to the size relationship between the length of stay in the outbound subway station and the corresponding outbound stay time threshold of the outbound subway station, select the corresponding in-station data record
  • the specific implementation of the process of adding location information is similar to that of S760-762.
  • the second stage of data mining can be carried out to obtain the positioning data set.
  • data records with confidence levels that meet the requirements can be selected from the collected data set (for the first stage data mining and the second stage data mining based on the collected data set), or from the intermediate data set Select the data records whose confidence meets the requirements (for example, for the first stage of data mining based on the collected data set to obtain the intermediate data set, and then the second stage of data mining based on the intermediate data set to obtain the location data set), and according to the selected
  • the output data records are used to obtain the positioning data set.
  • the data records whose confidence meets the requirements meet at least one of the following conditions:
  • Condition 1 The data record is an inbound data record.
  • the inbound data records are considered to belong to the data records whose confidence level meets the requirements. It can be determined which data records are inbound data records according to the inbound identifiers in the data records, and whether the data records are inbound data records can also be determined according to whether the data records contain evaluation information.
  • Condition 2 Inbound data records whose recall rate is greater than the set threshold.
  • Inbound data records whose recall rate is greater than the set threshold can be considered as data records whose confidence meets the requirements.
  • the recall rate represents the credibility or validity of the data record, and a higher recall rate of the data record indicates that the data record has a higher credibility, so the confidence level can be selected in the embodiment of the present application
  • Higher data records are used for subsequent position positioning and/or scene recognition, thereby ensuring the reliability of position positioning and/or scene recognition.
  • Condition 3 The data record is an outbound data record.
  • the outbound data records are considered to belong to the data records whose confidence meets the requirements.
  • Those data records can be determined as outbound data records according to the outbound identifiers in the data records, or whether the data records are outbound data records can be determined according to whether the data records contain evaluation information.
  • Condition 4 Outbound data records whose recall rate is greater than the set threshold.
  • Condition 5 In-site data records whose edge degree meets the requirements.
  • the edge degree is used to characterize the relative position of the cell indicated by the cell identifier and the center of the subway station, and the edge degree is represented by the ratio of the number of acquisitions in the data record in the station to the maximum number of acquisitions, and the maximum number of acquisitions is the same as The maximum collection times among all in-station data records of subway station location information.
  • the corresponding edge degree can be determined for the data record in the station, which is used to characterize whether the cell location corresponding to the data record in the station belongs to the edge location or the central location in the subway station.
  • the calculation formula of its corresponding edge degree can be expressed as:
  • is the edge degree of the data record in the station
  • count is the number of acquisitions contained in the data record in the station
  • maxCnt is the maximum number of acquisitions
  • the maximum number of acquisitions refers to the subway indicated by the location information contained in the data record in the station Station, the maximum number of acquisitions in all data records containing this subway station in the collection data set or intermediate data set.
  • the value of the edge degree is greater than 0 and less than or equal to 1.
  • data records in the station whose edge degree is greater than the set threshold are considered as data records meeting the confidence requirement.
  • Condition 6 Data records whose collection time is after the specified time (including inbound data records, in-station data records and outbound data records).
  • the specified time is before the current time and the duration from the current time is equal to the set duration.
  • the data records obtained within the set duration starting from the current time are regarded as the data records whose collection time is later than the specified time.
  • the set duration is configurable, for example, 180 days, that is, data records generated within 180 days from now are considered to meet the sixth condition. Since the closer the data record is to the current time, the higher its credibility is, so by selecting the data record generated for a period of time closer to the current time, the credibility of the data record can be guaranteed, and then the subsequent use of the data record can be guaranteed. Reliability of position localization or scene recognition. On the other hand, the storage overhead of the terminal can also be saved by performing aging processing on the data.
  • the motion state is not the data record of the riding state.
  • the in-station data records whose motion state is the riding state are generally collected when the terminal is located on the subway train, and the collected cell signal may be the cell signal in the subway tunnel.
  • the embodiment of the present application can combine these Data records are considered invalid data records.
  • the above conditions can be combined arbitrarily. 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 can be selected from the remaining data records, and The data records in the station whose edge degree is greater than the set threshold are used to generate data records in the positioning data set.
  • Table 3 shows the data records that meet the confidence requirements obtained after the second stage of data mining.
  • Table 3 shows the data records generated by the terminal for location positioning and/or scene recognition based on the data records meeting the confidence requirements.
  • Table 3 Data records that meet the confidence requirements after the second stage of data mining:
  • the value of the scene type field can be set to "1", indicating that the scene corresponding to the corresponding data record is the scene of the entrance and exit of the subway station.
  • the scene can be set to The value of the type field is set to "0", indicating that the scene corresponding to the corresponding data record is a scene in a subway station.
  • FIG. 10 exemplarily shows a process of selecting data records from the collection data set to obtain the positioning data set based on the definition of the above conditions.
  • the journey may include: at S801, clearing the data records in the collected data set before 6 months, of course, the 6 months here is just an example, and other lengths of time may also be used according to the storage capacity of the terminal to set the length of time.
  • S801 the retained data records can be made to meet the above condition 6.
  • For each remaining data record perform the following steps:
  • the inbound data records and outbound data records are set with the number of successful verifications and/or the number of failed verifications. If the number of successful verifications or the number of failed verifications is greater than 0, it indicates that it has been verified at least once. Therefore, if the current data record is an inbound data record or an outbound data record, the judgment result in S802 is yes, that is, the above condition 1 or condition 3 is met.
  • the current data record is an in-station data record, since the in-station data record does not have the corresponding number of verification successes and verification failures, it is necessary to judge whether the current in-station data record satisfies the above-mentioned fifth condition according to the edge degree.
  • the number of acquisitions contained in the current data record is less than 3 times, it indicates that the number of times the cell identification in the current data record is collected is less, and it is very likely that the cell identification is the cell identification of the edge cell in the subway station, so Go to S806. If the number of acquisitions contained in the current data record is greater than or equal to 3 times, it is necessary to further transfer to S804 to judge whether the cell ID in the current data record is the cell ID of an edge cell in the subway station according to the edge degree.
  • this step is only based on an example where the judgment threshold of the number of acquisitions is equal to 3, and this embodiment of the present application does not limit the judgment threshold.
  • S804 Determine whether the edge degree corresponding to the current data record is greater than or equal to 0.1, if yes, go to S805, otherwise go to S806.
  • 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 probably the central cell in the subway station.
  • this step only takes an example where the judgment threshold of the edge degree is equal to 0.1, and this embodiment of the present application does not limit the judgment threshold.
  • S805 Generate data records in the positioning data set according to the current data records.
  • the terminal may also perform statistics or mining on user behavior according to the data records in the collected data set, for example, determine the user's commuting behavior according to the data records in the collected data set.
  • the user's working time or time period, off-duty time or time period, commuting time, commuting route and other information can be determined.
  • the terminal after the terminal generates the collected data set, it can send the collected data set to the server on the network side, and the server performs data processing such as data mining on the collected data set sent by the terminal and other terminals. (for example, including performing the first-stage data mining and the second-stage data mining), and generating a positioning data set for location positioning and/or scene recognition.
  • the terminal after the terminal generates the collected data set, it can perform the first-stage data mining on the collected data set to obtain the intermediate data set, and send the intermediate data set to the server, and the server sends the collected data set to the terminal and other terminals.
  • the intermediate data set is used for data processing such as data mining (for example, second-stage data mining), and a positioning data set for position positioning and/or scene recognition is generated. Further, the server can publish the positioning data set, so that the terminal obtains the positioning data set, and can perform position positioning and/or scene recognition according to the positioning data set.
  • data processing such as data mining (for example, second-stage data mining)
  • second-stage data mining for example, second-stage data mining
  • the server can publish the positioning data set, so that the terminal obtains the positioning data set, and can perform position positioning and/or scene recognition according to the positioning data set.
  • FIG. 11 shows a schematic diagram of cooperation between a terminal and a server on the network side to generate a location data set.
  • terminal 1 to terminal N (N is an integer greater than 1) are located in the same city, terminal 1 to terminal N respectively generate collected data sets, and perform the first stage of data mining on the respectively generated collected data sets (such as Including dividing the data records corresponding to a single ride process, adding location information to data records that do not contain location information, etc. to obtain intermediate data sets), Terminal 1 to Terminal N send their respective intermediate data sets to the network side server.
  • the implementation manner of generating the collected data set by the terminal 1 to the terminal N, and the implementation manner of performing the first-stage data mining on the collected data set may refer to the foregoing embodiments.
  • the server performs the second stage of data mining based on the intermediate data set sent by terminal 1 to terminal N (for example, including selecting data records whose confidence meets the requirements based on evaluation information), and obtains a set of positioning data for position positioning and scene recognition, and through the data
  • the publishing function sends the positioning data set to terminal 1 to terminal N respectively.
  • the server can combine the intermediate data sets sent by each terminal, for example, the intermediate data sets of different terminals have the same cell information (for example, including cell identification, and further include tracking area identification, operator identification, Country code, etc.) and data records of location information are merged.
  • the M data records can be data records are merged into one data record.
  • the collection times in the combined data records are the sum of the collection times in the M inbound data records, and edge degree calculation can be performed based on the combined collection times.
  • the time in the merged data record is the earliest time among the M data records, so that the data record aging process is performed based on this time.
  • the number of successful verifications in the merged inbound data records is the sum of the number of successful verifications in the M inbound data records
  • the merged inbound data records The number of verification failures in is the sum of the number of verification failures in the M inbound data records
  • the recall rate in the merged inbound data records is calculated based on the number of successful verifications and the number of failed verifications in the merged data records.
  • the method for the server to perform the second-stage data mining on the merged 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 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 location positioning and/or scene recognition, which can make the generated positioning data set contain more extensive and comprehensive data. Records, that is, data records containing more cells, so as to better perform position positioning and/or scene recognition for the terminal.
  • the server can first store the data records belonging to the same city in the data set corresponding to the city, and separately store the data records corresponding to each city Processing is performed to obtain a set of positioning data corresponding to each city for position positioning and/or scene recognition.
  • the server may send the positioning data set corresponding to the corresponding city to the terminal according to the city where the terminal is located.
  • the above-mentioned method of using the terminal and the server to cooperate in data mining to generate a positioning data set for location positioning and/or scene recognition can effectively utilize group data while retaining the user's riding behavior habits on the terminal side, and accurately mine subway traffic.
  • the cell information in the station can be further mined to subdivide the data in the scene, such as the cell information at the location of the subway station, and the cell information in the tunnel between the subway platforms can be further obtained, so that the position positioning or scene recognition results are more accurate. .
  • FIG. 12 shows a schematic diagram of a location positioning process provided by an embodiment of the present application. As shown in the figure, the process may include:
  • the terminal may determine whether the first condition is satisfied when the location location opportunity arrives, and if it is judged that the first condition is not met, the location location and/or scene recognition operation will not be performed, otherwise, the location location location will be executed. Localization and/or scene recognition operations.
  • the meeting the first condition may include: the position positioning opportunity arrives and the position positioning activation condition is met, so that the position positioning is only activated when the position positioning opportunity arrives and the position positioning activation condition is met, so as to reduce invalid position positioning operations , to reduce terminal power consumption.
  • the terminal when the terminal turns on the screen and unlocks the screen, or when the terminal detects that the cell it is in has changed while the terminal is on, or when a walking movement state is detected while the terminal is on, or the terminal in the off-screen state is blocked When it wakes up periodically, it can be considered that the time for location positioning has arrived.
  • the basis for judging whether the location positioning start condition is met may include: whether the cell identifier contained in the cell signal received by the terminal is in the scene identification shielding list, the motion state of the terminal, and the cell signal received by the terminal contains Whether the cell identity of the cell is the same as the cell identity contained in the cell signal received when the last location location opportunity arrives.
  • the cell ID contained in the cell signal received by the terminal is not in the scene recognition shielding list, and the terminal's motion state is not in a vehicle state, the cell ID contained in the cell signal received by the terminal is not in the same location as the last location positioning opportunity. If the cell identifier contained in the cell signal received when the event occurs is different, position positioning and/or scene recognition can be started.
  • the situation that meets the first condition may include one of the following situations:
  • Scenario 1 When the terminal turns on the screen and unlocks the screen, if the cell identifier contained in the cell signal received by the terminal is not in the scene identification mask list, and the current motion state of the terminal is not in a car state, the first condition is met.
  • the terminal may determine the motion state of the terminal according to detection data of related sensors (such as acceleration sensors) set in the terminal.
  • Scenario 3 When the terminal detects that the cell it is in has changed when the screen is turned on, if the cell ID contained in the cell signal received by the terminal is not in the scene identification shielding list, and the current motion state of the terminal is a non-driving state, then the first requirement is met. a condition;
  • Scenario 4 When the terminal in the off-screen state is woken up periodically, if it detects that the cell it is in has changed, that is, the cell it is currently in is different from the cell it was in when it was woken up last time, and the cell signal received by the terminal contains the The first condition is met if the cell identifier is not in the scene identification shielding list and the current motion state of the terminal is not in a vehicle state.
  • the location location opportunity When the location location opportunity arrives, determine whether to start location location and/or scene recognition. For example, if the cell ID received by the terminal is in the scene recognition mask list, it indicates that the current location belongs to a non-subway station area, and there is no need to start the location within the subway station. Positioning and/or scene recognition, so that the power consumption of the terminal can be reduced as much as possible while ensuring the coverage of position positioning.
  • the scene recognition shielding list may include cell identities, and the cell identities include cell identities of cells outside subway stations, for example, may include cell identities of home and company areas.
  • the scene identification mask list can be pre-configured, for example, the cell identifiers of the area outside the subway station are set in the scene identification mask list in advance.
  • the cell identifiers in the scene identification shielding list can also be obtained by the terminal through self-learning.
  • the process for the terminal to obtain the cell ID of the area outside the subway station through self-study and add it to the scene identification mask list may include: if the terminal queries the positioning data set according to the cell ID contained in the received cell signal, query Failed, and the cumulative number of query failures when querying the positioning data set according to the cell ID reaches the set threshold (for example, greater than or equal to 20 times), indicating that the cell ID may be the cell ID of a cell outside the subway station, then the cell The logo is added to the scene recognition mask list.
  • the set threshold for example, greater than or equal to 20 times
  • all or part of the cell identifiers in the scene recognition masking list may be derived from a list of cells outside the subway station, and the cell identifiers contained in the list of cells outside the subway station are identifiers of cells in non-subway station areas collected by the terminal.
  • the scene identification masking list may be updated based on the updated list of cells outside the subway station.
  • the list of cells outside the subway station can be cleaned up according to a set cycle, for example, cell identities that have not appeared in the past half a year are deleted according to the set cycle.
  • the cell identifiers in the cell list outside the subway station can be pre-configured, can also be obtained by the method of the foregoing embodiment, or can be obtained by a self-learning method, for example, if the terminal receives cell If the query fails when querying the positioning data set with the ID, and the cumulative number of query failures when querying the positioning data set according to the cell ID reaches the set number threshold, then the cell ID is added to the list of out-of-station cells.
  • S1020 The terminal acquires a cell signal at the current location, and determines location information at the current location according to the cell signal.
  • 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.
  • the correspondence between the cell signal and the location information includes the correspondence between the identifier of the cell signal and the location information, and the terminal can determine the location information corresponding to the identifier of the cell signal according to the identifier of the cell signal at the current location.
  • the correspondence between the cell signal and location information includes the correspondence between the identity and strength of the cell signal and the location information. The terminal can determine the identity and strength of the cell signal at the current location according to the identity and strength of the cell signal. The location information corresponding to the intensity.
  • the correspondence between cell signals and location information can be stored as a positioning data set, and the terminal can query the positioning data set in the terminal according to the cell ID in the cell signal to obtain the location information corresponding to the cell ID, the location information Target the result for the location.
  • the terminal queries the positioning data set according to the cell identifier, and can obtain a data record including the cell identifier, wherein the data record includes location information and/or scene information corresponding to the cell identifier.
  • the terminal determines the position information and/or scene information in the data record as a position positioning result or a scene recognition result.
  • the location information may include a subway station name, a city name, and the like.
  • the scene information may include information such as a first scene type identifier or a second scene identifier.
  • the positioning data set may be generated by the terminal based on the collected data set, or may be configured for the terminal by the network side, which is not limited in this embodiment of the present application.
  • the above process may further include the following steps:
  • S1030 The terminal executes a service matching the current location according to the determined location information.
  • the terminal when the terminal recognizes that it is currently at the entrance or exit of a subway station, it will automatically display the identification code used for subway ride payment on the terminal screen to facilitate the user's use
  • the identification code is scanned for payment.
  • the data record containing the cell ID that the terminal inquires according to the cell ID contained in the received cell signal also includes the first scene type ID, it indicates that the location indicated by the data record is a subway station entrance or exit, then the terminal displays the identification code for subway ride payment on the screen of the terminal.
  • the terminal can determine that it is currently the scene of entering the station, so it can obtain the time information of the arrival of the subway train at the subway station, and display it on the terminal screen or broadcast it in voice mode, so that Users understand the forecast information of the arrival time of subway trains.
  • the terminal can determine that the current outbound scene is, so the terminal can obtain the location information (such as the name of the subway station) corresponding to the cell identifier according to the positioning data set, and obtain The road traffic information, weather information, etc. of the location, and output the obtained information, such as displaying on the terminal screen or broadcasting through voice.
  • the method for generating the cell list outside the station may refer to the foregoing embodiments.
  • the terminal when the terminal recognizes that the current location is in the inner area of the subway station, it outputs the arrival time prediction information of the subway train, so as to facilitate the user to take the train.
  • the data record containing the cell identifier that the terminal inquires according to the cell information contained in the received cell signal also includes the second scene type identifier, it indicates that the location indicated by the data record is in the inner area of the subway station , further, if the terminal is currently in the non-boarding state, the terminal can obtain and output the time prediction information of the arrival time of the subway train at the subway station.
  • the arrival time of the subway train can be displayed on the screen of the terminal, or broadcast by voice.
  • the terminal can perform an arrival reminder.
  • the data record containing the cell ID that the terminal inquires according to the cell ID contained in the received cell signal also includes the second scene type ID, it indicates that the location indicated by the data record is in the inner area of the subway station , further, if the terminal judges that it is currently in the riding state, then the terminal outputs prompt information for arriving at the subway station (that is, the name of the subway station included in the queried data record).
  • the terminal when the terminal queries the location data set according to the cell identifier contained in the received cell signal, and obtains the corresponding subway station name, it can also obtain the Name associated push information, and display the push information on the terminal screen.
  • the push information may include, but not limited to, commercial promotion information in areas around the subway station.
  • Fig. 13 exemplarily shows a location positioning process of the embodiment of the present application. As shown in Figure 13, the location positioning process can be started in the following situations:
  • Scenario 1 As in S1101-S1102, when the terminal turns on the screen and unlocks the screen, obtain the cell ID contained in the currently received cell signal, as shown in S1140-1150, the terminal judges whether the cell ID is in the scene identification shielding list , if the cell ID is not in the scene recognition shielding list, then further judge whether the current motion state of the terminal is the riding state, that is, whether the terminal is on the vehicle, if the current motion state of the terminal is not the riding state, then start the subsequent location positioning process, otherwise the location positioning process will not be started.
  • Scenario 3 As shown in S1121-1122, during the period when the terminal is on, if it is detected that the cell where the terminal is located changes, that is, it moves from the signal coverage of one cell to the signal coverage of another cell, then obtain the currently received cell The cell ID contained in the signal, as shown in S1140-S1150, the terminal judges whether the cell ID is in the scene identification mask list, if the cell ID is not in the scene identification mask list, then further judges whether the current motion state of the terminal is driving Status, that is, whether the terminal is on a vehicle. If the current motion state of the terminal is not in the vehicle state, the subsequent location positioning process will be started, otherwise the location positioning process will not be started.
  • the terminal performs location positioning according to the second data set.
  • the terminal judges whether the recognized position or scene is a position or scene in a subway station, if yes, proceeds to S1180, otherwise proceeds to S1190.
  • the terminal finds the subway station name corresponding to the cell identifier from the second data set according to the cell identifier, it can be determined that the current location of the terminal is in the subway station. If the terminal does not find the name of the subway station corresponding to the cell identifier from the second data set according to the cell identifier, it may be determined that the terminal is not currently in the subway station.
  • S1180 The terminal updates the current scene state to be in the subway station.
  • S1190 The terminal updates the current scene state to be outside the subway station.
  • S1191 The terminal updates the number of query failures corresponding to the cell ID, and if the number of query failures reaches the set threshold, then proceed to S1092;
  • the terminal adds the cell identifier to the list of out-of-station cells. Further, the terminal may update the time corresponding to the cell identifier in the off-site cell list.
  • the above process may also include:
  • the terminal may update the scene identification shield list according to the off-site cell list, for example, add the cell identifier in the off-site cell list to the scene identification shield list.
  • the terminal may perform aging processing on the cell identities in the off-site cell list according to the set period, for example, delete the cell identities with an earlier time.
  • the user enters the subway station S1 with the terminal and walks towards the entrance gate.
  • the user lights up the screen of the terminal and unlocks the screen.
  • the cell signal currently received by the terminal is The cell ID contained in is 0001, and it is determined that the cell ID 0001 is not included in the scene identification shielding list, and the terminal is currently in a non-driving state, then the terminal queries the second data set according to the cell ID, and the queried data
  • the value of the "scene type" field in the record is "1", which means that the current scene is a subway station entrance and exit scene, so the terminal automatically displays the QR code used for subway ride payment on the screen of the terminal, so that users Carrying out the ride payment, thereby eliminating the need for the user to open the corresponding application program, and then open the user operation of the subway ride payment QR code, thereby improving the user experience.
  • the terminal When the user enters the entrance gate and walks in the subway station with the terminal, the terminal continues to turn on the screen, and the terminal detects that the cell has changed, then the terminal obtains the cell ID contained in the currently received cell signal, and the cell The cell ID contained in the signal is 0010.
  • the terminal judges that the cell ID is not included in the mask list, so it queries the positioning data set according to the cell ID, and the value of the "scene type" field in the queried data record is "0". , indicating that the current scene is a scene in a subway station, the terminal obtains the arrival information of the subway train at the subway station S1 at the current time from the network side, and displays the information on the screen of the terminal, so that the user can easily understand the arrival of the subway train time, thereby improving user experience.
  • the terminal When the user is holding the terminal to take the subway train, the terminal keeps turning on the screen and detects that the cell has changed.
  • the cell ID contained in the currently received cell signal is 1011, and the terminal judges that the cell ID is not included in the shielding list. Therefore, the positioning data set is queried according to the cell identity, and the "subway station name” field in the queried data record is S3 and the "scene type” field is "0", then the prompt information can be displayed on the screen of the terminal ( Or output prompt information in other ways, such as using voice output), to prompt arrival at subway station S3, so as to prevent the user from passing the station.
  • the terminal When the user gets off at subway station S3 with the terminal, the terminal lights up and unlocks the screen, and receives a cell signal, the cell ID contained in the cell signal is 1101, and the terminal judges that the cell ID is not included in the shielding list Therefore, the positioning data set is queried according to the cell ID, and the “Subway Station Name” field in the queried data record is S3 and the “Scene ID” field is “1”, then the two-dimensional The code is displayed on the screen of the terminal so that users can use the QR code to complete the payment operation.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer, the computer can implement the method provided by the above method embodiment.
  • the embodiment of the present application also provides a computer program product, where the computer program product is used to store a computer program.
  • the computer program product is used to store a computer program.
  • the embodiment of the present application further provides a chip, including a processor, the processor is coupled to a memory, and is configured to call a program in the memory so that the chip implements the method provided in the above method embodiment.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. 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, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本申请公开了一种基于位置定位的服务实现方法、数据处理方法及装置。包括:满足第一条件时,终端获取当前位置的小区信号;所述终端根据所述小区信号确定当前位置的位置信息;所述终端根据所述位置信息,执行与所述当前位置匹配的服务。

Description

一种基于位置定位的服务实现方法、数据处理方法及装置
相关申请的交叉引用
本申请要求在2021年10月27日提交中国专利局、申请号为202111264022.5、申请名称为“一种基于位置定位的服务实现方法、数据处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种基于位置定位的服务实现方法、数据处理方法及装置。
背景技术
随着互联网的快速发展,位置服务(location-based service,LBS)的应用越来越广泛。位置服务的关键技术包括室内位置定位或场景识别。室内位置定位是指在室内环境下确定终端的位置坐标,场景识别是指在室内环境下确定终端所属的应用场景(比如该终端刚进入该室内环境,还是将要离开该室内环境),场景识别需要基于位置定位实现。
地铁站内的位置定位或场景识别,是一种典型的位置服务应用。地铁作为城市主要的市内交通工具,地铁站场景与人们的生活息息相关,围绕地铁站的位置服务可为人们带来更多的便利以及更好的使用体验。
在地铁站或类似场景下,如何更好的实现场景识别或位置定位,进而为用户提供更好的服务,以提高用户感受,是目前需要解决的问题。
发明内容
本申请实施例提供基于位置定位的服务实现方法、数据处理方法及装置。
第一方面,提供一种基于位置定位的服务实现方法,包括:满足第一条件时,终端获取当前位置的小区信号;所述终端根据所述小区信号确定当前位置的位置信息;所述终端根据所述位置信息,执行与所述当前位置匹配的服务。
可选的,所述位置信息可包括位置描述信息或位置标识。不同于位置坐标信息,位置描述信息和位置标识可以是预先定义的且用于进行位置区分的信息,比如,所述位置信息可以是地铁站名,或者是地铁站ID。
上述实现方式中,一方面,由于终端在满足第一条件时才进行位置定位,因此可以避免无效的位置定位,进而减少终端的功耗;另一方面,终端根据当前的位置,执行与当前位置匹配的服务,可以提高用户使用感受,举例来说,当确定出当前的位置为地铁站入口或出口,终端可以将用于地铁乘车支付的标识码显示在终端屏幕上,以方便用户使用该标识码进行乘车支付。
在一种可能的实现方式中,所述终端根据所述小区信号确定当前位置的位置信息,包括:所述终端根据小区信号与位置信息的对应关系,确定与所述当前位置的小区信号对应的位置信息。
在一种可能的实现方式中,所述小区信号与位置信息的对应关系,包括小区信号的标识与位置信息的对应关系;所述确定与所述当前位置的小区信号对应的位置信息,包括:根据所述当前位置的小区信号的标识,确定与所述小区信号的标识对应的位置信息。
在一种可能的实现方式中,所述小区信号与位置信息的对应关系,包括小区信号的标识和强度与位置信息的对应关系;所述确定与所述当前位置的小区信号对应的位置信息,包括:根据所述当前位置的小区信号的标识和强度,确定与所述小区信号的标识和强度对应的位置信息。
在一种可能的实现方式中,所述位置信息包括地铁站位置信息,所述地铁站位置信息包括地铁站标识信息和地铁站场景信息,所述地铁站场景信息包括地铁站入口标识、地铁站出口标识或地铁站站内标识。
在一种可能的实现方式中,所述满足第一条件,包括:位置定位时机到来且满足位置定位启动条件。上述实现方式中,只有在满足上述第一条件时才进行位置定位,从而可以避免无效的位置定位操作,进而可以节省终端功耗。
在一种可能的实现方式中,所述位置定位时机到来,包括:所述终端亮屏并进行屏幕解锁;或者,所述终端亮屏状态下检测到持续步行的运动状态;或者,所述终端亮屏期间检测到所在小区发生变化;或者,处于灭屏状态下的所述终端被周期唤醒。
在一种可能的实现方式中,所述满足位置定位启动条件,包括以下至少一项:
所述终端被唤醒时接收到的小区信号中包含的小区标识,与被唤醒前接收到的小区信号中包含的小区标识不同;
所述终端接收到的小区信号中包含的小区标识不包括在场景识别屏蔽列表中,所述场景识别屏蔽列表用于存储无需进行场景识别的小区的标识;
所述终端处于非乘车的运动状态。
在一种可能的实现方式中,所述方法还包括:若所述终端根据所述当前位置的小区信号进行位置定位失败,且失败次数达到设定阈值,则将所述当前位置的小区信号中的小区标识添加到所述场景识别屏蔽列表中。
上述实现方式中,若根据当前位置的小区信号进行位置定位时失败,且识别次数达到设定阈值,则表明已经无法针对该小区信号进行位置定位,因此可将该小区信号中的小区标识添加到场景识别屏蔽列表中,以避免后续进行无效的位置定位,进而可以节省终端功耗。
在一种可能的实现方式中,所述终端根据所述位置信息,执行与所述当前位置匹配的服务,包括:若所述位置信息指示的位置为地铁站的入口或出口,则所述终端将用于地铁乘车支付的标识码显示在屏幕上。
上述实现方式中,若识别出的位置为地铁站入口或出口,则终端可自动将用于地铁乘车支付的标识码显示在屏幕上,以方便用户进行乘车支付。
在一种可能的实现方式中,所述终端根据所述位置信息,执行与所述当前位置匹配的服务,包括:若所述位置信息指示的位置为第一地铁站的地铁站内,则所述终端获取地铁列车到达所述第一地铁站的时间预测信息,并将所述时间预测信息显示在屏幕上或者通过语音播报所述时间预测信息。
上述实现方式中,若识别出的位置为地铁站内,则终端可自动获取地铁列车到达该地铁站的时间预测信息,并进行语音播报或显示在屏幕上,以方便用户了解列车到达时间。
在一种可能的实现方式中,所述终端根据所述位置信息,执行与所述当前位置匹配的服务,包括:若所述位置信息指示的场景为第二地铁站的地铁站内,且所述终端检测到的运动状态为乘车状态,则所述终端在屏幕上显示到站提醒信息或者通过语音播报所述到站提醒信息,所述到站提醒信息用于提示到达所述第二地铁站。
上述实现方式中,若识别出的位置为地铁站内,且终端检测到当前的运动状态为乘车状态,则终端可自动进行到站提醒,以方便用户进行乘车。
在一种可能的实现方式中,所述方法还包括:所述终端检测第一触发事件,响应于所述第一触发事件启动数据采集;所述终端根据接收到的小区信号,记录小区信号和位置信息的对应关系;所述终端结束所述数据采集。
上述实现方式中,由终端进行数据采集,以进一步得到用于进行位置定位的数据,可以实现根据用户行为习惯得到用于进行位置定位的数据,比如,可根据用户的通勤习惯或路线进行数据采集,基于该终端采集到的数据做基础进行位置定位时,可以满足用户的需求。
在一种可能的实现方式中,所述第一触发事件,包括:所述终端通过设置在地铁站入口处的第一设备获得进站许可,从而可以在终端(用户)进入地铁站时开启数据采集,以采集特定区域(如地铁站)内的小区信号。
在一种可能的实现方式中,所述终端结束所述数据采集,包括:所述终端检测第二触发事件;所述终端响应于所述第二触发事件结束所述数据采集。采用该实现方式,可以实现基于事件驱动来结束数据采集过程。数据采集过程在事件驱动下启动和结束,因此可控制数据采集在一定的时间和/或空间内进行,从而可以节省终端功耗,还可以有针对性的进行数据采集。
在一种可能的实现方式中,所述第二触发事件,包括:所述终端通过设置在地铁站出口处的第二设备获得出站许可,从而可以在出站时结束数据采集,使得数据采集在一定空间内进行;或者第一定时器超时,所述第一定时器是所述终端响应于所述第一触发事件启动的,从而可以控制数据采集的时间长度,以避免数据采集过程过多消耗终端的功耗;或者第二定时器超时,所述第二定时器是所述终端感应到离开第二区域时启动的,从而可以在终端感应到离开第二区域时仍持续一段时间进行数据采集。
在一种可能的实现方式中,所述小区信号和位置信息的对应关系被存储到采集数据集合,所述采集数据集合中包括至少一个数据记录;所述方法还包括:所述终端根据所述采集数据集合中置信度满足要求的数据记录,得到用于所述终端进行位置定位的定位数据集合,所述定位数据集合中包括至少一个数据记录,所述定位数据集合中的每个数据记录用于存储小区信号和位置信息的对应关系。
上述实现方式中,基于置信度满足设定要求的数据记录生成用于位置定位的定位数据集合,可以保证位置定位的可靠性。
第二方面,提供一种数据处理方法,包括:终端检测第一触发事件,响应于所述第一触发事件启动数据采集,所述第一触发事件包括所述终端感应到进入第一区域;所述终端根据接收到的小区信号,记录小区信号和位置信息的对应关系;所述终端结束所述数据采集。
上述实现方式中,一方面,数据采集过程在事件驱动下启动,因此可控制数据采集在一定的时间和/或空间内进行,从而可以节省终端功耗,还可以有针对性的进行数据采集; 另一方面,采集到的数据与用户的行为习惯相符,并且为后续基于采集到的数据(比如小区信号和位置信息的对应关系)得到用于进行位置定位的数据提供了数据基础和来源。
在一种可能的实现方式中,所述第一触发事件,包括:所述终端通过设置在地铁站入口处的第一设备获得进站许可。
在一种可能的实现方式中,所述终端结束所述数据采集,包括:所述终端检测第二触发事件;所述终端响应于所述第二触发事件结束所述数据采集。
在一种可能的实现方式中,所述第二触发事件,包括:所述终端感应到离开第二区域;或者第一定时器超时,所述第一定时器是所述终端响应于所述第一触发事件启动的;或者第二定时器超时,所述第二定时器是所述终端感应到离开所述第二区域时启动的。
在一种可能的实现方式中,所述终端感应到离开所述第二区域的事件,包括:所述终端通过设置在所述地铁站出口处的第二设备获得出站许可。
在一种可能的实现方式中,所述终端根据接收到的小区信号,记录小区信号和位置信息的对应关系,包括:所述终端响应于所述第一触发事件,生成第一数据记录,所述第一数据记录用于存储所述终端接收的小区信号与所述终端当前所在位置的位置信息的对应关系;所述终端响应于所述终端接收到小区信号,生成第二数据记录,所述第二数据记录用于存储所述终端接收的小区信号的信息;所述终端响应于感应到离开第二区域,生成第三数据记录,所述第三数据记录用于存储所述终端接收的小区信号与所述终端当前所在位置的位置信息的对应关系。
在一种可能的实现方式中,所述第一数据记录为进站数据记录,所述进站数据记录中包括:小区标识、地铁站位置信息;所述第二数据记录为站内数据记录,所述站内数据记录中包括:小区标识;所述第三数据记录为出站数据记录,所述出站数据记录中包括:小区标识、地铁站位置信息。
可选的,所述进站数据记录、所述出站数据记录、所述站内数据记录中,还包括:跟踪区标识、运营商标识、国家代码中的至少一项,所述跟踪区标识、所述运营商标识、所述国家代码来自于所述终端接收到的小区信号。
可选的,所述进站数据记录、所述出站数据记录、所述站内数据记录中的地铁站位置信息还包括:地铁站所在城市的城市名。
在一种可能的实现方式中,所述进站数据记录、所述站内数据记录和/或所述出站数据记录中还包括以下信息中的至少一项:采集时间、采集次数、信号强度、所述终端检测到的运动状态。
在一种可能的实现方式中所述进站数据记录中还包括评估信息,所述评估信息包括验证成功次数、验证失败次数和召回率中的至少一项;其中,所述验证成功次数为当所述终端感应到进入地铁站时所述终端对定位结果验证成功的次数,所述验证失败次数为当所述终端感应到进入地铁站时所述终端对定位结果验证失败的次数,所述召回率是根据所述验证成功次数和所述验证失败次数确定出的;和/或,所述出站数据记录中还包括评估信息,所述评估信息包括验证成功次数、验证失败次数和召回率中的至少一项;其中,所述验证成功次数为当所述终端感应到离开地铁站时所述终端对定位结果验证成功的次数,所述验证失败次数为当所述终端感应到离开地铁站时所述终端对定位结果验证失败的次数,所述召回率是根据所述验证成功次数和所述验证失败次数确定出的。
可选的,所述方法还包括:当所述终端感应到进入地铁站时,所述终端根据接收到的 小区信号中包含的小区标识进行场景识别,得到识别出的地铁站位置信息;若根据场景识别得到地铁站位置信息与根据入口处的第一设备(如进站闸机)返回的POI所查询到的地铁站位置信息相同,则所述终端更新所述进站数据记录中的验证成功次数,并根据所述进站数据记录中的验证失败次数和更新后的验证成功次数更新所述进站数据记录中的召回率;否则,更新所述进站数据记录中的验证失败次数,并根据所述进站数据记录中的验证成功次数和更新后的验证失败次数更新所述进站数据记录中的召回率。
可选的,所述方法还包括:当所述终端感应到离开地铁站时,所述终端根据接收到的小区信号中包含的小区标识进行场景识别,得到识别出的地铁站位置信息;若根据场景识别得到地铁站位置信息与根据出口处的第二设备(如出站闸机)返回的POI所查询到的地铁站位置信息相同,则所述终端更新所述出站数据记录中的验证成功次数,并根据所述出站数据记录中的验证失败次数和更新后的验证成功次数更新所述出站数据记录中的召回率;否则,更新所述出站数据记录中的验证失败次数,并根据所述出站数据记录中的验证成功次数和更新后的验证失败次数更新所述出站数据记录中的召回率。
在一种可能的实现方式中,所述方法还包括:按照采集时间从前到后的顺序,将与所述进站数据记录相邻的第一站内数据记录到第二站内数据记录之间的站内数据记录中添加地铁站位置信息,添加的地铁站位置信息与所述进站数据记录中的地铁站位置信息相同;其中,所述第二站内数据记录为按照采集时间从前到后的顺序排列的进站数据记录中第一个运动状态为乘车状态的站内数据记录;按照采集时间从后到前的顺序,将与所述出站数据记录相邻的第三站内数据记录到第四站内数据记录之间的站内数据记录中添加地铁站位置信息,添加的地铁站位置信息与所述出站数据记录中的地铁站位置信息相同;其中,所述第四站内数据记录为按照采集时间从后到前的顺序排列的进站数据记录中第一个运动状态为乘车状态的站内数据记录。
在一种可能的实现方式中,所述方法还包括:按照时间从前向后的顺序,确定从所述进站数据记录到第一个乘车状态的站内数据记录之间的第一时长,将所述第一时长添加到所述进站地铁站对应的逗留时长集合中,根据更新后的所述进站地铁站对应的逗留时长集合中的逗留时长,确定所述进站地铁站对应的进站逗留时长阈值;如果所述第一时长大于所述进站逗留时长阈值,则以所述进站数据记录的采集时间为起点,选取所述进站逗留时长阈值内的站内数据记录,并将所述进站数据记录中的地铁站位置信息添加到选取的站内数据记录中;否则,将所述进站数据记录中的地铁站位置信息添加到所述进站数据记录到所述第一个乘车状态数据记录之间的站内数据记录中;和/或,按照时间从后向前的顺序,确定从所述出站数据记录到第一个乘车状态的数据记录之间的第二时长,将所述第二时长添加到所述出站地铁站对应的逗留时长集合中,根据更新后的所述出站地铁站对应的逗留时长集合中的逗留时长,确定所述出站地铁站对应的出站逗留时长阈值;如果所述第二时长大于所述出站逗留时长阈值,则以所述出站数据记录的采集时间为起点,选取在所述出站逗留时长阈值之内的站内数据记录,并将所述出站数据记录中的贴纸位置信息添加到选取的站内数据记录中;否则,将所述出站数据记录中的地铁站位置信息添加到所述出站数据记录到所述第一个乘车状态数据记录之间的站内数据记录中。
在一种可能的实现方式中,所述小区信号和位置信息的对应关系被存储到采集数据集合,所述采集数据集合中包括至少一个数据记录。所述方法还包括:所述终端根据所述采集数据集合中置信度满足要求的数据记录,得到用于位置定位的定位数据集合,所述定位 数据集合中包括至少一个数据记录,所述定位数据集合中的数据记录用于存储小区信号与位置信息的对应关系。
在一种可能的实现方式中,所述置信度满足要求的数据记录,满足以下至少一个条件:
召回率大于设定阈值的进站数据记录;
召回率大于设定阈值的出站数据记录;
边缘度满足要求的站内数据记录,所述边缘度使用站内数据记录中的采集次数与最大采集次数的比值表示,所述最大采集次数为包含有相同地铁站位置信息的所有站内数据记录中的最大采集次数;
采集时间在指定时间之后的进站数据记录、站内数据记录和出站数据记录;其中,所述指定时间在当前时间之前且距离当前时间的时长等于设定时长。
在一种可能的实现方式中,所述定位数据集合的数据记录中包括:小区标识、地铁站位置信息,以及包括第一场景类型标识或第二场景类型标识,其中,所述第一场景类型标识用于指示所在数据记录对应的场景为地铁站的出入口,所述第二场景类型标识用于指示所在数据记录对应的场景为地铁站内。
第三方面,提供一种通信装置,包括:一个或多个处理器;其中,当一个或多个计算机程序的指令被所述一个或多个处理器执行时,使得所述通信装置执行如上述第一方面中任一项所述的方法,或者第二方面中任一项所述的方法。
第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质包括计算机程序,当计算机程序在计算设备上运行时,使得所述计算设备执行如上述第一方面中任一项所述的方法,或者第二方面任一项所述的方法。
第五方面,提供一种芯片,所述芯片与存储器耦合,用于读取并执行所述存储器中存储的程序指令,以实现如上述第一方面中任一项所述的方法,或者第二方面中任一项所述的方法。
第六方面,提供一种计算机程序产品,所述计算机程序产品在被计算机调用时,使得所述计算机执行如上述第一方面中任一项所述的方法,或者第二方面中任一项所述的方法。
以上第二方面到第六方面的有益效果,请参见第一方面的有益效果,不重复赘述。
附图说明
图1为本申请实施例的一种场景示意图;
图2为本申请实施例中的终端的结构示意图;
图3为本申请实施例的一种实现方式的框图;
图4、图5和图6分别为本申请实施例提供的数据采集方法的流程示意图;
图7为本申请实施例中地铁站应用场景下的数据采集流程示意图;
图8为本申请实施例中的一种在数据记录中添加位置信息的实现方式示意图;
图9为本申请实施例中的一种在数据记录中添加位置信息的流程示意图;
图10为本申请实施例中的一种选取满足置信度要求的数据记录的流程示意图;
图11为本申请实施例中的终端和网络侧服务器协同配合生成定位数据集合的示意图;
图12为本申请实施例中的位置定位流程的示意图;
图13为本申请实施例中的一种位置定位流程示意图。
具体实施方式
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步的详细描述。应理解,本申请的说明书实施例和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元。方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本申请实施例提供的数据处理方法和基于位置定位的服务实现方法,可应用于地铁站,地铁站通常为封闭空间,设置有入口和出口,在入口处设置有进站闸机,在出口处设置有出站闸机,进站闸机和出站闸机可用于进行地铁乘车支付的处理。地铁站内部署有多个无线通信网络设备(比如基站)。可理解的,这里所说的地铁站可包括地铁站的地下部分或地上部分,或既包括地下部分也包括地上部分。其中,地铁站的地下部分通常为封闭空间,其中部署有多个基站。地铁站的地上部分通常也为封闭空间,在地上部分的封闭空间内可部署基站,在该封闭空间内终端也可接收该封闭空间内部署的基站发送的信号,也可能接收到该封闭空间外部署的基站发送的信号。
本申请实施例中,终端可接收地铁站内的基站发送的信号,并根据接收到的信号进行数据采集,得到采集数据集合,进一步的根据采集数据集合进行数据处理(比如数据挖掘),得到用于进行位置定位和/或场景识别的定位数据集合,从而该终端可以基于该定位数据集合进行位置定位和/或场景识别,并可进一步的根据位置定位和/或场景识别结果,为用户提供相应的服务。
在本申请的一些实施例中,位置定位和场景识别的含义基本相同,场景识别是基于位置定位实现的。场景信息可以理解为一种位置信息,比如,地铁站A是位置信息,地铁站A的入口或地铁站入口,可被理解为位置信息,也可被理解为场景信息。在地铁站应用场景下,所述位置信息可以是指地铁站位置信息,所述地铁站位置信息包括地铁站标识信息和地铁站场景信息,所述地铁站场景信息包括地铁站入口标识(用于指示地铁站入口)、地铁站出口标识(用于指示地铁站出口)或地铁站站内标识(用于指示地铁站内)。
本申请实施例中,将基站发送的信号称为小区信号。小区信号中可包括小区标识(比如cell ID,简称CID),还可以包括跟踪区标识、基站设备中配置的国家代码等信息。可理解的,小区信号也可称为基站信号。
可理解的,地铁站内部署的网络设备还可以是其他类型的无线通信网络设备,比如可以包括蓝牙信标(或称蓝牙基站)。以蓝牙信标为例,终端可接收蓝牙信标发送的信号(可称为蓝牙信号),并进行数据采集以及数据挖掘,得到用于进行位置定位和/或场景识别的定位数据集合。蓝牙信标发送的信号中可包括蓝牙信标的标识等信息。可理解的,对于各种可能被部署在第一区域的网络设备(比如包括基站、蓝牙信标等),可将其发送的信号统称为无线信号。
需要说明的是,本申请实施例也可以适用于与地铁站场景类似的场景,比如部署有多个基站且设置有进出口的场所或区域,且在入口处可设置入口设备,在出口处可设置出口设备,该入口设备和出口设备可以采用非接触方式与终端交互,对终端进入和离开某个地铁站进行支付操作或其他响应操作。举例来说,这样的场景可包括展厅、场馆等。为描述方便,本申请的一些实施例中将这样的区域或场所称为“第一区域”,在另一些实施例中 将“第一区域”具体化为地铁站。
基于上述的术语解释,图1示例性示出了本申请实施例的一种场景示意图,其中可以包括网络设备和终端。以第一区域10为例,该第一区域10可以是地铁站的地下部分或地下部分的局部区域,在第一区域10的入口处设置有进站闸机11,在第一区域10的出口处设置有出站闸机12。在第一区域10内部署与多个网络设备,比如图1中的网络设备(13a~13g)。各网络设备可通过无线方式与终端100进行通信。
网络设备(13a~13g),又可称为无线接入网设备,用于将终端接入到无线网络中的设备。例如基站(例如,接入点),可以是指接入网中在空口通过一个或多个小区与无线终端通信的设备。示例性地,接入网设备可以包括用于部署在室内环境下(比如地铁站内)的一个或多个接入设备,比如以地铁站场景为例,网络设备(13a~13g)可包括地铁站内部部署的地铁站专属的微型基站,或者也可以包括未来通信网络中的基站、小站、微站等,本申请实施例并不限定。
终端100可以是手机、平板电脑或具备无线通信功能的可穿戴设备(如智能手表或智能眼镜等)等。该终端的示例性实施例包括但不限于搭载
Figure PCTCN2022124920-appb-000001
或者其它操作系统的设备。上述终端也可以是其它便携式设备,只要该便携式设备可以接收小区信号并生成数据记录即可。
本申请实施例中,第一区域10内的终端100可根据接收到的来自于网络设备(13a~13e)的小区信号,生成采集数据集合,根据生成的采集数据集合得到用于实现位置定位和/或场景识别的定位数据集合。终端可根据定位数据集合,在第一封闭区域10内进行位置定位和/或场景识别,并可进一步根据位置定位结果和/或场景识别结果为用户提供相应的服务。其中,采集数据集合和定位数据集合的相关描述可参见图3。
示例性地,如图2所示,为终端100的一种可能结构示意图。该终端可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块151,无线通信模块152,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括陀螺仪传感器180A,加速度传感器180B,指纹传感器180H,温度传感器180J,触摸传感器180K(当然,该终端还可以包括其它传感器,比如压力传感器、加速度传感器、陀螺仪传感器、环境光传感器、骨传导传感器等,图中未示出)。
可以理解的是,本申请实施例示意的结构并不构成对终端100的具体限定。在本申请另一些实施例中,终端100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
其中,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是终端100的神经中枢和指挥中心。控制器可以根据指 令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,应用程序的代码等。存储数据区可存储终端100使用过程中记录的数据传输的统计结果、门限(用于判断是否满足调整RRC连接释放定时器的计时时长的条件)等。
此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。在一些实施例中,处理器110可以通过运行存储在内部存储器121的指令,和/或存储在设置于处理器110中的存储器的指令,使得终端100执行本申请实施例提供的数据处理方法或基于场景识别的服务实现方法。
当然,本申请实施例提供的数据处理方法或基于位置定位的服务方法的代码、以及采集数据集合和定位数据集合等信息还可以存储在外部存储器中。这种情况下,处理器110可以通过外部存储器接口120运行存储在外部存储器中的用于实现本申请实施例的上述方法的代码。
外部存储器接口120可以用于连接外部存储卡(例如,Micro SD卡),实现扩展终端100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将终端生成的采集数据集合和定位数据集合等信息保存在外部存储卡中。
终端100的无线通信功能可以通过天线1,天线2,移动通信模块151,无线通信模块152,调制解调处理器以及基带处理器等实现。基于上述无线通信功能,终端可以接收网络设备发送的信号(比如基站发送的小区信号),根据接收到的信号进行数据采集,得到采集数据集合。
根据加速度传感器180B的检测数据,终端100可确定运动状态。示例性的,运动状态可包括乘车状态和非乘车状态,非乘车状态可进一步包括停留状态、行走状态、跑状态等。
可选的,终端100中还可以集成近场通信(near field communication,NFC)芯片,使得终端可以基于NFC芯片,通过非接触式操作进行地铁乘车支付。
示例性的,图3示出了本申请实施例的一种实现方式框图。图3中所示的处理操作均由同一终端执行。
如图3所示,当满足数据采集启动条件时,终端启动数据采集,所述数据采集包括根据终端接收到的小区信号生成数据记录,所述数据记录被存储到采集数据集合。进一步的,终端还可以结束数据采集,以节省终端功耗。示例性的,当满足数据采集结束条件时,该终端结束数据采集。
示例性的,满足数据采集启动条件可包括以下情况:若发生第一触发事件,则满足数据采集启动条件,终端响应于该第一触发事件启动数据采集。所述第一触发事件包括终端感应到进入第一区域。以地铁站场景为例,所述第一触发事件为终端通过地铁站入口处的第一设备(比如进站闸机)获得进站许可,比如进行无接触式(或称感应式)乘车支付。
举例来说,如果采用标识码(比如二维码)扫描方式进行地铁乘车支付,则当地铁入口处设置的进站闸机扫描终端的屏幕上显示的用于地铁乘车支付的标识码(如二维码)并识别出该标识码中的支付账户信息后,该进站闸机向支付服务器发送包含该支付账户信息的支付请求,该支付服务器根据该支付账户完成支付操作后,由于该支付账户与该终端关 联,因此服务器向该终端发送第一支付响应,终端接收到该第一支付响应后启动数据采集。在另外的例子中,如果该标识码中包含终端标识信息,则进站闸机可以根据该终端标识信息向该终端发送第一支付响应,终端接收到该第一支付响应后启动数据采集。
再举例来说,如果采用NFC方式进行地铁乘车支付,则当地铁入口处设置的进站闸机感应到终端中的NFC芯片的信号后,则读取该NFC芯片中的支付账户信息,向该支付账户写入进站乘车支付信息,终端可在检测到进站闸机向该NFC芯片写入进站乘车支付信息时,启动数据采集。
示例性的,满足数据采集结束条件可包括以下情况:若发生第二触发事件,则满足数据采集结束条件,终端响应于该第二触发事件结束数据采集。
示例性的,所述第二触发事件可包括以下任意一种事件:
事件1:终端感应到离开第二区域,比如离开某个地铁站。若该事件发生,则满足结束数据采集的条件,终端结束数据采集。
以地铁站场景为例,所述第二触发事件为终端通过地铁站入口处的第二设备(比如出站闸机)获得出站许可,比如进行无接触式(或称感应式)乘车支付。
举例来说,如果采用标识码(比如二维码)扫描方式进行地铁乘车支付,则当地铁出口处设置的出站闸机扫描终端的屏幕上显示的用于地铁乘车支付的标识码(如二维码)并识别出该标识码中的支付账户信息后,该出站闸机向支付服务器发送包含该支付账户信息的支付请求,该支付服务器根据该支付账户完成支付操作后,由于该支付账户与该终端关联,因此服务器向该终端发送第二支付响应,终端接收到该第二支付响应后结束数据采集。在另外的例子中,如果该标识码中包含终端标识信息,则出站闸机可以根据该终端标识信息向该终端发送第二支付响应,终端接收到该第二支付响应后结束数据采集。
再举例来说,如果采用NFC方式进行地铁乘车支付,则当地铁出口处设置的出站闸机感应到终端中的NFC芯片的信号后,则读取该NFC芯片中的支付账户信息,向该支付账户写入出站乘车支付信息,终端可在检测到进站闸机向该NFC芯片写入出站乘车支付信息时,结束数据采集。
事件2:第一定时器超时。若该事件发生,则满足结束数据采集的条件,终端结束数据采集。
第一定时器为终端内部的定时器,由终端启动和停止。第一定时器用于控制终端在第一区域(如地铁站)内进行数据采集的时间长度,避免在该区域内进行数据采集的时间过长,从而可以避免过多的数据存储及处理开销,并可以节省终端的功耗。
示例性的,所述第一定时器是终端响应于第一触发事件启动的。进一步的,第一定时器可在终端响应第二触发事件时被停止。以地铁站应用场景为例,当终端通过地铁站入口的进站闸机进行进站乘车支付后,可启动第一定时器;如果在终端通过地铁站出口的进站闸机进行出站乘车支付时第一定时器还未超时,则终端可停止该第一定时器。
示例性的,第一定时器的时长可根据应用场景来设置,比如将本申请实施例应用于地铁站场景时,第一定时器的时长可设置为90分钟。
事件3:第二定时器超时。若该事件发生,则满足结束数据采集的条件,终端结束数据采集。
第二定时器为终端内部的定时器,由终端启动或停止。第二定时器用于控制终端在离开第二区域后进行数据采集的时间长度,一方面可以对第一区域进出口外围附近区域的小 区信号进行采集,另一方面可以避免进行数据采集的时间过长,以避免过多的数据存储及处理开销,还可以节省终端的功耗。
示例性的,所述第二定时器是终端感应到离开第二区域时启动的。以地铁站应用场景为例,当终端通过地铁站出口的出站闸机进行出站乘车支付后,可启动第二定时器。
示例性的,第二定时器的时长可根据应用场景来设置,比如将本申请实施例应用于地铁站场景时,第二定时器的时长可设置为15秒。
本申请实施例中,终端通过数据采集可获得小区信号的信息、位置信息等数据。终端可将采集到的数据存储为数据记录,这些数据记录被存储到采集数据集合,采集数据集合也可称采集数据库。终端可将采集到的数据记录按照采集时间顺序存储到采集数据集合中,从而使得采集数据集合中的数据记录按照采集时间从前到后的顺序排列。采集数据集合中的每个数据记录中至少包括:采集到的小区标识,进一步的,还可包括采集时间。
在第一区域的入口和出口采集到的数据记录中还包括位置信息。所述位置信息可包括位置描述信息或位置标识。不同于位置坐标信息,本申请实施例中的位置信息可以是预先定义的,用于进行位置区分,比如,以地铁站场景为例,所述位置信息可以是地铁站名,或者是地铁站ID,进一步的还可包括该地铁站所在的城市名称,终端响应于在地铁站进站闸机进行进站乘车支付事件所生成的数据记录中包括该进站闸机所在地铁站的站名,终端响应于在地铁站出站闸机进行出站乘车支付事件所生成的数据记录中包括该出站闸机所在地铁站的站名。
可选的,采集数据集合的数据记录中,还可包括跟踪区标识、运营商标识、国家代码等信息,这些信息来源于终端接收到的小区信号。其中,跟踪区标识用于标识该小区所属的跟踪区,运营商标识用于标识相应小区基站所属的运营商,国家代码用于标识该小区基站所属的国家。
可选的,采集数据集合的数据记录中还可包括数据记录对应的运动状态。终端可根据终端中设置的传感器(比如加速度传感器)的检测数据确定运动状态。可选的,运动状态可包括乘车状态和非乘车状态,非乘车状态可进一步包括停留状态、行走状态、跑状态等。
可选的,采集数据集合的数据记录中还可包括采集次数。数据记录中的采集次数用于表示接收到相同小区信号的次数。
可选的,采集数据集合的数据记录中还可包括数据记录对应的评估信息,所述评估信息用于评估数据记录的置信度或有效性。所述评估信息可基于终端进出第一区域时的位置定位结果对采集到的数据记录进行检验得到。
可选的,采集数据集合中的数据记录中还可包括小区信号强度信息,比如接收信号强度(received signal strength indication,RSSI)。
通过数据采集过程得到采集数据集合的详细过程,请参见图4。
如图3所示,在得到采集数据集合后,该终端可对该采集数据集合进行数据挖掘等数据处理,得到定位数据集合,该定位数据集合用于进行位置定位和/或场景识别。
可选的,对采集数据集合可进行以下两个阶段的数据挖掘或数据处理:
第一阶段:根据数据记录对应的运动状态和用户个人乘车习惯画像,在未包含有位置信息的数据记录中添加位置信息;用户个人乘车习惯画像是指用户在各个地铁站乘车逗留的时长(从进站到乘车离开站台);
第二阶段:选取满足置信度要求的数据记录,根据满足置信度要求的数据记录生成定 位数据集合。
定位数据集合也称定位数据库。定位数据集合中的每一个数据记录中至少包括:小区标识、位置信息。
可选的,定位数据集合的数据记录中还可包括跟踪区标识、运营商标识、国家代码等,这些信息来源于采集数据集合中的相应数据记录。
可选的,定位数据集合的数据记录中还可能包括第一场景类型标识或第二场景类型标识。其中,第一场景类型标识用于指示第一区域的出入口,第二场景类型标识用于指示第一封闭区域的内部区域。以地铁站应用场景为例,进站数据记录和出站数据记录中包含第一场景类型标识,比如第一场景类型标识取值为1,表示对应的数据记录为进站数据记录或出站数据记录,该进站数据记录或出站数据记录中包含的小区标识所对应的小区位于地铁站出入口的位置。比如,如果定位数据集合中的一个数据记录中包括地铁站名S1以及第一场景类型标识,则表示该数据记录所指示的位置为地铁站S1的出入口。站内数据记录中包含第二场景类型标识,比如该第二场景类型标识的取值为0,表示对应的数据记录为站内数据记录,该站内数据记录中包含的小区标识所对应的小区位于地铁站内。比如,如果定位数据集合中的一个数据记录中包括地铁站名S1以及第二场景类型标识,则表示该数据记录所指示的位置为地铁站S1的内部区域(如站台区域)。
对采集数据集合进行数据挖掘和数据处理,以生成定位数据集合的详细描述,可参见后面的内容。
如图3所示,终端可基于定位数据集合进行位置定位和/或场景识别。进一步的,终端还可根据位置定位的结果和/或场景识别的结果执行相应的服务处理操作,即,向用户提供相应的服务,以提高用户使用感受。具体实现方式可参见后面的内容。
基于上述图3,以将本申请实施例应用于地铁站应用场景为例,在一种实现方式中,终端通过地铁站进站闸机进行进站乘车支付操作时,作为对该事件的响应,终端启动数据采集过程,终端通过地铁站出站闸机进行出站乘车支付操作时,作为对该事件的响应,终端可结束数据采集过程。也就是说,终端的数据采集过程基于感知驱动(sensing driven data collection,SDDC),利用设备感知到的地铁站场景下的相关事件作为引导,启动和结束数据采集流程,从而实现了基于用户乘车行为进行时间和空间范围的定向数据采集,使得数据采集在时间和空间层面集中在地铁站场景下,可以有针对性的进行数据采集,并可以提高数据采集效率。另一方面,采用本申请实施例提供的数据采集方法,相较于采用人工方式进行数据采集,可以提高数据采集效率。
以地铁站场景为例,由于采集数据集合中的数据记录按照时间先后顺序排序,从而保留了用户地铁乘车全过程的时序信息,为后续进行数据处理以生成用于位置定位和/或场景识别的定位数据集合提供了基础。
示例性的,图4示出了本申请实施例提供的一种数据采集方法的流程示意图,通过该流程,终端可在满足数据采集启动条件时启动数据采集,通过数据采集生成采集数据集合,并在满足数据采集结束条件时结束数据采集。该流程是以第二触发事件为终端感应到离开第二区域(如某个地铁站)的事件为例描述的。
该流程中,第一数据记录、第二数据记录和第三数据记录,表示基于不同情况生成的数据记录,其中,终端感应到进入第一区域时生成的数据记录称为第一数据记录(在地铁站场景下也称进站数据记录),终端在第一区域内根据接收到的小区信号生成的数据记录 称为第二数据记录(在地铁站场景下也称站内数据记录),终端感应到离开第二区域时生成的数据记录称为第三数据记录(在地铁站场景下也称出站数据记录)。第一数据记录、第二数据记录和第三数据记录被存储到采集数据集合中。
如图4所示,该流程可包括如下步骤:
S410:终端响应于第一触发事件,启动数据采集,并生成第一数据记录。
由于第一触发事件是启动数据采集的条件,因此当第一触发事件发生时,终端启动数据采集,并生成第一数据记录。
示例性的,第一数据记录中包括采集时间、小区标识、位置信息。其中,采集时间可以是第一触发事件发生的时间,或者是生成该数据记录的时间;小区标识为第一触发事件发生时或发生前后,终端在所在位置接收到的小区信号中包含的小区标识;位置信息用于指示终端当前所在的位置,比如所在位置的名称、位置ID等。可选的,终端可根据进入第一区域时接收到的支付响应或其他响应中携带的兴趣点(point of interest,POI)信息,获得该POI信息对应的位置信息。
可选的,第一数据记录中还可包括跟踪区标识、运营商标识、国家代码等信息,这些信息来源于终端接收到的小区信号。
可选的,第一数据记录中还包括运动状态。示例性的,该运动状态可以是终端在生成第一数据记录时,根据该终端中的相关传感器(比如包括加速度传感器)的检测数据确定出的运动状态。本申请实施例对运动状态的检测方法不做限制。
可选的,第一数据记录中还包括采集次数。示例性的,终端接收到小区信号后,可根据该小区信号中包括的信息(比如包括小区标识,进一步的还可包括跟踪区标识、运营商标识、国家代码等信息)查询采集数据集合中已生成的数据记录,如果未查询到包含有相同信息的数据记录,则将当前生成的第一数据记录中的采集次数设置为1,如果查询到包含有相同信息的数据记录且数量为N(N为大于或等于1的整数),则将当前生成的第一数据记录中的采集次数设置为N+1。
可选的,第一数据记录中还包括评估信息。示例性的,所述评估信息可包括验证成功次数、验证失败次数和召回率中的至少一项。其中,验证成功次数为当终端感应到进入第一区域(如某个地铁站)时该终端对位置定位结果验证成功的次数,验证失败次数为当终端感应到进入第一区域(如某个地铁站)时该终端对位置定位结果验证失败的次数,召回率是根据验证成功次数和验证失败次数确定出的。
示例性的,终端接收到小区信号后,可根据该小区信号中包含的小区标识进行位置定位和/或场景识别,将识别得到的位置信息与根据POI获取到的位置信息进行比较,若相同,则表明验证成功,则将当前生成的第一数据记录中的验证成功次数递增一次,否则表明验证失败,则将当前生成的第一数据记录中的验证失败次数递增一次。进一步的,终端根据第一数据记录中的验证成功次数和验证失败次数计算得到召回率,并将计算出的召回率添加到该第一数据记录中。
可选的,可采用以下公式计算召回率:
R=TP/(TP+FN)
其中,R表示召回率,TP表示验证成功次数,FN表示验证失败次数。
可选的,第一数据记录中还可包括第一标识,该第一标识用于指示进入第一区域。以地铁站应用场景为例,第一标识为进站标识,终端在响应于第一触发事件生成的第一数据 记录中添加该进站标识。
可选的,第一数据记录中还可包括小区信号强度。示例性的,终端可将该小区信号的RSSI记录到第一数据记录中。
S420:终端根据接收到的小区信号,生成第二数据记录。
在一种可能的实现方式中,终端在启动数据采集流程后,在检测到所在小区发生变化时,比如终端在从一个小区信号覆盖范围移动到另一个小区信号覆盖范围的情况下,终端接收到的小区信号中包含的小区标识与上一次接收到的小区信号包含的小区标识不同,则终端根据当前接收到的小区信号生成第二数据记录。
在另一种可能的实现方式中,终端在启动数据采集流程后,若判断距离上一次生成数据记录,终端处于运动的状态(比如行走状态)且该运动的状态持续了设定时长,则终端可根据当前接收到的小区信号生成第二数据记录。
在另一种可能的实现方式中,终端在启动数据采集流程后,若根据终端的步数计数器的计数情况,判断处于步行状态,且距离上一次生成数据记录,步行状态的持续时间内的步数达到设定阈值,则终端可根据当前接收到的小区信号生成第二数据记录。
示例性的,第二数据记录中包括采集时间、小区标识。其中,采集时间可以是终端接收到小区信号的时间,或者是生成该数据记录的时间。
可选的,第二数据记录两种还可包括跟踪区标识、运营商标识、国家代码等信息,这些信息来源于终端接收到的小区信号。
可选的,第二数据记录中还包括运动状态。
可选的,第二数据记录中还包括采集次数。
可选的,第二数据记录中还可包括小区信号强度。
可选的,第二数据记录中还可包括第二标识,该第二标识用于指示在第一区域内。以地铁站应用场景为例,第二标识为站内标识,终端在第二数据记录中添加该站内标识。
需要说明的是,在启动数据采集后,可能生成多个第二数据记录。比如,在启动数据采集后,终端可能在第一区域内移动,即,有可能多次从一个基站的信号覆盖范围移动到另一个基站的信号覆盖范围,每次从一个基站的信号覆盖范围移动到另一个基站的信号覆盖范围时,终端均可根据当前所在基站发送的小区信号生成一个第二数据记录。
S430:该终端响应于第二触发事件,生成第三数据记录,结束数据采集。
本申请实施例中的第二触发事件为终端感应到离开所述第二区域的事件,比如,终端通过地铁站入口处的出站闸机进行无接触式乘车支付,由于第二触发事件是结束数据采集的条件,因此当第二触发事件发生时,在生成第三数据记录后,终端结束数据采集。
示例性的,第三数据记录中包括采集时间、小区标识、位置信息。其中,采集时间可以是第二触发事件发生的时间,或者是生成该数据记录的时间;小区标识为第二触发事件发生时或发生前后,终端在所在位置接收到的小区信号中包含的小区标识;位置信息用于指示终端当前所在的位置,比如所在位置的名称、位置ID等。可选的,终端可根据离开第二区域时接收到的支付响应或其他响应中携带的POI信息,获得该POI信息对应的位置信息。
可选的,第三数据记录中还可包括跟踪区标识、运营商标识、国家代码等信息,这些信息来源于终端接收到的小区信号。
可选的,第三数据记录中还包括运动状态。
可选的,第三数据记录中还包括采集次数。
可选的,第三数据记录中还包括评估信息。示例性的,所述评估信息可包括验证成功次数、验证失败次数和召回率中的至少一项。其中,验证成功次数为当终端感应到离开第一区域(如某个地铁站)时该终端对位置定位结果验证成功的次数,验证失败次数为当终端感应到离开第二区域(如某个地铁站)时该终端对位置定位结果验证失败的次数,召回率是根据验证成功次数和验证失败次数确定出的。
示例性的,终端接收到小区信号后,可根据该小区信号中包含的小区标识进行位置定位和/或场景识别,将识别得到的位置信息与根据POI获取到的位置信息进行比较,若相同,则表明验证成功,则将当前生成的第三数据记录中的验证成功次数递增一次,否则表明验证失败,则将当前生成的第三数据记录中的验证失败次数递增一次。进一步的,终端根据第三数据记录中的验证成功次数和验证失败次数计算得到召回率,并将计算出的召回率添加到该第三数据记录中。
可选的,第三数据记录中还可包括小区信号强度。示例性的,终端可将该小区信号的RSSI记录到第三数据记录中。
可选的,第三数据记录中还可包括第三标识,该第三标识用于指示离开第二区域。以地铁站应用场景为例,第三标识为出站标识,终端在响应于第二触发事件生成的第三数据记录中添加该出站标识。
示例性的,图5示出了本申请实施例提供的另一种数据采集方法的流程示意图,通过该流程,终端可在满足数据采集启动条件时启动数据采集,通过数据采集生成采集数据集合,并在满足数据采集结束条件时(比如第一定时器超时的时候)结束数据采集。
如图5所示,该流程可包括如下步骤:
S510:终端响应于第一触发事件,启动数据采集,并生成第一数据记录。
S520:终端启动第一定时器。
S530:终端判断第一定时器是否超时,以及是否发生第二触发事件,若第一定时器未超时且未发生第二触发事件,则转入S540;若第一定时器超时,则转入S550;若发生第二触发事件,则转入S560。
S540:终端根据接收到的小区信号,生成第二数据记录,并返回S530。
S550:终端结束数据采集。
S560:终端响应于第二触发事件,生成第三数据记录,结束数据采集。
可选的,在第二触发事件发生后,或生成第三数据记录后,终端可停止第一定时器。
图5中生成第一数据记录、第二数据记录和第三数据记录的方法以及数据记录中包括的内容,与图4中的相关描述相同。
以将本申请实施例应用于地铁站场景为例,基于图5的实现方式中,终端在地铁站进站闸机进行乘车支付后,启动数据采集,并启动第一定时器,如果后续在较长时间内终端未在地铁站出站闸机进行出站乘车支付,则第一定时器超时,此时终端结束数据采集,从而可以在终端进入地铁站并长时间在站内停留的情况下,控制该终端进行数据采集的时间长度不超过第一定时器的时长,从而可以节省终端功耗。
示例性的,图6示出了本申请实施例提供的另一种数据采集方法的流程示意图,通过该流程,终端可在满足数据采集启动条件时启动数据采集,通过数据采集生成采集数据集合,并在满足数据采集结束条件时(比如第二定时器超时)结束数据采集。
如图6所示,该流程可包括如下步骤:
S610:终端响应于第一触发事件,启动数据采集,生成第一数据记录。
S620:终端根据接收到的小区信号,生成第二数据记录。
S630:终端响应于第二触发事件,生成第三数据记录,并启动第二定时器。
S640:若第二定时器超时,则转入S650,否则转入S660。
S650:终端结束数据采集。
S660:终端根据接收到的小区信号,生成第二数据记录,并返回S640。
图6中生成第一数据记录、第二数据记录和第三数据记录的方法以及数据记录中包括的内容,与图4中的相关描述相同。
以将本申请实施例应用于地铁站场景为例,基于图6的实现方式中,终端在地铁站出站闸机进行出站乘车支付后,并不立即结束数据采集,而是启动第二定时器,在该第二定时器的运行期间,该终端保持数据采集,当该第二定时器超时的时候,该终端结束数据采集。这样,通过第二定时器可以控制终端在出站后仍持续一段时间进行数据采集,一方面可以对地铁站出站闸机外围附近区域的小区信号进行采集,以获得更全面的数据记录;另一方面可以避免进行数据采集的时间过长,以避免过多的开销以及生成无效的数据记录,还可以节省终端功耗。
在另一种可能的实现方式中,也可以在第一触发事件发生后启动第一定时器,当第一定时器超时的时候结束数据采集;若第一定时器未超时,发生了第二触发事件,则终端停止第一定时器并启动第二定时器,当第二定时器超时的时候,终端结束数据采集。
示例性的,图7以地铁站应用场景为例,示出了本申请实施例中的一种数据采集流程。
当终端通过地铁站的进站闸机进行无接触式乘车支付时(比如通过二维码进行乘车支付,或者使用NFC进行乘车支付),接收到进站乘车支付信息,终端启动数据采集。
终端根据接收到的小区信号生成进站数据记录,根据接收到的进站乘车支付信息中包括的POI获取对应的地铁站名,将该地铁站名添加到进站数据记录中。可选的,该进站数据记录中可包括:采集时间、小区标识、采集次数、地铁站名、运动状态、评估信息(比如包括验证成功次数、验证失败次数、召回率),进一步的,进站记录中还可包括跟踪区标识、运营商标识、国家代码。进一步的,进站记录中还可包括进站标识(即第一标识)。进一步的,进站记录中还可包括小区信号强度。
终端生成进站数据记录后,将场景状态更新为进站状态,并启动第一定时器。
在第一定时器运行期间,随着终端在地铁站内移动,该终端可能多次从一个基站的信号覆盖范围移动到另一个基站的信号覆盖范围,每次移动到一个新的基站信号覆盖范围,终端根据当前接收到的小区信号生成站内数据记录。可选的,该站内数据记录中可包括:采集时间、小区标识、采集次数、运动状态,进一步的,站内记录中还可包括跟踪区标识、运营商标识、国家代码。进一步的,站内记录中还可包括站内标识(即第二标识)。进一步的,站内记录中还可包括小区信号强度。
若第一定时器超时,则终端结束数据采集。
在第一定时器运行期间,终端通过地铁站的出站闸机进行无接触式乘车支付时(比如通过二维码进行乘车支付,或者使用NFC进行乘车支付),接收到出站乘车支付信息,终端根据接收到的小区信号生成出站数据记录,根据接收到的出站乘车支付信息中包括的POI获取对应的地铁站名,将该地铁站名添加到出站数据记录中。可选的,该出站数据记 录中可包括:采集时间、小区标识、采集次数、地铁站名、运动状态、评估信息(比如包括验证成功次数、验证失败次数、召回率),进一步的,进站记录中还可包括跟踪区标识、运营商标识、国家代码。进一步的,进站记录中还可包括出站标识(即第三标识)。进一步的,出站记录中还可包括小区信号强度。
终端生成出站数据记录后,启动第二定时器,并将场景状态更新为出站状态。
在第二定时器运行期间,终端根据接收到的小区信号生成站内数据记录。
若第二定时器超时,则终端结束数据采集。
终端生成的数据记录被存储在该终端中的第一数据集合中,上述数据采集过程的具体实施方式可参见前述实施例。
示例性的,表1示出了一次乘车过程中生成的数据记录的示例。
表1:采集到的数据记录:
Figure PCTCN2022124920-appb-000002
Figure PCTCN2022124920-appb-000003
其中,编号1的数据记录为进站数据记录,编号为13的数据记录为出站数据记录,编号2-12的数据记录是在地铁站内采集到的,编号14的数据记录是在通过出站闸机进行出站支付后采集的数据记录。数据记录的“时间”字段记录了该终端生成该进站数据记录时的时间,“小区标识”字段记录了该终端接收到的小区信号中包含的小区标识,“跟踪区标识”字段记录了该终端接收到的小区信号中包含的跟踪区标识,“运营商标识”字段记录了该终端接收到的小区信号中包含的运营商标识,“国家代码”字段记录了该通信中的接收到的小区信号中包含的国家代码,“地铁站名”字段和“城市名称”字段的内容是终端根据接收到的进站乘车支付信息中的POI获取到的,“采集次数”字段记录的是该终端采集到相同小区信号的次数。“运动状态”字段记录了终端检测到的运动状态。“召回率”字段用于记录该进站数据记录对应的召回率。本示例中,该进站数据字段对应的验证成功次数等于10,验证失败次数等于0,因此召回率等于1。验证成功次数和验证失败次数的确定方法以及召回率的生成方法,可参见前述实施例。其中,“记录编号”字段为可选字段,用于记录字段标识的索引。
需要说明的是,本示例中,数据记录中的小区标识、跟踪区标识、运营商标识、国家代码等信息的取值仅为用于阐述本申请实施例的示例性描述,并不代表真实场景下的取值。
基于图7的实现方式,在从用户进入地铁站到离开地铁站的过程中,该用户所持的终端可以在地铁站内进行数据采集,为生成用于进行地铁站场景下的位置定位和/或场景识别的定时数据集合提供了数据基础和数据来源。
终端可对采集数据集合进行数据处理,得到用于进行位置定位和/或场景识别的定位数据集合。示例性的,终端可按照设定时间或周期,对采集数据集合进行处理,以得到定位数据集合。比如,终端可在一天内的设定时间(比如在终端负载较低的晚上时间)对当天采集到的数据记录进行处理。下面以地铁站应用场景为例,描述终端根据采集数据集合生成定位数据集合的方法。
可选的,终端对采集数据集合中的数据记录进行的数据挖掘操作可包括第一阶段数据挖掘和第二阶段数据挖掘。可选的,完成第一阶段数据挖掘后的数据记录可存储到中间数据集合,第二阶段数据挖掘是基于中间数据集合进行的,也就是说,可以通过对采集数据集合进行第一阶段数据挖掘得到中间数据集合,通过对中间数据集合进行第二阶段数据挖掘得到定位数据集合。当然,也可以直接对采集数据集合进行第一阶段数据挖掘和第二阶段数据挖掘,得到定位数据集合。
可选的,第一阶段数据挖掘可包括:根据数据记录对应的运动状态,在没有包含位置信息的数据记录中添加位置信息。可选的,还可包括:在进站数据记录和出站数据记录中添加第一场景类型标识,在站内数据记录中添加第二场景类型标识。
第二阶段数据挖掘可包括:根据数据记录的评估信息、采集次数等信息,选取满足置信度要求的数据记录,并根据选取出的满足置信度要求的数据记录生成定位数据集合。
下面对数据挖掘过程进行详细描述。
可选的,终端在未包含位置信息的站内数据记录中添加位置信息之前,可首先按照单次乘车过程对采集数据集合中的数据记录进行分割,得到单次乘车过程对应的数据记录。 单次乘车过程包括从进入地铁站到离开地铁站的过程。一种可能的实现方式中,若采集数据集合的进站数据记录中设置有进站标识、出站数据记录中设置有出站标识,则终端可根据进站标识和出站标识对数据记录进行分割。另一种可能的实现方式中,若采集数据集合中的进站数据记录中未设置有进站标识、出站数据记录中未设置有出站标识,则终端可根据进站数据记录和出站数据记录均包含有位置信息的特点,以及采集数据集合中的数据记录的时序,进行数据记录的分割。进一步的,若采集数据集合中的数据记录中未设置有进站标识、出站标识或站内标识,则在划分出单次乘车过程对应的数据记录后,还可在该单次乘车过程所对应的数据记录中添加相应的标识,如进站标识、出站标识或站内标识,以便于后续进行数据挖掘。
进一步的,若连续多个运动状态为乘车状态的站内数据记录所对应的总时长小于设定阈值,则将该多个乘车状态的站内数据记录的运动状态校正为非乘车状态,比如校正为行走状态或停留状态。
示例性的,对于单次乘车过程对应的数据记录,可根据这些数据记录对应的运动状态,在未包含有位置信息的站内数据记录中添加位置信息。示例性的,针对单次乘车过程对应的数据记录,在站内数据记录中添加位置信息的过程可包括:按照采集时间从前到后的顺序,将与进站数据记录相邻的第一站内数据记录和第二站内数据记录之间的站内数据记录中添加地铁站位置信息,添加的地铁站位置信息与进站数据记录中的地铁站位置信息相同。其中,第二站内数据记录为按照采集时间从前到后的顺序排列的进站数据记录中第一个运动状态为乘车状态的站内数据记录。按照采集时间从后到前的顺序,将与出站数据记录相邻的第三站内数据记录和第四站内数据记录之间的站内数据记录中添加地铁站位置信息,添加的地铁站位置信息与出站数据记录中的地铁站位置信息相同。其中,第四站内数据记录为按照采集时间从后到前的顺序排列的进站数据记录中第一个运动状态为乘车状态的站内数据记录。
图8示出了一种在数据记录中添加位置信息的实现方式示意图。如图8所示,编号等于1的数据记录为进站数据记录,编号等于13的数据记录为出站数据记录,该进站数据记录和出站数据记录,以及该进站数据记录和该出站数据记录及其之间的数据记录为单次乘车过程对应的数据记录。其中,编号2-12的站内数据记录中的“地铁站名”为空。为编号2-12中非乘车状态的数据记录添加位置信息时,可从进站数据记录向下遍历直到第一个乘车状态的数据记录(即编号等于6的数据记录)为止,并根据该进站数据记录中的地铁站名S1,在编号2-5的数据记录中添加相同的地铁站名,从出站数据记录向上遍历直到第一个乘车状态的数据记录(即编号等于10的数据记录)为止,并根据该出站数据记录中的地铁站名S3,在编号11-12的数据记录中添加相同的地铁站名。
需要说明的是,以上仅示例性示出了一种在未包含位置信息的站内数据记录中添加位置信息的方法,本申请实施例对此不作限制。
以表1所示的采集到的数据记录为例,在第一阶段数据挖掘过程中,根据各个数据记录对应的运动状态,可以在编号2-5的数据记录中添加地铁站名S1和城市A,在编号11-12的数据记录中添加地铁站名S3和城市A,如表2所示。
表2:第一阶段数据挖掘后的数据记录:
Figure PCTCN2022124920-appb-000004
在本申请的另一些实施例中,终端可根据用户行为(比如在进站地铁站和出站地铁站内的逗留时长)以及运动状态,在采集数据集合中的站内数据记录中添加位置信息。示例性的,对于单次乘车过程对应的数据记录,执行以下处理操作:
操作1:按照时间从前向后的顺序,确定从进站数据记录到第一个乘车状态的站内数据记录之间的第一时长(即在进站地铁站内的逗留时长),将第一时长添加到该进站地铁站对应的逗留时长集合中,根据更新后的该进站地铁站对应的逗留时长集合中的逗留时长,确定该进站地铁站对应的进站逗留时长阈值;如果第一时长大于该进站逗留时长阈值,则以该进站数据记录的采集时间为起点,选取在所述进站逗留时长阈值内的站内数据记录, 并将该进站数据记录中的地铁站位置信息添加到选取的站内数据记录中;否则,将进站数据记录中的地铁站位置信息添加到该进站数据记录到该第一个乘车状态数据记录之间的站内数据记录(不包括该乘车状态的数据记录)中。
操作2:按照时间从后向前的顺序,确定从出站数据记录到第一个乘车状态的数据记录之间的第二时长(即在出站地铁站内的逗留时长),将第二时长添加到该出站地铁站对应的逗留时长集合中,根据更新后的该出站地铁站对应的逗留时长集合中的逗留时长,确定该出站地铁站对应的出站逗留时长阈值;如果第二时长大于该出站逗留时长阈值,则以该出站数据记录的采集时间为起点,选取在该出站逗留时长阈值之内的站内数据记录,并将该出站数据记录中的地铁站位置信息添加到选取的站内数据记录中;否则,将出站数据记录中的地铁站位置信息添加到该出站数据记录到该第一个乘车状态数据记录之间的站内数据记录(不包括该乘车状态的数据记录)中。
上述实现方式中,一个地铁站对应的逗留时长集合中包括终端多次在该地铁站内逗留的时间长度的历史信息,基于该集合中的逗留时长动态确定逗留时长阈值,再根据终端当前在该地铁站内的逗留时长与该逗留时长阈值之间的大小关系选取需要添加位置信息的数据记录,这样可以根据用户行为习惯选取与该行为习惯相适应的站内数据记录进行位置添加,以作为后续进行数据挖掘以得到用于位置定位和/或场景识别的数据记录提供数据来源,进而使得最终得到的用于位置定位和/或场景识别的数据记录与该用户的行为习惯相符,可以提高位置定位和/或场景识别的可靠性。
可选的,根据更新后的该进站地铁站对应的逗留时长集合(以下简称逗留时长集合1)确定该进站地铁站对应的进站逗留时长阈值的方法,可包括:若更新后的逗留时长集合1中的逗留时长的数量小于设定阈值,则确定进站逗留时长阈值等于初始值,否则根据该逗留时长集合1中的逗留时长确定进站逗留时长阈值,比如,可以对该逗留时长集合1中的逗留时长按照从小到大排序,然后分成四等份,将处于第3个分割点的逗留时长确定为进站逗留时长阈值,从而可以使得确定出的逗留时长阈值与用户行为习惯相匹配。当然,本申请实施例也可以基于该逗留时长集合1中的逗留时长,采用其他算法计算逗留时长阈值,本申请实施例对此不做限制。根据更新后的出站地铁站对应的逗留时长集合确定出站逗留时长阈值的方法,与上述方法类似。
可选的,当逗留时长集合中的逗留时长的数量达到数量上限时,每新增加一个逗留时长,可将逗留时长集合中最早添加的逗留时长删除。示例性的,该数量上限等于100。
图9示出了一种在数据记录中添加位置信息的流程示意图。如图9所示,该流程可包括如下步骤:
S710和S720:针对单次乘车过程对应的数据记录,从进站数据记录开始向下遍历(参见S710),并从出站数据记录开始向上遍历(参见S720)。
S730:当遍历到第一个乘车状态的数据记录时,转入S740。
S740:对于从进站记录向下遍历的过程,计算进站数据记录到当前遍历到的乘车状态的数据记录的第一时长,该第一时长即为在该进站地铁站内的逗留时长。将该第一时长添加到该进站地铁站对应的逗留时长集合中,从而使该逗留时长集合得到更新。采用相同的方法,对于从出站数据记录向上遍历的过程,确定出该出站地铁站对应的出站逗留时长阈值。
S750:根据进站地铁站对应的逗留时长集合中的逗留时长,确定该进站地铁站对应的 进站逗留时长阈值;根据出站地铁站对应的逗留时长集合中的逗留时长,确定该出站地铁站对应的进站逗留时长阈值。
S760:若第一时长(即进站地铁站内的逗留时长)大于该进站地铁站对应的进站逗留时长阈值,则转入S761,否则转入S762。
S761:以进站数据记录的采集时间为起点,向下选取站内数据记录,所选取的站内数据记录对应的逗留时长不超过该进站逗留时长阈值,在这些被选取的站内数据记录中添加进站地铁站的站名。
S762:从进站数据记录向下到第一个乘车状态的数据记录,将该范围内的站内数据记录(不包括该乘车状态的数据记录)中添加进站地铁站的站名。
该步骤的具体实现方式可参见前述实施例。
S770~772是针对从出站数据记录向上遍历的过程中,根据在出站地铁站内的逗留时长与该出站地铁站对应的出站逗留时长阈值之间的大小关系,选取相应的站内数据记录进行位置信息添加的流程,其具体实现方式与S760~762类似。
在完成第一阶段数据挖掘后,可进行第二阶段数据挖掘,得到定位数据集合。在进行第二阶段数据挖掘时,可从采集数据集合中选取置信度满足要求的数据记录(针对基于采集数据集合进行第一阶段数据挖掘和第二阶段数据挖掘的情况),或从中间数据集合中选取置信度满足要求的数据记录(比如针对首先基于采集数据集合进行第一阶段数据挖掘得到中间数据集合,再基于中间数据集合进行第二阶段数据挖掘得到定位数据集合的情况),并根据选取出的数据记录得到定位数据集合。
示例性的,置信度满足要求的数据记录,满足以下至少一个条件:
条件1:数据记录为进站数据记录。
即,进站数据记录被认为属于置信度满足要求的数据记录。可根据数据记录中的进站标识,确定出那些数据记录为进站数据记录,也可根据数据记录中是否包含评估信息来确定该数据记录是否为进站数据记录。
条件2:召回率大于设定阈值的进站数据记录。
召回率大于设定阈值的进站数据记录,可被认为是置信度满足要求的数据记录。本申请实施例中,召回率的大小表征了数据记录的可信度或有效性,数据记录的召回率较高表明该数据记录的可信度较高,因此本申请实施例中可选取置信度较高的数据记录用于后续的位置定位和/或场景识别,进而可以保证位置定位和/或场景识别的可靠性。
条件3:数据记录为出站数据记录。
即,出站数据记录被认为属于置信度满足要求的数据记录。可根据数据记录中的出站标识,确定出那些数据记录为出站数据记录,也可根据数据记录中是否包含评估信息来确定该数据记录是否为出站数据记录。
条件4:召回率大于设定阈值的出站数据记录。
条件5:边缘度满足要求的站内数据记录。
所述边缘度用于表征小区标识指示的小区与地铁站的中心的相对位置,所述边缘度使用站内数据记录中的采集次数与最大采集次数的比值表示,所述最大采集次数为包含有相同地铁站位置信息的所有站内数据记录中的最大采集次数。
示例性的,可针对站内数据记录确定对应的边缘度,用来表征站内数据记录对应的小区位置属于地铁站内的边缘位置还是中心位置。示例性的,针对一个站内数据记录,其对 应的边缘度的计算公式可表示为:
α=count/maxCnt
其中,α为该站内数据记录的边缘度,count为该站内数据记录中包含的采集次数,maxCnt为最大采集次数,该最大采集次数是指:根据该站内数据记录中包含的位置信息指示的地铁站,采集数据集合或中间数据集合中所有包含该地铁站的数据记录中的最大采集次数。
边缘度的取值大于0且小于或等于1,边缘度的取值越大,表明对应的数据记录对应的小区位置越有可能是地铁站内的中心位置。本申请实施例中,边缘度大于设定阈值的站内数据记录被认为是满足置信度要求的数据记录。
条件6:采集时间在指定时间之后的数据记录(包括进站数据记录、站内数据记录和出站数据记录)。所述指定时间在当前时间之前且距离当前时间的时长等于设定时长。示例性的,在以当前时间为起点的设定时长内获得的数据记录,被认为是采集时间在指定时间之后的数据记录。其中,该设定时长可配置,比如为180天,即,距今180天内生成的数据记录被认为符合该第六条件。由于距离当前时间越近的数据记录,其可信度越高,因此通过选取距离当前时间较近一段时间生成的数据记录,可以保证数据记录的可信度,继而可以保证后续使用该数据记录进行位置定位或场景识别的可靠性。另一方面,通过对数据进行老化处理,还可以节省终端的存储开销。
条件7:运动状态不是乘车状态的数据记录。本申请实施例中,运动状态为乘车状态的站内数据记录一般是在终端位于地铁列车上采集到的,所采集到的小区信号可能为地铁隧道中的小区信号,本申请实施例可将这些数据记录视为无效数据记录。
上述条件可任意组合。比如,在排除运动状态不是乘车状态的数据记录以及采集时间在指定时间之前的数据记录之后,可在剩余数据记录中选取召回率大于设定阈值的进站数据记录和出站数据记录,以及边缘度大于设定阈值的站内数据记录,以用于生成定位数据集合中的数据记录。
示例性的,基于表2所示的进行第一阶段数据挖掘后的数据记录,表3示出了进行第二阶段数据挖掘后得到的满足置信度要求的数据记录。
如表2所示,以编号2和编号11的数据记录为例,编号2的数据记录对应的边缘度等于7/(10+7+5+6+5)=0.2;编号11的数据记录对应的边缘度等于8/(8+8+10+4)=0.27。由于编号2-5、11-12、14的站内数据记录对应的边缘度均大于设定的阈值(该阈值等于0.1),且这些站内数据记录均为近期生成的数据记录(比如均是10天之内生成的数据记录),因此这些站内数据记录均满足置信度要求。由于编号1的进站数据记录和编号13的出站数据记录的召回率均大于设定阈值(该阈值等于0.9),且均为近期生成的数据记录,因此编号1的进站数据记录和编号13的出站数据记录也满足置信度要求。终端根据这些满足置信度要求的数据记录,生成的用于进行位置定位和/或场景识别的数据记录,可如表3所示。
表3:进行第二阶段数据挖掘后满足置信度要求的数据记录:
Figure PCTCN2022124920-appb-000005
Figure PCTCN2022124920-appb-000006
其中,对于出站数据记录和进站数据记录,可将场景类型字段的取值设置为“1”,表示相应数据记录对应的场景为地铁站进出口的场景,对于站内数据记录,可将场景类型字段的取值设置为“0”,表示相应数据记录对应的场景为地铁站内的场景。
图10示例性示出了一种基于上述条件的定义,从采集数据集合中选取数据记录,得到定位数据集合的流程。如图所示,该路程可包括:在S801,清除采集数据集合中6个月之前的数据记录,当然,这里的6个月仅为示例,也可以是其他时间长度,可根据终端的存储能力来设置该时间长度。通过S801,可以使得保留下来的数据记录符合上述条件6。对于剩余的每个数据记录,执行以下步骤:
S802:若当前数据记录对应的验证成功次数大于0,或验证失败次数大于0,则转入S805,若当前数据记录未设置有成功验证次数或失败验证次数,则转入S803。
本申请实施例中,只有进站数据记录和出站数据记录才设置有验证成功次数和/或验证失败次数,若验证成功次数或验证失败次数大于0,表明至少被验证过一次。因此,若当前数据记录为进站数据记录或出站数据记录,则在S802中的判断结果为是,即满足上述条件1或条件3。
如果当前的数据记录为站内数据记录,由于站内数据记录中没有设置对应的验证成功次数和验证失败次数,因此需要根据边缘度来判断当前的站内数据记录是否满足上述第五条件。
S803:判断当前数据记录中包含的采集次数是否大于或等于3次,若判断为是,则转入S804,否则转入S806。
该步骤中,如果当前数据记录中包含的采集次数小于3次,则表明当前数据记录中的小区标识被采集到的次数较少,很有可能该小区标识为地铁站内边缘小区的小区标识,因而转入S806。如果当前数据记录中包含的采集次数大于或等于3次,则还需要进一步转入S804,根据边缘度来判断当前数据记录中的小区标识是否是地铁站内边缘小区的小区标识。
需要说明的是,该步骤仅以采集次数的判断阈值等于3为例,本申请实施例对该判断阈值不做限制。
S804:确定当前数据记录对应的边缘度是否大于或等于0.1,若是,则转入S805,否则转入S806。
该步骤中,如果当前数据记录对应的边缘度大于或等于0.1,则表明当前数据记录中的小区标识所对应的小区,很可能是地铁站内的中心小区。
需要说明的是,该步骤仅以边缘度的判断阈值等于0.1为例,本申请实施例对该判断阈值不做限制。
S805:根据当前数据记录生成定位数据集合中的数据记录。
S806:将当前数据记录中的小区标识添加到站外小区列表中。
可选的,本申请实施例中,终端还可以根据采集数据集合中的数据记录,对用户行为进行统计或挖掘,比如根据采集数据集合中的数据记录,确定用户的通勤行为,示例性的,可根据采集数据集合中的数据记录确定用户上班时间或时间段、下班时间或时间段、通勤时长、通勤线路等信息。
在本申请的另一些实施例中,终端生成采集数据集合后,可将采集数据集合发送给网络侧的服务器,由该服务器对该终端以及其他终端发送的采集数据集合进行数据挖掘等处理数据处理(比如包括进行第一阶段数据挖掘和第二阶段数据挖掘),生成用于位置定位和/或场景识别的定位数据集合。在另外一些实施例中,终端生成采集数据集合后,可对采集数据集合进行第一阶段数据挖掘,得到中间数据集合,并将中间数据集合发送给服务器,由该服务器对该终端以及其他终端发送的中间数据集合进行数据挖掘等处理数据处理(比如进行第二阶段数据挖掘),生成用于位置定位和/或场景识别的定位数据集合。进一步的,服务器可将该定位数据集合进行发布,使得终端获得定位数据集合,并可根据该定位数据集合进行位置定位和/或场景识别。
示例性的,图11示出了终端和网络侧服务器协同配合,以生定位数据集合的示意图。如图所示,终端1至终端N(N为大于1的整数)位于同一城市,终端1至终端N分别生成采集数据集合,并分别对各自生成的采集数据集合进行第一阶段数据挖掘(比如包括分割单次乘车过程对应的数据记录,在未包含有位置信息的数据记录中添加位置信息等,以得到中间数据集合),终端1至终端N分别将各自的中间数据集合发送给网络侧的服务器。其中,终端1至终端N生成采集数据集合的实现方式,以及对采集数据集合进行第一阶段数据挖掘的实现方式,可参见前述实施例。
服务器根据终端1至终端N发送的中间数据集合进行第二阶段数据挖掘(比如包括根据评估信息选取置信度满足要求的数据记录),得到用于位置定位和场景识别的定位数据集合,并通过数据发布功能将该定位数据集合分别发送给终端1至终端N。
示例性的,服务器可对各终端发送来的中间数据集合进行合并,比如将不同终端的中间数据集合中具有相同小区信息(比如包括小区标识,进一步的还可包括跟踪区标识、运营商标识、国家代码等)和位置信息的数据记录进行合并。举例来说,如果终端1至终端N采集的数据记录中,有M个数据记录所包含的小区标识、位置信息(比如包括地铁站名、城市名称)、运营商标识相同,则可将该M个数据记录合并为一个数据记录。可选的,合并后的数据记录中的采集次数是该M个进站数据记录中采集次数的总和,基于合并后的采集次数可以进行边缘度计算。可选的,合并后的数据记录中的时间为该M个数据记录中的最早时间,以便基于该时间进行数据记录的老化处理。可选的,如果对M个进站数据记录进行合并,则合并后的进站数据记录中的验证成功次数是该M个进站数据记录中验证成功次数的总和,合并后的进站数据记录中的验证失败次数是该M个进站数据记录中验证失败次数的总和,合并后的进站数据记录中的召回率是根据合并后的数据记录的验证成功次数和验证失败次数计算得到的。
服务器对合并后的数据集合进行第二阶段数据挖掘,以得到第二数据集合的方法,与上述实施例中终端进行第二阶段数据挖掘以得到第二数据集合的方法基本相同。
通过服务器对不同终端发送来的中间数据集合进行数据挖掘等数据处理操作,生成用于进行位置定位和/或场景识别的定位数据集合,可以使得生成的定位数据集合中包含更广泛和全面的数据记录,即,包含更多小区的数据记录,从而能够更好的为终端进行位置定 位和/或场景识别。
可选的,如果终端1至终端N采集到的数据记录覆盖多个城市,则服务器可首先将属于同一城市的数据记录存储到该城市对应的数据集合中,并分别对各城市对应的数据集合进行处理,以得到各城市对应的用于进行位置定位和/或场景识别的定位数据集合。服务器在将定位数据集合发送给终端时,可根据终端所在的城市,将相应城市对应的定位数据集合发送给终端。
上述采用终端和服务器协同配合进行数据挖掘,生成用于位置定位和/或场景识别的定位数据集合的方法,可以在终端侧保留用户乘车行为习惯的同时,有效利用群体数据,准确挖掘出地铁站内小区信息,并且可以进一步挖掘细分场景下的数据,如进出地铁站位置处的小区信息,还可以进一步获得地铁站台之间的隧道内的小区信息,从而使得位置定位或场景识别结果更准确。
示例性的,图12示出了本申请实施例提供的位置定位流程的示意图,如图所示,该流程可包括:
S1010:若满足第一条件,则转入S1020。
可选的,本申请实施例中,终端可在位置定位时机到来时,判断是否满足第一条件,如果判断为不满足第一条件,则不执行位置定位和/或场景识别操作,否则执行位置定位和/或场景识别操作。
可选的,所述满足第一条件,可包括:位置定位时机到来且满足位置定位启动条件,从而在位置定位时机到来且满足位置定位启动条件时才启动位置定位,以减少无效的位置定位操作,减少终端功耗。
可选的,当终端亮屏并进行屏幕解锁时,或者当终端亮屏期间检测到所在小区发生变化时,或者当在终端亮屏状态下检测到步行运动状态时,或者灭屏状态的终端被周期唤醒时,可认为位置定位时机到来。
可选的,用于判断是否满足位置定位启动条件的依据可包括:终端接收到的小区信号中包含的小区标识是否在场景识别屏蔽列表中,终端的运动状态,终端接收到的小区信号中包含的小区标识与上一次位置定位时机到来的事件发生时接收到的小区信号中包含的小区标识是否相同等。示例性的,如果终端接收到的小区信号中包含的小区标识不在场景识别屏蔽列表中,终端的运动状态不是乘车状态,终端接收到的小区信号中包含的小区标识与上一次位置定位时机到来的事件发生时接收到的小区信号中包含的小区标识不同,则可启动位置定位和/或场景识别。
示例性的,满足第一条件的情形,可包括以下情形中的一种:
情形1:终端亮屏并进行屏幕解锁时,若终端接收到的小区信号中包含的小区标识不在场景识别屏蔽列表中,且终端当前的运动状态为非乘车状态,则满足第一条件。可选的,终端可根据终端中设置的相关传感器(比如加速度传感器)的检测数据确定终端的运动状态。
情形2:终端持续亮屏期间并检测到处于持续步行运动状态时,若终端接收到的小区信号中包含的小区标识不在场景识别屏蔽列表中,则满足第一条件;
情形3:终端亮屏期间检测到所在小区发生了变化时,若终端接收到的小区信号中包含的小区标识不在场景识别屏蔽列表中,且终端当前的运动状态为非乘车状态,则满足第一条件;
情形4:处于灭屏状态下的终端被周期唤醒时,若检测到所在小区发生了变化,即,当前所在小区与上一次被唤醒时所在的小区不同,且终端接收到的小区信号中包含的小区标识不在场景识别屏蔽列表中以及终端当前的运动状态为非乘车状态,则满足第一条件。
需要说明的是,以上仅示例性的列举了几种满足第一条件的情形,本申请实施例对此不做限制。
在位置定位时机到来时,确定是否启动位置定位和/或场景识别,比如,若终端接收到的小区标识在场景识别屏蔽列表中,即表明当前位置属于非地铁站区域,则无需启动地铁站内位置定位和/或场景识别,从而可以在保证位置定位覆盖率的同时尽可能减少终端功耗开销。
场景识别屏蔽列表中可包括小区标识,该小区标识包括地铁站外小区的小区标识,比如可包括家和公司区域的小区标识。该场景识别屏蔽列表可以预先配置,比如预先将地铁站外区域的小区标识设置在场景识别屏蔽列表中。该场景识别屏蔽列表中的小区标识也可以由终端通过自学习获得。
示例性的,由终端通过自学习获得地铁站外区域的小区标识,并添加到场景识别屏蔽列表中的过程可包括:如果终端根据接收到的小区信号中包含的小区标识查询定位数据集合时查询失败,且根据该小区标识查询定位数据集合时查询失败的累计次数达到设定次数阈值(比如大于或等于20次),表明该小区标识可能是地铁站外的小区的小区标识,则将该小区标识添加到场景识别屏蔽列表中。
可选的,场景识别屏蔽列表中的全部或部分小区标识可来源于地铁站外小区列表,该地铁站外小区列表中包含的小区标识是终端采集到的非地铁站区域小区的标识。当该地铁站外小区列表更新时,可基于更新的地铁站外小区列表更新该场景识别屏蔽列表。可选的,可对该地铁站外小区列表按照设定周期进行清理,示例性的,按照设定周期删除近半年未出现的小区标识。
可选的,地铁站外小区列表中的小区标识可以预先配置,也可以采用前述实施例的方法获得,还可以通过自学习的方法获得,比如,如果终端根据接收到的小区信号中包含的小区标识查询定位数据集合时查询失败,且根据该小区标识查询定位数据集合时查询失败的累计次数达到设定次数阈值,则将该小区标识添加到站外小区列表中。
S1020:该终端获取当前位置的小区信号,根据该小区信号,确定当前位置的位置信息。
可选的,终端可根据小区信号与位置信息的对应关系,确定与当前位置的小区信号对应的位置信息。可选的,所述小区信号与位置信息的对应关系,包括小区信号的标识与位置信息的对应关系,终端可根据当前位置的小区信号的标识,确定与该小区信号的标识对应的位置信息。可选的,所述小区信号与位置信息的对应关系,包括小区信号的标识和强度与位置信息的对应关系,终端可根据当前位置的小区信号的标识和强度,确定与该小区信号的标识和强度对应的位置信息。
可选的,小区信号与位置信息的对应关系可存储为定位数据集合,终端可根据小区信号中的小区标识查询该终端中的定位数据集合,得到与该小区标识对应的位置信息,该位置信息为位置定位结果。
该步骤中,终端根据该小区标识查询定位数据集合,可以得到包含该小区标识的数据记录,其中,该数据记录中包括与该小区标识对应的位置信息和/或场景信息。终端将该数 据记录中的位置信息和/或场景信息确定为位置定位结果或场景识别结果。
其中,所述位置信息可包括地铁站名、城市名称等。所述场景信息可包括第一场景类型标识或第二场景标识等信息。
其中,所述定位数据集合可以是该终端基于采集数据集合生成的,也可以是网络侧配置给该终端的,本申请实施例对此不做限制。
进一步的,在S1020之后,上述流程还可包括以下步骤:
S1030:终端根据确定出的位置信息,执行与当前位置匹配的服务。
在一种可能的实现方式中,以地铁站应用场景为例,终端识别出当前处于地铁站入口或出口位置时,自动在终端屏幕上显示用于地铁乘车支付的标识码,以方便用户使用该标识码进行扫码支付。示例性的,若终端根据接收到的小区信号中包含的小区标识查询到的包含有该小区标识的数据记录中还包括第一场景类型标识,表明该数据记录所指示的位置为地铁站入口或出口,则该终端在该终端的屏幕上显示用于地铁乘车支付的标识码。
进一步的,若终端接收到进站乘车支付响应,则终端可确定当前为进站场景,因此可获取地铁列车到达该地铁站的时间信息,并显示在终端屏幕上或者以语音方式播报,以便用户了解地铁列车到站时间的预测信息。
进一步的,若终端接收到出站乘车支付响应信息,则终端可确定当前为出站场景,因此终端可在根据定位数据集合获得该小区标识对应的位置信息(如地铁站名)后,获取该位置的道路交通信息、天气信息等,并将获取到的信息进行输出,如在终端屏幕上显示或通过语音播报。其中,站外小区列表的生成方法,可参见前述实施例。
在一种可能的实现方式中,以地铁站应用场景为例,终端识别出当前位置处于地铁站内部区域时,输出地铁列车的到达时间预测信息,以方便用户乘车。示例性的,若终端根据接收到的小区信号中包含的小区信息查询到的包含有该小区标识的数据记录中还包括第二场景类型标识,表明该数据记录所指示的位置在地铁站内部区域,进一步的,若终端当前处于非乘车状态,则该终端可获取地铁列车到达该地铁站的时间预测信息并进行输出。比如,可将地铁列车到达的时间显示在该终端的屏幕上,也可以采用语音方式播报。
在一种可能的实现方式中,以地铁应用场景为例,终端可进行到站提醒。示例性的,若终端根据接收到的小区信号中包含的小区标识查询到的包含有该小区标识的数据记录中还包括第二场景类型标识,表明该数据记录所指示的位置在地铁站内部区域,进一步的,若终端判断当前为乘车状态,则该终端输出到达该地铁站(即查询到的数据记录中包含的地铁站站名)的提示信息。
在一种可能的实现方式中,以地铁应用场景为例,当终端根据接收到的小区信号中包含的小区标识,查询定位数据集合,得到对应的地铁站名后,还可获得与该地铁站名关联的推送信息,并将该推送信息显示在终端的屏幕上。可选的,该推送信息可包括但不限于该地铁站周围地区的商业促销信息等。
图13示例性示出了本申请实施例的一种位置定位流程。如图13所示,可以在以下情形下启动位置定位流程:
情形1:如S1101-S1102,当终端亮屏并进行屏幕解锁后,获取当前接收到的小区信号中包含的小区标识,如S1140-1150所示,终端判断该小区标识是否在场景识别屏蔽列表中,如果该小区标识不在场景识别屏蔽列表中,则进一步判断终端当前的运动状态是否为乘车状态,即终端是否在交通工具上,如果终端当前的运动状态不是乘车状态,则启动后续位 置定位流程,否则不启动位置定位流程。
情形2:如S1111-S1112所示,在终端持续亮屏期间,若检测到终端的运动状态为持续步行状态,则获取当前接收到的小区信号中包含的小区标识,如S1140-1150所示,终端判断该小区标识是否在场景识别屏蔽列表中,如果该小区标识不在场景识别屏蔽列表中,则进一步判断终端当前的运动状态是否为乘车状态,即终端是否在交通工具上,如果终端当前的运动状态不是乘车状态,则启动后续位置定位流程,否则不启动位置定位流程。
情形3:如S1121-1122所示,在终端亮屏期间,若检测到终端所在小区发生变化,即从一个小区的信号覆盖范围移动到另一个小区的信号覆盖范围,则获取当前接收到的小区信号中包含的小区标识,如S1140-S1150所示,终端判断该小区标识是否在场景识别屏蔽列表中,如果该小区标识不在场景识别屏蔽列表中,则进一步判断终端当前的运动状态是否为乘车状态,即终端是否在交通工具上,如果终端当前的运动状态不是乘车状态,则启动后续位置定位流程,否则不启位置定位别流程。
情形4:如S1131-1133所示,处于灭屏状态的终端被周期唤醒时,获取当前接收到的小区信号中包含的小区标识,并判断该小区标识是否与上一次被唤醒时接收到的小区信号中包含的小区标识相同;如S1040-S1050所示,若不同,则进一步判断该小区标识是否在场景识别屏蔽列表中,如果该小区标识不在场景识别屏蔽列表中,则进一步判断终端当前的运动状态是否为乘车状态,即终端是否在交通工具上,如果终端当前的运动状态不是乘车状态,则启动后续位置定位流程,否则不启动位置定位流程。
在S1160,终端根据第二数据集合进行位置定位。
在S1170,终端判断识别到的位置或场景是否是地铁站内的位置或场景,若是,则转入S1180,否则转入S1190。
该步骤中,若终端根据小区标识从第二数据集合中查询到与该小区标识对应的地铁站名,则可以确定终端当前位置在地铁站内。若终端根据小区标识从第二数据集合中未查询到与该小区标识对应的地铁站名,则可确定终端当前不在地铁站内。
S1180:终端更新当前的场景状态为地铁站内。
S1190:终端更新当前的场景状态为地铁站外。
进一步的,在S1190之后,还可以执行以下步骤:
S1191:终端更新该小区标识对应的查询失败次数,若该查询失败次数达到设定次数阈值,则转入S1092;
S1192:终端将该小区标识添加到站外小区列表。进一步的,终端可更新站外小区列表中该小区标识对应的时间。
进一步的,上述流程中还可包括可:
S1193:终端可根据站外小区列表更新场景识别屏蔽列表,比如,将站外小区列表中的小区标识添加到场景识别屏蔽列表中。
进一步的,终端可按照设定周期对站外小区列表中的小区标识进行老化处理,比如,删除时间较早的小区标识。
以终端中包括有如表3所示的定位数据集合为例,用户持该终端进入地铁站S1走向进站闸机,该用户点亮该终端的屏幕并解锁屏幕,该终端当前接收到的小区信号中包含的小区标识为0001,并确定该小区标识0001未包括在场景识别屏蔽列表中,且该终端当前为非乘车状态,则该终端根据该小区标识查询第二数据集合,查询到的数据记录中的“场 景类型”字段取值为“1”,表示当前场景为地铁站进出口场景,因此该终端自动将用于地铁乘车支付的二维码显示在该终端的屏幕上,以便用户进行乘车支付,从而免去了用户打开相应应用程序,再打开该地铁乘车支付二维码的用户操作,进而提高了用户感受。
当用户进入进站闸机并持该终端在地铁站内行走时,该终端持续亮屏,且该终端检测小区发生了变化,则该终端获取当前接收到的小区信号中包含的小区标识,该小区信号中包含的小区标识为0010,该终端判断该小区标识未包括在屏蔽列表中,因此根据该小区标识查询定位数据集合,查询到的数据记录中的“场景类型”字段取值为“0”,表示当前场景为地铁站内的场景,该终端从网络侧获得该地铁站S1在当前时间的地铁列车到达信息,并将该信息显示在该终端的屏幕上,以方便用户了解地铁列车的到站时间,进而提高了用户感受。
当用户持该终端乘坐地铁列车过程中,该终端持续亮屏,并检测到小区发生了变化,当前接收到的小区信号中包含的小区标识为1011,该终端判断该小区标识未包括在屏蔽列表中,因此根据该小区标识查询定位数据集合,查询到的数据记录中的“地铁站名”字段为S3且“场景类型”字段为“0”,则可在该终端的屏幕上显示提示信息(或以其他方式输出提示信息,比如采用语音输出),以提示到达地铁站S3,以免用户坐过站。
当用户持该终端在地铁站S3下车后,该终端亮屏并进行屏幕解锁后,接收到小区信号,该小区信号中包含的小区标识为1101,该终端判断该小区标识未包括在屏蔽列表中,因此根据该小区标识查询定位数据集合,查询到的数据记录中的“地铁站名”字段为S3且“场景标识”字段为“1”,则自动将用于地铁乘车支付的二维码显示在该终端的屏幕上,以便于用户使用该二维码完成支付操作。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质用于存储计算机程序,该计算机程序被计算机执行时,所述计算机可以实现上述方法实施例提供的方法。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品用于存储计算机程序,该计算机程序被计算机执行时,所述计算机可以实现上述方法实施例提供的方法。
本申请实施例还提供一种芯片,包括处理器,所述处理器与存储器耦合,用于调用所述存储器中的程序使得所述芯片实现上述方法实施例提供的方法。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (39)

  1. 一种基于位置定位的服务实现方法,其特征在于,包括:
    满足第一条件时,终端获取当前位置的小区信号;
    所述终端根据所述小区信号确定当前位置的位置信息;
    所述终端根据所述位置信息,执行与所述当前位置匹配的服务。
  2. 如权利要求1所述的方法,其特征在于,所述终端根据所述小区信号确定当前位置的位置信息,包括:
    所述终端根据小区信号与位置信息的对应关系,确定与所述当前位置的小区信号对应的位置信息。
  3. 如权利要求2所述的方法,其特征在于,所述小区信号与位置信息的对应关系,包括小区信号的标识与位置信息的对应关系;
    所述确定与所述当前位置的小区信号对应的位置信息,包括:
    根据所述当前位置的小区信号的标识,确定与所述小区信号的标识对应的位置信息。
  4. 如权利要求2所述的方法,其特征在于,所述小区信号与位置信息的对应关系,包括小区信号的标识和强度与位置信息的对应关系;
    所述确定与所述当前位置的小区信号对应的位置信息,包括:
    根据所述当前位置的小区信号的标识和强度,确定与所述小区信号的标识和强度对应的位置信息。
  5. 如权利要求1-4任一项所述的方法,其特征在于,所述位置信息包括地铁站位置信息,所述地铁站位置信息包括地铁站标识信息和地铁站场景信息,所述地铁站场景信息包括地铁站入口标识、地铁站出口标识或地铁站站内标识。
  6. 如权利要求1-5任一项所述的方法,其特征在于,所述满足第一条件,包括:
    位置定位时机到来且满足位置定位启动条件。
  7. 如权利要求6所述的方法,其特征在于,所述位置定位时机到来,包括:
    所述终端亮屏并进行屏幕解锁;或者
    所述终端亮屏状态下检测到持续步行的运动状态;或者
    所述终端亮屏期间检测到所在小区发生变化;或者
    处于灭屏状态下的所述终端被周期唤醒。
  8. 如权利要求6-7任一项所述的方法,其特征在于,所述满足位置定位启动条件,包括以下至少一项:
    所述终端被唤醒时接收到的小区信号中包含的小区标识,与被唤醒前接收到的小区信号中包含的小区标识不同;
    所述终端接收到的小区信号中包含的小区标识不包括在场景识别屏蔽列表中,所述场景识别屏蔽列表用于存储无需进行场景识别的小区的标识;
    所述终端处于非乘车的运动状态。
  9. 如权利要求8所述的方法,其特征在于,所述方法还包括:
    若所述终端根据所述当前位置的小区信号进行位置定位失败,且失败次数达到设定阈值,则将所述当前位置的小区信号中的小区标识添加到所述场景识别屏蔽列表中。
  10. 如权利要求1-9任一项所述的方法,其特征在于,所述终端根据所述位置信息,执 行与所述当前位置匹配的服务,包括:
    若所述位置信息指示的位置为地铁站的入口或出口,则所述终端将用于地铁乘车支付的标识码显示在屏幕上。
  11. 如权利要求1-10任一项所述的方法,其特征在于,所述终端根据所述位置信息,执行与所述当前位置匹配的服务,包括:
    若所述位置信息指示的位置为第一地铁站的地铁站内,则所述终端获取地铁列车到达所述第一地铁站的时间预测信息,并将所述时间预测信息显示在屏幕上或者通过语音播报所述时间预测信息。
  12. 如权利要求1-11任一项所述的方法,其特征在于,所述终端根据所述位置信息,执行与所述当前位置匹配的服务,包括:
    若所述位置信息指示的场景为第二地铁站的地铁站内,且所述终端检测到的运动状态为乘车状态,则所述终端在屏幕上显示到站提醒信息或者通过语音播报所述到站提醒信息,所述到站提醒信息用于提示到达所述第二地铁站。
  13. 如权利要求1-12任一项所述的方法,其特征在于,所述方法还包括:
    所述终端检测第一触发事件,响应于所述第一触发事件启动数据采集;
    所述终端根据接收到的小区信号,记录小区信号和位置信息的对应关系;
    所述终端结束所述数据采集。
  14. 如权利要求13所述的方法,其特征在于,所述第一触发事件,包括:
    所述终端通过设置在地铁站入口处的第一设备获得进站许可。
  15. 如权利要求13-14任一项所述的方法,其特征在于,所述终端结束所述数据采集,包括:
    所述终端检测第二触发事件;
    所述终端响应于所述第二触发事件结束所述数据采集。
  16. 如权利要求15所述的方法,其特征在于,所述第二触发事件,包括:
    所述终端通过设置在地铁站出口处的第二设备获得出站许可;或者
    第一定时器超时,所述第一定时器是所述终端响应于所述第一触发事件启动的;或者
    第二定时器超时,所述第二定时器是所述终端感应到离开第二区域时启动的。
  17. 如权利要求13-16任一项所述的方法,其特征在于,所述小区信号和位置信息的对应关系被存储到采集数据集合,所述采集数据集合中包括至少一个数据记录;
    所述方法还包括:
    所述终端根据所述采集数据集合中置信度满足要求的数据记录,得到用于所述终端进行位置定位的定位数据集合,所述定位数据集合中包括至少一个数据记录,所述定位数据集合中的每个数据记录用于存储小区信号和位置信息的对应关系。
  18. 一种数据处理方法,其特征在于,包括:
    终端检测第一触发事件,响应于所述第一触发事件启动数据采集,所述第一触发事件包括所述终端感应到进入第一区域;
    所述终端根据接收到的小区信号,记录小区信号和位置信息的对应关系;
    所述终端结束所述数据采集。
  19. 如权利要求18所述的方法,其特征在于,所述第一触发事件,包括:
    所述终端通过设置在地铁站入口处的第一设备获得进站许可。
  20. 如权利要求18-19任一项所述的方法,其特征在于,所述终端结束所述数据采集,包括:
    所述终端检测第二触发事件;
    所述终端响应于所述第二触发事件结束所述数据采集。
  21. 如权利要求20所述的方法,其特征在于,所述第二触发事件,包括:
    所述终端感应到离开第二区域;或者
    第一定时器超时,所述第一定时器是所述终端响应于所述第一触发事件启动的;或者
    第二定时器超时,所述第二定时器是所述终端感应到离开所述第二区域时启动的。
  22. 如权利要求21所述的方法,其特征在于,所述终端感应到离开所述第二区域的事件,包括:
    所述终端通过设置在所述地铁站出口处的第二设备获得出站许可。
  23. 如权利要求18-22任一项所述的方法,其特征在于,所述终端根据接收到的小区信号,记录小区信号和位置信息的对应关系,包括:
    所述终端响应于所述第一触发事件,生成第一数据记录,所述第一数据记录用于存储所述终端接收的小区信号与所述终端当前所在位置的位置信息的对应关系;
    所述终端响应于所述终端接收到小区信号,生成第二数据记录,所述第二数据记录用于存储所述终端接收的小区信号的信息;
    所述终端响应于感应到离开第二区域,生成第三数据记录,所述第三数据记录用于存储所述终端接收的小区信号与所述终端当前所在位置的位置信息的对应关系。
  24. 如权利要求23所述的方法,其特征在于:
    所述第一数据记录为进站数据记录,所述进站数据记录中包括:小区标识、地铁站位置信息;
    所述第二数据记录为站内数据记录,所述站内数据记录中包括:小区标识;
    所述第三数据记录为出站数据记录,所述出站数据记录中包括:小区标识、地铁站位置信息。
  25. 如权利要求24所述的方法,其特征在于,所述进站数据记录、所述出站数据记录、所述站内数据记录中,还包括:跟踪区标识、运营商标识、国家代码中的至少一项,所述跟踪区标识、所述运营商标识、所述国家代码来自于所述终端接收到的小区信号。
  26. 如权利要求24或25所述的方法,其特征在于,所述进站数据记录、所述出站数据记录、所述站内数据记录中的地铁站位置信息还包括:地铁站所在城市的城市名。
  27. 如权利要求24-26任一项所述的方法,其特征在于,所述进站数据记录、所述站内数据记录和/或所述出站数据记录中还包括以下信息中的至少一项:采集时间、采集次数、信号强度、所述终端检测到的运动状态。
  28. 如权利要求24-27任一项所述的方法,其特征在于,所述进站数据记录中还包括评估信息,所述评估信息包括验证成功次数、验证失败次数和召回率中的至少一项;其中,所述验证成功次数为当所述终端感应到进入地铁站时所述终端对定位结果验证成功的次数,所述验证失败次数为当所述终端感应到进入地铁站时所述终端对定位结果验证失败的次数,所述召回率是根据所述验证成功次数和所述验证失败次数确定出的;和/或
    所述出站数据记录中还包括评估信息,所述评估信息包括验证成功次数、验证失败次数和召回率中的至少一项;其中,所述验证成功次数为当所述终端感应到离开地铁站时所 述终端对定位结果验证成功的次数,所述验证失败次数为当所述终端感应到离开地铁站时所述终端对定位结果验证失败的次数,所述召回率是根据所述验证成功次数和所述验证失败次数确定出的。
  29. 如权利要求28所述的方法,其特征在于,所述方法还包括:
    当所述终端感应到进入地铁站时,所述终端根据接收到的小区信号中包含的小区标识进行场景识别,得到识别出的地铁站位置信息;
    若根据场景识别得到地铁站位置信息与根据入口处的第一设备返回的兴趣点POI所查询到的地铁站位置信息相同,则所述终端更新所述进站数据记录中的验证成功次数,并根据所述进站数据记录中的验证失败次数和更新后的验证成功次数更新所述进站数据记录中的召回率;
    否则,更新所述进站数据记录中的验证失败次数,并根据所述进站数据记录中的验证成功次数和更新后的验证失败次数更新所述进站数据记录中的召回率。
  30. 如权利要求28所述的方法,其特征在于,所述方法还包括:
    当所述终端感应到离开地铁站时,所述终端根据接收到的小区信号中包含的小区标识进行场景识别,得到识别出的地铁站位置信息;
    若根据场景识别得到地铁站位置信息与根据出口处的第二设备返回的POI所查询到的地铁站位置信息相同,则所述终端更新所述出站数据记录中的验证成功次数,并根据所述出站数据记录中的验证失败次数和更新后的验证成功次数更新所述出站数据记录中的召回率;
    否则,更新所述出站数据记录中的验证失败次数,并根据所述出站数据记录中的验证成功次数和更新后的验证失败次数更新所述出站数据记录中的召回率。
  31. 如权利要求24-30任一项所述的方法,其特征在于,所述方法还包括:
    按照采集时间从前到后的顺序,将与所述进站数据记录相邻的第一站内数据记录到第二站内数据记录之间的站内数据记录中添加地铁站位置信息,添加的地铁站位置信息与所述进站数据记录中的地铁站位置信息相同;其中,所述第二站内数据记录为按照采集时间从前到后的顺序排列的进站数据记录中第一个运动状态为乘车状态的站内数据记录;
    按照采集时间从后到前的顺序,将与所述出站数据记录相邻的第三站内数据记录到第四站内数据记录之间的站内数据记录中添加地铁站位置信息,添加的地铁站位置信息与所述出站数据记录中的地铁站位置信息相同;其中,所述第四站内数据记录为按照采集时间从后到前的顺序排列的进站数据记录中第一个运动状态为乘车状态的站内数据记录。
  32. 如权利要求24-30任一项所述的方法,其特征在于,所述方法还包括:
    按照时间从前向后的顺序,确定从所述进站数据记录到第一个乘车状态的站内数据记录之间的第一时长,将所述第一时长添加到所述进站地铁站对应的逗留时长集合中,根据所述进站地铁站对应的逗留时长集合,确定所述进站地铁站对应的进站逗留时长阈值;若所述第一时长大于所述进站逗留时长阈值,则以所述进站数据记录的采集时间为起点,选取所述进站逗留时长阈值内的站内数据记录,并将所述进站数据记录中的地铁站位置信息添加到选取的站内数据记录中;否则,将所述进站数据记录中的地铁站位置信息添加到所述进站数据记录到所述第一个乘车状态数据记录之间的站内数据记录中;和/或
    按照时间从后向前的顺序,确定从所述出站数据记录到第一个乘车状态的数据记录之间的第二时长,将所述第二时长添加到所述出站地铁站对应的逗留时长集合中,根据所述 出站地铁站对应的逗留时长集合,确定所述出站地铁站对应的出站逗留时长阈值;若所述第二时长大于所述出站逗留时长阈值,则以所述出站数据记录的采集时间为起点,选取在所述出站逗留时长阈值之内的站内数据记录,并将所述出站数据记录中的地铁站位置信息添加到选取的站内数据记录中;否则,将所述出站数据记录中的地铁站位置信息添加到所述出站数据记录到所述第一个乘车状态数据记录之间的站内数据记录中。
  33. 如权利要求18-32任一项所述的方法,其特征在于,所述小区信号和位置信息的对应关系被存储到采集数据集合,所述采集数据集合中包括至少一个数据记录;
    所述方法还包括:
    所述终端根据所述采集数据集合中置信度满足要求的数据记录,得到用于位置定位的定位数据集合,所述定位数据集合中包括至少一个数据记录,所述定位数据集合中的数据记录用于存储小区信号与位置信息的对应关系。
  34. 如权利要求33所述的方法,其特征在于,所述定位数据集合的数据记录中包括:小区标识、地铁站位置信息,以及包括第一场景类型标识或第二场景类型标识,其中,所述第一场景类型标识用于指示所在数据记录对应的场景为地铁站的出入口,所述第二场景类型标识用于指示所在数据记录对应的场景为地铁站内。
  35. 如权利要求33-34任一项所述的方法,其特征在于,所述置信度满足要求的数据记录,满足以下至少一个条件:
    召回率大于设定阈值的进站数据记录;
    召回率大于设定阈值的出站数据记录;
    边缘度满足要求的站内数据记录,所述边缘度使用站内数据记录中的采集次数与最大采集次数的比值表示,所述最大采集次数为包含有相同地铁站位置信息的所有站内数据记录中的最大采集次数;
    采集时间在指定时间之后的进站数据记录、站内数据记录和出站数据记录;其中,所述指定时间在当前时间之前且距离当前时间的时长等于设定时长。
  36. 一种通信装置,其特征在于,包括:一个或多个处理器;其中,当一个或多个计算机程序的指令被所述一个或多个处理器执行时,使得所述通信装置执行如权利要求1-17中任一项所述的方法,或者18-35中任一项所述的方法。
  37. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质包括计算机程序,当计算机程序在计算设备上运行时,使得所述计算设备执行权利要求1-17中任一项所述的方法,或者18-35中任一项所述的方法。
  38. 一种芯片,其特征在于,所述芯片与存储器耦合,用于读取并执行所述存储器中存储的程序指令,以实现权利要求1-17中任一项所述的方法,或者18-35中任一项所述的方法。
  39. 一种计算机程序产品,其特征在于,所述计算机程序产品在被计算机调用时,使得所述计算机执行权利要求1-17中任一项所述的方法,或者18-35中任一项所述的方法。
PCT/CN2022/124920 2021-10-27 2022-10-12 一种基于位置定位的服务实现方法、数据处理方法及装置 WO2023071804A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111264022.5 2021-10-27
CN202111264022.5A CN116033350A (zh) 2021-10-27 2021-10-27 一种基于位置定位的服务实现方法、数据处理方法及装置

Publications (1)

Publication Number Publication Date
WO2023071804A1 true WO2023071804A1 (zh) 2023-05-04

Family

ID=86069474

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/124920 WO2023071804A1 (zh) 2021-10-27 2022-10-12 一种基于位置定位的服务实现方法、数据处理方法及装置

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117528423A (zh) * 2024-01-05 2024-02-06 北京航空航天大学 基于手机信令的地铁乘客实时乘车状态计算方法及系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117295008B (zh) * 2023-11-24 2024-04-05 荣耀终端有限公司 信息推送方法及设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050087864A (ko) * 2005-06-24 2005-08-31 노키아 코포레이션 모바일 통신 단말기들을 위한 위치 기반 서비스
US20110165892A1 (en) * 2010-01-04 2011-07-07 Alcatel-Lucent Usa Inc. Method and apparatus for providing geo-location enablement for wireless device
CN105992338A (zh) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 一种定位方法和装置
CN107682811A (zh) * 2017-10-19 2018-02-09 北京三快在线科技有限公司 一种定位方法和装置
CN107872875A (zh) * 2017-12-21 2018-04-03 维沃移动通信有限公司 网络定位的方法及装置
CN110366096A (zh) * 2019-05-30 2019-10-22 深圳数位传媒科技有限公司 一种室内场景识别方法及装置
CN111405466A (zh) * 2020-03-20 2020-07-10 Oppo广东移动通信有限公司 站点识别方法、到站提醒方法、装置、终端及存储介质
CN113207098A (zh) * 2021-04-30 2021-08-03 Oppo广东移动通信有限公司 站点信息的确定方法、装置、移动终端及存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050087864A (ko) * 2005-06-24 2005-08-31 노키아 코포레이션 모바일 통신 단말기들을 위한 위치 기반 서비스
US20110165892A1 (en) * 2010-01-04 2011-07-07 Alcatel-Lucent Usa Inc. Method and apparatus for providing geo-location enablement for wireless device
CN105992338A (zh) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 一种定位方法和装置
CN107682811A (zh) * 2017-10-19 2018-02-09 北京三快在线科技有限公司 一种定位方法和装置
CN107872875A (zh) * 2017-12-21 2018-04-03 维沃移动通信有限公司 网络定位的方法及装置
CN110366096A (zh) * 2019-05-30 2019-10-22 深圳数位传媒科技有限公司 一种室内场景识别方法及装置
CN111405466A (zh) * 2020-03-20 2020-07-10 Oppo广东移动通信有限公司 站点识别方法、到站提醒方法、装置、终端及存储介质
CN113207098A (zh) * 2021-04-30 2021-08-03 Oppo广东移动通信有限公司 站点信息的确定方法、装置、移动终端及存储介质

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117528423A (zh) * 2024-01-05 2024-02-06 北京航空航天大学 基于手机信令的地铁乘客实时乘车状态计算方法及系统
CN117528423B (zh) * 2024-01-05 2024-03-19 北京航空航天大学 基于手机信令的地铁乘客实时乘车状态计算方法及系统

Also Published As

Publication number Publication date
CN116033350A (zh) 2023-04-28

Similar Documents

Publication Publication Date Title
WO2023071804A1 (zh) 一种基于位置定位的服务实现方法、数据处理方法及装置
US11182700B2 (en) Methods, devices, and systems for automatically detecting, tracking, and validating transit journeys
WO2021175062A1 (zh) 服务提供方法、装置、终端及存储介质
Thiagarajan et al. Cooperative transit tracking using smart-phones
CN107845259B (zh) 公交运行情况实时反馈系统及公交实时运行数据处理方法
Xiao et al. Transportation activity analysis using smartphones
US10024978B2 (en) Travel survey systems and methods
Koukoumidis et al. Leveraging smartphone cameras for collaborative road advisories
CN106600483A (zh) 一种景区智慧旅游系统
CN105554878A (zh) 停车管理方法、车载蓝牙标签、基站及系统
US20060106622A1 (en) Method for obtaining traffic information using billing information of mobile terminal
US10339567B2 (en) Advertisement service using mobile vehicle
CN102954800A (zh) 车载装置及其行车辅助系统与行车辅助信息提供方法
CN102456141A (zh) 用于识别用户背景的用户装置和方法
CN104021694A (zh) 用于确定停车信息的设备和方法
US20180012323A1 (en) Method and apparatus for improving dispatch of different types of law enforcement patrols for achieving a desired deterrent effect
CN106297358A (zh) 路况预测的实现方法及装置
CN104537837A (zh) 交通标志的获取、确定交通路线的方法、装置及系统
Higuchi et al. Mobile devices as an infrastructure: A survey of opportunistic sensing technology
CN107341226B (zh) 信息展示方法、装置及移动终端
Gunady et al. A non-gps based location tracking of public buses using bluetooth proximity beacons
WO2018113087A1 (zh) 一种确定用户乘车地理位置的方法及设备
US10048918B2 (en) Method and apparatus for visualizing crime deterrent effects
CN116129643A (zh) 一种公交车出行特征识别方法、装置、设备及介质
WO2023124986A1 (zh) 一种基于位置定位的服务实现方法、数据处理方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22885683

Country of ref document: EP

Kind code of ref document: A1