Electronic pet interaction method and device, electronic pet, chip and product

By implementing multiple body parts that support interaction on electronic pets, and using detection units and control units to detect and respond to events, the problem of single and insufficient intelligence of existing electronic pet interaction methods is solved, and a higher level of interactive experience and intelligence is achieved.

CN120103968APending Publication Date: 2025-06-06IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510115978.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-24
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The existing electronic pet interaction methods are relatively single, and the degree of intelligence is insufficient, and it cannot meet the higher-level interaction needs.

Method used

By realizing multiple body parts that support interaction on the electronic pet, the detection unit and the control unit respectively perform action event detection and response event execution in the non-interactive state and the interactive state, so as to realize the interaction between the user and the electronic pet multiple body parts.

Benefits of technology

It improves the diversity and authenticity of electronic pet interaction methods, simulates the real emotional response and behavioral patterns of electronic pets, and improves the intelligence level of electronic pets and user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103968A_ABST
    Figure CN120103968A_ABST
Patent Text Reader

Abstract

The invention provides an electronic pet interaction method and device, an electronic pet, a chip and a product, and is applied to the technical field of artificial intelligence. The electronic pet interaction method comprises the steps that in a non-interaction state, according to a set trigger event, action event detection is carried out on a first body part in a plurality of body parts, and the first body part is a body part which changes in position and / or posture in the non-interaction state; if the trigger event of the first body part is detected, controlling the electronic pet to be switched to an interaction state; in the interaction state, action event detection is carried out on a second body part in the multiple body parts according to a set interaction event, and the second body part is the body part with position change and / or posture change in the interaction state; and if it is detected that the interaction event occurs in the second body part, controlling the electronic pet to execute a response event corresponding to the interaction event. Therefore, the diversity and the intelligent degree of the electronic pet interaction mode are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application is applied to the field of artificial intelligence technology, and in particular relates to an electronic pet interaction method, device, electronic pet, chip and product. Background Art

[0002] With the development of intelligent technology, electronic pets have become a new form of entertainment.

[0003] In the related art, a user can interact with an electronic pet by clicking a certain control on the screen, or by touching a certain fixed area on the screen.

[0004] However, the interaction methods of the above-mentioned electronic pets are relatively simple and their intelligence level is insufficient. Summary of the invention

[0005] In order to solve the above problems, the present application proposes an electronic pet interaction method, device, electronic pet, chip and product, which can improve the diversity and intelligence of electronic pet interaction methods.

[0006] A first aspect of the present application provides an electronic pet interaction method, which is applied to an electronic pet, wherein the electronic pet includes multiple body parts that support interaction, and the working state of the electronic pet includes an interactive state and a non-interactive state. The electronic pet interaction method includes: in the non-interactive state, according to a set trigger event, performing action event detection on a first body part among the multiple body parts, wherein the first body part is a body part whose position and / or posture change occurs in the non-interactive state; if the trigger event is detected to occur in the first body part, controlling the electronic pet to switch from the non-interactive state to the interactive state; in the interactive state, according to a set interactive event, performing action event detection on a second body part among the multiple body parts, wherein the second body part is a body part whose position and / or posture change occurs in the interactive state; if the interactive event is detected to occur in the second body part, controlling the electronic pet to execute a response event corresponding to the interactive event.

[0007] In some embodiments, in the non-interactive state or the interactive state, according to the set action event, the process of detecting action events on a target body part among the multiple body parts includes: acquiring monitoring data of the target body part in the current time period; performing action analysis on the target body part according to data changes of the monitoring data to obtain an action analysis result, wherein the action analysis result indicates multiple actions of the target body part driven by an external force in chronological order; according to the set action event, performing action event recognition on the action analysis result to determine whether the set action event occurs in the target body part; wherein, in the non-interactive state, the target body part is the first body part, and the set action event is the trigger event; wherein, in the interactive state, the target body part is the second body part, and the set action event is the interactive event.

[0008] In some embodiments, the motion analysis of the target body part is performed according to the data changes of the monitoring data to obtain the motion analysis result, including: dividing the current time period into multiple time slices according to the data changes of the monitoring data, and determining the motion of the target body part in the multiple time slices; determining the indication values ​​of the motions in the multiple time slices according to the identification values ​​of the multiple motions of the target body part, the motions in the multiple time slices, and whether the motions in the multiple time slices are driven by control instructions, the indication values ​​of the motions in the multiple time slices indicate the motions of the target body part driven by external force in the multiple time slices; and combining the indication values ​​of the motions in the multiple time slices in chronological order to obtain the motion analysis result.

[0009] In some embodiments, the indication value of the action of the i-th time slice among the multiple time slices is determined by the following process: if the action of the i-th time slice is a stationary type action or the action of the i-th time slice occurs under the drive of a control instruction, then the indication value of the action of the i-th time slice is determined to be a first numerical value; if the action of the i-th time slice is a non-stationary type action and the action of the i-th time slice does not occur under the drive of a control instruction, then the indication value of the action of the i-th time slice is determined to be the identification value of the action of the i-th time slice.

[0010] In some embodiments, the action analysis result is subjected to action event recognition based on the set action event to determine whether the set action event occurs in the target body part, including: determining whether the set action event occurs in the target body part by matching the set action event with an action event consisting of multiple consecutive actions in the action analysis result.

[0011] In some embodiments, the method of determining whether the set action event occurs in the target body part by matching the set action event with an action event consisting of multiple consecutive actions in the action analysis result includes: sliding a time sliding window in the action analysis result, matching the set action event with an action event consisting of multiple actions within the time sliding window, and determining whether the set action event occurs in the target body part.

[0012] According to a second aspect of the present application, there is provided an electronic pet interactive device, which is applied to an electronic pet. The electronic pet includes a plurality of body parts that support interaction. The working state of the electronic pet includes an interactive state and a non-interactive state. The electronic pet interactive device includes: a detection unit, which is used to detect an action event on a first body part among the plurality of body parts according to a set trigger event in the non-interactive state, wherein the first body part is a body part that undergoes a position change and / or a posture change in the non-interactive state; a control unit, which is used to control the electronic pet to switch from the non-interactive state to the interactive state if the trigger event is detected in the first body part; the detection unit is also used to detect an action event on a second body part among the plurality of body parts according to a set interactive event in the interactive state, wherein the second body part is a body part that undergoes a position change and / or a posture change in the interactive state; and the control unit is also used to control the electronic pet to execute a response event corresponding to the interactive event if the interactive event is detected in the second body part.

[0013] The third aspect of the present application provides an electronic pet, comprising a memory and a processor; the memory is connected to the processor and is used to store programs; the processor is used to implement the electronic pet interaction method as described in the first aspect or any embodiment of the first aspect by running the program in the memory.

[0014] The fourth aspect of the present application provides a chip, including a processor and a data interface, wherein the processor reads and runs a program stored in a memory through the data interface to execute the electronic pet interaction method as described in the first aspect or any embodiment of the first aspect.

[0015] A fifth aspect of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the electronic pet interaction method as described in the first aspect or any embodiment of the first aspect.

[0016] In a sixth aspect, the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the electronic pet interaction method as described in the first aspect or any embodiment of the first aspect is implemented.

[0017] According to the electronic pet interaction method, device, electronic pet, chip and product proposed in the present application, in the non-interactive state, if a set trigger event is detected in the first body part of the electronic pet, the electronic pet is controlled to switch from the non-interactive state to the interactive state; in the interactive state, if a set interactive event is detected in the second body part of the electronic pet, the electronic pet is controlled to execute a response event corresponding to the interactive event. Thus, the user can interact with multiple body parts that the electronic pet supports interaction. The body part interaction method can improve the diversity and authenticity of the electronic pet interaction method, simulate the real emotional response and behavior pattern of the electronic pet, improve the intelligence of the electronic pet, and improve the user's experience of interacting with the electronic pet. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0019] Figure 1 A schematic diagram of an implementation environment involved in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of a flow chart of an electronic pet interaction method provided according to an embodiment of the present application;

[0021] Figure 3 This is an example diagram of an interaction of an ear-triggering event of an electronic pet provided in an embodiment of the present application;

[0022] Figure 4 This is an example diagram of the interaction of a handshake triggering event of an electronic pet provided according to an embodiment of the present application;

[0023] Figure 5 This is an example diagram of an interaction of an electronic pet's pick-up triggering event provided in accordance with an embodiment of the present application;

[0024] Figure 6 A schematic diagram of a process of detecting an action event on a target body part of an electronic pet in an electronic pet interaction method according to an embodiment of the present application;

[0025] Figure 7It is a structural schematic diagram of an electronic pet interaction device provided according to an embodiment of the present application;

[0026] Figure 8 It is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] In the related art, there are several interactive modes of electronic pets:

[0029] Interaction mode 1: The user clicks a certain control on the display screen to trigger the electronic pet to perform a response action, or the user touches a fixed area on the display screen, and the electronic pet responds to the user's touch area, or the user interacts with the electronic pet through simple voice interaction. However, this interaction mode is relatively simple, with a low degree of intelligence, lacks authenticity and depth, and cannot meet higher-level interaction needs.

[0030] Interaction method 2: The electronic pet is equipped with a central processor, a wireless receiver, multiple accelerometers, and a wireless transmitter, etc., and uses the sensor data of multiple accelerations to control the electronic pet. However, this interaction method increases the hardware cost of the electronic pet.

[0031] Interaction method three: Based on the user's real-time EEG signal, send movement instructions to the electronic pet to achieve interaction between the user and the electronic pet, which increases the fun and scientific nature of the interaction between the electronic pet; or, combine artificial intelligence technologies such as voice recognition and facial recognition to recognize the user's voice, expression and other information, and send movement instructions to the electronic pet based on the recognition results to achieve interaction between the user and the electronic pet. However, on the one hand, these technologies are not yet mature, resulting in the electronic pet's interactive operation not being smooth and natural, and may also bring risks to the user's privacy and data security; on the other hand, the use of these technologies increases the cost of electronic pets and limits the popularity of electronic pets.

[0032] The embodiment of the present application proposes an electronic pet interaction method, device, electronic pet, chip and product. In the non-interactive state and the interactive state, based on the set event, the body parts of the electronic pet are detected for action events. When the set event of the electronic pet is detected, the electronic pet is controlled to respond interactively. In this way, the user can interact with multiple body parts of the electronic pet, improve the diversity and authenticity of the electronic pet interaction mode, simulate the real emotional response and behavior pattern of the electronic pet, improve the intelligence of the electronic pet, and improve the interactive experience; the interaction between the user and the electronic pet is realized based on the hardware resources of the electronic pet body, without adding additional equipment, and reducing the interaction cost of the electronic pet.

[0033] Exemplary Implementation Environment

[0034] Please refer to Figure 1 , Figure 1 Schematic diagram of an implementation environment according to an embodiment of the present application. The implementation environment of the present application includes an electronic pet 10, and the electronic pet 10 includes multiple body parts. Figure 1 For example, the plurality of body parts include ears 11, arms 12, and torso 13. The user may interact with at least one of the plurality of body parts.

[0035] Exemplary Methods

[0036] See also Figure 2 In an exemplary embodiment, an electronic pet interaction method is provided, the electronic pet interaction method comprising:

[0037] S201, in a non-interactive state, according to a set trigger event, performing motion event detection on a first body part of a plurality of body parts of the electronic pet that support interaction, wherein the first body part is a body part that undergoes position change and / or posture change in the non-interactive state.

[0038] Among them, the non-interactive state refers to the state in which the electronic pet does not interact with the user. After the user performs an action, the electronic pet may not feedback the response action corresponding to the action. For example, in the non-interactive state, the user greets the electronic pet, and the electronic pet will not perform the corresponding greeting action.

[0039] The electronic pet includes a plurality of body parts supporting interaction, and the first body part is at least one body part among the plurality of body parts that undergoes a position change and / or a posture change in a non-interactive state.

[0040] In one example, the plurality of body parts include ears (which may include left ears and / or right ears), arms (which may include left arms and / or right arms), and a torso.

[0041] The multiple interactive body parts of the electronic pet are determined according to the specific design of the electronic pet. For example, if the electronic pet is a mechanical dog, mechanical cat or other animal type, the multiple interactive body parts of the electronic pet may include ears, forelimbs (i.e. arms), hind limbs, tail, etc.

[0042] Among them, one or more trigger events are set in advance.

[0043] A trigger event is an action event used to trigger the electronic pet to switch from a non-interactive state to an interactive state. The action event includes one or more actions. The user triggers the electronic pet to switch to an interactive state by performing a trigger event on a body part of the electronic pet. It is understandable that the trigger event can be a wake-up event to wake up the electronic pet for interaction.

[0044] In this embodiment, in a non-interactive state, multiple body parts are monitored, and if there is a first body part among the multiple body parts (i.e., there is at least one body part that undergoes a position change and / or a posture change), then according to a set trigger event, an action event detection is performed on the first body part to determine whether a trigger event occurs in the first body part under the drive of an external force. If a trigger event occurs in the first body part under the drive of an external force, S202 is executed.

[0045] In one example, multiple body parts can share the same trigger event, that is, the user can trigger the electronic pet to switch from a non-interactive state to an interactive state by executing the same trigger event on multiple body parts.

[0046] In another example, for multiple body parts that the electronic pet supports interaction, the corresponding relationship between the multiple body parts and multiple triggering events can be set in advance. In this corresponding relationship, one body part can correspond to one or more triggering events.

[0047] In a possible implementation, S201 may include: in a non-interactive state, according to the correspondence between multiple body parts and multiple trigger events, obtaining a trigger event corresponding to a first body part from the set trigger events; and performing motion event detection on the first body part according to the trigger event corresponding to the first body part. Thus, by setting trigger events for each body part in a targeted manner, the rationality and diversity of the trigger events are improved, so that the user can more conveniently and flexibly use different methods to trigger the electronic pet to switch from a non-interactive state to an interactive state.

[0048] In a possible implementation, in the process of detecting an action event on a first body part according to a set trigger event, the action of the first body part driven by an external force can be detected, and by matching the action of the first body part driven by an external force with the action included in the set trigger event (or the trigger event corresponding to the first body part), it is determined whether the first body part has a trigger event driven by an external force. Thus, the accuracy of detecting an action event on the first body part is improved by action matching.

[0049] S202: If a trigger event is detected at the first body part, the electronic pet is controlled to switch from a non-interactive state to an interactive state.

[0050] The interactive state refers to the state of interaction between the electronic pet and the user, such as a dialogue state (or a chat state), an interactive game state, and the like.

[0051] In the case where multiple triggering events are set, detecting that a triggering event occurs in the first body part refers to detecting that at least one of the triggering events occurs in the first body part.

[0052] In this embodiment, detecting a trigger event at the first body part indicates receiving a state switching instruction input by the user through interaction with the first body part. Therefore, when detecting a trigger event at the first body part, the electronic pet can be controlled to switch from a non-interactive state to an interactive state so as to interact with the user in the interactive state.

[0053] S203, in the interactive state, according to the set interactive event, performing action event detection on a second body part among the multiple body parts, the second body part being a body part that undergoes position change and / or posture change in the interactive state.

[0054] Among them, one or more interactive events can be set in advance, and the interactive event is an action event used to interact with the electronic pet (such as chatting, playing games).

[0055] The interaction event and the trigger event may be the same or different action events.

[0056] In one example, the trigger event is one of the interaction events.

[0057] For example, interaction events include handshake, clapping, etc., and the triggering event may be a handshake.

[0058] The second body part is at least one body part among the multiple body parts that undergoes a position change and / or a posture change in the interactive state.

[0059] In this embodiment, in the interactive state, multiple body parts are monitored, and if there is a second body part among the multiple body parts (i.e., there is at least one body part that undergoes a position change and / or a posture change), then according to the set interactive event, an action event detection is performed on the second body part to determine whether an interactive event occurs in the second body part under the drive of an external force. If an interactive event occurs in the first body part under the drive of an external force, S204 is executed.

[0060] In one example, multiple body parts can share the same interactive event, that is, the user can trigger the electronic pet to execute the same or different response events by performing the same interactive event on multiple body parts.

[0061] In another example, for multiple body parts of the electronic pet that support interaction, the corresponding relationship between the multiple body parts and multiple interaction events can be set in advance. In this corresponding relationship, one body part can correspond to one or more interaction events.

[0062] In a possible implementation, S203 may include: in the interactive state, obtaining an interactive event corresponding to the second body part from the set interactive events, and performing motion event detection on the second body part among the multiple body parts according to the interactive event corresponding to the second body part. Thus, by setting interactive events for each body part in a targeted manner, the rationality and diversity of the interactive events are improved, so that the user can more conveniently and flexibly interact with the electronic pet in multiple ways.

[0063] In a possible implementation, in the process of detecting an action event for a second body part among multiple body parts according to a set interaction event, the action of the second body part driven by an external force can be detected, and by matching the action of the second body part driven by an external force with the action included in the set interaction event, it is determined whether the interaction event occurs in the second body part driven by an external force. Thus, the accuracy of detecting an action event for the second body part is improved by action matching.

[0064] S204: If an interaction event is detected at the second body part, the electronic pet is controlled to execute a response event corresponding to the interaction event.

[0065] In the case where multiple interaction events are set, detecting that an interaction event occurs in the second body part refers to detecting that at least one of the interaction events occurs in the first body part.

[0066] The response event may include one or more actions.

[0067] In this embodiment, the detection of an interaction event occurring in the second body part indicates that an interaction instruction input by the user through interaction with the second body part is received. Therefore, when the interaction event occurring in the second body part is detected, a response event corresponding to the interaction event occurring in the second body part can be determined, and the electronic pet can be controlled to execute the response event.

[0068] In the embodiment of the present application, by performing different action event detection on the body parts of the electronic pet in different states, the interaction between the user and multiple body parts of the electronic pet is realized, the diversity and authenticity of the electronic pet's interaction methods are improved, the real emotional reactions and behavior patterns of the electronic pet can be simulated, the intelligence level of the electronic pet is improved, and the interactive experience is improved; the interaction between the user and the electronic pet is realized based on the hardware resources of the electronic pet itself, without the need to add additional equipment, thereby reducing the interaction cost of the electronic pet.

[0069] In one example, the first body part is an ear (may include a left ear and / or a right ear), and the set trigger event is an ear-dialing trigger event.

[0070] like Figure 3 As shown, in the ear-twisting trigger event, the right ear of the electronic pet moves forward ( Figure 3 In the direction of the arrow 1), and then backward ( Figure 3 Alternatively, in the ear-twisting trigger event, the right ear of the electronic pet moves backward and then forward under the action of an external force (ie, being twisted by the user).

[0071] In another example, the first body part is an arm (may include a left arm and / or a right arm), and the set trigger event is a handshake trigger event.

[0072] like Figure 4 As shown, in the handshake trigger event, the left arm of the electronic pet is first moved upward ( Figure 4 Arrow direction 1), then downward ( Figure 4 2) and finally upwards ( Figure 4 Action in the direction of the arrow 3).

[0073] In another example, the first body part is a torso, and the set trigger event is a lifting trigger event.

[0074] like Figure 5 As shown, in the pick-up trigger event, the entire electronic pet (including the entire trunk) completes the upward movement ( Figure 5 Action in the direction of the arrow 1).

[0075] In one example, the second body part is an ear (may include a left ear and / or a right ear), and the set interactive events may include at least one of the following: raising the left ear forward, raising the left ear backward, resetting the left ear, shaking the left ear, raising the right ear forward, raising the right ear backward, resetting the right ear, shaking the right ear, raising both ears forward synchronously, raising both ears synchronously backward, resetting both ears synchronously, crossing and swinging both ears, and swinging both ears synchronously.

[0076] In another example, the second body part is an arm (may include the left arm and / or the right arm), and the set interactive events may include at least one of the following: left arm raising, left arm lowering, left arm shaking hands, right arm raising, right arm lowering, right arm shaking hands, both arms raising at the same time, both arms lowering at the same time, cross-swinging of both arms, and synchronous swinging of both arms.

[0077] In another example, the second body part is the torso, and the set interactive events may include at least one of the following: the electronic pet falls over, the electronic pet tilts left and right, the electronic pet pitches forward and backward, the electronic pet shakes, the electronic pet is picked up, and the electronic pet is put down.

[0078] See also Figure 6 In another exemplary embodiment, performing motion event detection on a target body part of an electronic pet in an electronic pet interaction method may include:

[0079] S601, obtaining monitoring data of a target body part of the electronic pet in a current time period.

[0080] Wherein, in the non-interactive state, the target body part is the first body part; in the interactive state, the target body part is the second body part. The non-interactive state, the first body part, the interactive state and the second body part can refer to the description of the above embodiment and will not be repeated here.

[0081] The current time period refers to the time period from the time point when the position or posture of the target body part changes to the current time point.

[0082] The detection data of the target body part in the current time period is data related to the position and / or posture of the target body part in the current time period.

[0083] In this embodiment, the detection data of the target body part at the current time can be obtained by acquiring the output data of the components related to the position and / or posture of the target body part. The output data of the components related to the position and / or posture of the target body part is affected by the change of the position and / or posture of the target body part, and the data will change with the change of the position and / or posture of the target body part.

[0084] In one example, the target body part is the ear, and the monitoring data of the target body part in the current time period may include the resistance data of the potentiometer in the ear. As the posture and / or position of the ear changes, the resistance data of the potentiometer in the ear will also change.

[0085] In another example, the target body part is an arm, and the monitoring data of the target body part in the current time period may include position data of a motor in the arm. An encoder (such as a magnetic encoder) may be connected to the output shaft of the motor, and the output data of the encoder is the position data of the motor.

[0086] In another example, the target body part is a torso, and the monitoring data of the target body part in the current time period may include measurement data of an inertial measurement unit (IMU) in the torso. The measurement data of the IMU may include three-axis acceleration data and / or three-axis angular velocity data. Changes in the three-axis acceleration data and / or changes in the three-axis angular velocity data of the torso may reflect changes in position and / or posture of the torso.

[0087] S602, performing motion analysis on the target body part according to data changes of the monitoring data to obtain a motion analysis result, wherein the motion analysis result indicates a plurality of motions of the target body part driven by an external force in chronological order.

[0088] In this embodiment, the data changes in the monitoring data reflect the position changes and / or posture changes of the target body part. The position changes and / or posture changes of the target body part are caused by the movements of the target body part. Therefore, the data changes in the monitoring data can be analyzed with reference to the relationship between the movements of the target body part and the changes in the monitoring data, and multiple movements of the target body part driven by external force in the current time period can be determined in chronological order to obtain the movement analysis results.

[0089] In an example, Figure 6 As shown, S602 includes S6021 to S6023:

[0090] S6021, dividing the current time period into multiple time slices according to the data changes of the monitoring data, and determining the movement of the target body part within the multiple time slices.

[0091] In this example, the current time period can be divided according to the time point at which the monitoring data changes in the current time period to obtain multiple time slices contained in the current time period, so as to improve the rationality and accuracy of the time slice division. For example, if the data changes at the 10th second and the detection data changes from 0 to 1, then a division can be performed at the 10th second or the 9th second.

[0092] Afterwards, for each of the multiple time slices, the action corresponding to the monitoring data in the time slice can be determined based on the correspondence between the monitoring data of the target body part and the action of the target body part, that is, the action occurring in the target body part in the time slice can be determined, and finally the action occurring in the target body part in multiple time slices can be obtained.

[0093] S6022, determine the indication values ​​of the actions in multiple time slices based on the identification values ​​of the multiple actions of the target body part, the actions in multiple time slices, and whether the actions in multiple time slices are driven by control instructions, and the indication values ​​of the actions in multiple time slices indicate the actions of the target body part driven by external force in multiple time slices.

[0094] Among the identification values ​​of the various actions, different actions correspond to different identification values.

[0095] In a possible implementation, for each time slice, it can be determined whether the action in the time slice is driven by a control instruction. If the action in the time slice is driven by a control instruction, the identification value of the action in the time slice can be found among the identification values ​​of multiple actions, and the indication value of the action in the time slice can be determined to be the identification value of the action in the time slice. Thus, the identification value of the action is used as the indication value to accurately indicate the action of the target body part driven by an external force in the time slice.

[0096] In another optional implementation, the indication value of the action of the ith time slice among the multiple time slices is determined by the following process: if the action of the ith time slice is a static type action or the action of the ith time slice occurs under the control instruction, the indication value of the action of the ith time slice is determined to be a first value; if the action of the ith time slice is a non-static type action and the action of the ith time slice does not occur under the control instruction, the indication value of the action of the ith time slice is determined to be an identification value of the action of the ith time slice. Thus, by using the same value for the indication value of the action occurring under the control instruction and the indication value of the static type action, the indication value of the action occurring under the control instruction and the static type action are accurately distinguished from the non-static type action, thereby improving the accuracy of indicating the action of the target body part occurring under the external force drive within the time slice through the indication value of the action within the time slice.

[0097] Here, i is greater than or equal to 1.

[0098] S6023, combining the indication values ​​of the actions of the multiple time slices in chronological order to obtain an action analysis result.

[0099] In this example, there is a time sequence between the multiple time slices, so the indication values ​​of the actions of the multiple time slices can be combined according to the time sequence between the multiple time slices to obtain an indication value sequence, which is the action analysis result.

[0100] Therefore, in this example, the action analysis result is obtained by time slicing the current time period and then determining the indication values ​​of the actions of multiple time slices, thereby improving the accuracy of analyzing the actions of the electronic pet in the current time period.

[0101] S603, performing action event recognition on the action analysis result according to the set action event, and determining whether the set action event occurs in the target body part.

[0102] Among them, in the non-interactive state, the set action event is a trigger event; in the interactive state, the set action event is an interactive event.

[0103] In this embodiment, in a non-interactive state, action event recognition is performed on the action analysis results to determine whether there is a set trigger event among the multiple action events formed by the actions of multiple time slices. If there is a set trigger event among the multiple action events formed by the actions of multiple time slices, it is determined that the set trigger event has occurred in the target body part. In an interactive state, action event recognition is performed on the action analysis results to determine whether there is a set interactive event among the multiple action events formed by the actions of multiple time slices. If there is a set interactive event among the multiple action events formed by the actions of multiple time slices, it is determined that the set interactive event has occurred in the target body part.

[0104] In one example, S603 may include: S6031, determining whether the set action event occurs in the target body part by matching the set action event with the action event consisting of multiple consecutive actions in the action analysis result, thereby improving the accuracy of judging whether the set action event occurs.

[0105] In this example, the set action event includes multiple actions arranged in chronological order, and the continuous multiple actions in the action analysis result are also arranged in chronological order, so the multiple actions included in the set action event can be matched with the continuous multiple actions in the action analysis result. If there are continuous multiple actions in the action analysis result that successfully match the multiple actions included in the set action event, it is determined that the action event composed of the continuous multiple actions successfully matches the set action event, and it can be determined that the set action event has occurred in the target body part; if there are no continuous multiple actions in the action analysis result that successfully match the multiple actions included in the set action event, it can be determined that the set action event has not occurred in the target body part.

[0106] In a further example, when the action analysis result includes the indication values ​​of actions for multiple time slices in the current time period, the set action event is matched with the action event consisting of multiple consecutive actions in the action analysis result, that is, the identification value of the action contained in the set action event is matched with the indication value of the action for N consecutive time slices in the action analysis result. If the indication value of the action for N consecutive time slices in the action analysis result successfully matches the identification value of the action contained in the set action event, it can be determined that the set action event has occurred in the target body part, otherwise it can be determined that the set action event has not occurred in the target body part. Thus, the accuracy of judging whether the set action event has occurred in the target body part is improved by numerical matching.

[0107] Among them, N is greater than 1.

[0108] Optionally, in the case where the set action event is a trigger event, if the set number of trigger events is 1, N may use the number of actions included in the trigger event; if the set number of trigger events is greater than 1, N may use the number of actions included in the trigger event with the largest number of actions, or, N may be obtained by averaging the number of actions included in multiple trigger events or by other means; in the case where the set action event is an interaction event, if the set number of interaction events is 1, N may use the number of actions included in the interaction event; if the set number of interaction events is greater than 1, N may use the number of actions included in the interaction event with the largest number of actions, or, N may be obtained by averaging the number of actions included in multiple interaction events or by other means, so as to effectively improve the accuracy of the above matching process by reasonably setting the size of N.

[0109] In a further example, by matching the set action event with the action event consisting of multiple continuous actions in the action analysis result, determining whether the set action event occurs in the target body part includes: sliding the time sliding window in the action analysis result, matching the set action event with the action event consisting of multiple actions located in the time sliding window, and determining whether the set action event occurs in the target body part. Thus, by sliding the time sliding window in the action analysis result, the accuracy of selecting multiple continuous actions in the action analysis result is improved.

[0110] The size of the time sliding window is fixed, so that actions within a continuous and fixed number of time slices can be selected from the action analysis results each time.

[0111] In this example, the action analysis result may include the indication values ​​of the actions of multiple time slices in the current time period, and the time sliding window may slide on the indication values ​​of the actions of the multiple time slices, and may slide one time slice at a time. The identification value of the action included in the set action event may be matched with the indication value of the action of the continuous K time slices in the time sliding window. If the identification value of the action included in the set action event successfully matches the indication value of the action of the continuous K time slices, it is determined that the set action event occurs in the target body part; otherwise, it may be determined whether the time sliding window moves to the last time slice included in the current time period. If the time sliding window moves to the last time slice, it is determined that the set action event does not occur in the target body part. If the time sliding window does not move to the last time slice, the time sliding window may slide back one time slice on the time axis for the next match. Thus, by sliding the time sliding window in the action analysis result, the accuracy of selecting multiple continuous actions in the action analysis result is improved, and the accuracy of determining whether the set action event occurs in the target body part is improved.

[0112] Where K is the size of the time sliding window.

[0113] Optionally, in the case where the set action event is a trigger event, if the set number of trigger events is 1, K may use the number of actions contained in the trigger event; if the set number of trigger events is greater than 1, K may use the number of actions contained in the trigger event with the largest number of actions, or, K may be obtained by averaging the number of actions contained in multiple trigger events or by other means; in the case where the set action event is an interaction event, if the set number of interaction events is 1, K may use the number of actions contained in the interaction event; if the set number of interaction events is greater than 1, K may use the number of actions contained in the interaction event with the largest number of actions, or, K may be obtained by averaging the number of actions contained in multiple interaction events or by other means, so as to effectively improve the accuracy of the above matching process by reasonably setting the size of K.

[0114] Regarding the action analysis results and the time sliding window, combined with Table 1, the following examples are provided:

[0115] The current time period includes multiple time slices, each of which corresponds to an indication value, which is related to the action of the electronic pet in the time slice. When the arm of the electronic pet responds to the drive of the control instruction to move in the time slice, no matter how the monitoring data changes, the indication value of the action in the time slice is uniformly filled with the first value; when the arm of the electronic pet is stationary in the time slice, the monitoring data remains unchanged, and the indication value of the action in the time slice is filled with the first value.

[0116] For example, in Table 1, the first value is 0, and the indication values ​​in the first three time slices are all 0.

[0117] When the electronic pet's arm is driven by an external force to perform a positive rotation (i.e., forward rotation) within a time slice, or, when the electronic pet's arm is driven by an external force to first rotate negatively (i.e., backward rotation) and then rotate positively within a time slice, and the amount of movement of the positive rotation is greater than M times (M is greater than 1) the amount of negative rotation and the amount of movement of the positive rotation is greater than the set first movement threshold, the indication value of the action within the time slice is filled with the second value.

[0118] For example, in Table 1, the second value is 1, and the indication value of the action in some time slices is 1.

[0119] When the electronic pet's arm is driven by an external force to perform a negative rotation within a time slice, or when the electronic pet's arm is driven by an external force to first rotate positively and then rotate negatively within a time slice, and the movement amount of the negative rotation is greater than T times (T is greater than 1) the movement amount of the positive rotation and the movement amount of the negative rotation is greater than the set second movement amount threshold, the indication value of the action within the time slice is filled with a third value.

[0120] For example, in Table 1, the third value is 2, and the indication value of the action in some time slices is 2.

[0121] When the electronic pet's arm is driven by an external force to perform positive and negative rotations within a time slice, and the movement amounts of the positive and negative rotations are both less than or equal to the third movement amount threshold, the fourth value is filled in as the indication value of the action within the time slice. When the electronic pet's arm is driven by an external force to perform positive and negative rotations within a time slice, and the movement amounts of the positive and negative rotations are greater than the third movement amount threshold, and the number of positive and negative rotation actions is greater than J times (J is greater than 1), the fifth value is filled in as the indication value of the action within the time slice.

[0122] For example, in Table 1, the indication value of the action in some time slices is the third value, and the indication value of the action in some time slices is the fifth value.

[0123] By analyzing the detection data of the electronic pet's arm, we can finally get the action analysis results shown in Table 1:

[0124] Table 1

[0125] 0 0 0 1 3 2 0 0 0 4 0 2 3 4 0 0 1 2 1 0 0 0 0 ...

[0126] For Table 1, a time sliding window with a length of 3 time slices can be used. The time sliding window is used to check the change of the indication value of three consecutive time slices each time. After each check is completed, a window is slid right to continue the detection until an identification value matching the identification value of the set action event containing multiple consecutive actions is detected, and it is determined that the electronic pet's arm has undergone the set action event in the current time period. For example, the identification values ​​of the consecutive multiple actions in the set handshake event are 1, 2, 1. When the time sliding window moves to the indication values ​​of 1, 2, 1 for 3 consecutive time slices, it is determined that the electronic pet's arm has undergone a handshake action in the current time period.

[0127] Exemplary Devices

[0128] Correspondingly, an embodiment of the present application further provides an electronic pet interaction device, which is applied to an electronic pet. The electronic pet includes multiple body parts that support interaction, and the working state of the electronic pet includes an interactive state and a non-interactive state.

[0129] See also Figure 7 In an exemplary embodiment, an electronic pet interaction device 700 is provided, and the electronic pet interaction device 700 includes: a detection unit 701, which is used to detect an action event on a first body part among multiple body parts according to a set trigger event in a non-interactive state, and the first body part is a body part that undergoes a position change and / or a posture change in the non-interactive state; a control unit 702, which is used to control the electronic pet to switch from the non-interactive state to the interactive state if a trigger event is detected in the first body part; the detection unit 701 is also used to detect an action event on a second body part among multiple body parts according to a set interactive event in an interactive state, and the second body part is a body part that undergoes a position change and / or a posture change in the interactive state; the control unit 702 is also used to control the electronic pet to execute a response event corresponding to the interactive event if an interactive event is detected in the second body part.

[0130] In some embodiments, the detection unit 701 is specifically used to: obtain monitoring data of the target body part within the current time period; perform motion analysis on the target body part according to data changes of the monitoring data to obtain a motion analysis result, wherein the motion analysis result indicates multiple actions of the target body part driven by an external force in chronological order; perform action event recognition on the action analysis result according to the set action event to determine whether the set action event occurs in the target body part; wherein, in a non-interactive state, the target body part is a first body part, and the set action event is a trigger event; wherein, in an interactive state, the target body part is a second body part, and the set action event is an interactive event.

[0131] In some embodiments, the detection unit 701 is specifically used to: divide the current time period into multiple time slices according to data changes in the monitoring data, and determine the movements of the target body part within the multiple time slices; determine the indication values ​​of the movements of the multiple time slices according to the identification values ​​of the multiple movements of the target body part, the movements within the multiple time slices, and whether the movements within the multiple time slices are driven by control instructions, the indication values ​​of the movements of the multiple time slices indicate the movements of the target body part driven by external forces within the multiple time slices; combine the indication values ​​of the movements of the multiple time slices in chronological order to obtain a movement analysis result.

[0132] In some embodiments, the indication value of the action of the i-th time slice among multiple time slices is determined by the following process: if the action of the i-th time slice is a stationary type action or the action of the i-th time slice occurs under the drive of a control instruction, then the indication value of the action of the i-th time slice is determined to be a first numerical value; if the action of the i-th time slice is a non-stationary type action and the action of the i-th time slice does not occur under the drive of a control instruction, then the indication value of the action of the i-th time slice is determined to be the identification value of the action of the i-th time slice.

[0133] In some embodiments, the detection unit 701 is specifically used to determine whether the set action event occurs in the target body part by matching the set action event with the action event composed of multiple consecutive actions in the action analysis result.

[0134] In some embodiments, the detection unit 701 is specifically used to: slide the time sliding window in the motion analysis results, match the set action event with the action event composed of multiple actions located in the time sliding window, and determine whether the set action event occurs in the target body part.

[0135] The electronic pet interaction device 700 provided in this embodiment belongs to the same application concept as the electronic pet interaction method provided in the above embodiments of this application, can execute the electronic pet interaction method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the electronic pet interaction method. For the technical details not fully described in this embodiment, please refer to the specific processing content of the electronic pet interaction method provided in the above embodiments of this application, and will not be repeated here.

[0136] The functions implemented by the above detection unit 701 and control unit 702 can be implemented by the same or different processors respectively, and the embodiments of the present application are not limited thereto.

[0137] It should be understood that the units in the above devices can be implemented in the form of a processor calling software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or realize the functions of each unit of the device, wherein the processor can be a general-purpose processor, such as a CPU or a microprocessor, etc., and the memory can be a memory in the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all units can be realized by designing the hardware circuits. The hardware circuit can be understood as one or more processors; for example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented by PLD, taking FPGA as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by the configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be implemented in the form of a processor calling software, or in the form of hardware circuits, or in part by a processor calling software, and the remaining part is implemented in the form of hardware circuits.

[0138] In an embodiment of the present application, a processor is a circuit with the ability to process signals. In one implementation, the processor may be a circuit with the ability to read and run instructions, such as a CPU, a microprocessor, a GPU, or a DSP; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, DPU, etc.

[0139] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.

[0140] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a SOC. The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.

[0141] Exemplary Electronic Devices

[0142] Another embodiment of the present application also provides an electronic device, which may be an electronic pet. Figure 8 As shown, the electronic device may include (that is, the electronic pet may include): a memory 800 and a processor 810; wherein the memory 800 is connected to the processor 810 and is used to store programs; the processor 810 is used to implement the electronic pet interaction method disclosed in any of the above embodiments by running the program stored in the memory 800.

[0143] Specifically, the electronic device may further include: a bus, a communication interface 820 , an input device 830 and an output device 840 .

[0144] The processor 810, the memory 800, the communication interface 820, the input device 830 and the output device 840 are connected to each other via a bus.

[0145] A bus may include a pathway that transfers information between components of a computer system.

[0146] The processor 810 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. It may 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.

[0147] The processor 810 may include a main processor, and may also include a baseband chip, a modem, and the like.

[0148] The memory 800 stores a program for executing the technical solution of the present application, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 800 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.

[0149] The input device 830 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.

[0150] Output device 840 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0151] The communication interface 820 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.

[0152] The processor 810 executes the program stored in the memory 800 and calls other devices, which can be used to implement each step of any electronic pet interaction method provided in the above embodiments of the present application.

[0153] An embodiment of the present application also proposes a chip, which includes a processor and a data interface. The processor reads and runs the program stored in the memory through the data interface to execute the electronic pet interaction method introduced in any of the above embodiments. The specific processing process and its beneficial effects can be found in the introduction to the embodiment of the above electronic pet interaction method.

[0154] Exemplary computer program products and storage media

[0155] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the electronic pet interaction method according to various embodiments of the present application described in any of the above-mentioned embodiments of this specification.

[0156] The computer program product may be written in any combination of one or more programming languages ​​to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0157] In addition, the embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the electronic pet interaction method according to various embodiments of the present application described in any of the above embodiments of this specification.

[0158] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0159] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0160] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.

[0161] The modules and sub-modules in the devices and terminals in the various embodiments of the present application can be combined, divided and deleted according to actual needs.

[0162] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0163] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0164] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.

[0165] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0166] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0167] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0168] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for interacting with an electronic pet, characterized in that: Applied to an electronic pet, the electronic pet includes a plurality of body parts supporting interaction, the working state of the electronic pet includes an interactive state and a non-interactive state, and the electronic pet interaction method includes: In the non-interactive state, according to a set trigger event, performing motion event detection on a first body part among the multiple body parts, the first body part being a body part that undergoes a position change and / or a posture change in the non-interactive state; If the trigger event is detected at the first body part, controlling the electronic pet to switch from the non-interactive state to the interactive state; In the interactive state, according to a set interactive event, performing action event detection on a second body part among the multiple body parts, the second body part being a body part that undergoes a position change and / or a posture change in the interactive state; If it is detected that the interaction event occurs in the second body part, the electronic pet is controlled to execute a response event corresponding to the interaction event.

2. The electronic pet interaction method according to claim 1, characterized in that: In the non-interactive state or the interactive state, according to a set action event, a process of detecting an action event on a target body part among the multiple body parts includes: Acquire monitoring data of the target body part in the current time period; Performing motion analysis on the target body part according to data changes of the monitoring data to obtain a motion analysis result, wherein the motion analysis result indicates a plurality of motions of the target body part driven by an external force in chronological order; According to the set action event, performing action event recognition on the action analysis result to determine whether the set action event occurs in the target body part; Wherein, in the non-interactive state, the target body part is the first body part, and the set action event is the trigger event; Wherein, in the interactive state, the target body part is the second body part, and the set action event is the interactive event.

3. The electronic pet interaction method according to claim 2, characterized in that: The step of performing motion analysis on the target body part according to the data change of the monitoring data to obtain the motion analysis result includes: Dividing the current time period into a plurality of time slices according to data changes of the monitoring data, and determining the movement of the target body part within the plurality of time slices; Determine, according to the identification values ​​of the multiple actions of the target body part, the actions in the multiple time slices, and whether the actions in the multiple time slices are driven by control instructions, the indication values ​​of the actions in the multiple time slices indicating the actions of the target body part driven by external force in the multiple time slices; The action analysis result is obtained by combining the action indication values ​​of the multiple time slices in chronological order.

4. The electronic pet interaction method according to claim 3, characterized in that: The indication value of the action of the i-th time slice among the multiple time slices is determined by the following process: If the action of the i-th time slice is a static action or the action of the i-th time slice occurs under the drive of a control instruction, determining that the indication value of the action of the i-th time slice is a first value; If the action of the i-th time slice is a non-stationary type action and the action of the i-th time slice is not driven by a control instruction, the indication value of the action of the i-th time slice is determined to be the identification value of the action of the i-th time slice.

5. The electronic pet interaction method according to claim 2, characterized in that: The step of performing action event recognition on the action analysis result according to the set action event to determine whether the set action event occurs in the target body part includes: By matching the set action event with an action event consisting of a plurality of consecutive actions in the action analysis result, it is determined whether the set action event occurs in the target body part.

6. The electronic pet interaction method according to claim 5, characterized in that: The determining whether the target body part has the set action event by matching the set action event with the action event consisting of a plurality of consecutive actions in the action analysis result includes: The time sliding window is slid in the action analysis result, the set action event is matched with the action event composed of multiple actions located in the time sliding window, and it is determined whether the set action event occurs in the target body part.

7. An electronic pet interactive device, characterized in that: Applied to an electronic pet, the electronic pet includes a plurality of body parts supporting interaction, the working state of the electronic pet includes an interactive state and a non-interactive state, and the electronic pet interaction device includes: a detection unit, configured to perform motion event detection on a first body part among the multiple body parts according to a set trigger event in the non-interactive state, wherein the first body part is a body part whose position and / or posture changes in the non-interactive state; a control unit, configured to control the electronic pet to switch from the non-interactive state to the interactive state if the trigger event is detected at the first body part; The detection unit is further configured to perform action event detection on a second body part among the multiple body parts according to a set interaction event in the interaction state, wherein the second body part is a body part whose position and / or posture changes in the interaction state; The control unit is further configured to control the electronic pet to execute a response event corresponding to the interaction event if it is detected that the interaction event occurs at the second body part.

8. An electronic pet, characterized in that: including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the electronic pet interaction method as described in any one of claims 1 to 6 by running the program in the memory.

9. A chip, characterized in that: It comprises a processor and a data interface, wherein the processor reads and runs a program stored in a memory through the data interface to execute the electronic pet interaction method as claimed in any one of claims 1 to 6.

10. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the electronic pet interaction method as claimed in any one of claims 1 to 6.