Offline customer behavior identification method, system, storage medium and terminal
Wearable devices and RFID systems identify the interactive behavior between offline customers and products, which solves the problem of inability to accurately obtain offline shopping behavior in the existing technology, achieves accurate acquisition of customer shopping information and personalized services, and improves online Lower shopping experience.
Patent Information
- Application Number
- CN202110795634.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-14
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-07-14
AI Technical Summary
Existing technology is difficult to effectively identify offline customers' shopping behavior, especially in physical stores, and cannot accurately obtain interaction information between customers and products, making it difficult for merchants to provide personalized services.
Collect customers' motion status and hand action data through wearable devices, collect product action data with the RFID system, construct hand action sequences and product action sequences, match the interaction between customers and products based on similarity, and obtain real-time information about customers and products. Matching results.
It achieves accurate identification of offline customer behavior, reduces the impact of user and environmental diversity on identification, provides personalized services and fast checkout functions, and improves the offline shopping experience.
Smart Images

Figure CN113326816B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of behavior recognition, and in particular to an offline customer behavior recognition method, system, storage medium and terminal. Background Art
[0002] With the rapid development of data mining and artificial intelligence, massive and rich user shopping behavior data can bring huge commercial benefits to retailers. Based on this data, retailers can conduct more accurate market research and formulate more scientific marketing strategies. At the same time, they can also associate shopping behavior with each user and build user portraits to provide more accurate personalized services. Online user behavior data can be easily obtained by tracking users' web browsing, click records, product reviews, shopping cart information, purchase records, etc., but offline, most physical stores can only get the user's final shopping list data. It is difficult to obtain some deeper user behavior information, such as which products the user has viewed during the shopping process and how long they stay on each product. However, only by collecting this information can retailers have a more comprehensive understanding of users' interests and hobbies.
[0003] There are two main methods for tracking customer offline behavior. One is to collect data manually, and the other is to automatically identify customer behavior using sensing devices. The manual method is generally to record the naked eye of the staff in the physical store or to conduct a questionnaire survey on customers. This method requires a lot of manpower costs and lacks the feasibility of practical implementation. The automatic identification method mainly relies on cameras or smartphones to identify customer behavior or track their location. The camera-based method captures the video of the customer's shopping process by deploying a large number of cameras in the store, and identifies the customer's behavior through video image processing technology. However, video processing consumes a lot of computing resources and has high requirements for lighting conditions, the relative position of the camera and the customer. In addition, if personalized marketing is to be carried out for customers, their identity information needs to be obtained, but neither facial recognition nor recognition based on body features can achieve good recognition results in physical stores with strong user mobility. The smartphone-based method uses inertial sensors or WiFi signals and Bluetooth signals on the mobile phone to track the customer's location in the store. The mobile phone has a unique identification function for the customer, so the customer's location can be easily associated with his identity through the mobile phone. The disadvantage of this method is that it can only obtain the product area that the customer is interested in, but cannot identify whether the customer has browsed the product and which product he has browsed. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide an offline customer behavior identification method, system, storage medium and terminal, which are used to solve the technical problem that the prior art cannot effectively identify the shopping behavior of offline customers.
[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present invention provides an offline customer behavior recognition method, including: collecting the customer's motion state data and judging the customer's motion state, including walking state and non-walking state; when the customer's motion state is judged to be non-walking state, collecting the customer's hand motion data and identifying candidate gestures for interacting with commodities; collecting commodity motion data at the corresponding time of the candidate gestures, and identifying candidate commodities for interacting with the customer; constructing a hand motion sequence and a commodity motion sequence respectively based on the hand motion data between adjacent candidate gestures and the commodity motion data of the candidate commodities at the corresponding time; and obtaining a matching result between the customer and the commodity based on the similarity between the hand motion sequence and the commodity motion sequence.
[0006] In some embodiments of the first aspect of the present invention, the offline customer behavior recognition method includes: collecting the customer's motion state data and hand motion data through a wearable device; and collecting the commodity motion data through an RFID system.
[0007] In some embodiments of the first aspect of the present invention, the offline customer behavior identification method includes: obtaining the matching result of the customer and the product in real time by identifying whether the customer and the product perform a preset action synchronously.
[0008] In some embodiments of the first aspect of the present invention, the preset action includes a shake gesture; the method for real-time acquisition of the matching results of the customer and the product includes: acquiring hand return frequency information based on the hand motion data, and acquiring the period of the hand motion data based on Fourier transform to identify whether the customer has performed the shake gesture; when it is identified that the customer has performed a shake gesture, judging whether the product has performed the shake gesture based on the product motion data within the corresponding time; judging the synchronization of the shake gesture based on the time overlap between the hand motion data and the product motion data and the corresponding signal maximum energy frequency difference to match the corresponding customer and product in real time.
[0009] In some embodiments of the first aspect of the present invention, the method for acquiring the candidate gestures includes: taking the customer's elbow as the origin of the world coordinate system, and calculating the displacement of the customer's hand relative to the elbow based on quaternions; when the displacement reaches a preset value, it is determined that the customer interacts with the product, and the candidate gesture is acquired.
[0010] In some embodiments of the first aspect of the present invention, the hand motion data includes acceleration data; the method of constructing the hand motion sequence includes: dividing the components of each coordinate axis of the acceleration data into data of multiple time windows; calculating the entropy value of each time window, and comparing it with a preset threshold to determine the hand motion of each window, including hand movement state and hand still state; using binary method to represent the hand movement state and hand still state to construct the hand motion sequence.
[0011] In some embodiments of the first aspect of the present invention, the method for judging the customer's motion state includes: obtaining the customer's motion state data, including gravity acceleration data and horizontal acceleration data; dividing the gravity acceleration data and horizontal acceleration data into data of multiple time windows, and calculating the time domain eigenvalues and frequency domain eigenvalues of each window; and constructing a decision tree based on the time domain eigenvalues and frequency domain eigenvalues to judge the customer's motion state.
[0012] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present invention provides a customer behavior recognition system, including: a motion state judgment module, which is used to collect the customer's motion state data and judge the customer's motion state, including walking state and non-walking state; a candidate gesture recognition module, which is used to collect the customer's hand movement data and identify the candidate gestures for interacting with the goods when the customer's motion state is judged to be non-walking state; a candidate product recognition module, which is used to collect the product action data at the corresponding time of the candidate gestures, and identify the candidate products for interacting with the customer; an action sequence construction module, which respectively constructs a hand action sequence and a product action sequence based on the hand action data between adjacent candidate gestures and the product action data of the candidate products at the corresponding time; a matching module, which obtains the matching result between the customer and the product based on the similarity between the hand action sequence and the product action sequence.
[0013] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and the computer program implements the offline customer behavior identification method when executed by a processor.
[0014] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present invention provides an electronic terminal, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the offline customer behavior identification method.
[0015] As described above, the offline customer behavior identification method, system, storage medium and terminal proposed in the present invention have the following beneficial effects: it can simultaneously identify customers, goods interacting with customers, and the interactive behaviors between customers and goods; track the customer's movements through wearable electronic devices on the customer's hands, use RFID to detect the goods' movements, and perform similarity matching between customer movements and goods' movements, effectively reducing the impact of user and environmental diversity on customer behavior identification, and obtaining accurate shopping information of customers, which not only makes it easier for merchants to provide personalized services to customers, but also makes it easier for customers to establish their own offline shopping logs, obtain product-related information in real time, check out quickly, etc., which is conducive to improving the shopping experience of offline customers. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a flow chart of an offline customer behavior identification method in one embodiment of the present invention.
[0017] Figure 2 Shown is a flow chart of another offline customer behavior identification method in one embodiment of the present invention.
[0018] Figure 3 Shown is a schematic diagram of the structure of an offline customer behavior recognition system in one embodiment of the present invention.
[0019] Figure 4 Shown is a schematic structural diagram of an electronic terminal in one embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0021] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It should be understood that other embodiments may also be used, and that mechanical composition, structure, electrical and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present invention is limited only by the claims of the published patents. The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.
[0022] In the present invention, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "hold" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0023] Furthermore, as used in this article, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.
[0024] The present invention provides an offline customer behavior recognition method, system, storage medium and terminal, which are used to solve the drawbacks of obtaining offline customer shopping information through human investigation or video surveillance in the prior art.
[0025] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution in the embodiments of the present invention is further described in detail through the following embodiments and in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0026] Embodiment 1
[0027] like Figure 1 As shown, this embodiment provides a flow chart of an offline customer behavior identification method, which includes steps S11 to S15, which can be specifically described as follows:
[0028] Step S11. Collect the customer's motion state data and determine the customer's motion state, including walking state and non-walking state (i.e., the state when the customer stops to view or pick up the goods). For example, the customer's motion state data, such as acceleration data, angular velocity data, etc., can be collected through the inertial sensor built into the wearable device. The customer's walking state has a certain diversity, such as swinging arms, making phone calls, looking at mobile phones, sending text messages, going up stairs, going down stairs, and putting hands in the pockets of tops or bottoms, etc. The customer can wear the wearable device after entering the physical store, or the wearable device can be activated and start working after entering the store.
[0029] This embodiment is described by taking a smart watch as an example. The inertial sensor in the smart watch collects the acceleration data of the customer based on the watch's own coordinate system Acc = (A x ,A y ,A z ), since different walking styles will generate different acceleration data, the customer's motion state can be determined by the collected acceleration data. Specifically, in some examples, the acceleration data A can be calculated. CC Component A in the direction of gravity g and the horizontal component A h , and use this as an indicator to judge the customer's motion state. These two components have strong robustness relative to different walking methods, which is conducive to accurately judging the customer's motion state. Among them, acceleration A CC The gravity direction component A g It can be expressed as follows:
[0030]
[0031] Where G = (g x ,g y ,g z ) represents the coordinates of the gravitational acceleration in the watch's own coordinate system.
[0032] Acceleration A CC The horizontal component A h A CC The projection on the horizontal plane, because the walking direction does not need to be considered when detecting the customer's movement status, only A is calculated h Size | A h |, which means the following:
[0033]
[0034] In a preferred implementation of this embodiment, the calculated A g and A h The data is divided into multiple time windows, and the time domain feature value and frequency domain feature value of each window are calculated; a decision tree is constructed based on the time domain feature value and frequency domain feature value to determine the movement state of the customer in each time window. g and A h The data is divided into windows of 5 seconds in length and 50% overlap, and then the time-frequency statistical features in each window are calculated, where the time domain feature values include but are not limited to: maximum value, minimum value, average value, skewness, kurtosis, variance and zero-crossing rate, and the frequency domain feature values include but are not limited to: spectral entropy, spectral energy and the frequency value with the maximum energy, etc. Then, a decision tree is constructed based on the obtained time-frequency statistical features to determine whether the customer is in a walking state or a non-walking state in each time window.
[0035] Step S12. When it is determined that the customer's motion state is a non-walking state, the customer's hand motion data is collected and candidate gestures for interacting with the product are identified. When the customer is in a non-walking state, that is, when he stops, he may interact with the product. Therefore, it is necessary to detect whether the customer has gestures such as picking up and putting back during this period of time to reduce redundant data in subsequent motion sequence matching. Therefore, smart watches, smart wristbands, smart bracelets, smart rings, or other wearable devices supported by the wrist or wearable on the hand are preferred.
[0036] In a preferred implementation of this embodiment, the candidate gesture recognition method includes: collecting the customer's hand motion data; calculating the displacement of the wearable device (such as a smart watch) within a preset time based on the hand motion data; and identifying the candidate gesture based on the displacement. The basic basis for identifying the candidate gestures in this implementation is that although the customer's actions when picking up and putting down the goods are rich and varied, there will be a common feature, that is, the customer's hand will produce a large displacement when the customer reaches out, so it can be determined by detecting the size of the wearable device displacement per unit time whether the action of picking up and putting down the goods has occurred. Although the customer may also have a large displacement of the hand when viewing the goods or some other gestures, since the system will further confirm the action through action sequence matching later, this step does not require a very high recognition accuracy, and only the candidate gesture needs to be recognized, that is, the action of picking up and putting down the goods may be detected. Since the inertial sensor signal on the wearable device when the customer picks up and puts back the goods will show significantly different change characteristics due to different customers, goods, goods positions, and ways of picking up and putting, therefore, this implementation avoids using these signal changes as features for gesture recognition, eliminating the influence of the above factors, and the recognition process is simple and efficient.
[0037] Furthermore, the displacement of the wearable device needs to be calculated during the candidate gesture recognition process. In some examples, the inertial sensor data is divided into 1s long, 50% overlapping windows and the watch displacement in each time window is calculated; the acceleration Acc based on the wearable device's own coordinate system and the transformation matrix R from the wearable device's own coordinate system to the world coordinate system can be used to obtain the acceleration Acc of the wearable device in the world coordinate system. wcs =R·Acc (the X, Y, and Z axes of the world coordinate system point to the east, north, and the opposite direction of gravity, respectively). By integrating it twice, the displacement of the wearable device can be obtained.
[0038] Preferably, this embodiment proposes a method for calculating displacement based on quaternions: assuming that when the customer picks up and puts down the goods, the elbow remains stationary, and only the forearm and hand move around the elbow. Based on this assumption, it is only necessary to track the trajectory of the hand wearable device relative to the elbow to calculate its displacement. Although in many cases, the customer's elbow often moves with the movement of the upper arm, the movement of the forearm and hand around the elbow still dominates the entire action. Therefore, the movement around the elbow is tracked by the quaternion provided by the wearable device, and the quaternion can well describe the rotational movement of a vector around a rotation axis in 3D space. The quaternion provided by the wearable device describes its rotation from a posture parallel to the world coordinate system to the current posture. Since this embodiment only needs to detect whether there is an action of picking up and putting down the goods by the relative size of the displacement, and does not need to calculate the exact displacement size, it can be assumed that the distance from the wearable device to the elbow is a unit distance of 1, and the elbow is taken as the origin of the world coordinate system. When the wearable device is parallel to the world coordinate system, its coordinates can be calculated by quaternions. The calculation of the displacement amount proposed in this embodiment can effectively reduce the displacement accumulation error and improve the accuracy of customer hand movement recognition.
[0039] Step S13. Collect the product motion data at the time corresponding to the candidate gesture, and identify the candidate product that interacts with the customer. In this embodiment, the product motion data is collected through an RFID system, wherein the RFID system consists of a reader, an electronic tag, and a data management system. The electronic tag is attached to the product, and the antenna used by the reader to read the electronic tag is deployed on the ceiling or shelf. The data management system is on the server. The motion data of the electronic tag corresponding to the product is read by the reader as the product motion data.
[0040] In a preferred implementation of this embodiment, the displacement of the product is characterized by the phase change of the electronic tag signal, and the product whose displacement exceeds the preset value within the corresponding time of the candidate gesture is identified as the candidate product for interacting with the customer, and the corresponding product action data is the candidate product action data.
[0041] Step 14. Based on the hand motion data between adjacent candidate gestures and the commodity motion data of the candidate commodities at the corresponding time, construct a hand motion sequence and a commodity motion sequence respectively. The hand motion data includes acceleration data. The method of constructing the hand motion sequence includes: dividing the component of each coordinate axis of the acceleration data into data of multiple time windows; calculating the entropy value of each time window, and comparing it with a preset threshold to determine the hand motion of the customer in each window, including the hand motion state and the hand static state; using a binary method to represent the hand motion state and the hand static state to construct the hand motion sequence. The method of constructing the commodity motion sequence is similar to the method of constructing the hand motion sequence.
[0042] Specifically, the calculation formula of the entropy value of the time window can be expressed as follows:
[0043]
[0044] Among them, P represents the discrete probability distribution of the signal value, and N represents the number of discrete units (bins) into which the signal value is divided when calculating the discrete probability.
[0045] In some examples, when a customer picks up a product with the hand wearing the watch and looks at it, the movement state of the watch and the product should be synchronized. Considering the heterogeneity of inertial sensor data and RFID phase signals and the difficulty of calculating physical quantities such as the trajectory, speed, and rotation of the product using only one RFID tag, it is preferred to characterize the state of the watch when interacting with the product by two states: the moving state and the stationary state. When the watch is in motion, its acceleration signal will have obvious fluctuations, otherwise it is in a stable state, so the state of the watch can be detected by the entropy of the signal data: the system divides the signal into 0.5 second, 50% overlapping time windows, and then calculates the entropy of each window. If the entropy of the signal of the three axes of acceleration exceeds a threshold, the watch is considered to be in motion, represented by 1, otherwise it is in a stationary state, represented by 0. So a binary state sequence of the watch can be obtained, such as 1010101100..., and the system only calculates the state sequence corresponding to the signal data between each two candidate gestures. Similarly, the state sequence of the candidate product in the corresponding time can also be obtained.
[0046] Step S15. Based on the similarity between the hand motion sequence and the product motion sequence, obtain the matching result between the customer and the product. The similarity of the motion sequence can be measured by similarity coefficient, matching coefficient, consistency, etc. The similarity coefficient includes association coefficient, distance coefficient, inner product coefficient, information coefficient, probability coefficient, etc.
[0047] Preferably, the Jaccard Index is used to measure the similarity of two binary sequences. If the Jaccard Index is greater than a preset threshold, it is determined that the customer's hand movement is synchronized with the movement of the product, and the customer and the product can be matched; if a product can be matched with multiple consecutive candidate gestures, the two candidate gestures with the longest interval time are used as the action of picking up and placing the product, and the corresponding product browsing time information is recorded; if a product and multiple customers or a customer and multiple products meet the matching conditions at the same time, the customer and product corresponding to the hand movement sequence and product movement sequence with the highest similarity are selected as the matching result. Since the products in the store are stationary most of the time, the moving state is more important than the stationary state in the similarity measurement, and the positions where the values of the two binary sequences are both 0 can be ignored. Therefore, this embodiment is particularly suitable for the application scenario of the present invention.
[0048] Furthermore, the method proposed in this embodiment is evaluated by conducting a laboratory environment experiment simulating a physical store:
[0049] The room area is 7.8×10.2m^2. There are 4 shelves in the room, which are filled with toys, books, clothes and snacks with RFID tags, totaling 80 items. Two readers are used to read the tags in the experiment, and each reader is equipped with two antennas. Four antennas are used to read the tags on each shelf.
[0050] The experiment recruited 8 volunteers to simulate the customer behavior in the store, and used cameras in the room to record the volunteers' real behavior. The volunteers interacted with the goods through their hands wearing watches, and could only pick up and put down one item at a time. The experiment constructed three sets of data sets for volunteers to interact with goods: (1) There was only one volunteer in the experimental scene, and the volunteer was required to perform a complete interaction with all the goods, including picking up, viewing, and putting them back. Users can use different methods when picking up and putting down goods, such as putting down a product without retracting their hands and directly picking up the next product. (2) There were two volunteers in the experimental scene, one of whom was interacting with the product while the other was walking around or interacting with another product. This dataset can evaluate the anti-interference ability of the method and the ability of action sequence matching to distinguish different "user-product" interaction behaviors. (3) There were 2, 4, and 6 volunteers in the experimental scene, half of whom wore watches and the other half did not. Volunteers randomly picked up and put down goods on the shelf. This dataset is designed to test the performance of the method in real scenes. Due to the small experimental space, there were only 6 volunteers in the experimental scene at most. To generate more movement behavior, volunteers tried to move around the entire room instead of just between a few shelves.
[0051] After detecting candidate gestures and candidate labels, this method will further associate customers with products through motion state sequence matching. The performance of this method is expressed in terms of recall and precision. Recall refers to the proportion of real "customer-product" interaction events detected by this method, while precision refers to the correct proportion of interaction events detected by this method. When there are fewer people in the scene, such as the scene with only two people in Dataset 1 or Dataset 3, this method can very accurately identify the interaction between customers and products (both recall and precision can reach more than 95%). When there are more interference factors in the scene, such as the scene with 6 people in Dataset 2 or Dataset 3, the matching performance of this method will decrease due to the increase in the false alarm rate of candidate labels, but in the scene with 6 people, the recall and precision can still reach more than 85%. In Dataset 2, even if two volunteers pick up and put back two products at the same time, this method can achieve a matching accuracy of 83%. The experimental results fully demonstrate the effectiveness and robustness of this method.
[0052] In some embodiments, the method can be applied to a controller, and the electronic control unit is, for example, an ARM (Advanced RISC Machines) controller, an FPGA (Field Programmable Gate Array) controller, a SoC (System on Chip) controller, a DSP (Digital Signal Processing) controller, or an MCU (Microcontroller Unit) controller, etc. In some embodiments, the method can also be applied to a computer including components such as a memory, a storage controller, one or more processing units (CPUs), a peripheral interface, an RF circuit, an audio circuit, a speaker, a microphone, an input / output (I / O) subsystem, a display screen, other output or control devices, and an external port; the computer includes but is not limited to personal computers such as desktop computers, laptop computers, tablet computers, smart phones, smart TVs, and personal digital assistants (PDAs). In other embodiments, the method can also be applied to a server, which can be arranged on one or more physical servers according to various factors such as function and load, or can be composed of distributed or centralized server clusters.
[0053] Embodiment 2
[0054] like Figure 2As shown, this embodiment proposes a flow chart of another offline customer behavior recognition method, wherein the smart watch detects the customer's walking, and recognizes the candidate gesture when the customer is detected to be in a non-walking state; the RFID tag is set on the product, and the candidate tag is selected by reading the tag signal (same as the recognition of the candidate product in the previous text); a motion sequence is constructed based on the candidate gesture and the candidate tag, and the constructed motion sequence is matched to obtain the matching result of the customer (User) and the product (item). The above method flow of this embodiment is similar to that of the first embodiment, so it will not be repeated here.
[0055] In a preferred implementation of this embodiment, the offline customer behavior identification method further includes: obtaining the matching result of the customer and the product in real time by identifying whether the customer and the product perform preset actions synchronously. Since the action sequence matching needs to give a result only after the interactive behavior is completed, it is impossible to associate the two together in real time when the customer views the product. In order to enable customers to obtain more comprehensive information about the product, such as discounts, comments, etc., in real time, this embodiment proposes a real-time matching method based on identifying whether the customer and the product perform a shake gesture synchronously, that is, when viewing the product, the customer can shake the product a few times, and the customer and the product can be matched by detecting the synchronization of the movement of the wearable electronic device and the RFID tag in this process. This implementation can be illustrated as follows (taking a smart watch as an example):
[0056] Step S21. Detect the customer's shake gesture through the watch. The customer shakes the product with a waving gesture to a preset frequency. The shaking gesture is similar to a swinging motion, so it can be detected by the number of turning points and the periodicity of the signal within a certain period of time. When the watch swings to the turning point, its angular velocity is 0, but due to the influence of noise, as well as the diversity of shaking gestures and products, the zero-crossing point of the angular velocity does not necessarily correspond to the turning point. Preferably, it is set that only when the maximum or minimum value of the signal between the two zero-crossing points in the angular velocity signal is greater than a threshold value, the two zero-crossing points are considered to correspond to the turning point of the watch. At the same time, the periodicity of the signal is detected by Fourier transform. When the number of turning points of the angular velocity signal on one axis of the watch within 5 seconds is greater than 5 and the maximum value of the spectrum diagram after Fourier transform is also greater than a threshold value, it is judged that the customer has performed a shake gesture, and the data between the first turning point and the last turning point is used as the signal corresponding to the gesture.
[0057] Step S22. The products corresponding to the tags whose phase changes exceed a certain threshold in the time period corresponding to the detected shake gesture are selected as candidate products, and the corresponding signal change characteristics are detected. The phase of the tag signal represents the change in the distance from the tag to the reader antenna, so the phase difference can be used to represent the change in speed. The same method as the watch is used to detect whether the product has a shake gesture and extract the corresponding data.
[0058] Step S23. Matching is completed by performing synchronization detection on the customer and the product that have detected the shake gesture. Specifically, the synchronization is measured by two indicators: one is the time overlap between the customer and the product when the shake gesture occurs; the other is the maximum energy frequency difference of the signal data corresponding to the shake gesture between the customer and the product. Since the first and last turning points are actually the end and start times of the action, in order to reduce the estimated time error, preferably, the time overlap is calculated based on the time interval between the second and the second to last turning points. When calculating the signal frequency of the watch, the data of the axis with the largest angular velocity vibration amplitude is selected.
[0059] Furthermore, the customer behavior recognition method based on shake gesture matching was evaluated through a laboratory environment experiment simulating a physical store (other laboratory conditions were the same as in Example 1): when collecting data, there were 6 volunteers in each experimental scene at the same time, 3 of whom wore watches. In order to generate more gesture data, the experiment required each volunteer to perform a shake gesture once in every two interactions. The collected data and the data sets of the three groups of interaction behaviors in Example 1 were mixed together for testing. The experimental results show that the average recall rate and precision rate of the shake gesture matching method are as high as 97.1% and 97.4%, respectively.
[0060] It is worth mentioning that the real-time and high accuracy of shake gesture matching enables it to add many new functions to the corresponding system. For example, after the customer performs the shake gesture, the system will associate the watch and the product in real time, and display three options on the watch screen for the customer to choose: view, collect, and buy; view means viewing more product information in real time including discounts, comments, etc.; collect means adding the product to your favorites list. When the customer finds that the product he has just put back on the shelf has not been added to the shopping log, he can add it by shaking the gesture; buy means adding the product to the shopping cart for automatic payment.
[0061] Embodiment 3
[0062] like Figure 3As shown, this embodiment proposes a structural schematic diagram of a customer behavior recognition system, which includes: a motion state judgment module 31, used to collect the customer's motion state data and judge the customer's motion state, including a walking state and a non-walking state; a candidate gesture recognition module 32, used to collect the customer's hand movement data and identify the candidate gestures for interacting with the goods when the customer's motion state is judged to be a non-walking state; a candidate product recognition module 33, used to collect the product action data at the corresponding time of the candidate gestures, and identify the candidate products for interacting with the customer; an action sequence construction module 34, based on the hand action data between adjacent candidate gestures and the product action data of the candidate products at the corresponding time, respectively constructs a hand action sequence and a product action sequence; a matching module 35, based on the similarity between the hand action sequence and the product action sequence, obtains the matching result between the customer and the product.
[0063] It should be noted that the modules provided in this embodiment are similar to the methods and implementations provided above, so they will not be described in detail. It should also be noted that it should be understood that the division of the modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into a physical entity, or physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the matching module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0064] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0065] Embodiment 4
[0066] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the offline customer behavior identification method as described above is implemented.
[0067] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to the computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
[0068] Embodiment 5
[0069] like Figure 4 As shown, an embodiment of the present invention provides a structural schematic diagram of an electronic terminal. The electronic terminal provided in this embodiment includes: a processor 41, a memory 42, and a communicator 43; the memory 42 is connected to the processor 41 and the communicator 43 through a system bus and completes communication between them, the memory 42 is used to store computer programs, the communicator 43 is used to communicate with other devices, and the processor 41 is used to run computer programs, so that the electronic terminal executes each step of the above offline customer behavior recognition method.
[0070] The system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.
[0071] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0072] In summary, the present invention provides an offline customer behavior recognition method, system, storage medium and terminal, which can simultaneously identify customers, commodities interacting with customers, and the interactive behaviors between customers and commodities; track the customer's actions through the wearable electronic device on the customer's hand, detect the commodity action by RFID, and perform similarity matching between the customer's action and the commodity action, so as to obtain accurate shopping information of the customer, which is not only convenient for merchants to provide personalized services to customers, but also convenient for customers to establish their own offline shopping logs, obtain commodity-related information in real time, check out quickly, etc., which is conducive to improving the shopping experience of offline customers. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has a high industrial utilization value.
[0073] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An offline customer behavior identification method, characterized in that: include: Collect the customer's motion state data and determine the customer's motion state, including walking state and non-walking state; When it is determined that the customer's motion state is not a walking state, the customer's hand motion data is collected and candidate gestures for interacting with the product are identified; Collecting the commodity action data at the time corresponding to the candidate gesture, and identifying the candidate commodity with which the customer interacts; Based on the hand motion data between the adjacent candidate gestures and the commodity motion data of the candidate commodities at the corresponding time, constructing a hand motion sequence and a commodity motion sequence respectively; Based on the similarity between the hand motion sequence and the product motion sequence, obtaining a matching result between the customer and the product; The customer's motion state data and hand motion data are collected through a wearable device; the commodity motion data is collected through an RFID system; By identifying whether the customer and the product have synchronously performed a preset action, the matching result between the customer and the product is obtained in real time; The preset action includes a shake gesture; The real-time acquisition method of the matching result between the customer and the product includes: Acquire hand return frequency information based on the hand motion data, and acquire the period of the hand motion data based on Fourier transform, so as to identify whether the customer has performed the shake gesture; In the case of identifying that the customer has made a shake gesture, determining whether the product has made the shake gesture based on the product action data within a corresponding time; Based on the time overlap between the hand motion data and the product motion data and the corresponding signal maximum energy frequency difference, the synchronization of the shake gesture is determined to match the corresponding customer and product in real time.
2. The offline customer behavior identification method according to claim 1, characterized in that: The method of obtaining the candidate gestures includes: The customer's elbow is taken as the origin of the world coordinate system, and the displacement of the customer's hand relative to the elbow is calculated based on quaternions; when the displacement reaches a preset value, it is determined that the customer has an interaction with the product, and the candidate gesture is obtained.
3. The offline customer behavior identification method according to claim 1, characterized in that: The hand motion data includes acceleration data; and the hand motion sequence is constructed in a manner including: Splitting the component of each coordinate axis of the acceleration data into data of a plurality of time windows; Calculate the entropy value of each time window, and compare it with a preset threshold to determine the hand movement of each window, including the hand movement state and the hand still state; The hand motion state and the hand static state are represented in a binary manner to construct the hand action sequence.
4. The offline customer behavior identification method according to claim 1, characterized in that: The method for judging the motion state of the customer includes: Obtain the customer's motion status data, including gravity acceleration data and horizontal acceleration data; The gravity acceleration data and the horizontal acceleration data are divided into data of a plurality of time windows, and the time domain eigenvalue and the frequency domain eigenvalue of each window are calculated; A decision tree is constructed based on the time domain eigenvalues and the frequency domain eigenvalues to judge the motion state of the customer.
5. A customer behavior recognition system, characterized in that: include: A motion state judgment module, used to collect motion state data of the customer and judge the motion state of the customer, including walking state and non-walking state; A candidate gesture recognition module is used to collect the customer's hand motion data and identify candidate gestures for interacting with the product when the customer's motion state is determined to be a non-walking state; A candidate commodity identification module is used to collect commodity action data corresponding to the time of the candidate gesture and identify the candidate commodity with which the customer interacts; An action sequence construction module, which constructs a hand action sequence and a product action sequence respectively based on the hand action data between the adjacent candidate gestures and the product action data of the candidate products at the corresponding time; A matching module, based on the similarity between the hand motion sequence and the product motion sequence, obtains a matching result between the customer and the product; The customer's motion state data and hand motion data are collected through a wearable device; the commodity motion data is collected through an RFID system; By identifying whether the customer and the product have synchronously performed a preset action, the matching result between the customer and the product is obtained in real time; The preset action includes a shake gesture; The real-time acquisition method of the matching result between the customer and the product includes: Acquire hand return frequency information based on the hand motion data, and acquire the period of the hand motion data based on Fourier transform, so as to identify whether the customer has performed the shake gesture; In the case of identifying that the customer has made a shake gesture, determining whether the product has made the shake gesture based on the product action data within a corresponding time; Based on the time overlap between the hand motion data and the product motion data and the corresponding signal maximum energy frequency difference, the synchronization of the shake gesture is determined to match the corresponding customer and product in real time.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the offline customer behavior identification method according to any one of claims 1 to 4 is implemented.
7. An electronic terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the offline customer behavior identification method according to any one of claims 1 to 4.
