Disclosure of Invention
Embodiments of the present application provide a beacon association method, an apparatus, an electronic device, and a computer-readable storage medium, so as to solve the problems in the prior art that association efficiency is low and accuracy of an association result cannot be guaranteed when an entity is associated with a beacon base station. The embodiment of the application provides a method and a device for training an entity beacon association model, electronic equipment and a computer readable storage medium.
An embodiment of the present application provides a beacon association method, including: acquiring alternative beacon data corresponding to a target entity, wherein the alternative beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to the target entity in beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application; obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data; and inputting the association characteristic data into a pre-trained entity beacon association model, and obtaining association relation data which is output by the entity beacon association model and is used for representing the association between the target beacon base station and the target entity in the candidate beacon base station and deployed in the area corresponding to the target entity.
Optionally, each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to the target entity; acquiring alternative beacon data corresponding to a target entity, including: and acquiring alternative beacon data scanned by the beacon scanning terminal corresponding to the scanning time interval in each scanning time interval of the multiple scanning time intervals aiming at the target entity, and determining an alternative beacon base station corresponding to the alternative beacon data.
Optionally, obtaining association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and performing aggregation processing on the alternative beacon base stations and the scanning time intervals corresponding to the alternative beacon base stations to obtain the number of the scanning time intervals corresponding to each alternative beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each alternative beacon base station is the time interval in which the alternative beacon data broadcast by each alternative beacon base station is scanned.
Optionally, for each scanning time interval of the multiple scanning time intervals of the target entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of waybills of a target entity, wherein the effective time interval corresponding to each waybills is in the plurality of effective time intervals corresponding to the plurality of waybills of the target entity; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: and the number of the waybills corresponding to each alternative beacon base station in the plurality of waybills.
Optionally, the valid time interval corresponding to each waybill includes: and the distribution resource corresponding to each waybill is in a time interval from the arrival to the departure of the target entity, wherein the distribution resource carries the beacon scanning terminal.
Optionally, for each scanning time interval of the multiple scanning time intervals of the target entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a target entity, and an effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: the number of beacon scanning terminals corresponding to each alternative beacon base station in the plurality of beacon scanning terminals.
Optionally, obtaining association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and determining the corresponding alternative beacon base station based on the alternative beacon data, and performing aggregation processing on the alternative beacon base station and the corresponding alternative beacon data to obtain the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station.
Optionally, obtaining association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and determining the corresponding alternative beacon base stations based on the alternative beacon data, and performing aggregation processing on the alternative beacon base stations and the corresponding alternative beacon data to obtain the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station.
Optionally, the associated feature data further includes at least one of the following: sequencing information of the number of scanning time intervals corresponding to each alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each alternative beacon base station.
Optionally, the associated feature data further includes at least one of the following: sequencing information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; ranking information of normalization information of the number of alternative beacon data in the beacon data broadcasted by each alternative beacon base station;
optionally, the associated feature data further includes at least one of the following: the sequencing information of the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each alternative beacon base station.
Optionally, the obtaining of the candidate beacon data corresponding to the target entity includes: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the target entity as alternative beacon data.
Optionally, the obtaining of the candidate beacon data corresponding to the target entity includes: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring target waybill data corresponding to the target entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the target waybill data, and determining the beacon data as alternative beacon data corresponding to the target entity.
Optionally, the number of the target entities is multiple, and acquiring the candidate beacon data corresponding to the target entity includes: and acquiring alternative beacon data corresponding to each target entity in the plurality of target entities.
The embodiment of the present application further provides a method for training an entity beacon association model, including: acquiring reference beacon data corresponding to a reference entity based on the associated reference beacon base station and the reference entity, wherein the reference beacon data is beacon data which is scanned in an area corresponding to the reference entity by a beacon scanning terminal in the beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to the plurality of entities containing the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with beacon application; determining a corresponding reference alternative beacon base station containing the reference beacon base station based on the reference beacon data, obtaining an association characteristic data sample between the reference alternative beacon base station and a reference entity, and obtaining an association label corresponding to the association characteristic data sample, wherein the association label is used for representing whether the reference alternative beacon base station is associated with the reference entity or not; and performing model training according to the association characteristic data sample and the corresponding association label to obtain an entity beacon association model, wherein the entity beacon association model is used for outputting association relation data for representing association between a target beacon base station deployed in a target entity and the target entity according to the input association characteristic data between the beacon base station and the entity.
Optionally, each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to the reference entity to obtain reference beacon data corresponding to the reference entity, including: and acquiring reference beacon data scanned by a beacon scanning terminal corresponding to each scanning time interval in the plurality of scanning time intervals aiming at the reference entity.
Optionally, obtaining an association feature data sample between the reference candidate beacon base station and the reference entity includes: and aggregating the reference candidate beacon base stations and the scanning time intervals corresponding to the reference candidate beacon base stations to obtain the number of the scanning time intervals corresponding to each reference candidate beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each reference candidate beacon base station is the time interval in which the reference beacon data broadcast by each reference candidate beacon base station is scanned.
Optionally, for each scanning time interval of the plurality of scanning time intervals of the reference entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of freight notes of a reference entity, wherein the effective time interval corresponding to each freight note is the effective time interval corresponding to the freight note; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: and the number of the waybills corresponding to each reference alternative beacon base station in the plurality of waybills.
Optionally, the valid time interval corresponding to each waybill includes: and the distribution resource corresponding to each waybill is a time interval from the arrival of the distribution resource at the reference entity to the departure of the distribution resource from the reference entity, wherein the distribution resource carries the beacon scanning terminal.
Optionally, for each scanning time interval of the plurality of scanning time intervals of the reference entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a reference entity, and the effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: the number of beacon scanning terminals corresponding to each reference alternative beacon base station in the plurality of beacon scanning terminals.
Optionally, obtaining an association feature data sample between the reference candidate beacon base station and the reference entity includes: and carrying out aggregation processing on the reference alternative beacon base stations and the reference beacon data corresponding to the reference alternative beacon base stations to obtain the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station.
Optionally, obtaining an association feature data sample between the reference candidate beacon base station and the reference entity includes: and performing aggregation processing on the reference candidate beacon base stations and the reference beacon data corresponding to the reference candidate beacon base stations to obtain the number of the reference beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each reference candidate beacon base station.
Optionally, the associating the characteristic data sample further includes at least one of: sequencing information of the number of scanning time intervals corresponding to each reference alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each reference alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each reference candidate beacon base station.
Optionally, the associating the characteristic data sample further includes at least one of: ranking information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; normalization information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; ranking information of normalized information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; optionally, the associating the characteristic data sample further includes at least one of:
the sequencing information of the number of the reference beacon data with the signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station; normalization information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold in the beacon data broadcast by each reference alternative beacon base station; and ranking information of the normalized information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station.
Optionally, obtaining an association tag corresponding to the associated feature data sample includes: and marking the association characteristic data samples between the reference beacon base stations and the reference entities in the reference alternative beacon base stations as associated labels, and marking the association characteristic data samples between the beacon base stations except the reference beacon base stations and the reference entities in the reference alternative beacon base stations as non-associated labels.
Optionally, the obtaining of the reference beacon data corresponding to the reference entity includes: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the reference entity as the reference beacon data.
Optionally, the obtaining of the reference beacon data corresponding to the reference entity includes: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring reference waybill data corresponding to the reference entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the reference waybill data, and determining the beacon data as the reference beacon data corresponding to the reference entity.
An embodiment of the present application further provides a beacon association apparatus, including: the system comprises a candidate beacon data unit, a beacon scanning terminal and a beacon application unit, wherein the candidate beacon data unit is used for acquiring candidate beacon data corresponding to a target entity, the candidate beacon data is beacon data which is scanned by the beacon scanning terminal in an area corresponding to the target entity in beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application; the association characteristic data acquisition unit is used for acquiring association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data; and the association relation data obtaining unit is used for inputting the association characteristic data into a pre-trained entity beacon association model and obtaining association relation data which is output by the entity beacon association model and is used for representing the association between the target beacon base station and the target entity and is deployed in the area corresponding to the target entity in the alternative beacon base station.
Optionally, each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to the target entity; acquiring alternative beacon data corresponding to a target entity, including: and acquiring alternative beacon data scanned by the beacon scanning terminal corresponding to the scanning time interval in each scanning time interval of the multiple scanning time intervals aiming at the target entity, and determining an alternative beacon base station corresponding to the alternative beacon data.
Optionally, obtaining association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and performing aggregation processing on the alternative beacon base stations and the scanning time intervals corresponding to the alternative beacon base stations to obtain the number of the scanning time intervals corresponding to each alternative beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each alternative beacon base station is the time interval in which the alternative beacon data broadcast by each alternative beacon base station is scanned.
Optionally, for each scanning time interval of the multiple scanning time intervals of the target entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of waybills of a target entity, wherein the effective time interval corresponding to each waybills is in the plurality of effective time intervals corresponding to the plurality of waybills of the target entity; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: and the number of the waybills corresponding to each alternative beacon base station in the plurality of waybills.
Optionally, the valid time interval corresponding to each waybill includes: and the distribution resource corresponding to each waybill is in a time interval from the arrival to the departure of the target entity, wherein the distribution resource carries the beacon scanning terminal.
Optionally, for each scanning time interval of the multiple scanning time intervals of the target entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a target entity, and an effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: the number of beacon scanning terminals corresponding to each alternative beacon base station in the plurality of beacon scanning terminals.
Optionally, obtaining association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and determining the corresponding alternative beacon base station based on the alternative beacon data, and performing aggregation processing on the alternative beacon base station and the corresponding alternative beacon data to obtain the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station.
Optionally, obtaining association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and determining the corresponding alternative beacon base stations based on the alternative beacon data, and performing aggregation processing on the alternative beacon base stations and the corresponding alternative beacon data to obtain the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station.
Optionally, the associated feature data further includes at least one of the following: sequencing information of the number of scanning time intervals corresponding to each alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each alternative beacon base station.
Optionally, the associated feature data further includes at least one of the following: sequencing information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data in the beacon data broadcasted by each alternative beacon base station.
Optionally, the associated feature data further includes at least one of the following: the sequencing information of the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each alternative beacon base station.
Optionally, the obtaining of the candidate beacon data corresponding to the target entity includes: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the target entity as alternative beacon data.
Optionally, the obtaining of the candidate beacon data corresponding to the target entity includes: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring target waybill data corresponding to the target entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the target waybill data, and determining the beacon data as alternative beacon data corresponding to the target entity.
Optionally, the number of the target entities is multiple, and acquiring the candidate beacon data corresponding to the target entity includes: and acquiring alternative beacon data corresponding to each target entity in the plurality of target entities.
An embodiment of the present application further provides an entity beacon association model training apparatus, including: a reference beacon data acquiring unit, configured to acquire, based on a reference beacon base station and a reference entity that are associated with each other, reference beacon data corresponding to the reference entity, where the reference beacon data is beacon data that is scanned by a beacon scanning terminal in an area corresponding to the reference entity from beacon data broadcast by multiple beacon base stations deployed in multiple areas, the multiple areas are areas corresponding to multiple entities including the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with a beacon application; the association characteristic data sample obtaining unit is used for determining a reference alternative beacon base station which corresponds to the reference alternative beacon base station and contains the reference beacon base station based on the reference beacon data, obtaining an association characteristic data sample between the reference alternative beacon base station and a reference entity, and obtaining an association label which corresponds to the association characteristic data sample and is used for representing whether the reference alternative beacon base station is associated with the reference entity or not; and the model training unit is used for carrying out model training according to the association characteristic data samples and the corresponding association labels to obtain an entity beacon association model, and the entity beacon association model is used for outputting association relation data for representing the association between the target beacon base station deployed in the target entity and the target entity according to the input association characteristic data between the beacon base station and the entity.
Optionally, each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to the reference entity; acquiring reference beacon data corresponding to a reference entity, including: and acquiring reference beacon data scanned by a beacon scanning terminal corresponding to each scanning time interval in the plurality of scanning time intervals aiming at the reference entity.
Optionally, obtaining an association feature data sample between the reference candidate beacon base station and the reference entity includes: and aggregating the reference candidate beacon base stations and the scanning time intervals corresponding to the reference candidate beacon base stations to obtain the number of the scanning time intervals corresponding to each reference candidate beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each reference candidate beacon base station is the time interval in which the reference beacon data broadcast by each reference candidate beacon base station is scanned.
Optionally, for each scanning time interval of the plurality of scanning time intervals of the reference entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of freight notes of a reference entity, wherein the effective time interval corresponding to each freight note is the effective time interval corresponding to the freight note; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: and the number of the waybills corresponding to each reference alternative beacon base station in the plurality of waybills.
Optionally, the valid time interval corresponding to each waybill includes: and the distribution resource corresponding to each waybill is a time interval from the arrival of the distribution resource at the reference entity to the departure of the distribution resource from the reference entity, wherein the distribution resource carries the beacon scanning terminal.
Optionally, for each scanning time interval of the plurality of scanning time intervals of the reference entity, the method includes: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a reference entity, and the effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: the number of beacon scanning terminals corresponding to each reference alternative beacon base station in the plurality of beacon scanning terminals.
Optionally, obtaining an association feature data sample between the reference candidate beacon base station and the reference entity includes: and carrying out aggregation processing on the reference alternative beacon base stations and the reference beacon data corresponding to the reference alternative beacon base stations to obtain the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station.
Optionally, obtaining an association feature data sample between the reference candidate beacon base station and the reference entity includes: and performing aggregation processing on the reference candidate beacon base stations and the reference beacon data corresponding to the reference candidate beacon base stations to obtain the number of the reference beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each reference candidate beacon base station.
Optionally, the associating the characteristic data sample further includes at least one of: sequencing information of the number of scanning time intervals corresponding to each reference alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each reference alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each reference candidate beacon base station.
Optionally, the associating the characteristic data sample further includes at least one of: ranking information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; normalization information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; ranking information of normalized information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; optionally, the associating the characteristic data sample further includes at least one of: the sequencing information of the number of the reference beacon data with the signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station; normalization information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold in the beacon data broadcast by each reference alternative beacon base station; and ranking information of the normalized information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station.
Optionally, obtaining an association tag corresponding to the associated feature data sample includes: and marking the association characteristic data samples between the reference beacon base stations and the reference entities in the reference alternative beacon base stations as associated labels, and marking the association characteristic data samples between the beacon base stations except the reference beacon base stations and the reference entities in the reference alternative beacon base stations as non-associated labels.
Optionally, the obtaining of the reference beacon data corresponding to the reference entity includes: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the reference entity as the reference beacon data.
Optionally, the obtaining of the reference beacon data corresponding to the reference entity includes: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring reference waybill data corresponding to the reference entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the reference waybill data, and determining the beacon data as the reference beacon data corresponding to the reference entity.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the above-described method.
Embodiments of the present application also provide a computer-readable storage medium having one or more computer instructions stored thereon, which are executed by a processor to implement the above-mentioned method.
Compared with the prior art, the embodiment of the application has the following advantages:
according to the beacon association method provided by the embodiment of the application, after the alternative beacon data corresponding to the target entity is obtained, association feature data between the alternative beacon base station corresponding to the alternative beacon data and the target entity is obtained, the association feature data is input into a pre-trained entity beacon association model, and association relation data which is output by the entity beacon association model and used for representing association between the target beacon base station and the target entity and is deployed in an area corresponding to the target entity in the alternative beacon base station is obtained, wherein the alternative beacon data is beacon data which is scanned by a beacon scanning terminal in the area corresponding to the target entity in beacon data broadcast by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with beacon application. The method comprises the steps of constructing association characteristic data between an alternative beacon base station corresponding to alternative beacon data and a target entity based on the alternative beacon data corresponding to the target entity, using the association characteristic data as input data of an entity beacon association model, and associating the target entity with a target beacon base station deployed in the target entity in the alternative beacon base station through the entity beacon association model. By using the method, the complexity of the association process of the entity and the beacon base station can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (such as the influence of human factors), and the accuracy of the association result can be guaranteed.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
In the practical application of the beacon technology, a one-to-one correspondence relationship is established between the deployed beacon base station and the deployed entity, so that the beacon base station can uniquely refer to the entity, and subsequent operations related to the entity are realized based on the data packet broadcast by the beacon base station and the data packet scanned by the beacon scanning terminal. For example, the living service type network application platform deploys a beacon base station at a resident merchant through an operator, binds the beacon base station ID with the merchant ID, scans a data packet carrying the beacon base station ID broadcasted by the beacon base station through a beacon scanning terminal provided with the beacon application after a distribution resource reaches the merchant, and uploads the data packet to a network platform server, and the network platform server can determine whether the distribution resource reaches the merchant and the residence time of the distribution resource at the merchant based on the beacon base station ID carried by the data packet and the incidence relation between the beacon base station ID and the merchant ID, so that the problem of observing the distribution resource from the merchant to the distribution resource is solved.
The existing method for establishing association between a beacon base station and an entity is as follows: the method includes the steps that predetermined association operations are respectively executed for deployed beacon base stations and deployed entities thereof, for example, operators deploy the beacon base stations in merchants, bind the IDs of the beacon base stations with the IDs of the merchants through terminal application, and upload binding relationships to a network platform server.
For the association scenario of the beacon base station and the entity, in order to improve the association efficiency between the entity and the beacon base station deployed in the entity and ensure the accuracy of the association result, the application provides a beacon association method, a beacon association device, an electronic device and a computer readable storage medium corresponding to the method, and also provides an entity beacon association model training method, an entity beacon association model training device corresponding to the method, an electronic device and a computer readable storage medium. The following provides embodiments for detailed description of the above method, apparatus, electronic device, and computer-readable storage medium.
A first embodiment of the present application provides a beacon association method, where an application body of the method may be a computing device application for associating an entity with a beacon base station, and the computing device application may be run on a network platform server. Fig. 1 is a flowchart of a beacon association method according to a first embodiment of the present application, and the method according to the present embodiment is described in detail below with reference to fig. 1. The following description refers to embodiments for the purpose of illustrating the principles of the methods, and is not intended to be limiting in actual use.
As shown in fig. 1, the beacon association method provided in this embodiment includes the following steps:
s101, obtaining alternative beacon data corresponding to the target entity.
The beacon data refers to data packets broadcast by a beacon base station, that is, a beacon base station deployed at a fixed location broadcasts continuously to a surrounding area, for example, broadcasts data packets to its surrounding area at predetermined time intervals, so as to create a signal area, and a beacon scanning terminal (for example, a user handset) in the signal area receives the data packets broadcast by the beacon base station at intervals when performing a scanning operation, where the data packets include a beacon base station ID and an indication value of the current received signal strength, and the beacon base station ID is used to indicate from which beacon base station MAC address the data packets come (each beacon base station corresponds to a unique MAC address).
The method includes the steps of acquiring candidate beacon data corresponding to a target entity, where the candidate beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to the target entity from beacon data broadcast by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application. That is, the entity corresponds to a real geographic space, for example, different local areas in a certain area correspond to different entities respectively (for example, different shelf placement areas of a large business exceeds correspond to different entities respectively), or a plurality of independent areas correspond to different entities respectively (for example, a plurality of store areas correspond to different entities), in the field of the lifestyle service type network application, the entity may be a merchant, and the target entity is a merchant that is currently to establish an association relationship with a beacon base station deployed therewith, that is, the target entity is a target merchant that has deployed the beacon base station (for example, a lifestyle service type network application platform deploys the beacon base station in advance in an in-store merchant thereof by an operator) but does not establish an association relationship with the beacon base station. The beacon data scanned by the beacon scanning terminal in the area corresponding to the target entity may be beacon data broadcasted by a plurality of beacon base stations deployed by the target entity and a plurality of entities adjacent to the target entity (for example, the distribution resource is located at a merchant a, the beacon scanning terminal of the distribution resource may scan the beacon data broadcasted by the plurality of beacon base stations deployed at the merchant a and a plurality of merchants around the merchant a, where the distribution resource may be a distributor or a distribution device with an end distribution capability such as a distribution unmanned aerial vehicle, a distribution robot, a distribution unmanned vehicle, etc., and the beacon scanning terminal may be a smart terminal installed with a beacon application, for example, a smart phone), and the beacon data is candidate beacon data corresponding to the target entity.
In this embodiment, the number of the target entities may be multiple, and the acquiring of the candidate beacon data corresponding to the target entity may refer to: and acquiring alternative beacon data corresponding to each target entity in the plurality of target entities.
In this embodiment, the candidate beacon data corresponding to the target entity may be obtained as follows: acquiring beacon data scanned by a beacon scanning terminal, for example, receiving massive beacon data scanned and uploaded by beacon scanning devices of multiple riders within a preset time period; acquiring position information corresponding to each beacon scanning terminal, for example, acquiring position information of the plurality of riders in the predetermined time period through an intelligent terminal positioning function; determining beacon data scanned by a beacon scanning terminal with position information in an area corresponding to a target entity as alternative beacon data, for example, a network platform server stores position information of a resident merchant in advance, the merchant a is the target entity, when the rider B uploads the scanned beacon data in the preset time period, the position of the rider B is consistent with the position information corresponding to the merchant a, and the beacon data uploaded by the rider B is the alternative beacon data corresponding to the merchant a.
In this embodiment, the candidate beacon data corresponding to the target entity may also be obtained as follows: acquiring beacon data scanned by beacon scanning terminals carried by a plurality of distribution resources, for example, receiving massive beacon data scanned and uploaded by beacon scanning devices of a plurality of riders within a preset time period; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data includes information of entities corresponding to the waybill data, for example, acquiring a plurality of waybill data corresponding to a plurality of riders in the preset time period, and each waybill data includes information of a merchant to which the waybill is directed; the method includes the steps of obtaining target waybill data corresponding to a target entity in the waybill data, obtaining beacon data scanned by a beacon scanning terminal carried by a corresponding distribution resource in an effective time interval of the target waybill data, determining the beacon data as alternative beacon data corresponding to the target entity, for example, finding out the target waybill data for a target merchant from a plurality of waybill data corresponding to a plurality of riders, finding out the effective time interval of the target waybill data, wherein the effective time interval of the target waybill data can be a time period from the rider arriving at the merchant to the rider leaving the merchant, and finally determining the beacon data scanned by the beacon scanning terminal of the rider corresponding to the target waybill data in the effective time interval as the alternative beacon data corresponding to the target merchant.
S102, obtaining association characteristic data between the alternative beacon base station corresponding to the alternative beacon data and the target entity.
And the alternative beacon base station corresponding to the alternative beacon data is the beacon base station pointed by the beacon base station ID carried by the alternative beacon data. After the candidate beacon data corresponding to the target entity is obtained in the above step, the step is used to obtain association feature data between the candidate beacon base station corresponding to the candidate beacon data and the target entity, where the association feature data is used to characterize the correlation between the candidate beacon base station and the target entity.
In this embodiment, each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a target entity, for example, for a merchant a, each terminal scanning device carried by a rider receives beacon data broadcasted by a beacon base station (deployed in the merchant a or a nearby merchant of the merchant a) at intervals in a time period between entering the merchant a and leaving the merchant a, where the time period is the scanning time interval corresponding to the merchant a for the beacon scanning terminal; the obtaining of the candidate beacon data corresponding to the target entity may further include: acquiring alternative beacon data scanned by a beacon scanning terminal corresponding to a scanning time interval in each scanning time interval of a plurality of scanning time intervals aiming at a target entity, and determining an alternative beacon base station corresponding to the alternative beacon data; for example, a plurality of riders respectively have delivery waybills for a merchant a in a predetermined time period, and each rider may have more than one delivery waybills for the merchant a in the predetermined time period, and each waybills corresponds to a scanning time interval at the merchant a, so that candidate beacon data corresponding to the merchant a may be respectively obtained for each scanning time interval, that is, candidate beacon data scanned by a beacon scanning device of the rider corresponding to each scanning time interval in a plurality of scanning time intervals for the merchant a is respectively obtained, and a candidate beacon base station is determined based on a beacon base station ID carried by the candidate beacon data. In this case, the association characteristic data between the alternative beacon base station and the target entity may be obtained as follows: and performing aggregation processing on the alternative beacon base stations and the scanning time intervals corresponding to the alternative beacon base stations to obtain the number of the scanning time intervals corresponding to each alternative beacon base station in the plurality of scanning time intervals, and determining the number as the association characteristic data between the alternative beacon base stations and the target entity, wherein the scanning time interval corresponding to each alternative beacon base station is the time interval in which the alternative beacon data broadcasted by each alternative beacon base station is scanned. For example, within a predetermined time period, when the merchant a scans the beacon data broadcast by the alternative beacon base station a, the terminal scanning device of the rider a corresponds to one scanning time interval, when the merchant a scans the beacon data broadcast by the alternative beacon base station a, the terminal scanning device of the rider B corresponds to another scanning time interval, and when the merchant a does not scan the beacon data broadcast by the alternative beacon base station a, the terminal scanning devices of the other riders correspond to 2 scanning time intervals for the alternative beacon base station a. The reason why the number of scanning time intervals corresponding to each candidate beacon base station is determined as the association feature data between each candidate beacon base station and the target entity is that the number can reflect the correlation between the candidate beacon base stations and the target entity, for example, the beacon base station deployed in the merchant a is positively correlated with the number of scanning time intervals for the merchant a.
It should be noted that, each of the scanning time intervals for the target entity may be: in a plurality of effective time intervals corresponding to a plurality of waybills of the target entity, an effective time interval corresponding to each waybill (for example, a time interval from arrival at the target entity to departure from the target entity of a distribution resource carrying a beacon scanning terminal corresponding to each waybill); correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station may be: the number of waybills corresponding to each alternative beacon base station in the plurality of waybills.
In this embodiment, each of the scanning time intervals for the target entity may further refer to: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a target entity, and an effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of the scanning time intervals corresponding to each alternative beacon base station may also be: the number of beacon scanning terminals corresponding to each alternative beacon base station in the plurality of beacon scanning terminals.
In this embodiment, the association characteristic data between the alternative beacon base station and the target entity may also be obtained as follows: determining the candidate beacon base station corresponding to the candidate beacon data based on the candidate beacon data, for example, determining the candidate beacon base station based on the beacon base station ID carried by the candidate beacon data, and performing aggregation processing on the candidate beacon base station and the candidate beacon data corresponding to the candidate beacon base station to obtain the number of the candidate beacon data in the beacon data broadcast by each candidate beacon base station, where the number can reflect the correlation between the candidate beacon base station and the target entity, and thus the number is determined as the association feature data between the candidate beacon base station and the target entity. For example, each alternative beacon base station broadcasts data packets to its surrounding area at predetermined time intervals within a predetermined time period, the number of beacon data broadcast by the plurality of rider's terminal scanning devices scanning to alternative beacon base station a at merchant a is D1, the number of beacon data broadcast by the plurality of rider's terminal scanning devices scanning to alternative beacon base station B at merchant a is D2, and if alternative beacon base station a is deployed at merchant a, D1 should be greater than D2.
In this embodiment, the association characteristic data between the alternative beacon base station and the target entity may also be obtained as follows: determining the corresponding alternative beacon base station based on the alternative beacon data, and performing aggregation processing on the alternative beacon base station and the corresponding alternative beacon data to obtain the number of alternative beacon data of which the signal strength is greater than a predetermined signal strength threshold value in the beacon data broadcast by each alternative beacon base station, wherein the number can reflect the correlation between the alternative beacon base station and the target entity, so that the number is determined as the correlation characteristic data between the alternative beacon base station and the target entity. For example, each alternative beacon base station broadcasts data packets to its surrounding area at predetermined time intervals within a predetermined time period, the number of beacon data with signal strength greater than a predetermined signal strength threshold among the beacon data broadcast by the merchant a scanning the alternative beacon base station a is E1 by the plurality of rider's terminal scanning devices, the number of beacon data with signal strength greater than a predetermined signal strength threshold among the beacon data broadcast by the merchant a scanning the alternative beacon base station B is E2 by the plurality of rider's terminal scanning devices, and if the alternative beacon base station a is deployed in the merchant a, E1 should be greater than E2.
It should be noted that after the association feature data between the candidate beacon base station and the target entity is obtained, derivation processing may be performed based on the association feature data, and the derived data are collectively used as the association feature data, so that the derivation processing is performed to increase the diversity of input data, and the accuracy of subsequent model output may be improved by using feature data of different dimensions. For example, when the association feature data is the number of scanning time intervals corresponding to each candidate beacon base station (or the number of waybills corresponding to each candidate beacon base station, the number of beacon scanning terminals corresponding to each candidate beacon base station), the association feature data derived based on the association feature data includes at least one of the following: ranking information of the number of scanning time intervals corresponding to each alternative beacon base station (or ranking information of the number of waybills corresponding to each alternative beacon base station, ranking information of the number of beacon scanning terminals corresponding to each alternative beacon base station); normalization information of the number of scanning time intervals corresponding to each alternative beacon base station (or normalization information of the number of waybills corresponding to each alternative beacon base station, and normalization information of the number of beacon scanning terminals corresponding to each alternative beacon base station), where the normalization information may be a ratio of the number of scanning time intervals corresponding to each alternative beacon base station to the number of multiple scanning time intervals for the target entity within a predetermined time period; ranking information of the normalized information of the number of scanning time intervals corresponding to each candidate beacon base station (or ranking information of the normalized information of the number of waybills corresponding to each candidate beacon base station, ranking information of the normalized information of the number of beacon scanning terminals corresponding to each candidate beacon base station). When the association characteristic data is the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station, the association characteristic data derived based on the association characteristic data comprises at least one of the following: sequencing information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; normalization information of the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station, where the normalization information may be a ratio of the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station to the number of all the alternative beacon data for the target entity in a predetermined time period; and ranking information of the normalized information of the number of alternative beacon data in the beacon data broadcasted by each alternative beacon base station. When the association characteristic data is the number of alternative beacon data with signal strength greater than a predetermined signal strength threshold value in the beacon data broadcast by each alternative beacon base station, the association characteristic data derived based on the association characteristic data comprises at least one of the following: the sequencing information of the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; the normalization information of the number of alternative beacon data with signal strength greater than the predetermined signal strength threshold value in the beacon data broadcast by each alternative beacon base station may be the proportion of the number of alternative beacon data with signal strength greater than the predetermined signal strength threshold value in the beacon data broadcast by each alternative beacon base station, and the number of alternative beacon data with signal strength greater than the predetermined signal strength threshold value in all alternative beacon data for the target entity, in a predetermined time period; and ranking information of the normalized information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each alternative beacon base station.
It should be noted that, the above-mentioned methods provide many different ways to obtain many kinds of associated characteristic data, and in practical applications, some or all of the above-mentioned many kinds of associated characteristic data may be obtained, and are not limited herein.
And S103, inputting the association characteristic data into a pre-trained entity beacon association model, and obtaining association relation data which is output by the entity beacon association model and used for representing association between the target beacon base station and the target entity and is deployed in the area corresponding to the target entity in the candidate beacon base station.
After obtaining the association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data in the above step, the step is configured to input the association characteristic data into a pre-trained entity beacon association model, and obtain association relationship data output by the entity beacon association model and used for representing that the target beacon base station deployed in the candidate beacon base station is associated with the target entity, where the association relationship data may be one-to-one correspondence between each target entity ID and its deployed beacon base station ID, and may be used as a data basis for subsequent operations related to the entity, for example, after receiving beacon data carrying the beacon base station ID uploaded by a distribution resource, a network platform server may determine whether the distribution resource reaches a merchant and the residence time of the distribution resource at the merchant based on the beacon base station ID carried by the network platform server and the association relationship data between the beacon base station ID and the merchant ID, thereby solving the problem of delivering resources to store observation.
In the beacon association method provided by the embodiment of the application, after the alternative beacon data corresponding to the target entity is acquired, obtaining association characteristic data between the alternative beacon base station corresponding to the alternative beacon data and the target entity, and inputting the association characteristic data into a pre-trained entity beacon association model to obtain association relation data which is output by the entity beacon association model and is used for representing the association between a target beacon base station and a target entity in an alternative beacon base station and deployed in a region corresponding to the target entity, the candidate beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to a target entity in beacon data broadcast by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application. The method comprises the steps of constructing association characteristic data between an alternative beacon base station corresponding to alternative beacon data and a target entity based on the alternative beacon data corresponding to the target entity, using the association characteristic data as input data of an entity beacon association model, and associating the target entity with a target beacon base station deployed in the target entity in the alternative beacon base station through the entity beacon association model. By using the method, the complexity of the association process can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (such as the influence of human factors), and the accuracy of the association result can be guaranteed.
A second embodiment of the present application provides a method for training an entity beacon association model, an implementation subject of the method may be a computing device application for performing model training, fig. 2 is a flowchart of the method for training the entity beacon association model provided in the second embodiment of the present application, and the method provided in this embodiment is described in detail below with reference to fig. 2. The following description refers to embodiments for the purpose of illustrating the principles of the methods, and is not intended to be limiting in actual use.
As shown in fig. 2, the method for training an entity beacon association model provided in this embodiment includes the following steps:
s201, acquiring reference beacon data corresponding to a reference entity based on the associated reference beacon base station and the reference entity.
The method includes the steps that reference beacon data corresponding to a reference entity is obtained based on the associated reference beacon base station and the associated reference entity, and for the beacon base station and the associated entity which are established in advance, association relation data of the beacon base station and the associated entity are stored in a network platform server and can be used as reference data for implementing an entity beacon association model training process in the embodiment. The reference beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to a reference entity in beacon data broadcast by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with a beacon application.
In this embodiment, the reference beacon data corresponding to the reference entity may be obtained as follows: acquiring beacon data scanned by a beacon scanning terminal, for example, receiving massive beacon data scanned and uploaded by beacon scanning devices of multiple riders within a preset time period; acquiring position information corresponding to each beacon scanning terminal, for example, acquiring position information of the plurality of riders in the predetermined time period through an intelligent terminal positioning function; the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the reference entity is determined as the reference beacon data, for example, the network platform server stores the position information of the resident merchant in advance, the merchant a is the reference entity, the position of the rider B when uploading the scanned beacon data in the preset time period is consistent with the position information corresponding to the merchant a, and the beacon data uploaded by the rider B is the reference beacon data corresponding to the merchant a.
In this embodiment, the reference beacon data corresponding to the reference entity may also be obtained as follows: acquiring beacon data scanned by beacon scanning terminals carried by a plurality of distribution resources, for example, receiving massive beacon data scanned and uploaded by beacon scanning devices of a plurality of riders within a preset time period; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data, for example, acquiring a plurality of waybill data corresponding to a plurality of riders in the preset time period, and each waybill data comprises information of a merchant to which the waybill is directed; the method comprises the steps of obtaining reference waybill data corresponding to a reference entity in waybill data, obtaining beacon data scanned by a beacon scanning terminal carried by a corresponding distribution resource in an effective time interval of the reference waybill data, determining the beacon data as the reference beacon data corresponding to the reference entity, for example, searching the reference waybill data for a reference merchant from a plurality of waybill data corresponding to a plurality of riders, searching the effective time interval of the reference waybill data, wherein the effective time interval of the reference waybill data can be a time period from the arrival of the rider to the departure of the rider from the merchant, and finally determining the beacon data scanned by the beacon scanning terminal of the rider corresponding to the reference waybill data in the effective time interval as the reference beacon data corresponding to the reference merchant.
S202, a reference alternative beacon base station which corresponds to the reference beacon data and contains the reference beacon base station is determined based on the reference beacon data, an association characteristic data sample between the reference alternative beacon base station and a reference entity is obtained, and an association label corresponding to the association characteristic data sample is obtained.
The reference alternative beacon base station refers to all beacon base stations pointed to by the beacon base station ID carried by the reference beacon data. The association tag is used to characterize whether the reference candidate beacon base station is associated with the reference entity, and the obtaining of the association tag corresponding to the association characteristic data sample may specifically refer to: and marking the association characteristic data samples between the reference beacon base stations and the reference entities in the reference alternative beacon base stations as associated labels, and marking the association characteristic data samples between the beacon base stations except the reference beacon base stations and the reference entities in the reference alternative beacon base stations as non-associated labels.
In this embodiment, each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a reference entity, for example, the reference entity is a merchant B, each terminal scanning device carried by a rider receives beacon data broadcasted by a beacon base station (deployed in the merchant B or a merchant close to the merchant B) at intervals in a time period between entering the merchant B and leaving the merchant B, and the time period is the scanning time interval corresponding to the beacon scanning terminal at the merchant B; the obtaining of the reference beacon data corresponding to the reference entity may specifically refer to: the method includes the steps of acquiring reference beacon data scanned by a beacon scanning terminal corresponding to a plurality of scanning time intervals of a reference entity, for example, a plurality of riders respectively have delivery waybills for a merchant B in a predetermined time period, and each rider may have more than one delivery waybills for the merchant B in the predetermined time period, and each waybills corresponds to a scanning time interval for the merchant B, so that the reference beacon data corresponding to the merchant B can be acquired for each scanning time interval, that is, the reference beacon data scanned by a beacon scanning device of the rider corresponding to each scanning time interval in the plurality of scanning time intervals for the merchant B is acquired respectively. In this case, the association characteristic data sample between the reference alternative beacon base station and the reference entity may be obtained by: and aggregating the reference candidate beacon base stations and the scanning time intervals corresponding to the reference candidate beacon base stations to obtain the number of the scanning time intervals corresponding to each reference candidate beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each reference candidate beacon base station is the time interval in which the reference beacon data broadcast by each reference candidate beacon base station is scanned.
It should be noted that, each of the scanning time intervals of the plurality of scanning time intervals for the reference entity may refer to: in a plurality of valid time intervals corresponding to a plurality of waybills of the reference entity, a valid time interval corresponding to each waybill (for example, a time interval from arrival at the reference entity to departure from the reference entity of a distribution resource carrying a beacon scanning terminal corresponding to each waybill); correspondingly, the number of the scanning time intervals corresponding to each reference candidate beacon base station may be: and the number of the waybills corresponding to each reference alternative beacon base station in the plurality of waybills. The valid time interval corresponding to each waybill may refer to: and each waybill corresponds to a time interval from the arrival of the distribution resource of the beacon scanning terminal at the reference entity to the departure of the distribution resource from the reference entity.
Each of the above-mentioned multiple scanning time intervals for the reference entity may also refer to: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a reference entity, and the effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station may refer to: the number of beacon scanning terminals corresponding to each reference alternative beacon base station in the plurality of beacon scanning terminals.
In this embodiment, the obtaining of the association characteristic data sample between the reference candidate beacon base station and the reference entity may further refer to: and carrying out aggregation processing on the reference alternative beacon base stations and the reference beacon data corresponding to the reference alternative beacon base stations to obtain the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station.
In this embodiment, the association characteristic data sample between the reference alternative beacon base station and the reference entity may also be obtained as follows: and performing aggregation processing on the reference candidate beacon base stations and the reference beacon data corresponding to the reference candidate beacon base stations to obtain the number of the reference beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each reference candidate beacon base station.
It should be noted that after the association feature data between the reference beacon base station and the reference entity is obtained, the derivation process may be performed based on the association feature data samples, and the derived data are collectively used as the association feature data samples, so that the derivation process is performed to increase the diversity of the model training samples, and the accuracy of the model training may be improved by using the feature data samples with different dimensions. For example, when the association feature data sample is the number of scanning time intervals corresponding to each reference candidate beacon base station (or the number of waybills corresponding to each candidate beacon base station, the number of beacon scanning terminals corresponding to each candidate beacon base station), the association feature data sample derived based on the association feature data sample includes at least one of the following: ranking information of the number of scanning time intervals corresponding to each reference candidate beacon base station (or ranking information of the number of waybills corresponding to each reference candidate beacon base station, ranking information of the number of beacon scanning terminals corresponding to each reference candidate beacon base station); normalization information of the number of scanning time intervals corresponding to each reference candidate beacon base station (or normalization information of the number of waybills corresponding to each reference candidate beacon base station, and normalization information of the number of beacon scanning terminals corresponding to each reference candidate beacon base station); ranking information of the normalized information of the number of scanning time intervals corresponding to each reference candidate beacon base station (or ranking information of the normalized information of the number of waybills corresponding to each reference candidate beacon base station, ranking information of the normalized information of the number of beacon scanning terminals corresponding to each reference candidate beacon base station). When the association characteristic data sample is the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station, the association characteristic data sample derived based on the association characteristic data sample comprises at least one of the following: ranking information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; normalization information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; ranking information of normalized information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station. When the association characteristic data sample is the number of the reference beacon data with the signal strength greater than the predetermined signal strength threshold value in the beacon data broadcast by each reference alternative beacon base station, the association characteristic data sample derived based on the association characteristic data sample comprises at least one of the following: the sequencing information of the number of the reference beacon data with the signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station; normalization information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold in the beacon data broadcast by each reference alternative beacon base station; and ranking information of the normalized information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station.
And S203, performing model training according to the associated characteristic data samples and the associated labels corresponding to the associated characteristic data samples to obtain an entity beacon association model.
After obtaining the association characteristic data sample between the reference candidate beacon base station and the reference entity and obtaining the association tag corresponding to the association characteristic data sample in the above steps, the step is configured to perform model training according to the association characteristic data sample and the association tag corresponding to the association characteristic data sample to obtain an entity beacon association model, where the entity beacon association model is configured to output association relationship data for representing that the target beacon base station deployed in the target entity is associated with the target entity according to the input association characteristic data between the beacon base station and the entity. For example, the association feature data sample between the reference beacon base station and the reference entity and the associated label corresponding to the association feature data sample are used as positive samples, the association feature data sample between the beacon base station except the reference beacon base station and the reference entity in the reference candidate beacon base station and the non-associated label corresponding to the association feature data sample are used as negative samples, an Xgboost binary model framework or other binary model frameworks are adopted for model training, and the entity beacon association model obtained through training can output a plurality of groups of association relationship data for representing the association between the target beacon base station deployed in the target entity and the target entity according to the input association feature data between the plurality of groups of beacon base stations and the entity.
The entity beacon association model training method provided by this embodiment obtains, based on a reference beacon base station and a reference entity that have been associated, reference beacon data corresponding to the reference entity, where the reference beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to the reference entity from beacon data broadcast by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with a beacon application; determining a corresponding reference alternative beacon base station containing the reference beacon base station based on the reference beacon data, obtaining an association characteristic data sample between the reference alternative beacon base station and a reference entity, and obtaining an association label corresponding to the association characteristic data sample, wherein the association label is used for representing whether the reference alternative beacon base station is associated with the reference entity or not; and performing model training according to the association characteristic data sample and the corresponding association label to obtain an entity beacon association model, wherein the entity beacon association model is used for outputting association relation data for representing the association between the target beacon base station and the target entity according to the input association characteristic data between the beacon base station and the entity. The entity and the beacon base station deployed in the entity can be associated by the entity beacon association model obtained by training through the method, so that the complexity of the association process of the entity and the beacon base station can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (such as the influence of human factors), and the accuracy of the association result can be guaranteed.
The third embodiment of the present application also provides a beacon association apparatus, which is similar to the first embodiment of the present application, so that the description is simple, and the details of the related technical features can be found in the corresponding description of the above-mentioned method embodiments, and the following description of the apparatus embodiments is only illustrative.
Referring to fig. 3 to understand the embodiment, fig. 3 is a block diagram of a unit of a beacon association apparatus provided in the embodiment, and as shown in fig. 3, the beacon association apparatus provided in the embodiment includes: a candidate beacon data unit 301, configured to obtain candidate beacon data corresponding to a target entity, where the candidate beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to the target entity from beacon data broadcast by multiple beacon base stations deployed in multiple areas, the multiple areas are areas corresponding to multiple entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application; an association characteristic data obtaining unit 302, configured to obtain association characteristic data between the candidate beacon base station and the target entity corresponding to the candidate beacon data; and an association relation data obtaining unit 303, configured to input association feature data into a pre-trained entity beacon association model, and obtain association relation data that is output by the entity beacon association model and used for representing that a target beacon base station, which is deployed in a region corresponding to a target entity, in an alternative beacon base station is associated with the target entity.
Each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a target entity; acquiring alternative beacon data corresponding to a target entity, including: and acquiring alternative beacon data scanned by the beacon scanning terminal corresponding to the scanning time interval in each scanning time interval of the multiple scanning time intervals aiming at the target entity, and determining an alternative beacon base station corresponding to the alternative beacon data.
The obtaining of the association feature data between the candidate beacon base station and the target entity corresponding to the candidate beacon data includes: and performing aggregation processing on the alternative beacon base stations and the scanning time intervals corresponding to the alternative beacon base stations to obtain the number of the scanning time intervals corresponding to each alternative beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each alternative beacon base station is the time interval in which the alternative beacon data broadcast by each alternative beacon base station is scanned.
For each of a plurality of scan time intervals of a target entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of waybills of a target entity, wherein the effective time interval corresponding to each waybills is in the plurality of effective time intervals corresponding to the plurality of waybills of the target entity; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: and the number of the waybills corresponding to each alternative beacon base station in the plurality of waybills. The effective time interval corresponding to each waybill comprises: and the distribution resource corresponding to each waybill is in a time interval from the arrival to the departure of the target entity, wherein the distribution resource carries the beacon scanning terminal. For each of a plurality of scan time intervals of a target entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a target entity, and an effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: the number of beacon scanning terminals corresponding to each alternative beacon base station in the plurality of beacon scanning terminals. Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and determining the corresponding alternative beacon base station based on the alternative beacon data, and performing aggregation processing on the alternative beacon base station and the corresponding alternative beacon data to obtain the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station.
Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and determining the corresponding alternative beacon base stations based on the alternative beacon data, and performing aggregation processing on the alternative beacon base stations and the corresponding alternative beacon data to obtain the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station. The associated characteristic data further comprises at least one of: sequencing information of the number of scanning time intervals corresponding to each alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each alternative beacon base station. The associated characteristic data further comprises at least one of: sequencing information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data in the beacon data broadcasted by each alternative beacon base station. The associated characteristic data further comprises at least one of: the sequencing information of the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each alternative beacon base station.
Acquiring alternative beacon data corresponding to a target entity, including: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the target entity as alternative beacon data.
Acquiring alternative beacon data corresponding to a target entity, including: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring target waybill data corresponding to the target entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the target waybill data, and determining the beacon data as alternative beacon data corresponding to the target entity.
The method includes the following steps that the number of target entities is multiple, candidate beacon data corresponding to the target entities are obtained, and the method includes the following steps: and acquiring alternative beacon data corresponding to each target entity in the plurality of target entities.
The beacon association device provided in the embodiment of the application constructs association feature data between the candidate beacon base station corresponding to the candidate beacon data and the target entity based on the candidate beacon data corresponding to the target entity, uses the association feature data as input data of an entity beacon association model, and associates the target entity with the target beacon base station deployed in the target entity in the candidate beacon base station through the entity beacon association model. By using the device, the complexity of the association process can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (such as the influence of human factors), and the accuracy of the association result can be guaranteed.
In the embodiments described above, a beacon associating method and a beacon associating apparatus are provided, and in addition, a fourth embodiment of the present application also provides an electronic device, which is basically similar to the method embodiment and therefore is described relatively simply, and please refer to the corresponding description of the method embodiment for details of related technical features, and the following description of the embodiment of the electronic device is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 4 for understanding the present embodiment, fig. 4 is a schematic view of an electronic device provided in the present embodiment. As shown in fig. 4, the electronic device provided in this embodiment includes: a processor 401 and a memory 402; the memory 402 is used for storing computer instructions for data processing, which when read and executed by the processor 401, perform the following operations: acquiring alternative beacon data corresponding to a target entity, wherein the alternative beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to the target entity in beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application; obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data; and inputting the association characteristic data into a pre-trained entity beacon association model, and obtaining association relation data which is output by the entity beacon association model and is used for representing the association between the target beacon base station and the target entity in the candidate beacon base station and deployed in the area corresponding to the target entity.
Each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a target entity; acquiring alternative beacon data corresponding to a target entity, including: and acquiring alternative beacon data scanned by the beacon scanning terminal corresponding to the scanning time interval in each scanning time interval of the multiple scanning time intervals aiming at the target entity, and determining an alternative beacon base station corresponding to the alternative beacon data. Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and performing aggregation processing on the alternative beacon base stations and the scanning time intervals corresponding to the alternative beacon base stations to obtain the number of the scanning time intervals corresponding to each alternative beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each alternative beacon base station is the time interval in which the alternative beacon data broadcast by each alternative beacon base station is scanned.
For each of a plurality of scan time intervals of a target entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of waybills of a target entity, wherein the effective time interval corresponding to each waybills is in the plurality of effective time intervals corresponding to the plurality of waybills of the target entity; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: and the number of the waybills corresponding to each alternative beacon base station in the plurality of waybills. The effective time interval corresponding to each waybill comprises: and the distribution resource corresponding to each waybill is in a time interval from the arrival to the departure of the target entity, wherein the distribution resource carries the beacon scanning terminal. For each of a plurality of scan time intervals of a target entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a target entity, and an effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: the number of beacon scanning terminals corresponding to each alternative beacon base station in the plurality of beacon scanning terminals.
Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and determining the corresponding alternative beacon base station based on the alternative beacon data, and performing aggregation processing on the alternative beacon base station and the corresponding alternative beacon data to obtain the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station.
Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and determining the corresponding alternative beacon base stations based on the alternative beacon data, and performing aggregation processing on the alternative beacon base stations and the corresponding alternative beacon data to obtain the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station.
The associated characteristic data further comprises at least one of: sequencing information of the number of scanning time intervals corresponding to each alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each alternative beacon base station. The associated characteristic data further comprises at least one of: sequencing information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; ranking information of normalization information of the number of alternative beacon data in the beacon data broadcasted by each alternative beacon base station; the associated characteristic data further comprises at least one of: the sequencing information of the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each alternative beacon base station.
Acquiring alternative beacon data corresponding to a target entity, including: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the target entity as alternative beacon data.
Acquiring alternative beacon data corresponding to a target entity, including: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring target waybill data corresponding to the target entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the target waybill data, and determining the beacon data as alternative beacon data corresponding to the target entity.
The method includes the following steps that the number of target entities is multiple, candidate beacon data corresponding to the target entities are obtained, and the method includes the following steps: and acquiring alternative beacon data corresponding to each target entity in the plurality of target entities.
By using the electronic device provided by the embodiment, the complexity of the association process can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (such as the influence of human factors), and the accuracy of the association result can be guaranteed.
In the above embodiments, a beacon association method, a beacon association apparatus and an electronic device are provided, and furthermore, a fifth embodiment of the present application also provides a computer-readable storage medium for implementing the beacon association method. The embodiments of the computer-readable storage medium provided in the present application are described relatively simply, and for relevant portions, reference may be made to the corresponding descriptions of the above method embodiments, and the embodiments described below are merely illustrative.
The present embodiments provide a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, perform the steps of: acquiring alternative beacon data corresponding to a target entity, wherein the alternative beacon data is beacon data scanned by a beacon scanning terminal in an area corresponding to the target entity in beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to a plurality of entities including the target entity, and the beacon scanning terminal is a terminal configured with a beacon application; obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data; and inputting the association characteristic data into a pre-trained entity beacon association model, and obtaining association relation data which is output by the entity beacon association model and is used for representing the association between the target beacon base station and the target entity in the candidate beacon base station and deployed in the area corresponding to the target entity.
Each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a target entity; acquiring alternative beacon data corresponding to a target entity, including: and acquiring alternative beacon data scanned by the beacon scanning terminal corresponding to the scanning time interval in each scanning time interval of the multiple scanning time intervals aiming at the target entity, and determining an alternative beacon base station corresponding to the alternative beacon data. Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and performing aggregation processing on the alternative beacon base stations and the scanning time intervals corresponding to the alternative beacon base stations to obtain the number of the scanning time intervals corresponding to each alternative beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each alternative beacon base station is the time interval in which the alternative beacon data broadcast by each alternative beacon base station is scanned.
For each of a plurality of scan time intervals of a target entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of waybills of a target entity, wherein the effective time interval corresponding to each waybills is in the plurality of effective time intervals corresponding to the plurality of waybills of the target entity; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: and the number of the waybills corresponding to each alternative beacon base station in the plurality of waybills. The effective time interval corresponding to each waybill comprises: and the distribution resource corresponding to each waybill is in a time interval from the arrival to the departure of the target entity, wherein the distribution resource carries the beacon scanning terminal. For each of a plurality of scan time intervals of a target entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a target entity, and an effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each alternative beacon base station includes: the number of beacon scanning terminals corresponding to each alternative beacon base station in the plurality of beacon scanning terminals.
Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and determining the corresponding alternative beacon base station based on the alternative beacon data, and performing aggregation processing on the alternative beacon base station and the corresponding alternative beacon data to obtain the number of the alternative beacon data in the beacon data broadcast by each alternative beacon base station. Obtaining association characteristic data between the alternative beacon base station and the target entity corresponding to the alternative beacon data, including: and determining the corresponding alternative beacon base stations based on the alternative beacon data, and performing aggregation processing on the alternative beacon base stations and the corresponding alternative beacon data to obtain the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station. The associated characteristic data further comprises at least one of: sequencing information of the number of scanning time intervals corresponding to each alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each alternative beacon base station. The associated characteristic data further comprises at least one of: sequencing information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data in the beacon data broadcast by each alternative beacon base station; ranking information of normalization information of the number of alternative beacon data in the beacon data broadcasted by each alternative beacon base station; the associated characteristic data further comprises at least one of: the sequencing information of the number of alternative beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; normalization information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcast by each alternative beacon base station; and ranking information of the normalized information of the number of alternative beacon data with signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each alternative beacon base station.
Acquiring alternative beacon data corresponding to a target entity, including: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the target entity as alternative beacon data.
Acquiring alternative beacon data corresponding to a target entity, including: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring target waybill data corresponding to the target entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the target waybill data, and determining the beacon data as alternative beacon data corresponding to the target entity.
The method includes the following steps that the number of target entities is multiple, candidate beacon data corresponding to the target entities are obtained, and the method includes the following steps: and acquiring alternative beacon data corresponding to each target entity in the plurality of target entities.
By executing the computer instructions stored on the computer-readable storage medium provided by the embodiment, the complexity of the association process can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (for example, the influence of human factors), and the accuracy of the association result can be guaranteed.
The sixth embodiment of the present application further provides a training apparatus for a physical beacon association model, which is substantially similar to the method embodiment and therefore is relatively simple to describe, and the following description of the apparatus embodiment is only exemplary, as the detailed portions of the related technical features refer to the corresponding description of the method embodiment provided above.
Referring to fig. 5 for understanding the embodiment, fig. 5 is a block diagram of a unit of a training apparatus for an association model of an entity beacon provided in the embodiment, as shown in fig. 5, the training apparatus for an association model of an entity beacon provided in the embodiment includes: a reference beacon data obtaining unit 501, configured to obtain, based on a reference beacon base station and a reference entity that are associated with each other, reference beacon data corresponding to the reference entity, where the reference beacon data is beacon data that is scanned by a beacon scanning terminal in an area corresponding to the reference entity from beacon data broadcast by multiple beacon base stations deployed in multiple areas, the multiple areas are areas corresponding to multiple entities including the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with a beacon application; an association feature data sample obtaining unit 502, configured to determine, based on the reference beacon data, a reference candidate beacon base station corresponding to the reference candidate beacon base station and including the reference beacon base station, obtain an association feature data sample between the reference candidate beacon base station and the reference entity, and obtain an association tag corresponding to the association feature data sample, where the association tag is used to represent whether the reference candidate beacon base station is associated with the reference entity; the model training unit 503 is configured to perform model training according to the association feature data samples and the association labels corresponding to the association feature data samples to obtain an entity beacon association model, where the entity beacon association model is configured to output association relationship data used for representing association between a target beacon base station deployed in a target entity and the target entity according to input association feature data between the beacon base station and the entity.
Each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to the reference entity; acquiring reference beacon data corresponding to a reference entity, including: and acquiring reference beacon data scanned by a beacon scanning terminal corresponding to each scanning time interval in the plurality of scanning time intervals aiming at the reference entity. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and aggregating the reference candidate beacon base stations and the scanning time intervals corresponding to the reference candidate beacon base stations to obtain the number of the scanning time intervals corresponding to each reference candidate beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each reference candidate beacon base station is the time interval in which the reference beacon data broadcast by each reference candidate beacon base station is scanned. For each of a plurality of scan time intervals of a reference entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of freight notes of a reference entity, wherein the effective time interval corresponding to each freight note is the effective time interval corresponding to the freight note; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: and the number of the waybills corresponding to each reference alternative beacon base station in the plurality of waybills. The effective time interval corresponding to each waybill comprises: and the distribution resource corresponding to each waybill is a time interval from the arrival of the distribution resource at the reference entity to the departure of the distribution resource from the reference entity, wherein the distribution resource carries the beacon scanning terminal. For each of a plurality of scan time intervals of a reference entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a reference entity, and the effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: the number of beacon scanning terminals corresponding to each reference alternative beacon base station in the plurality of beacon scanning terminals. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and carrying out aggregation processing on the reference alternative beacon base stations and the reference beacon data corresponding to the reference alternative beacon base stations to obtain the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and performing aggregation processing on the reference candidate beacon base stations and the reference beacon data corresponding to the reference candidate beacon base stations to obtain the number of the reference beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each reference candidate beacon base station. The associated feature data sample further comprises at least one of: sequencing information of the number of scanning time intervals corresponding to each reference alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each reference alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each reference candidate beacon base station. The associated feature data sample further comprises at least one of: ranking information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; normalization information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; ranking information of normalized information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; the associated feature data sample further comprises at least one of: the sequencing information of the number of the reference beacon data with the signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station; normalization information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold in the beacon data broadcast by each reference alternative beacon base station; and ranking information of the normalized information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station.
Obtaining an association label corresponding to the association feature data sample, including: and marking the association characteristic data samples between the reference beacon base stations and the reference entities in the reference alternative beacon base stations as associated labels, and marking the association characteristic data samples between the beacon base stations except the reference beacon base stations and the reference entities in the reference alternative beacon base stations as non-associated labels. Acquiring reference beacon data corresponding to a reference entity, including: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the reference entity as the reference beacon data. Acquiring reference beacon data corresponding to a reference entity, including: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring reference waybill data corresponding to the reference entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the reference waybill data, and determining the beacon data as the reference beacon data corresponding to the reference entity.
By using the training device for the entity beacon association model provided by the embodiment, the entity and the beacon base station deployed in the entity can be associated by the trained entity beacon association model, so that the complexity of the association process between the entity and the beacon base station can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (for example, the influence of human factors), and the accuracy of the association result can be guaranteed.
In the above embodiments, a method and an apparatus for training an association model of an entity beacon are provided, and in addition, a seventh embodiment of the present application further provides an electronic device, which is basically similar to the method embodiment and therefore is relatively simple to describe, and please refer to the corresponding description of the method embodiment for details of related technical features, and the following description of the embodiment of the electronic device is only illustrative. The embodiment of the electronic equipment is as follows: please refer to fig. 4 for understanding the present embodiment, fig. 4 is a schematic view of an electronic device provided in the present embodiment, and the electronic device provided in the present embodiment includes: a processor 401 and a memory 402; the memory 402 is used to store computer instructions for target image acquisition, which when read and executed by the processor 401, perform the following operations: acquiring reference beacon data corresponding to a reference entity based on the associated reference beacon base station and the reference entity, wherein the reference beacon data is beacon data which is scanned in an area corresponding to the reference entity by a beacon scanning terminal in the beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to the plurality of entities containing the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with beacon application; determining a corresponding reference alternative beacon base station containing the reference beacon base station based on the reference beacon data, obtaining an association characteristic data sample between the reference alternative beacon base station and a reference entity, and obtaining an association label corresponding to the association characteristic data sample, wherein the association label is used for representing whether the reference alternative beacon base station is associated with the reference entity or not; and performing model training according to the association characteristic data sample and the corresponding association label to obtain an entity beacon association model, wherein the entity beacon association model is used for outputting association relation data for representing association between a target beacon base station deployed in a target entity and the target entity according to the input association characteristic data between the beacon base station and the entity.
Each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a reference entity to acquire reference beacon data corresponding to the reference entity, and the method comprises the following steps: and acquiring reference beacon data scanned by a beacon scanning terminal corresponding to each scanning time interval in the plurality of scanning time intervals aiming at the reference entity. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and aggregating the reference candidate beacon base stations and the scanning time intervals corresponding to the reference candidate beacon base stations to obtain the number of the scanning time intervals corresponding to each reference candidate beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each reference candidate beacon base station is the time interval in which the reference beacon data broadcast by each reference candidate beacon base station is scanned. For each of a plurality of scan time intervals of a reference entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of freight notes of a reference entity, wherein the effective time interval corresponding to each freight note is the effective time interval corresponding to the freight note; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: and the number of the waybills corresponding to each reference alternative beacon base station in the plurality of waybills. The effective time interval corresponding to each waybill comprises: and the distribution resource corresponding to each waybill is a time interval from the arrival of the distribution resource at the reference entity to the departure of the distribution resource from the reference entity, wherein the distribution resource carries the beacon scanning terminal. For each of a plurality of scan time intervals of a reference entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a reference entity, and the effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: the number of beacon scanning terminals corresponding to each reference alternative beacon base station in the plurality of beacon scanning terminals.
Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and carrying out aggregation processing on the reference alternative beacon base stations and the reference beacon data corresponding to the reference alternative beacon base stations to obtain the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and performing aggregation processing on the reference candidate beacon base stations and the reference beacon data corresponding to the reference candidate beacon base stations to obtain the number of the reference beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each reference candidate beacon base station.
The associated feature data sample further comprises at least one of: sequencing information of the number of scanning time intervals corresponding to each reference alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each reference alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each reference candidate beacon base station. The associated feature data sample further comprises at least one of: ranking information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; normalization information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; ranking information of normalized information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; the associated feature data sample further comprises at least one of: the sequencing information of the number of the reference beacon data with the signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station; normalization information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold in the beacon data broadcast by each reference alternative beacon base station; and ranking information of the normalized information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station.
Obtaining an association label corresponding to the association feature data sample, including: and marking the association characteristic data samples between the reference beacon base stations and the reference entities in the reference alternative beacon base stations as associated labels, and marking the association characteristic data samples between the beacon base stations except the reference beacon base stations and the reference entities in the reference alternative beacon base stations as non-associated labels.
Acquiring reference beacon data corresponding to a reference entity, including: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the reference entity as the reference beacon data.
Acquiring reference beacon data corresponding to a reference entity, including: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring reference waybill data corresponding to the reference entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the reference waybill data, and determining the beacon data as the reference beacon data corresponding to the reference entity.
By using the electronic device provided by the embodiment, the entity and the beacon base station deployed in the entity can be associated by the trained entity beacon association model, so that the complexity of the association process between the entity and the beacon base station can be reduced, the association efficiency can be improved, the association process can be prevented from being influenced by unforeseen factors (such as the influence of human factors), and the accuracy of the association result can be guaranteed.
In the foregoing embodiments, a method, an apparatus, and an electronic device for training a physical beacon association model are provided, and in addition, an eighth embodiment of the present application also provides a computer-readable storage medium for implementing the method for training a physical beacon association model. The embodiments of the computer-readable storage medium provided in the present application are described relatively simply, and for relevant portions, reference may be made to the corresponding descriptions of the above method embodiments, and the embodiments described below are merely illustrative.
The present embodiments provide a computer readable storage medium having stored thereon computer instructions that, when executed by a processor, perform the steps of: acquiring reference beacon data corresponding to a reference entity based on the associated reference beacon base station and the reference entity, wherein the reference beacon data is beacon data which is scanned in an area corresponding to the reference entity by a beacon scanning terminal in the beacon data broadcasted by a plurality of beacon base stations deployed in a plurality of areas, the plurality of areas are areas corresponding to the plurality of entities containing the reference entity, the reference beacon base station is a beacon base station deployed in the area corresponding to the reference entity, and the beacon scanning terminal is a terminal configured with beacon application; determining a corresponding reference alternative beacon base station containing the reference beacon base station based on the reference beacon data, obtaining an association characteristic data sample between the reference alternative beacon base station and a reference entity, and obtaining an association label corresponding to the association characteristic data sample, wherein the association label is used for representing whether the reference alternative beacon base station is associated with the reference entity or not; and performing model training according to the association characteristic data sample and the corresponding association label to obtain an entity beacon association model, wherein the entity beacon association model is used for outputting association relation data for representing association between a target beacon base station deployed in a target entity and the target entity according to the input association characteristic data between the beacon base station and the entity.
Each beacon scanning terminal corresponds to a scanning time interval in an area corresponding to a reference entity to acquire reference beacon data corresponding to the reference entity, and the method comprises the following steps: and acquiring reference beacon data scanned by a beacon scanning terminal corresponding to each scanning time interval in the plurality of scanning time intervals aiming at the reference entity. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and aggregating the reference candidate beacon base stations and the scanning time intervals corresponding to the reference candidate beacon base stations to obtain the number of the scanning time intervals corresponding to each reference candidate beacon base station in a plurality of scanning time intervals, wherein the scanning time interval corresponding to each reference candidate beacon base station is the time interval in which the reference beacon data broadcast by each reference candidate beacon base station is scanned.
For each of a plurality of scan time intervals of a reference entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of freight notes of a reference entity, wherein the effective time interval corresponding to each freight note is the effective time interval corresponding to the freight note; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: and the number of the waybills corresponding to each reference alternative beacon base station in the plurality of waybills.
The effective time interval corresponding to each waybill comprises: and the distribution resource corresponding to each waybill is a time interval from the arrival of the distribution resource at the reference entity to the departure of the distribution resource from the reference entity, wherein the distribution resource carries the beacon scanning terminal.
For each of a plurality of scan time intervals of a reference entity, comprising: aiming at a plurality of effective time intervals corresponding to a plurality of beacon scanning terminals of a reference entity, and the effective time interval corresponding to each beacon scanning terminal; correspondingly, the number of scanning time intervals corresponding to each reference candidate beacon base station includes: the number of beacon scanning terminals corresponding to each reference alternative beacon base station in the plurality of beacon scanning terminals.
Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and carrying out aggregation processing on the reference alternative beacon base stations and the reference beacon data corresponding to the reference alternative beacon base stations to obtain the number of the reference beacon data in the beacon data broadcast by each reference alternative beacon base station. Obtaining association signature data samples between a reference alternative beacon base station and a reference entity, comprising: and performing aggregation processing on the reference candidate beacon base stations and the reference beacon data corresponding to the reference candidate beacon base stations to obtain the number of the reference beacon data of which the signal strength is greater than a preset signal strength threshold value in the beacon data broadcast by each reference candidate beacon base station.
The associated feature data sample further comprises at least one of: sequencing information of the number of scanning time intervals corresponding to each reference alternative beacon base station; normalization information of the number of scanning time intervals corresponding to each reference alternative beacon base station; and ranking information of the normalized information of the number of the scanning time intervals corresponding to each reference candidate beacon base station. The associated feature data sample further comprises at least one of: ranking information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; normalization information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; ranking information of normalized information of the number of reference beacon data in the beacon data broadcast by each reference alternative beacon base station; the associated feature data sample further comprises at least one of: the sequencing information of the number of the reference beacon data with the signal strength larger than a preset signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station; normalization information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold in the beacon data broadcast by each reference alternative beacon base station; and ranking information of the normalized information of the number of reference beacon data with signal strength larger than a predetermined signal strength threshold value in the beacon data broadcasted by each reference alternative beacon base station.
Obtaining an association label corresponding to the association feature data sample, including: and marking the association characteristic data samples between the reference beacon base stations and the reference entities in the reference alternative beacon base stations as associated labels, and marking the association characteristic data samples between the beacon base stations except the reference beacon base stations and the reference entities in the reference alternative beacon base stations as non-associated labels.
Acquiring reference beacon data corresponding to a reference entity, including: acquiring beacon data scanned by a beacon scanning terminal; acquiring position information of a beacon scanning terminal; and determining the beacon data scanned by the beacon scanning terminal with the position information in the area corresponding to the reference entity as the reference beacon data.
Acquiring reference beacon data corresponding to a reference entity, including: acquiring beacon data scanned by a beacon scanning terminal carried by a plurality of distribution resources; acquiring waybill data corresponding to a plurality of distribution resources, wherein the waybill data comprises information of entities corresponding to the waybill data; and acquiring reference waybill data corresponding to the reference entity in the waybill data, acquiring beacon data scanned by a beacon scanning terminal carried by corresponding distribution resources in an effective time interval of the reference waybill data, and determining the beacon data as the reference beacon data corresponding to the reference entity.
By executing the computer instructions stored on the computer-readable storage medium provided in this embodiment, the trained entity beacon association model may associate the entity with the beacon base station deployed in the entity, which may reduce the complexity of the association process between the entity and the beacon base station, improve the association efficiency, avoid the association process from being affected by unforeseen factors (e.g., human factors), and ensure the accuracy of the association result.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
1. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
2. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Although the present application has been described with reference to the preferred embodiments, it is not intended to limit the present application, and those skilled in the art can make variations and modifications without departing from the spirit and scope of the present application, therefore, the scope of the present application should be determined by the claims that follow.