CN116567805A - Method, apparatus, device and computer readable storage medium for state recognition - Google Patents

Method, apparatus, device and computer readable storage medium for state recognition Download PDF

Info

Publication number
CN116567805A
CN116567805A CN202210102831.4A CN202210102831A CN116567805A CN 116567805 A CN116567805 A CN 116567805A CN 202210102831 A CN202210102831 A CN 202210102831A CN 116567805 A CN116567805 A CN 116567805A
Authority
CN
China
Prior art keywords
bluetooth
fingerprint information
signal
target
bluetooth fingerprint
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210102831.4A
Other languages
Chinese (zh)
Inventor
孙铭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN202210102831.4A priority Critical patent/CN116567805A/en
Publication of CN116567805A publication Critical patent/CN116567805A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • 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/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/35Services specially adapted for particular environments, situations or purposes for the management of goods or merchandise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method, a device, equipment and a computer readable storage medium for state identification, and belongs to the technical field of positioning. The method comprises the following steps: acquiring a first Bluetooth signal received by equipment of a target object; determining Bluetooth fingerprint information matched with the first Bluetooth signal in a Bluetooth fingerprint library, wherein the Bluetooth fingerprint library comprises a plurality of pieces of Bluetooth fingerprint information, each piece of Bluetooth fingerprint information corresponds to one place, and the Bluetooth fingerprint information comprises at least one of a name identifier of Bluetooth corresponding to the Bluetooth fingerprint information and manufacturer information; and determining a state identification result of the target object based on the location corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal. By the method, the condition that a Bluetooth beacon is virtualized on the merchant App to help identify the target object is avoided, so that the condition identification of the target object is not limited by the use rate of the merchant App, and the reliability of the condition identification is improved.

Description

Method, apparatus, device and computer readable storage medium for state recognition
Technical Field
Embodiments of the present disclosure relate to the field of positioning technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for identifying a state.
Background
Positioning techniques are typically used to identify the state of a positioned object. Taking cargo delivery as an example, in the related art, when identifying whether a delivery object is at a delivery site, it is implemented by virtualizing a bluetooth beacon in a merchant App (Application) for placing a delivery order by a merchant. The bluetooth beacon can send out a bluetooth signal, and the effective distance of the bluetooth signal is usually small (usually not more than 15 meters under the condition of no blocking), so when the device of the delivery object receives the bluetooth signal, the delivery object is considered to be within a certain range of the goods taking place corresponding to the merchant, at this time, the state of the delivery object is identified as the goods taking place, otherwise, the state of the delivery object is considered as the goods not taking place.
In the above technology, the manner of virtualizing a bluetooth beacon in the merchant App helps to identify whether the delivery object is in the pick-up place is limited by the use rate of the merchant App, and whether the merchant uses the merchant App is uncontrollable, so that the manner is easy to be limited in application and has low reliability.
Disclosure of Invention
Embodiments of the present application provide a method, apparatus, device, and computer-readable storage medium for state identification, which can be used to solve the problems in the related art. The technical scheme is as follows:
In one aspect, an embodiment of the present application provides a method for identifying a state, where the method includes:
acquiring a first Bluetooth signal received by equipment of a target object;
determining Bluetooth fingerprint information matched with the first Bluetooth signal in a Bluetooth fingerprint library, wherein the Bluetooth fingerprint library comprises a plurality of pieces of Bluetooth fingerprint information, each piece of Bluetooth fingerprint information corresponds to one place, and the Bluetooth fingerprint information comprises at least one of a name identifier of Bluetooth corresponding to the Bluetooth fingerprint information and manufacturer information;
and determining a state identification result of the target object based on the location corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal.
In one possible implementation manner, before determining the bluetooth fingerprint information matching the first bluetooth signal in the bluetooth fingerprint library, the method further includes: acquiring a second Bluetooth signal received by first equipment; removing Bluetooth signals which do not meet the requirements in the second Bluetooth signals to obtain third Bluetooth signals; acquiring Bluetooth fingerprint information corresponding to the third Bluetooth signal; and establishing the Bluetooth fingerprint library based on the Bluetooth fingerprint information corresponding to the third Bluetooth signal.
In one possible implementation manner, the bluetooth signals that do not meet the requirements in the second bluetooth signals include at least one of unresolved bluetooth signals, bluetooth signals with mobility, and bluetooth signals that cannot be acquired by the second device; the second device is different from the operating system of the first device, and the third bluetooth signal is applicable to the operating systems of the first device and the second device.
In one possible implementation manner, the establishing the bluetooth fingerprint library based on bluetooth fingerprint information corresponding to the third bluetooth signal includes: selecting target Bluetooth fingerprint information from Bluetooth fingerprint information corresponding to the third Bluetooth signal, wherein the target Bluetooth fingerprint information corresponds to a target Bluetooth signal, and the target Bluetooth signal is a Bluetooth signal obtained in the third Bluetooth signal within the range threshold of the place; and establishing the Bluetooth fingerprint library based on the target Bluetooth fingerprint information.
In one possible implementation manner, the selecting the target bluetooth fingerprint information from the bluetooth fingerprint information corresponding to the third bluetooth signal includes: selecting the target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on the wireless fidelity WiFi fingerprint corresponding to the place; or clustering the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on a clustering algorithm, and selecting the target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal according to a clustering result.
In one possible implementation manner, after the establishing the bluetooth fingerprint library based on the target bluetooth fingerprint information, the method further includes: updating the Bluetooth fingerprint library every first time period, wherein the updating comprises the steps of recording new target Bluetooth fingerprint information obtained during the updating of the Bluetooth fingerprint library into the Bluetooth fingerprint library and removing Bluetooth fingerprint information which is judged to be invalid from the target Bluetooth fingerprint information in the Bluetooth fingerprint library.
In one possible implementation manner, the removing, from the bluetooth fingerprint library, bluetooth fingerprint information determined to be invalid from the target bluetooth fingerprint information includes: counting at least two positions of each Bluetooth device in the Bluetooth devices corresponding to the target Bluetooth fingerprint information; removing Bluetooth fingerprint information, of the at least two positions, of which the distance between the two positions is greater than a distance threshold; generating a polygon corresponding to each target Bluetooth fingerprint information based on a polygon generation algorithm and the at least two positions; and removing target Bluetooth fingerprint information of which the area of the polygon is larger than an area threshold value during updating of the Bluetooth fingerprint library.
In one possible implementation manner, after determining the state recognition result of the target object based on the location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal, the method further includes: re-acquiring a Bluetooth signal received by equipment of the target object after the reference time length; and determining a state of the target object based on the reacquired bluetooth signal in response to the reacquired bluetooth signal being different from the first bluetooth signal.
In another aspect, an apparatus for state identification is provided, the apparatus comprising:
the first acquisition module is used for acquiring a first Bluetooth signal received by equipment of a target object;
the first determining module is used for determining Bluetooth fingerprint information matched with the first Bluetooth signal in a Bluetooth fingerprint library, the Bluetooth fingerprint library comprises a plurality of pieces of Bluetooth fingerprint information, each piece of Bluetooth fingerprint information corresponds to one place, and the Bluetooth fingerprint information comprises at least one of a name identifier and manufacturer information of Bluetooth corresponding to the Bluetooth fingerprint information;
and the second determining module is used for determining a state identification result of the target object based on the position corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal.
In one possible implementation, the apparatus further includes:
the second acquisition module is used for acquiring a second Bluetooth signal received by the first equipment;
the removing module is used for removing Bluetooth signals which do not meet the requirements in the second Bluetooth signals to obtain third Bluetooth signals;
the third acquisition module is used for acquiring Bluetooth fingerprint information corresponding to the third Bluetooth signal;
the establishing module is used for establishing the Bluetooth fingerprint library based on the Bluetooth fingerprint information corresponding to the third Bluetooth signal.
In one possible implementation manner, the bluetooth signals that do not meet the requirements in the second bluetooth signals include at least one of unresolved bluetooth signals, bluetooth signals with mobility, and bluetooth signals that cannot be acquired by the second device; the second device is different from the operating system of the first device, and the third bluetooth signal is applicable to the operating systems of the first device and the second device.
In one possible implementation manner, the establishing module is configured to select target bluetooth fingerprint information from bluetooth fingerprint information corresponding to the third bluetooth signal, where the target bluetooth fingerprint information corresponds to a target bluetooth signal, and the target bluetooth signal is a bluetooth signal obtained in the third bluetooth signal within a range threshold of the location; and establishing the Bluetooth fingerprint library based on the target Bluetooth fingerprint information.
In one possible implementation manner, the establishing module is configured to select, based on a WiFi fingerprint corresponding to the location, the target bluetooth fingerprint information from bluetooth fingerprint information corresponding to the third bluetooth signal; or clustering the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on a clustering algorithm, and selecting the target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal according to a clustering result.
In one possible implementation, the apparatus further includes:
and the updating module is used for updating the Bluetooth fingerprint library every a first time period, wherein the updating comprises the steps of recording new target Bluetooth fingerprint information obtained during the updating of the Bluetooth fingerprint library into the Bluetooth fingerprint library and removing the Bluetooth fingerprint information which is judged to be invalid from the target Bluetooth fingerprint information in the Bluetooth fingerprint library.
In a possible implementation manner, the updating module is configured to count at least two positions of each bluetooth device in the bluetooth devices corresponding to the target bluetooth fingerprint information; removing Bluetooth fingerprint information, of the at least two positions, of which the distance between the two positions is greater than a distance threshold; generating a polygon corresponding to each target Bluetooth fingerprint information based on a polygon generation algorithm and the at least two positions; and removing target Bluetooth fingerprint information of which the area of the polygon is larger than an area threshold value during updating of the Bluetooth fingerprint library.
In a possible implementation manner, the second determining module is further configured to reacquire, after the reference duration, a bluetooth signal received by the device of the target object; and determining a state of the target object based on the reacquired bluetooth signal in response to the reacquired bluetooth signal being different from the first bluetooth signal.
In another aspect, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to cause the computer device to implement a method of state identification as described above.
In another aspect, there is provided a computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to cause a computer to implement a method of state identification as described in any of the above.
In another aspect, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium, the computer instructions being read from the computer readable storage medium by a processor of a computer device, the computer instructions being executed by the processor to cause the computer device to perform a method of state identification as described in any of the above.
The technical scheme provided by the embodiment of the application at least brings the following beneficial effects:
According to the technical scheme, the first Bluetooth signal received by the equipment of the target object is obtained, bluetooth fingerprint information matched with the first Bluetooth signal is determined in the Bluetooth fingerprint library, and then, the state recognition result of the target object is determined based on the place corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal. By the method, the condition that a Bluetooth beacon is virtualized on the merchant App to help identify the target object is avoided, so that the condition identification of the target object by the method is not limited by the use rate of the merchant App, and the accuracy of the condition identification is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a method implementation environment for state identification provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method of state identification provided by an embodiment of the present application;
Fig. 3 is a schematic distribution diagram of bluetooth fingerprint information according to an embodiment of the present application;
fig. 4 is a flowchart of selecting target bluetooth fingerprint information from bluetooth fingerprint information corresponding to a third bluetooth signal based on a WiFi fingerprint according to an embodiment of the present application;
FIG. 5 is a schematic illustration of various periods of cargo delivery provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a bluetooth list provided in an embodiment of the present application;
fig. 7 is an overall framework diagram of bluetooth fingerprint generation and bluetooth fingerprint matching provided in an embodiment of the present application;
FIG. 8 is a schematic diagram of a state recognition device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and in the claims of this application (if any) are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the delivery of goods, especially in instant delivery, delivery objects often need to complete the delivery order (or delivery order) to the pick-up location, pick-up, delivery, etc. in a certain period of time. In this process, the delivery object typically needs to shuttle across multiple malls, multiple residential buildings, and even multiple trips between the same mall and residential building. Therefore, identifying the state in which the delivery object is currently located has a large influence on the delivery efficiency. For example, when a new manifest is dispatched to a delivery object, it is necessary to consider whether the state in which the delivery object is currently in is suitable for receiving the new manifest.
Still taking cargo distribution as an example, the manner of identifying the distribution object state provided in the related art includes: mode 1, GPS (Global Positioning System ) positioning+delivery object active reporting; mode 2, recognizing a state of a delivery object based on WiFi (Wireless Fidelity ) fingerprint; mode 3, a bluetooth beacon is virtualized in the merchant App to help identify the status of the dispensing object.
When the state of the delivery object is identified based on the mode 1, because the accuracy of the GPS in indoor positioning is poor and the three-dimensional space cannot be represented, when the state of the delivery object is determined, the identification of the state of the delivery object is completed by actively reporting the delivery object, and whether the delivery object is actively reported is uncontrollable. Therefore, the state of identifying the delivery object based on the mode 1 is limited to whether the delivery object is reported or not, and to the accuracy of positioning of the GPS in the room.
The state of identifying the delivery object based on the mode 2 makes up the defect of the mode 1 to a certain extent, and whether the delivery object is at the pick-up place or the destination can be well identified based on the WiFi fingerprint. Thus, the status of the delivery object may be determined directly from whether the device that is receiving the manifest receives a particular WiFi signal. For example, if the device for receiving the manifest receives a WiFi signal for the pick-up location, the device may determine that the delivery object is within a certain range of the pick-up location, and further identify that the status of the delivery object is at the pick-up location. However, the method 2 has a certain disadvantage that the device having different operating systems has different restrictions on the WiFi signal scanning, so that the second device corresponding to the operating system having a higher restriction on the WiFi signal scanning cannot determine the position based on the WiFi fingerprint, and therefore, when the delivery object accepts the waybill using the second device, the state of the delivery object cannot be recognized based on the method 2.
The principle of identifying the state of the delivery object based on the mode 3 is: and sending out a Bluetooth signal through the Bluetooth beacon, if the equipment for receiving the waybill receives the Bluetooth signal, determining that the delivery object is in a certain range of merchant equipment (the merchant equipment is equipment with merchant App installed by a merchant) corresponding to the Bluetooth beacon, and when the merchant equipment is at a pick-up place, considering that the state of the delivery object is at the pick-up place. The problem of modes 1 and 2 is avoided by identifying the state of the delivery object based on mode 3, but there is also a problem of its own. For example, recognizing the status of the delivery object based on mode 3 is limited by the merchant App usage rate, whether the merchant uses the merchant App is not controllable, and when the merchant device is not at the pick-up location, even if the bluetooth signal is received by the device of the delivery object for receiving the manifest, it is only possible to indicate that the delivery object is near the merchant device, and it is not possible to directly determine that the status of the delivery object is at the pick-up location. Therefore, the state of identifying the delivery object based on the mode 3 is easily restricted. Further, the merchant that actually uses the merchant App is 30%.
In addition to the above three methods of identifying the status of the delivery object, there is a method of directly laying a bluetooth device on the pick-up site to identify whether the status of the delivery object is on the pick-up site, which has the disadvantage of high cost.
In this regard, the embodiment of the present application provides a method for identifying a state, which does not need to directly lay bluetooth equipment, saves the cost of implementing the state identification, and avoids the problems of mode 1, mode 2 and mode 3 provided by the related art. Referring to fig. 1, a schematic diagram of a method implementation environment provided in an embodiment of the present application is shown. The implementation environment may include: a terminal 11 and a server 12.
The terminal 11 may acquire the bluetooth signal and the WiFi signal, and upload the acquired bluetooth signal and WiFi signal to the server 12. The terminal 11 may also screen the obtained bluetooth signals, and save the target bluetooth fingerprint information corresponding to the screened target bluetooth signals, and upload the target bluetooth fingerprint information to the server 12. The server 12 may save the bluetooth signal uploaded by the terminal 11, or may screen the bluetooth signal, save the target bluetooth fingerprint information corresponding to the target bluetooth signal obtained by the screening, and send the target bluetooth fingerprint information to the terminal 11. The server 12 may also directly acquire bluetooth signals and WiFi signals.
Alternatively, the terminal 11 may be any electronic product that can perform man-machine interaction with a user through one or more modes of a keyboard, a touch pad, a touch screen, a remote controller, a voice interaction or handwriting device, such as a PC (Personal Computer ), a mobile phone, a smart phone, a PDA (Personal Digital Assistant ), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart television, a smart sound box, etc. The server 12 may be a server, a server cluster comprising a plurality of servers, or a cloud computing service center. The terminal 11 establishes a communication connection with the server 12 through a wired or wireless network.
Those skilled in the art will appreciate that the above-described terminal 11 and server 12 are by way of example only, and that other terminals or servers, either now present or later, may be suitable for use in the present application, and are intended to be within the scope of the present application and are incorporated herein by reference. In addition, it should be noted that all actions for obtaining signals, information or data are performed under the condition that the owner of the corresponding device is authorized.
Based on the implementation environment shown in fig. 1, the embodiment of the present application provides a method for identifying a state, where the method is executed by a computer device, and the computer device may be the server 12 or the terminal 11, which is not limited in this embodiment of the present application. As shown in fig. 2, the method provided in the embodiment of the present application may include step 201 and step 202.
In step 201, a first bluetooth signal received by a device of a target object is acquired, bluetooth fingerprint information matched with the first bluetooth signal is determined in a bluetooth fingerprint database, the bluetooth fingerprint database includes a plurality of bluetooth fingerprint information, each of the bluetooth fingerprint information corresponds to a place, and the bluetooth fingerprint information includes at least one of a name identifier and vendor information of bluetooth corresponding to the bluetooth fingerprint information. The target object is an object to be identified, for example, a delivery object for receiving a waybill and delivering the received waybill. And acquiring a first Bluetooth signal received by equipment of the target object, namely acquiring the first Bluetooth signal received by equipment of the object to be identified. The number of the first bluetooth signals may be 1 or more, which is not limited in the embodiment of the present application.
In an exemplary embodiment, in recognizing the state of the target object, the number of first bluetooth signals received by the device requiring the target object is not less than the first set value. If the number of the first bluetooth signals is smaller than the first set value, the number of the first bluetooth signals matched with bluetooth fingerprint information in the bluetooth fingerprint library is also smaller, the number of the matches is smaller, and the state of the target object is easy to be interfered when the matching result is used for determining the state of the target object, so that the determined state is not accurate enough.
Before explaining the reason why the number of the first bluetooth signals is smaller than the first set value, which may cause the determined state of the target object to be inaccurate, the principle of identifying the state of the target object based on bluetooth fingerprint needs to be introduced. The effective distance of the bluetooth signal sent by the bluetooth device is generally short, for example, generally not more than 15 meters, so when the bluetooth signal is received by a device, the distance from the user corresponding to the device to the bluetooth signal is considered not more than 15 meters, and the user can be considered to be within a certain distance (15 meters) of the device. Therefore, when the bluetooth device is fixedly present at a location and the bluetooth signal sent by the bluetooth device is received by the device carried by the user, the user is considered to be within a certain distance of the location, and at this time, the state of the user can be determined to be at the location.
After the principle of identifying the state of the target object based on bluetooth fingerprint is clarified, explanation is required for different situations. For example, when the target object is required to be within 50 meters of the location a, the state of the target object is considered to be that there are 10 pieces of bluetooth fingerprint information within 50 meters of the location a, and the distribution of the 10 pieces of bluetooth fingerprint information is shown in fig. 3. As can be seen from fig. 3, the distance from the bluetooth fingerprint information M to the location a is 45 meters, that is, the target object may receive the bluetooth fingerprint information M when the distance from the location a is 60 meters (here, it is assumed that the effective distance of the bluetooth signal is 15 meters). Therefore, the conditions when determining that the target object is within 50 meters of the site a are: when the first bluetooth signal received by the device of the target object has bluetooth signals matched with the 10 bluetooth fingerprint information, it is unreasonable to consider that the target object is within 50 meters of the site a.
Therefore, in the exemplary embodiment, in identifying the state of the target object, the reason why the number of first bluetooth signals received by the device requiring the target object is not less than the first set value is that: the more the number of the first bluetooth signals is, the more the first bluetooth signals are matched with bluetooth fingerprint information included in the bluetooth fingerprint library, and the more the number of the first bluetooth signals matched with the bluetooth fingerprint information is, the more accurate the state identification result of the target object is. The magnitude of the first setting value is an empirical setting value or is adjusted based on an application scenario, which is not limited in the embodiment of the present application.
In another exemplary embodiment, in order to avoid the waste of computing resources caused by the small number of the first bluetooth signals, after the first bluetooth signals received by the device of the target object are acquired, the number of the first bluetooth signals is first identified, and if the number of the first bluetooth signals is less than the first set value, a subsequent state identification step is not performed, so that the waste of computing resources is avoided. If the number of the first Bluetooth signals is not less than the first set value, the subsequent steps are carried out, and the accuracy of the result obtained by carrying out state identification on the target object based on the first Bluetooth signals at the time is high.
In an exemplary embodiment, the bluetooth fingerprint library includes a plurality of bluetooth fingerprint information, each of which corresponds to one location, and the bluetooth fingerprint information corresponding to the same location may be divided into the same group in the bluetooth fingerprint library, which may be referred to as a bluetooth fingerprint sub-library. Because the Bluetooth fingerprint information in the Bluetooth fingerprint sub-library corresponds to the same place, one Bluetooth fingerprint sub-library corresponds to one place. The bluetooth fingerprint information included in the bluetooth fingerprint library is information that can uniquely identify a bluetooth signal, that is, one bluetooth fingerprint information corresponds to one bluetooth signal. In an exemplary embodiment, the bluetooth fingerprint information may be at least one of vendor information and a name identifier corresponding to a bluetooth signal that can uniquely identify bluetooth corresponding to the bluetooth signal. In an exemplary embodiment, before determining bluetooth fingerprint information matching the first bluetooth signal in the bluetooth fingerprint library, the bluetooth fingerprint library needs to be established, and the process of establishing the bluetooth fingerprint library includes steps 2011 to 2013.
Step 2011: and acquiring a second Bluetooth signal received by the first equipment, and removing Bluetooth signals which do not meet the requirements in the second Bluetooth signal to obtain a third Bluetooth signal.
Illustratively, the first device is a device that can be located using WiFi fingerprints. In an exemplary embodiment, acquiring the second bluetooth signal received by the first device includes: and acquiring Bluetooth signals received by the first equipment once every a certain time interval to obtain second Bluetooth signals, wherein the number of the second Bluetooth signals is a plurality of. In an exemplary embodiment, the bluetooth signal that does not satisfy the requirement in the second bluetooth signal includes: at least one of an unresolved bluetooth signal in the second bluetooth signal, a bluetooth signal having mobility, and a bluetooth signal that cannot be acquired by the second device. The second bluetooth signal is illustratively determined by a name in the first device when the second bluetooth signal is received by the first device.
In an exemplary embodiment, the second device is different from the operating system of the first device, the different operating system causing the second device to be different from the first device in terms of limitations that exist in scanning for WiFi signals. In an exemplary embodiment, the first device has a lower limit on the scanning of WiFi signals than the second device, e.g., the first device may receive more WiFi signals than the second device may receive. In one possible implementation manner, the device of the target object may belong to the first device or may belong to the second device, which is not limited in this embodiment of the present application.
It should be noted that, among the devices corresponding to different operating systems, the other devices except the first device belong to the second device. For example, the device corresponding to the operating system 1, the device corresponding to the operating system 2, and the device corresponding to the operating system 3 may select, when determining which device is the first device, the device that has the smallest limitation on WiFi signal scanning and can be located by using WiFi fingerprints from the devices corresponding to the operating systems 1-3 as the first device, and the devices corresponding to the other two operating systems are both the second devices. For another example, if the device corresponding to the operating system 1 has the minimum limitation on scanning WiFi signals and can be located by using WiFi fingerprints, the device corresponding to the operating system 1 is selected as the first device, and the devices corresponding to the operating system 2 and the operating system 3 both belong to the second device.
In an exemplary embodiment, the unresolved bluetooth signal of the second bluetooth signal includes: bluetooth information of the identification information cannot be analyzed from the second Bluetooth signal. The reason that the unresolved bluetooth signal needs to be removed is that: when the name of the unresolved Bluetooth signal is changed, the unresolved Bluetooth signal is considered as another Bluetooth signal, and when the state of the target object is identified, the problem of incorrect identification and inaccurate identification can be caused by utilizing the Bluetooth signal.
In an exemplary embodiment, there is a mobile bluetooth signal in the second bluetooth signal, including: when the second bluetooth signal is received by the first device, it is determined that a mobility bluetooth signal exists according to the name of the second bluetooth signal displayed in the first device. For example, a bluetooth signal is displayed in the first device by the name: according to the name, the Bluetooth earphone of XXX can determine that the Bluetooth equipment corresponding to the Bluetooth signal has mobility, and then determine that the Bluetooth signal has mobility. In practice, by removing the bluetooth signal for which mobility exists by the name of the second bluetooth signal in the first device, about 40% of the bluetooth signals in the second bluetooth signal can be filtered out. Bluetooth devices corresponding to the filtered bluetooth signals include, but are not limited to: bluetooth headset, bluetooth bracelet, bicycle, etc.
In an exemplary embodiment, the second bluetooth signal includes a bluetooth signal that can be acquired by the second device, and after removing a bluetooth signal that cannot be acquired by the second device from the second bluetooth signal, the obtained third bluetooth signal is not null, and the advantage of removing a bluetooth signal that cannot be acquired by the second device from the second bluetooth signal is that: and removing Bluetooth signals which cannot be acquired by the second equipment in the second Bluetooth signals, so that the state identification result of the target object is irrelevant to the type of equipment used by the target object. If the bluetooth signal which cannot be acquired by the second device in the second bluetooth signal is not removed, the bluetooth signal which cannot be acquired by the second device may exist in the third bluetooth signal, and further, bluetooth fingerprint information which cannot be acquired by the second device may exist in a bluetooth fingerprint library established based on the bluetooth fingerprint information corresponding to the third bluetooth signal. Therefore, when the target object is subjected to state recognition, there may occur a problem that the result of the state recognition is different due to the different types of devices used by the target object.
For example, when the third bluetooth signal is obtained, the bluetooth signal that cannot be obtained by the second device is not removed from the second bluetooth signal, and when the device of the target object is the first device, the number of bluetooth fingerprint information that matches the third bluetooth signal in the bluetooth fingerprint library is 4. And when the device of the target object is the second device, the number of Bluetooth fingerprint information matched with the third Bluetooth signal in the Bluetooth fingerprint library is 3. If the required matching number is less than 4, the target object is considered to be not in the target place, and if the required matching number is not less than 4, the target object is considered to be in the target place. At this time, the result of the status recognition of the target object differs depending on the type of the target object device.
In an exemplary embodiment, the third bluetooth signal is applicable to the operating systems of the first device and the second device. The third bluetooth signal is a bluetooth signal remaining after the bluetooth signal that does not satisfy the condition is removed from the second bluetooth signal, and the second bluetooth signal is a bluetooth signal acquired by the first device, so the third bluetooth signal is suitable for the first device. The third bluetooth signal is suitable for the situation discussion of the second device, if the second bluetooth signal does not have a bluetooth signal which cannot be acquired by the second device, the obtained third bluetooth signal is also suitable for the second device even if the bluetooth signal which cannot be acquired by the second device is not removed; if the second bluetooth signal includes a bluetooth signal that cannot be acquired by the second device, a third bluetooth signal obtained by removing the bluetooth signal that cannot be acquired by the second device from the second bluetooth signal is also applicable to the second device.
It should be noted that, in the embodiments of the present application, the relationship between the bluetooth signal that can be acquired by the first device and the bluetooth signal that can be acquired by the second device is not limited. Optionally, the bluetooth signal available to the first device comprises a bluetooth signal available to the second device. Optionally, the bluetooth signal that the second device can acquire includes the bluetooth signal that the first device can acquire, at this time, remove the bluetooth signal that does not meet the requirements in the second bluetooth signal, when obtaining the third bluetooth signal, even if remove the bluetooth signal that the second device can not acquire, the third bluetooth signal is also applicable to the second device. Optionally, the bluetooth signal available to the first device is intersected and different from the bluetooth signal available to the second device.
Step 2012: and acquiring Bluetooth fingerprint information corresponding to the third Bluetooth signal.
In an exemplary embodiment, after the third bluetooth signal is obtained, the third bluetooth signal needs to be converted into bluetooth fingerprint information that uniquely identifies the third bluetooth signal, and the name of the third bluetooth signal may be changed, but the bluetooth fingerprint information of the third bluetooth signal may not be changed. Exemplary, acquiring bluetooth fingerprint information corresponding to the third bluetooth signal includes: and analyzing the third Bluetooth signal to obtain Bluetooth fingerprint information of the unique identification third Bluetooth signal. The embodiment of the application does not limit what kind of content of the third Bluetooth signal is the Bluetooth fingerprint information, and the content which can be used for uniquely identifying the third Bluetooth signal can be used as the Bluetooth fingerprint information. Optionally, the bluetooth fingerprint information includes at least one of a name identifier and vendor information of bluetooth corresponding to the third bluetooth signal.
Step 2013: based on the Bluetooth fingerprint information corresponding to the third Bluetooth signal, a Bluetooth fingerprint library is established.
In an exemplary embodiment, a process of establishing a bluetooth fingerprint library based on bluetooth fingerprint information corresponding to a third bluetooth signal includes: selecting target Bluetooth fingerprint information from Bluetooth fingerprint information corresponding to the third Bluetooth signal; and then, based on the target Bluetooth fingerprint information, establishing a Bluetooth fingerprint library. In an exemplary embodiment, the method for selecting the target bluetooth fingerprint information from the bluetooth fingerprint information corresponding to the third bluetooth signal includes: mode 1, selecting target bluetooth fingerprint information from bluetooth fingerprint information corresponding to a third bluetooth signal based on a wireless fidelity WiFi fingerprint corresponding to a location; and 2, clustering Bluetooth fingerprint information corresponding to the third Bluetooth signal based on a clustering algorithm, and selecting target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal according to a clustering result. As shown in fig. 4, the process of selecting the target bluetooth fingerprint information from the bluetooth fingerprint information corresponding to the third bluetooth signal based on mode 1 includes steps 201A to 201C.
Step 201A: and classifying the second Bluetooth signals based on the wireless fidelity WiFi fingerprints corresponding to the places to obtain a first Bluetooth set and a second Bluetooth set.
In an exemplary embodiment, a bluetooth set is obtained from the first device once every certain period of time from the first time point to the second time point, and all bluetooth signals included in the obtained bluetooth set are second bluetooth signals. As shown in fig. 5, taking the cargo delivery as an example, the first time point is the time point when the delivery object receives the order, and the second time point is the time point when the delivery object delivers the cargo to the customer (to the customer delivery). Where the bluetooth signals comprised by the different bluetooth sets may have intersections. For example, two bluetooth sets that acquire in succession are bluetooth set a and bluetooth set B, and bluetooth set a includes 20 bluetooth signals: bluetooth Signal 1-Bluetooth Signal 20, bluetooth set B includes 20 Bluetooth signals: bluetooth signal 1-bluetooth signal 19, and bluetooth signal 21. It can be seen that there is an intersection of 19 bluetooth signals for bluetooth set a and bluetooth set B.
In an exemplary embodiment, the WiFi fingerprints are used to locate the first device, and each piece of WiFi fingerprint information included in the WiFi fingerprints corresponds to a location. And when the WiFi signal received by the first equipment is matched with the WiFi fingerprint information included in the WiFi fingerprint, the first equipment is considered to be at the place corresponding to the WiFi fingerprint information.
In an exemplary embodiment, classifying the second bluetooth signal based on the WiFi fingerprint to obtain a first bluetooth set and a second bluetooth set includes: and performing two classification on the second Bluetooth signals based on the WiFi fingerprint, wherein the obtained first Bluetooth set comprises the second Bluetooth signals acquired within the range threshold of the target site, and the obtained second Bluetooth set comprises the second Bluetooth signals acquired outside the range threshold of the target site. The second bluetooth signal acquired within the range threshold of the target site may exist in only one first bluetooth set or may exist in a different first bluetooth set. That is, the number of the first bluetooth sets may be one or more, and the number of the first bluetooth sets is determined by the number of bluetooth sets corresponding to the second bluetooth signals acquired within the range threshold of the target site.
Similarly, the second bluetooth signals acquired outside the range threshold of the target location may exist in only one second bluetooth set, or may exist in a different second bluetooth set. That is, the number of the second bluetooth sets may be one or more, and the number of the second bluetooth sets is determined by the number of bluetooth sets corresponding to the second bluetooth signals acquired outside the range threshold of the target location. Where the range threshold is a set value, this application is not limited thereto.
Still taking cargo delivery as an example, the cargo taking place is a target place when cargo delivery is performed, and the first bluetooth set is a bluetooth set corresponding to the second bluetooth signal obtained within the range threshold of the cargo taking place based on the classification of the WiFi fingerprint. That is, when the delivery object appears within the range threshold of the pick-up place, the bluetooth set corresponding to the bluetooth signal acquired from the first device of the delivery object is the first bluetooth set. As shown in fig. 5, the corresponding time period in which the delivery object appears within the range threshold of the pick-up location is the pick-up location period. The second Bluetooth set is a Bluetooth set corresponding to a second Bluetooth signal acquired outside a range threshold of the pick-up area based on WiFi fingerprint classification. That is, when the delivery object appears outside the range threshold of the pick-up area, the bluetooth set corresponding to the bluetooth signal acquired from the first device of the delivery object is the second bluetooth set. As shown in fig. 5, the corresponding period of time in which the delivery object appears outside the range threshold of the pick-up location is the period of time not at the pick-up location.
It should be noted that, the set where the bluetooth signal is obtained from the device at a time is called a bluetooth set, and the bluetooth set may be represented in the device by a bluetooth list, where one of the bluetooth lists is shown in fig. 6.
The limitation of the device to the WiFi signal scan mentioned in step 2011 has an impact on establishing a bluetooth fingerprint library, including: if the limitation of the device to WiFi signal scanning is large, so that the device cannot be positioned based on WiFi fingerprints, a Bluetooth fingerprint library cannot be established based on the device. In an exemplary embodiment, the second device limits WiFi signal scanning more than the first device limits WiFi signal scanning, so the embodiments of the present application build a bluetooth fingerprint library based on the first device.
Step 201B: and determining that each piece of Bluetooth fingerprint information corresponding to the third Bluetooth signal appears at the first frequency of the first Bluetooth set and the second frequency of the second Bluetooth set.
In an exemplary embodiment, any third bluetooth signal may be present in a plurality of bluetooth sets, and still taking cargo delivery as an example, when the delivery object reaches the pick-up location, the delivery object stays at the pick-up location for a period of time, and during this period of time, a plurality of bluetooth signal acquisitions are performed on the first device of the delivery object in common, that is, a plurality of bluetooth sets are corresponding. The distance of the moving of the delivery object is negligible compared with the effective range of the Bluetooth signal, so that the repetition rate of the Bluetooth signals acquired by different times is high in the period of time when the delivery object stays at the goods taking place. For example, the bluetooth signals collected twice are corresponding to two bluetooth sets, namely a bluetooth set a and a bluetooth set B, wherein the bluetooth set a includes 25 bluetooth signals, the bluetooth set B includes 26 bluetooth signals, and the bluetooth signals contained in the bluetooth set B include bluetooth signals contained in the bluetooth set a.
In one possible implementation manner, the number of the first bluetooth set and the number of the second bluetooth set are multiple, and determining that each bluetooth fingerprint information corresponding to the third bluetooth signal occurs at the first frequency of the first bluetooth set includes: and calculating the ratio of the number of times of occurrence of the Bluetooth fingerprint information corresponding to each third Bluetooth signal in the first Bluetooth set to the number of the first Bluetooth sets. For example, one bluetooth fingerprint information in the bluetooth fingerprint information corresponding to the third bluetooth signal is bluetooth fingerprint information a, and the total number of the first bluetooth sets is 30, wherein the number of bluetooth sets in which the bluetooth fingerprint information a occurs is 15, and the frequency of occurrence of the bluetooth fingerprint information a in the first bluetooth set is 0.5. For example, when the first bluetooth set has 30 bluetooth sets and bluetooth fingerprint information a has 30 bluetooth sets, the frequency of occurrence of bluetooth fingerprint information a in the first bluetooth set is 1, that is, the first frequency corresponding to bluetooth fingerprint information a is 1.
In one possible implementation, determining that each bluetooth fingerprint information corresponding to the third bluetooth signal occurs at the second frequency of the second bluetooth set includes: and calculating the ratio of the number of times of occurrence of the Bluetooth fingerprint information corresponding to each third Bluetooth signal in the second Bluetooth set to the number of the second Bluetooth sets. For example, there are 100 second bluetooth sets, wherein 2 bluetooth sets in which bluetooth fingerprint information a appears, the frequency of occurrence of bluetooth fingerprint information a in the second bluetooth set is 0.02, that is, the second frequency corresponding to bluetooth fingerprint information a is 0.02.
Step 201C: and taking the Bluetooth fingerprint information, of which the value of the first frequency exceeding the second frequency and being larger than the frequency threshold, in the Bluetooth fingerprint information corresponding to the third Bluetooth signal as target Bluetooth fingerprint information.
In an exemplary embodiment, when the bluetooth fingerprint library is established, bluetooth fingerprint information that can effectively distinguish the state of the target object should be recorded in the bluetooth fingerprint library, i.e., the target bluetooth fingerprint information should be recorded in the bluetooth fingerprint library. When the value of the first frequency exceeding the second frequency in the Bluetooth fingerprint information corresponding to the third Bluetooth signal is larger than the frequency threshold, the Bluetooth fingerprint information is considered to be capable of effectively identifying whether the target object is in the range threshold of the target place or not, so that the Bluetooth fingerprint information is considered to be capable of effectively distinguishing the state of the target object, namely the Bluetooth fingerprint information is the target Bluetooth fingerprint information. The frequency threshold is a set value, which is not limited in the embodiment of the present application.
For example, one bluetooth fingerprint information in the bluetooth fingerprint information corresponding to the third bluetooth signal is bluetooth fingerprint information B, the first frequency corresponding to the bluetooth fingerprint information B is 0.6, the second frequency is 0.01, the frequency threshold is 0.5, and the calculated bluetooth fingerprint information B can be used as the target bluetooth fingerprint information.
In another exemplary embodiment, selecting the target bluetooth fingerprint information from the bluetooth fingerprint information corresponding to the third bluetooth signal based on mode 2 includes: and selecting target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on a clustering method of a clustering algorithm, wherein in the step 2011A to step 2011E of selecting the target Bluetooth fingerprint information in the mode 2.
Step 2011A: and vectorizing Bluetooth fingerprint information corresponding to the third Bluetooth signal to obtain a fingerprint vector set, and selecting 2 base fingerprint vectors from the fingerprint vector set as a first initial clustering center and a second initial clustering center of the fingerprint vector set.
When the clustering algorithm is used to cluster the third bluetooth signals, the embodiment of the present application is not limited to a specific clustering algorithm, and may be, for example, a K-means (K-means) clustering algorithm. When K-means clustering is adopted, the position of Bluetooth fingerprint information corresponding to the third Bluetooth signal needs to be determined, the effective range of the Bluetooth signal is usually smaller, and the effective range of the Bluetooth signal is generally not more than 15 meters when the equipment is not matched. Therefore, when the bluetooth signal is collected, the position of the device corresponding to the collected bluetooth signal is considered to be the position of the bluetooth signal. Since the position of the third bluetooth signal is the same as the position of the corresponding bluetooth fingerprint information. Therefore, the position of the bluetooth fingerprint information corresponding to the third bluetooth signal is considered to be the position of the first device where the third bluetooth signal is collected.
In one possible implementation manner, vectorizing bluetooth fingerprint information corresponding to the third bluetooth signal to obtain a fingerprint vector set includes: and respectively vectorizing the Bluetooth fingerprint information corresponding to the third Bluetooth signal by adopting an onehot independent coding mode to obtain fingerprint vectors with the same quantity as the Bluetooth fingerprint information corresponding to the third Bluetooth signal, wherein the set of fingerprint vectors is a fingerprint vector set. Selecting 2 base fingerprint vectors from the fingerprint vector set as a first initial cluster center and a second initial cluster center of the fingerprint vector set, including: and randomly selecting two fingerprint vectors from all fingerprint vectors included in the fingerprint vector set as basic fingerprint vectors, and taking the two basic fingerprint vectors as two initial cluster centers of K-means clustering, namely a first initial cluster center and a second initial cluster center.
It should be noted that, the initial clustering centers may be multiple (more than two), that is, multiple fingerprint vectors may be selected as the clustering centers when the base fingerprint vector is selected.
Step 2011B: calculating the distance x from each fingerprint vector in the fingerprint vector set to the first initial cluster center 1i And distance x to the second initial cluster center 2i And categorizing each fingerprint vector in the set of fingerprint vectors into x 1i And x 2i The median value is smaller in the corresponding class.
Since one cluster center corresponds to one class, two base fingerprint vectors are selected as the initial cluster center in step 2011A, and two classes, namely a first initial class and a second initial class, are corresponding. In one possible implementation, the distance x of each fingerprint vector in the set of fingerprint vectors to the first initial cluster center is calculated 1i And distance x to the second initial cluster center 2i Comprising: calculating the distance x from the position of each target Bluetooth fingerprint information in the target Bluetooth fingerprint information corresponding to the fingerprint vector set to the position of the target Bluetooth fingerprint information corresponding to the first initial clustering center 1i And distance x from the target Bluetooth fingerprint information corresponding to the second initial clustering center to the position 2i . The location of the target bluetooth fingerprint information is already described in step 2011A, and will not be described here again. Illustratively, the distances of the fingerprint vectors in the fingerprint vector set to the first initial cluster center are respectively: x is x 11 、x 12 、x 13 …x 1n The distances to the second initial cluster center are respectively: x is x 21 、x 22 、x 23 …x 2n
In one possible implementation, each fingerprint vector in the set of fingerprint vectors is categorized into x 1i And x 2i In the corresponding class with smaller median values, it is included: when x is 1i >x 2i And classifying the fingerprint vector with the obtained distance into a second initial class corresponding to a second initial cluster center. When x is 1i <x 2i And classifying the fingerprint vector with the obtained distance into a first initial class corresponding to the first initial cluster center. Illustratively, one fingerprint vector 1 of the set of fingerprint vectors is at a distance x from the first initial cluster center 11 The distance to the center of the second initial cluster is x 21 When x is 11 <x 21 And classifying the fingerprint vector 1 into a first initial class corresponding to the first initial cluster center. When x is 11 >x 21 And classifying the fingerprint vector 1 into a second initial class corresponding to a second initial cluster center.
Step 2011C: the cluster center of the class is recalculated, and the cluster center enables the sum of the distances from the positions corresponding to the fingerprint vectors in the class to be minimum.
In one possible implementation, the re-computing the cluster centers of the classes includes re-selecting the cluster centers from the first initial class and the second initial class based on classifying the fingerprint vectors in the set of fingerprint vectors into the first initial class and the second initial class in step 2011B. The re-selected clusters should satisfy that the sum of distances from the positions corresponding to the fingerprint vectors in the class of the cluster center to the cluster center is minimum.
Step 2011D: repeating the steps 2011B and 2011C, and taking the class corresponding to the cluster center which is closer to the target place in the position corresponding to the cluster center as the target class when the suspension condition is met.
In one possible implementation, repeating steps 2011B and 2011C includes: based on the new cluster center obtained in the step 2011C, clustering the fingerprint vector set again based on the new cluster center, and after the clustering is completed, performing the step 2011C to select a new round of cluster center, until the suspension condition is reached, stopping circulating the step 2011B and the step 2011C. In one possible implementation, the suspension condition is that the fingerprint vector contained in each class is no longer changed, or that steps 2011B and 2011C are repeated for a certain number of rounds. Fingerprint vectors within the range threshold of the target location have features that are close in location and close to the target location, and because of this feature, fingerprint vectors within the range threshold of the target location will eventually be clustered into the same class with the cluster center of that class being closer in location to the target location than the cluster center of another class. After determining a cluster center which is closer to the target site in position, the class corresponding to the cluster center is used as the target class.
Step 2011E: and selecting Bluetooth fingerprint information corresponding to the fingerprint vector of the previous second set value in the target class as target Bluetooth fingerprint information.
The reason for selecting the Bluetooth fingerprint information corresponding to the fingerprint vector of the previous second set value in the target class as the target Bluetooth fingerprint information is that: the fingerprint vectors of the previous second set values in the target class can effectively distinguish whether the target object is near the target place or not. The more front samples in the class based on K-means clustering have more obvious common features. In the fingerprint vector set, the fingerprint vector distribution is characterized by being distributed around the target site, and exhibiting a certain aggregation in the vicinity of the target site. Therefore, the bluetooth fingerprint information corresponding to the fingerprint vector of the second set value before the selection is used for selecting the bluetooth fingerprint information closer to the target site. The second set value is an empirical set value, which is not limited in this embodiment of the present application and may be empirically set.
In an exemplary embodiment, after obtaining the target bluetooth fingerprint information, a process of establishing a bluetooth fingerprint library based on the target bluetooth fingerprint information includes: establishing a Bluetooth fingerprint library; and recording the target Bluetooth fingerprint information into the Bluetooth fingerprint library. The Bluetooth fingerprint library needs to be built once, and if the Bluetooth fingerprint library exists, the target Bluetooth fingerprint information is directly recorded into the Bluetooth fingerprint library. In an exemplary embodiment, when the target bluetooth fingerprint information is recorded, if no bluetooth fingerprint sub-library aiming at different places is established in the bluetooth fingerprint library, the target bluetooth fingerprint information is directly recorded in the bluetooth fingerprint library; if the Bluetooth fingerprint sub-libraries aiming at different places are established in the Bluetooth fingerprint library, the target Bluetooth fingerprint information is recorded in the corresponding Bluetooth fingerprint sub-libraries.
In an exemplary embodiment, after the bluetooth fingerprint library is established based on the target bluetooth fingerprint information, the bluetooth fingerprint library also needs to be updated. Wherein updating the bluetooth fingerprint library is performed once every first time interval, the updating including recording new target bluetooth fingerprint information obtained during the updating of the bluetooth fingerprint library into the bluetooth fingerprint library, and removing bluetooth fingerprint information determined to be invalid from the target bluetooth fingerprint information in the bluetooth fingerprint library. The first duration is a set value, the shorter the first duration is, the higher the updating frequency of the Bluetooth fingerprint library is, the higher the updating frequency is, the invalid Bluetooth fingerprint information can be removed in time, and therefore the accuracy of a result obtained by carrying out state identification on a target object based on the Bluetooth fingerprint library with high updating frequency is high. However, the update frequency is high, which represents that more computing resources are required to be consumed, so that the embodiment of the present application is not limited to the specific value of the first duration, and may be set according to the balance between the effect of the bluetooth fingerprint library model and the computing resource consumption.
In an exemplary embodiment, removing bluetooth fingerprint information determined to be invalid from the target bluetooth fingerprint information during the update of the bluetooth fingerprint library includes: counting at least two positions of each Bluetooth device in the Bluetooth devices corresponding to the target Bluetooth fingerprint information; removing Bluetooth fingerprint information, of the at least two positions, of which the distance between the two positions is greater than a distance threshold; generating a polygon corresponding to each target Bluetooth fingerprint information based on a polygon generation algorithm and the at least two positions; and removing target Bluetooth fingerprint information with the area of the polygon being larger than an area threshold value during updating of the Bluetooth fingerprint library. The distance threshold and the area threshold are set values, which are not limited in the embodiment of the present application.
In one possible implementation manner, generating a polygon corresponding to each target bluetooth fingerprint information based on the polygon generation algorithm and the at least two positions, and removing the target bluetooth fingerprint information with the area of the polygon being greater than the area threshold during the update of the bluetooth fingerprint library, includes: and respectively outlining the positions where the target Bluetooth fingerprint information appears into a polygon by utilizing a polygon generation algorithm, and removing the target Bluetooth fingerprint information corresponding to the polygon from the Bluetooth fingerprint library when the area of the outlining polygon is larger than an area threshold value. The reason why the target bluetooth fingerprint information that the area of the polygon is larger than the area threshold value during the update of the bluetooth fingerprint library is removed is that: when the polygonal area outlined by the positions where the bluetooth fingerprint information appears is larger than the area threshold, the movement range of the bluetooth device corresponding to the bluetooth fingerprint information can be considered to be large, namely the bluetooth fingerprint information has mobility. The polygon generation algorithm is any polygon generation algorithm, and the embodiment of the present application does not limit this. Alternatively, the polygon generation algorithm is the Delaunay triangulation algorithm.
It should be noted that, if the bluetooth fingerprint sub-libraries for different places are built in the bluetooth fingerprint library, the updating of the bluetooth fingerprint library allows updating by taking the bluetooth fingerprint sub-libraries as units, that is, each bluetooth fingerprint sub-library can be updated independently.
After the bluetooth fingerprint library is obtained, the process of matching the bluetooth fingerprint library with the first bluetooth signal obtained in step 201 includes: analyzing the first Bluetooth signal to obtain Bluetooth fingerprint information corresponding to the first Bluetooth signal; and matching the Bluetooth fingerprint information corresponding to the first Bluetooth signal with the Bluetooth fingerprint information included in the Bluetooth fingerprint library to obtain the Bluetooth fingerprint information matched with the first Bluetooth signal in the Bluetooth fingerprint library. Illustratively, the bluetooth fingerprint information that matches the first bluetooth signal includes: bluetooth fingerprint information E, bluetooth fingerprint information R and bluetooth fingerprint information T, these three bluetooth fingerprint information can correspond same place, also can correspond different places, and this embodiment of the application does not do the restriction to this.
In step 202, a status recognition result of the target object is determined based on the location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal.
In one possible implementation manner, determining a state recognition result of the target object based on a location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal includes: if the location corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal comprises a location, determining that the state identification result of the target object is the location, or determining the quantity of the Bluetooth fingerprint information matched with the first Bluetooth signal, and determining the state identification result of the target object based on the quantity. If the location corresponding to the bluetooth fingerprint information matched with the first bluetooth signal comprises at least two locations, determining the state of the target object as being in the at least two locations based on the determination, or determining the quantity of the bluetooth fingerprint information matched with the first bluetooth signal corresponding to the at least two locations respectively, and determining the state recognition result of the target object based on the quantity.
In one possible implementation, the location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal includes a location, determining a number of bluetooth fingerprint information matched by the first bluetooth signal, and determining a status recognition result of the target object based on the number, including: if the number exceeds the third set value, confirming that the state identification result of the target object is at the place, otherwise, confirming that the state identification result of the target object is not at the place. Wherein the third setting value is an empirical setting value, which is not limited in the embodiment of the present application.
Still taking goods delivery as an example, the target site comprises a goods taking place, the third set value is 3, when the number of matching of the first Bluetooth signal received by the equipment of the delivery object and the Bluetooth fingerprint information corresponding to the goods taking place is greater than 3, the state of the delivery object is determined to be the goods taking place, otherwise, the state of the delivery object is determined to be the goods not taking place.
In one possible implementation manner, the target location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal includes at least two locations, determining the number of bluetooth fingerprint information matched by the first bluetooth signal corresponding to the at least two locations, and determining the state recognition result of the target object based on the number, where the determining includes: the quantity of the Bluetooth fingerprint information matched with the first Bluetooth signal corresponding to any one of the at least two places is larger than a fourth set value, and the state identification result of the target object is determined to be in the place; and if the quantity of the Bluetooth fingerprint information matched with the first Bluetooth signal corresponding to any place is not greater than a fourth set value, determining that the state identification result of the target object is not in the place. The fourth setting value is an empirical setting value, which is not limited in the embodiment of the present application.
In one possible implementation manner, the identifying the state of the target object is performed in real time, so after determining the state identifying result of the target object based on the location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal, the method further includes: re-acquiring a Bluetooth signal received by equipment of the target object after the reference time length; in response to the reacquired bluetooth signal being different from the first bluetooth signal, a state of the target object is determined based on the reacquired bluetooth signal. The reference duration is a set value, which is not limited in the embodiment of the present application. The reference time period is, for example, 5 minutes.
In another exemplary embodiment, as shown in fig. 7, the process of bluetooth fingerprint generation may be trained by an on-time model based on bluetooth signals acquired by a first device of a delivery App installed on a delivery object, and uploading the real-time bluetooth fingerprint library to a cloud platform. When the state of the delivery object in the pick-up place is identified, the Bluetooth signal acquired from the first equipment or the second equipment of the delivery App installed on the delivery object is analyzed to obtain corresponding Bluetooth fingerprint information, and then the Bluetooth fingerprint information is matched with a Bluetooth fingerprint library. And then, determining whether the state of the delivery object is the pick-up place according to the matching result. According to the state identification method provided by the embodiment of the application, the identification of the state of the delivery object at the goods taking place can reach the accuracy of 33 meters, the identification accuracy of the state of the delivery object at the goods taking place is improved from hundred meters to ten meters, and the identification success rate of the state of the delivery object at the goods taking place is improved from 30% to 70%.
In the embodiment of the application, the first bluetooth signal received by the device for obtaining the target object is obtained, then bluetooth fingerprint information matched with the first bluetooth signal is determined in the bluetooth fingerprint library, and then the state recognition result of the target object is determined based on the place corresponding to the bluetooth fingerprint information matched with the first bluetooth signal. By the method, the condition that a Bluetooth beacon is virtualized on the merchant App to help identify the target object is avoided, so that the condition identification of the target object is not limited by the use rate of the merchant App, and the reliability of the condition identification is improved.
Referring to fig. 8, an embodiment of the present application provides a device for identifying a state, including:
a first obtaining module 801, configured to obtain a first bluetooth signal received by a device of a target object;
a first determining module 802, configured to determine bluetooth fingerprint information matched with a first bluetooth signal in a bluetooth fingerprint repository, where the bluetooth fingerprint repository includes a plurality of bluetooth fingerprint information, each of the bluetooth fingerprint information corresponds to a location, and the bluetooth fingerprint information includes at least one of a name identifier of bluetooth corresponding to the bluetooth fingerprint information and vendor information;
The second determining module 803 is configured to determine a status recognition result of the target object based on a location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal.
In one possible implementation, the apparatus further includes: the second acquisition module is used for acquiring a second Bluetooth signal received by the first equipment; the removing module is used for removing Bluetooth signals which do not meet the requirements in the second Bluetooth signals to obtain third Bluetooth signals; the third acquisition module is used for acquiring Bluetooth fingerprint information corresponding to a third Bluetooth signal; the establishing module is used for establishing a Bluetooth fingerprint library based on Bluetooth fingerprint information corresponding to the third Bluetooth signal.
In one possible implementation manner, the bluetooth signals that do not meet the requirements in the second bluetooth signal include at least one of an unresolved bluetooth signal, a bluetooth signal with mobility, and a bluetooth signal that cannot be acquired by the second device; the second device is different from the operating system of the first device, and the third bluetooth signal is applicable to the operating systems of the first device and the second device.
In one possible implementation manner, the establishing module is configured to select target bluetooth fingerprint information from bluetooth fingerprint information corresponding to the third bluetooth signal, where the target bluetooth fingerprint information corresponds to the target bluetooth signal, and the target bluetooth signal is a bluetooth signal obtained in the third bluetooth signal within a range threshold of the location; and establishing a Bluetooth fingerprint library based on the target Bluetooth fingerprint information.
In one possible implementation manner, the establishing module is configured to select, based on the WiFi fingerprint corresponding to the location, target bluetooth fingerprint information from bluetooth fingerprint information corresponding to the third bluetooth signal; or clustering the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on a clustering algorithm, and selecting target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal according to a clustering result.
In one possible implementation, the apparatus further includes:
and the updating module is used for updating the Bluetooth fingerprint library every a first time period, wherein the updating comprises the steps of recording new target Bluetooth fingerprint information obtained during the updating of the Bluetooth fingerprint library into the Bluetooth fingerprint library and removing the Bluetooth fingerprint information which is judged to be invalid from the target Bluetooth fingerprint information in the Bluetooth fingerprint library.
In one possible implementation manner, the updating module is configured to count at least two positions of each bluetooth device in the bluetooth devices corresponding to the target bluetooth fingerprint information; removing Bluetooth fingerprint information with a distance between two positions larger than a distance threshold value in at least two positions; generating a polygon corresponding to each target Bluetooth fingerprint information based on a polygon generation algorithm and at least two positions; and removing target Bluetooth fingerprint information with the area of the polygon being larger than an area threshold value during updating of the Bluetooth fingerprint library.
In a possible implementation manner, the second determining module 803 is further configured to reacquire, after the reference duration, a bluetooth signal received by the device of the target object; in response to the reacquired bluetooth signal being different from the first bluetooth signal, a state of the target object is determined based on the reacquired bluetooth signal.
In the embodiment of the application, the first bluetooth signal received by the device for obtaining the target object is obtained, then bluetooth fingerprint information matched with the first bluetooth signal is determined in the bluetooth fingerprint library, and then the state recognition result of the target object is determined based on the place corresponding to the bluetooth fingerprint information matched with the first bluetooth signal. By the method, the condition that a Bluetooth beacon is virtualized on the merchant App to help identify the target object is avoided, so that the condition identification of the target object is not limited by the use rate of the merchant App, and the reliability of the condition identification is improved.
It should be noted that, when the apparatus provided in the foregoing embodiment performs the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to perform all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
Fig. 9 is a schematic structural diagram of a server provided in the embodiments of the present application, where the server may include one or more processors (Central Processing Units, CPU) 901 and one or more memories 902, where the one or more memories 902 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 901, so that the server implements the method for identifying a state provided in each of the method embodiments described above. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
Fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal may be: a smart phone, a tablet, an MP3 (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook or a desktop. Terminals may also be referred to by other names as user equipment, portable terminals, laptop terminals, desktop terminals, etc.
Generally, the terminal includes: a processor 1501 and a memory 1502.
The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1501 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit, image processor) for taking care of rendering and rendering of content to be displayed by the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1502 is configured to store at least one instruction for execution by processor 1501 to cause the terminal to implement the method of state identification provided by the method embodiments herein.
In some embodiments, the terminal may further optionally include: a peripheral interface 1503 and at least one peripheral device. The processor 1501, memory 1502 and peripheral interface 1503 may be connected by a bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 1503 via a bus, signal lines, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1504, a display screen 1505, a camera assembly 1506, audio circuitry 1507, a positioning assembly 1508, and a power supply 1509.
A peripheral interface 1503 may be used to connect I/O (Input/Output) related at least one peripheral device to the processor 1501 and the memory 1502. In some embodiments, processor 1501, memory 1502, and peripheral interface 1503 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 1501, the memory 1502, and the peripheral interface 1503 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1504 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1504 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 1504 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi networks. In some embodiments, the radio frequency circuit 1504 may also include NFC (Near Field Communication, short range wireless communication) related circuits, which are not limited in this application.
Display 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When display screen 1505 is a touch display screen, display screen 1505 also has the ability to collect touch signals at or above the surface of display screen 1505. The touch signal may be input to the processor 1501 as a control signal for processing. At this point, display 1505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1505 may be one, disposed on the front panel of the terminal; in other embodiments, the display 1505 may be at least two, respectively disposed on different surfaces of the terminal or in a folded design; in other embodiments, the display 1505 may be a flexible display disposed on a curved surface or a folded surface of the terminal. Even more, the display 1505 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The display screen 1505 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 1506 is used to capture images or video. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 1507 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, inputting the electric signals to the processor 1501 for processing, or inputting the electric signals to the radio frequency circuit 1504 for voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones can be respectively arranged at different parts of the terminal. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 1507 may also include a headphone jack.
The positioning component 1508 is for positioning a current geographic location of a terminal to enable navigation or LBS (Location Based Service, location-based services). The positioning component 1508 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
The power supply 1509 is used to power the various components in the terminal. The power supply 1509 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1509 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal further includes one or more sensors 1510. The one or more sensors 1510 include, but are not limited to: acceleration sensor 1511, gyro sensor 1512, pressure sensor 1513, optical sensor 1514, and proximity sensor 1515.
The acceleration sensor 1511 can detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with a terminal. For example, the acceleration sensor 1511 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1501 may control the display screen 1505 to display the user interface in a landscape view or a portrait view based on the gravitational acceleration signal acquired by the acceleration sensor 1511. The acceleration sensor 1511 may also be used for the acquisition of motion data of a game or user.
The gyro sensor 1512 may detect a body direction and a rotation angle of the terminal, and the gyro sensor 1512 may collect a 3D motion of the user on the terminal in cooperation with the acceleration sensor 1511. The processor 1501, based on the data collected by the gyro sensor 1512, may implement the following functions: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 1513 may be disposed on a side frame of the terminal and/or below the display 1505. When the pressure sensor 1513 is disposed on the side frame of the terminal, a grip signal of the terminal by the user can be detected, and the processor 1501 performs left-right hand recognition or quick operation according to the grip signal collected by the pressure sensor 1513. When the pressure sensor 1513 is disposed at the lower layer of the display screen 1505, the processor 1501 realizes control of the operability control on the UI interface according to the pressure operation of the user on the display screen 1505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The optical sensor 1514 is used to collect the ambient light intensity. In one embodiment, processor 1501 may control the display brightness of display screen 1505 based on the intensity of ambient light collected by optical sensor 1514. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1505 is turned up; when the ambient light intensity is low, the display luminance of the display screen 1505 is turned down. In another embodiment, the processor 1501 may also dynamically adjust the shooting parameters of the camera assembly 1506 based on the ambient light intensity collected by the optical sensor 1514.
A proximity sensor 1515, also referred to as a distance sensor, is typically provided on the front panel of the terminal. The proximity sensor 1515 is used to collect the distance between the user and the front face of the terminal. In one embodiment, when the proximity sensor 1515 detects a gradual decrease in the distance between the user and the front face of the terminal, the processor 1501 controls the display 1505 to switch from the bright screen state to the off screen state; when the proximity sensor 1515 detects that the distance between the user and the front face of the terminal gradually increases, the processor 1501 controls the display screen 1505 to switch from the off-screen state to the on-screen state.
It will be appreciated by those skilled in the art that the structure shown in fig. 10 is not limiting of the terminal and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
In an exemplary embodiment, a computer device is also provided, the computer device comprising a processor and a memory, the memory having at least one computer program stored therein. The at least one computer program is loaded and executed by one or more processors to cause the computer arrangement to implement a method of any of the above described state identification.
In an exemplary embodiment, there is also provided a computer-readable storage medium having stored therein at least one computer program that is loaded and executed by a processor of a computer device to cause the computer to implement a method of any one of the above states recognition. In one possible implementation, the computer readable storage medium may be a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), a compact disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium and executes the computer instructions to cause the computer device to perform any of the methods of state identification described above.
It should be understood that references herein to "a plurality" are to two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The foregoing description of the exemplary embodiments of the present application is not intended to limit the invention to the particular embodiments of the present application, but to limit the scope of the invention to any modification, equivalents, or improvements made within the principles of the present application.

Claims (12)

1. A method of state identification, the method comprising:
acquiring a first Bluetooth signal received by equipment of a target object;
determining Bluetooth fingerprint information matched with the first Bluetooth signal in a Bluetooth fingerprint library, wherein the Bluetooth fingerprint library comprises a plurality of pieces of Bluetooth fingerprint information, each piece of Bluetooth fingerprint information corresponds to one place, and the Bluetooth fingerprint information comprises at least one of a name identifier of Bluetooth corresponding to the Bluetooth fingerprint information and manufacturer information;
and determining a state identification result of the target object based on the location corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal.
2. The method of claim 1, wherein prior to determining bluetooth fingerprint information in a bluetooth fingerprint library that matches the first bluetooth signal, further comprising:
acquiring a second Bluetooth signal received by first equipment;
removing Bluetooth signals which do not meet the requirements in the second Bluetooth signals to obtain third Bluetooth signals;
Acquiring Bluetooth fingerprint information corresponding to the third Bluetooth signal;
and establishing the Bluetooth fingerprint library based on the Bluetooth fingerprint information corresponding to the third Bluetooth signal.
3. The method of claim 2, wherein the unsatisfactory ones of the second bluetooth signals include at least one of unresolvable bluetooth signals, bluetooth signals having mobility, and bluetooth signals not available to the second device;
the second device is different from the operating system of the first device, and the third bluetooth signal is applicable to the operating systems of the first device and the second device.
4. The method according to claim 2, wherein the establishing the bluetooth fingerprint library based on bluetooth fingerprint information corresponding to the third bluetooth signal includes:
selecting target Bluetooth fingerprint information from Bluetooth fingerprint information corresponding to the third Bluetooth signal, wherein the target Bluetooth fingerprint information corresponds to a target Bluetooth signal, and the target Bluetooth signal is a Bluetooth signal obtained in the third Bluetooth signal within the range threshold of the place;
and establishing the Bluetooth fingerprint library based on the target Bluetooth fingerprint information.
5. The method of claim 4, wherein selecting the target bluetooth fingerprint information from bluetooth fingerprint information corresponding to the third bluetooth signal comprises:
selecting the target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on the wireless fidelity WiFi fingerprint corresponding to the place;
or clustering the Bluetooth fingerprint information corresponding to the third Bluetooth signal based on a clustering algorithm, and selecting the target Bluetooth fingerprint information from the Bluetooth fingerprint information corresponding to the third Bluetooth signal according to a clustering result.
6. The method of claim 4, wherein after establishing the bluetooth fingerprint library based on the target bluetooth fingerprint information, further comprising:
updating the Bluetooth fingerprint library every first time period, wherein the updating comprises the steps of recording new target Bluetooth fingerprint information obtained during the updating of the Bluetooth fingerprint library into the Bluetooth fingerprint library and removing Bluetooth fingerprint information which is judged to be invalid from the target Bluetooth fingerprint information in the Bluetooth fingerprint library.
7. The method of claim 6, wherein said removing bluetooth fingerprint information from said bluetooth fingerprint library that is determined to be invalid from said target bluetooth fingerprint information comprises:
Counting at least two positions of each Bluetooth device in the Bluetooth devices corresponding to the target Bluetooth fingerprint information; removing Bluetooth fingerprint information, of the at least two positions, of which the distance between the two positions is greater than a distance threshold;
generating a polygon corresponding to each target Bluetooth fingerprint information based on a polygon generation algorithm and the at least two positions; and removing target Bluetooth fingerprint information of which the area of the polygon is larger than an area threshold value during updating of the Bluetooth fingerprint library.
8. The method according to any one of claims 1-7, wherein after determining the status recognition result of the target object based on the location corresponding to the bluetooth fingerprint information matched by the first bluetooth signal, the method further comprises:
re-acquiring a Bluetooth signal received by equipment of the target object after the reference time length;
and determining a state of the target object based on the reacquired bluetooth signal in response to the reacquired bluetooth signal being different from the first bluetooth signal.
9. An apparatus for state identification, the apparatus comprising:
the first acquisition module is used for acquiring a first Bluetooth signal received by equipment of a target object;
The first determining module is used for determining Bluetooth fingerprint information matched with the first Bluetooth signal in a Bluetooth fingerprint library, the Bluetooth fingerprint library comprises a plurality of pieces of Bluetooth fingerprint information, each piece of Bluetooth fingerprint information corresponds to one place, and the Bluetooth fingerprint information comprises at least one of a name identifier and manufacturer information of Bluetooth corresponding to the Bluetooth fingerprint information;
and the second determining module is used for determining a state identification result of the target object based on the position corresponding to the Bluetooth fingerprint information matched with the first Bluetooth signal.
10. A computer device, characterized in that it comprises a processor and a memory, in which at least one computer program is stored, which is loaded and executed by the processor, in order to cause the computer device to carry out the method of state recognition according to any one of claims 1 to 8.
11. A computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to cause a computer to implement a method of state identification as claimed in any one of claims 1 to 8.
12. A computer program product comprising computer instructions stored in a computer readable storage medium, the computer instructions being read from the computer readable storage medium by a processor of a computer device, the computer instructions being executed by the processor to cause the computer device to implement the method of state identification as claimed in any one of claims 1 to 8.
CN202210102831.4A 2022-01-27 2022-01-27 Method, apparatus, device and computer readable storage medium for state recognition Pending CN116567805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210102831.4A CN116567805A (en) 2022-01-27 2022-01-27 Method, apparatus, device and computer readable storage medium for state recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210102831.4A CN116567805A (en) 2022-01-27 2022-01-27 Method, apparatus, device and computer readable storage medium for state recognition

Publications (1)

Publication Number Publication Date
CN116567805A true CN116567805A (en) 2023-08-08

Family

ID=87492013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210102831.4A Pending CN116567805A (en) 2022-01-27 2022-01-27 Method, apparatus, device and computer readable storage medium for state recognition

Country Status (1)

Country Link
CN (1) CN116567805A (en)

Similar Documents

Publication Publication Date Title
CN111614549B (en) Interaction processing method and device, computer equipment and storage medium
CN111462742B (en) Text display method and device based on voice, electronic equipment and storage medium
CN110659127A (en) Method, device and system for processing task
CN111144822A (en) Warehouse-out time length determining method and device, computer equipment and storage medium
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN108764530B (en) Method and device for configuring working parameters of oil well pumping unit
CN113069760A (en) Resource allocation method, device, computing equipment and computer readable storage medium
CN111857793B (en) Training method, device, equipment and storage medium of network model
CN110673944A (en) Method and device for executing task
CN111192072A (en) User grouping method and device and storage medium
CN114143280B (en) Session display method and device, electronic equipment and storage medium
CN113949678B (en) Flow control method, flow control device, electronic equipment and computer readable storage medium
CN111580892A (en) Method, device, terminal and storage medium for calling service component
CN113099378B (en) Positioning method, device, equipment and storage medium
CN112365088B (en) Method, device and equipment for determining travel key points and readable storage medium
CN113935678A (en) Method, device, equipment and storage medium for determining multiple distribution terminals held by distributor
CN110336881B (en) Method and device for executing service processing request
CN116567805A (en) Method, apparatus, device and computer readable storage medium for state recognition
CN111445286A (en) Resource scheduling method and device, electronic equipment and readable storage medium
CN111429106A (en) Resource transfer certificate processing method, server, electronic device and storage medium
CN112749583A (en) Face image grouping method and device, computer equipment and storage medium
CN111159168A (en) Data processing method and device
CN111135571B (en) Game identification method, game identification device, terminal, server and readable storage medium
CN111984755B (en) Method and device for determining target parking spot, electronic equipment and storage medium
CN111526221B (en) Domain name quality determining method, device and storage medium

Legal Events

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