Electronic apparatus
The electronic device uses AI chat and emotion engines to recognize user emotions and behaviors, enabling it to perform appropriate actions and support music composition that aligns with user preferences, addressing the limitations of conventional rule-based systems.
Patent Information
- Application Number
- JP2024068378
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-20
- Filing Date
- 2024-04-19
- Publication Date
- 2024-10-31
AI Technical Summary
Conventional technologies lack the ability for robots to perform appropriate actions in response to user reactions, particularly in music composition and interaction, often relying on simple rule-based processes that do not adequately consider user emotions and preferences.
An electronic device, such as a robot, equipped with an AI chat engine and emotion engine, recognizes user emotions and behaviors to determine and perform appropriate actions, including music composition, by analyzing facial images and voice, and updates its behavior rules based on user reactions.
The robot can perform actions that better align with user emotions and preferences, supporting more varied and satisfying music composition and interaction, enhancing user engagement and satisfaction.
Smart Images

Figure 2024155888000001_ABST
Abstract
Description
[Technical field]
[0001] The disclosed embodiments relate to electronic devices. [Background technology]
[0002] Conventionally, a technology for determining an appropriate behavior of a robot for a user's state has been disclosed (for example, see Patent Document 1). Patent Document 1 discloses that a robot recognizes a user's reaction when the robot executes a specific action, and if the robot's action for the recognized user's reaction cannot be determined, the robot updates its action by receiving information about an action appropriate for the recognized user's state from a server. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Patent No. 6053847 Summary of the Invention [Problem to be solved by the invention]
[0004] However, the conventional technology has room for improvement in terms of executing appropriate actions in response to user actions.
[0005] The present invention has been made in view of the above, and has an object to provide an electronic device that can execute appropriate actions. [Means for solving the problem]
[0006] An electronic device according to one aspect of an embodiment includes a control unit that recognizes a composer's emotion, determines a music composition according to the recognized emotion, and creates a piece of music based on the determined music composition. Effect of the Invention
[0007] According to one aspect of the embodiment, appropriate actions may be taken. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a diagram illustrating an example of a control system according to the present embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a schematic functional configuration of the robot. [Diagram 3] FIG. 3 is a diagram illustrating an example of an operational flow relating to an operation for determining an action in a robot. [Figure 4] FIG. 4 is a diagram illustrating an example of a hardware configuration of a computer that functions as a robot and a server. [Diagram 5] FIG. 5 is a diagram showing an emotion map onto which a plurality of emotions are mapped. [Figure 6] FIG. 6 is a diagram showing another example of the emotion map. [Figure 7] FIG. 7 is a diagram illustrating an example of an emotion table. [Figure 8] FIG. 8 is a diagram illustrating an example of an emotion table. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] The present invention will be described below through embodiments, but the following embodiments do not limit the scope of the invention according to the claims. In addition, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.
[0010] Fig. 1 is a diagram illustrating an example of a control system 1 according to the present embodiment. As illustrated in Fig. 1, the control system 1 includes a plurality of robots 100, a linked device 400, and a server 300. Each of the plurality of robots 100 is managed by a user.
[0011] The robot 100 (an example of an electronic device) converses with a user and provides a video to the user. At this time, the robot 100 cooperates with a server 300 or the like with which it can communicate via a communication network 20 to converse with the user and provide the video to the user. For example, the robot 100 not only learns appropriate conversation by itself, but also cooperates with the server 300 to learn so as to be able to have a more appropriate conversation with the user. The robot 100 also causes the server 300 to record captured video data of the user, and requests the server 300 for the video data as necessary to provide it to the user.
[0012] The robot 100 also has an emotion value that indicates the type of its own emotion. For example, the robot 100 has emotion values that indicate the intensity of each of the emotions of "joy", "anger", "sorrow", "pleasure", "discomfort", "relief", "anxiety", "sadness", "excitement", "concern", "relief", "fulfillment", "emptiness", and "neutral". When the robot 100 converses with the user in a state where the emotion value of excitement is high, for example, the robot 100 utters sounds at a fast speed. In this way, the robot 100 can express its own emotions through actions.
[0013] The robot 100 may be configured to determine the behavior of the robot 100 corresponding to the user's emotion by matching an AI (Artificial Intelligence) chat engine with an emotion engine. Specifically, the robot 100 may be configured to recognize the user's behavior, determine the user's emotion toward the user's behavior, and determine the behavior of the robot 100 corresponding to the determined emotion.
[0014] More specifically, when the robot 100 recognizes a user's action, the robot 100 automatically generates action content that the robot 100 should take in response to the user's action using a preset chat engine. The chat engine may be interpreted as an algorithm and calculation for automatic dialogue processing using text. The chat engine is described in, for example, JP 2018-081444 A and chatGPT (Internet search engine).<URL: https: / / openai.com / blog / chatgpt> ), detailed description thereof will be omitted since it is publicly known. Such a chat engine is configured by a large-scale language model (LLM: Large Language Model). As described above, in this embodiment, by combining a large-scale language model with an emotion engine, the emotions of the user and the robot 100 and various linguistic information can be reflected in the behavior of the robot 100. In other words, according to this embodiment, by combining a chat engine with an emotion engine, a synergistic effect can be obtained. Note that the "AI chat engine" is a machine learning model that realizes optimal dialogue according to both its own emotions and the emotions of the user, and therefore can be rephrased as a "sentence generation model" or a "sentence generation model with dialogue function".
[0015] The robot 100 also has a function of recognizing the user's actions. The robot 100 recognizes the user's actions by analyzing the user's face image acquired by the camera function and the user's voice acquired by the microphone function. The robot 100 determines the action to be performed by the robot 100 based on the recognized user's actions, etc.
[0016] The robot 100 stores rules that define actions to be taken by the robot 100 based on the user's emotions, the robot's own emotions, and the user's actions, and performs various actions according to the rules.
[0017] Specifically, the robot 100 has reaction rules for determining the behavior of the robot 100 based on the user's emotions, the robot's emotions, and the user's behavior. For example, the reaction rules define the behavior of the robot 100 as "laughing" when the user's behavior is "laughing". The reaction rules also define the behavior of the robot 100 as "apologizing" when the user's behavior is "getting angry". The reaction rules also define the behavior of the robot 100 as "answering" when the user's behavior is "asking a question". The reaction rules also define the behavior of the robot 100 as "calling out" when the user's behavior is "getting sad".
[0018] When the robot 100 recognizes the user's behavior as "anger" based on the reaction rules, it selects the behavior of "apologizing" defined in the reaction rules as the behavior to be executed by the robot 100. For example, when the robot 100 selects the behavior of "apologizing", it performs the motion of "apologizing" and outputs a voice expressing the word "apologize".
[0019] In addition, it is defined that when the emotion of the robot 100 is "normal" (i.e., "happy" = 0, "anger" = 0, "sad" = 0, and "happy" = 0) and the condition that the user's state is "alone and looks lonely" is satisfied, the emotion of the robot 100 changes to "worried" and the action of "calling out" can be executed.
[0020] When the robot 100 recognizes that the current emotion of the robot 100 is "normal" and that the user is alone and seems lonely based on the reaction rule, the robot 100 increases the emotion value of "sadness" of the robot 100. In addition, the robot 100 selects the action of "calling out" defined in the reaction rule as the action to be performed toward the user. For example, when the robot 100 selects the action of "calling out", the robot 100 converts the phrase "What's wrong?", which indicates concern, into a worried voice and outputs it.
[0021] The robot 100 also transmits user reaction information indicating that this action has elicited a positive reaction from the user to the server 300. The user reaction information includes, for example, the user action of "getting angry," the robot 100 action of "apologizing," the fact that the user reaction was positive, and the user's attributes.
[0022] The server 300 stores the user reaction information received from each robot 100. Then, the server 300 analyzes the user reaction information from each robot 100 and updates the reaction rules.
[0023] The robot 100 receives the updated reaction rules from the server 300 by inquiring about the updated reaction rules from the server 300. The robot 100 incorporates the updated reaction rules into the reaction rules stored in the robot 100. This allows the robot 100 to incorporate reaction rules acquired by other robots 100 into its own reaction rules. When the reaction rules are updated, they may be automatically transmitted from the server 300 to the robot 100.
[0024] The robot 100 can also perform actions in cooperation with the coordinating devices 400. The coordinating devices 400 are, for example, karaoke machines, wine cellars, refrigerators, terminal devices (such as PCs (Personal Computers), smartphones, and tablets), washing machines, automobiles, cameras, toilet equipment, electric toothbrushes, televisions, displays, furniture (such as closets), medicine boxes, musical instruments, lighting equipment, and exercise toys (such as unicycles). These coordinating devices 400 are communicatively connected to the robot 100 via the communication network 20, and transmit and receive information to and from the robot 100. With this configuration, the coordinating devices 400 control themselves and converse with the user according to instructions from the robot 100.
[0025] In the present disclosure, an example will be described in which the robot 100 cooperates with a terminal device that is a cooperative device 400 to execute various actions for a user.
[0026] The robot 100 according to the present disclosure creates music in accordance with the actions, instructions, feelings, etc. of a user who wants to compose a piece of music (also called a "composer") by carrying out a conversation with the user.
[0027] Conventionally, automatic composition software and composition support software that run on a PC have been proposed. In such conventional technology, a chord progression is determined based on information input by a user (e.g., the structure of the song, genre, rhythm, etc.), and a melody is created according to the determined chord progression. However, in such conventional technology, the composition is simply performed according to a rule base and in response to the user's instructions, and there is room for improvement in terms of appropriately supporting songwriting in cooperation with the user.
[0028] Therefore, the robot 100 according to the present disclosure creates a song while talking with the user, and further reads the user's mood and reflects it in the song. For example, the robot 100 recognizes the user's emotions from the user's physical movements, facial expressions, voice (utterances), etc., and determines the composition of the song, which is a constituent element of the song, based on the recognized emotions. Then, the robot 100 creates a song to be proposed to the user based on the determined composition.
[0029] As described above, the robot 100 has emotions (a machine mind). For this reason, the robot 100 creates a piece of music to be proposed to the user according to, for example, information input by the user (for example, the composition of the music, the speed of the music, the length of the music, the genre, the rhythm, etc.) and the user's emotions (mood) as parameters, and according to the robot's own emotions (intentions). Note that the user may input information required for creating a piece of music by speaking through his / her own linked device 400 (terminal device), or may input information required for creating a piece of music manually.
[0030] For example, the robot 100 recognizes the user's emotions by analyzing the user's physical movements, facial expressions, or voice when information is input. Then, the robot 100 determines the composition of the music based on the recognized emotions and the information input by the user. Examples of the composition of the music include chord progression, melody, tone, dynamics, genre, and rhythm. Then, the robot 100 creates a piece of music that satisfies the determined composition as a condition. In this case, the robot 100 may compose the music according to a rule base to which lyrics and melodies corresponding to the composition of the music are associated.
[0031] An example of composition will be described in more detail. For example, the robot 100 receives a speech including an image of a song, such as "I want to create a song that reminds you of a cheerful spring scene," from the user. In this case, the robot 100 extracts, for example, "spring," "cheerful," and "scenery" as keywords that the user considers important in song composition, and determines the composition of the song according to the extracted keywords.
[0032] The robot 100 constantly monitors whether or not the user's situation (e.g., physical actions, facial expressions, voice, etc.) has been detected during the dialogue with the user, and if a specific situation has been detected, the robot 100 may recognize the user's emotion from that situation. If the robot 100 recognizes the user's emotion, the robot 100 may determine the composition of the music piece by further taking the recognized emotion into consideration. The composition of the music piece may also be determined according to a rule base. Then, the robot 100 creates a piece of music that satisfies the determined composition as a condition.
[0033] Next, the robot 100 provides the user with the music that has been created as described above. That is, the robot 100 controls a terminal device to play the music that has been created. The robot 100 recognizes the user's feelings (e.g., satisfied / dissatisfied / worried / etc.) regarding the played music based on the user's reaction to the played music (e.g., physical movement, facial expression, voice, etc.). Then, the robot 100 changes the composition of the current music based on the recognized feelings.
[0034] The robot 100 provides the user with a re-created song based on the changed song composition, thereby recognizing the user's further reaction and re-creating the song according to the recognized emotion. In this way, the robot 100 may repeat the operation of creating a song based on the user's reaction to the song, thereby brushing up the song until the user shows a sense of satisfaction, for example.
[0035] In addition, the robot 100 may learn the music compositions accumulated during the above-mentioned repetitive actions, thereby estimating the music compositions that the user tends to prefer, and aim to create better music based on the estimated music compositions.
[0036] An example of the robot 100 according to the present disclosure has been described above. According to the robot 100 according to the present disclosure, for example, the user can increase the variety of compositions and can also create songs that better suit his / her own purposes based on the music created by the robot 100.
[0037] Note that the proposed technology according to the present disclosure is significantly different from conventional technologies in that the behavior of the robot 100 is determined based on the emotion value of the robot 100, the user's behavior (emotion inferred from the user's behavior), and reaction rules, rather than being a simple rule-based process in which the behavior of the robot 100 is determined based on the user's emotion inferred from the user's behavior.
[0038] 2 is a diagram illustrating a schematic functional configuration of the robot 100. The robot 100 is configured by a control unit having a sensor unit 200, a sensor module unit 210, a storage unit 220, a user state recognition unit 230, an emotion determination unit 232, a behavior recognition unit 234, a behavior determination unit 236, a memory control unit 238, a behavior control unit 250, a control target 252, and a communication processing unit 280.
[0039] The control target 252 includes a display device, a speaker, LEDs in the eyes, and motors for driving the arms, hands, legs, etc. The posture and gestures of the robot 100 are controlled by controlling the motors of the arms, hands, legs, etc. Some of the emotions of the robot 100 can be expressed by controlling these motors. In addition, the facial expressions of the robot 100 can be expressed by controlling the light emission state of the LEDs in the eyes of the robot 100. For example, the display device is provided on the chest of the robot 100. In addition, the facial expressions of the robot 100 can be expressed by controlling the display of the display device. The display device may display the contents of a conversation with a user as characters. The posture, gestures, and facial expressions of the robot 100 are examples of the attitude of the robot 100.
[0040] The sensor unit 200 includes a microphone 201, a 3D depth sensor 202, a 2D camera 203, a distance sensor 204, an acceleration sensor 205, a thermosensor 206, and a touch sensor 207. The microphone 201 continuously detects sound and outputs sound data. The microphone 201 may be provided on the head of the robot 100 and may have a function of performing binaural recording. The 3D depth sensor 202 detects the contour of an object by continuously irradiating an infrared pattern and analyzing the infrared pattern from infrared images continuously captured by the infrared camera. The 2D camera 203 is an example of an image sensor. The 2D camera 203 captures an image with visible light and generates video information of the visible light. The contour of the object may be detected from the video information generated by the 2D camera 203. The distance sensor 204 detects the distance to the object by irradiating, for example, a laser or ultrasonic waves. The acceleration sensor 205 is, for example, a gyro sensor, and detects the acceleration of the robot 100. The thermosensor 206 detects the temperature around the robot 100. The touch sensor 207 is a sensor that detects a touch operation by a user, and is disposed, for example, on the head and hands of the robot 100. The sensor unit 200 may also include a clock, a sensor for motor feedback, and the like.
[0041] 2, the components other than the control target 252 and the sensor unit 200 are examples of components included in a behavior control system included in the robot 100. The behavior control system of the robot 100 controls the control target 252.
[0042] The storage unit 220 includes reaction rules 221 and history data 222. The history data 222 includes the user's past emotion values and behavioral history. The emotion values and behavioral history are recorded for each user, for example, by being associated with the user's identification information. At least a part of the storage unit 220 is implemented by a storage medium such as a memory. It may include a person DB that stores the user's face image, user attribute information, and the like. Note that, among the components of the robot 100 shown in FIG. 2, the functions of the components other than the control target 252, the sensor unit 200, and the storage unit 220 can be realized by a CPU operating based on a program. For example, the functions of these components can be implemented as the operation of a CPU by an operating system (OS) and a program operating on the OS.
[0043] The program referred to here includes a program according to the present disclosure (for example, a program corresponding to automatic music composition software).
[0044] The sensor module unit 210 includes a voice emotion recognition unit 211, a speech understanding unit 212, a facial expression recognition unit 213, and a face recognition unit 214. Information detected by the sensor unit 200 is input to the sensor module unit 210. The sensor module unit 210 analyzes the information detected by the sensor unit 200, and outputs the analysis result to the user state recognition unit 230.
[0045] The voice emotion recognition unit 211 of the sensor module unit 210 analyzes the user's voice detected by the microphone 201 to recognize the user's emotion. For example, the voice emotion recognition unit 211 extracts features such as frequency components of the voice and recognizes the user's emotion based on the extracted features. The speech understanding unit 212 analyzes the user's voice detected by the microphone 201 and outputs text information representing the contents of the user's utterance. For example, the speech understanding unit 212 distinguishes between utterance contents indicating instructions regarding composition and utterance contents indicating requests regarding composition.
[0046] The facial expression recognition unit 213 recognizes the facial expression and emotion of the user from the image of the user captured by the 2D camera 203. For example, the facial expression recognition unit 213 recognizes the facial expression and emotion of the user based on the shapes, positional relationship, etc. of the eyes and mouth. For example, the facial expression recognition unit 213 recognizes the facial expression and emotion of the user when the user exhibits an action related to composition.
[0047] The face recognition unit 214 recognizes the face of the user. The face recognition unit 214 recognizes the user by matching a face image stored in a person DB (not shown) with a face image of the user captured by the 2D camera 203.
[0048] The user state recognition unit 230 recognizes the state of the user based on the information analyzed by the sensor module unit 210. For example, the user state recognition unit 230 mainly performs processing related to perception using the analysis results of the sensor module unit 210. For example, the user state recognition unit 230 generates perception information such as "the user is not yet convinced of the music composition" or "there is a 90% chance that the user is not satisfied with the provided music" and performs processing to understand the meaning of the generated perception information. For example, the user state recognition unit 230 generates semantic information such as "the user is not satisfied with the music created."
[0049] According to the above example, the sensor module unit 210 corresponds to a detection unit that detects the user's situation. Therefore, the sensor module unit 210 detects various situations of the user, such as the user's physical movements, facial expressions, and voice. For example, the sensor module unit 210 may detect the situation before and after the robot 100 provides a song to the user. The user's situation also includes the meaning of the user's reaction to a certain event.
[0050] The emotion determination unit 232 recognizes the emotion of the user based on the information detected by the sensor module unit 210. For example, the emotion determination unit 232 determines an emotion value indicating the emotion of the user based on the information analyzed by the sensor module unit 210 and the state of the user recognized by the user state recognition unit 230. For example, the information analyzed by the sensor module unit 210 and the recognized state of the user are input to a pre-trained neural network to obtain an emotion value indicating the emotion of the user.
[0051] Here, the emotion value indicating the user's emotion is a value indicating the positive or negative emotion of the user. For example, if the user's emotion is a cheerful emotion accompanied by a sense of pleasure or comfort, such as "joy", "pleasure", "pleasure", "relief", "excitement", "relief", and "fulfillment", the value indicates a positive value, and the more cheerful the emotion, the larger the value. If the user's emotion is an unpleasant emotion, such as "anger", "sorrow", "discomfort", "anxiety", "sorrow", "worry", and "emptiness", the value indicates a negative value, and the more unpleasant the emotion, the larger the absolute value of the negative value. If the user's emotion is none of the above ("neutral"), the value indicates 0.
[0052] Furthermore, the emotion determining unit 232 determines an emotion value indicating the emotion of the robot 100 based on the information analyzed by the sensor module unit 210 and the state of the user recognized by the user state recognizing unit 230 .
[0053] The emotion value of the robot 100 includes emotion values for each of a plurality of emotion categories, and is, for example, a value (0 to 5) indicating the strength of each of "happiness," "anger," "sorrow," and "pleasure."
[0054] Specifically, the emotion determination unit 232 determines an emotion value indicating the emotion of the robot 100 in accordance with a rule for updating the emotion value of the robot 100, which rule is determined in association with the information analyzed by the sensor module unit 210 and the state of the user recognized by the user state recognition unit 230.
[0055] For example, when the user state recognition unit 230 recognizes that the user looks lonely, the emotion determination unit 232 increases the emotion value of "sadness" of the robot 100. Also, when the user state recognition unit 230 recognizes that the user is smiling, the emotion determination unit 232 increases the emotion value of "joy" of the robot 100.
[0056] The emotion determining unit 232 may determine the emotion value indicating the emotion of the robot 100 by further considering the state of the robot 100. For example, when the battery level of the robot 100 is low or when the surrounding environment of the robot 100 is pitch black, the emotion value of "sadness" of the robot 100 may be increased. Furthermore, when the user continues to talk to the robot 100 despite the battery level being low, the emotion value of "anger" may be increased.
[0057] The behavior recognition unit 234 recognizes the user's behavior based on the information analyzed by the sensor module unit 210 and the user's state recognized by the user state recognition unit 230. For example, the information analyzed by the sensor module unit 210 and the recognized user's state are input to a pre-trained neural network, the probability of each of a plurality of predetermined behavior classifications (for example, "laughing," "getting angry," "asking a question," and "getting sad") is obtained, and the behavior classification with the highest probability is recognized as the user's behavior. For example, the behavior recognition unit 234 recognizes the user's behavior (gestures) while composing a piece of music or while listening to a piece of music.
[0058] As described above, in this embodiment, the robot 100 acquires the user's speech content after identifying the user. When acquiring and using the speech content, the robot 100 obtains the necessary consent in accordance with laws and regulations from the user. In addition, the behavior control system of the robot 100 in this embodiment takes into consideration the protection of the user's personal information and privacy.
[0059] The behavior determining unit 236 determines a behavior corresponding to the behavior of the user recognized by the behavior recognizing unit 234 based on the current emotion value of the user determined by the emotion determining unit 232, the history data 222 of past emotion values determined by the emotion determining unit 232 before the current emotion value of the user was determined, and the emotion value of the robot 100. In this embodiment, the behavior determining unit 236 uses one most recent emotion value included in the history data 222 as the user's past emotion value, but the disclosed technology is not limited to this aspect. For example, the behavior determining unit 236 may use a plurality of most recent emotion values as the user's past emotion value, or may use an emotion value from a unit period ago, such as one day ago. In addition, the behavior determining unit 236 may determine a behavior corresponding to the user's behavior by further considering not only the current emotion value of the robot 100 but also the history of the past emotion values of the robot 100. The behavior determined by the behavior determining unit 236 includes gestures performed by the robot 100 or the contents of the utterances of the robot 100.
[0060] The behavior determination unit 236 according to this embodiment determines the behavior of the robot 100 as the behavior corresponding to the user's behavior, based on a combination of the user's past emotion value and current emotion value, the emotion value of the robot 100, the user's behavior, and the reaction rules 221. For example, when the user's past emotion value is a positive value and the current emotion value is a negative value, the behavior determination unit 236 determines the behavior for changing the user's emotion value to positive as the behavior corresponding to the user's behavior.
[0061] The behavior determining unit 236 may determine a behavior corresponding to the user's behavior based on the emotion of the robot 100. For example, when the robot 100 is insulted by the user 10 or is arrogant toward the user (i.e., when the user's reaction is poor), when the surrounding noise is loud and the user's voice cannot be detected, when the remaining battery level of the robot 100 is low, etc., and the emotion value of "anger" or "sorrow" of the robot 100 increases, the behavior determining unit 236 may determine an action corresponding to the user's behavior, which corresponds to the emotion value of "anger" or "sorrow".
[0062] Furthermore, when the user's reaction is good or the battery level of the robot 100 is high, and the emotional value of "joy" or "pleasure" of the robot 100 increases, the behavior determining unit 236 may determine an action corresponding to the user's action, which corresponds to the increase in the emotional value of "joy" or "pleasure". Furthermore, the behavior determining unit 236 may determine an action different from the action of the robot 100 toward the user who has increased the emotional value of "anger" or "sorrow" of the robot 100, as an action toward the user 10 who has increased the emotional value of "joy" or "pleasure" of the robot 100. In this way, the behavior determining unit 236 may determine different actions depending not only on the emotion of the robot itself or the user's action but also on how the user has changed the emotion.
[0063] The reaction rule 221 defines the behavior of the robot 100 according to a combination of the user's past emotion value and current emotion value, the emotion value of the robot 100, and the user's behavior. For example, when the user's past emotion value is a positive value, the current emotion value is a negative value, and the user's behavior is sadness, a combination of gestures and speech content when asking a question to encourage the user with gestures is defined as the behavior of the robot 100.
[0064] For example, the reaction rule 221 defines behaviors of the robot 100 for all combinations of patterns of the emotion values of the robot 100 (1296 patterns, which are the fourth power of six values of "joy", "anger", "sorrow", and "pleasure", from "0" to "5"); combination patterns of the user's past emotion values and current emotion values; and behavior patterns of the user. That is, for each pattern of the emotion values of the robot 100, behaviors of the robot 100 according to the behavior patterns of the user are defined for each of a plurality of combinations of the user's past emotion values and current emotion values, such as negative values and negative values, negative values and positive values, positive values and negative values, positive values and positive values, negative values and normal values, and normal values and normal values. Note that the behavior determining unit 236 may transition to an operation mode in which the behavior of the robot 100 is determined using the history data 222, when the user makes an utterance intending to continue a conversation from a past topic, such as "I want to talk about that topic we talked about last time."
[0065] The reaction rules 221 may prescribe at least one of a gesture and a statement as the behavior of the robot 100 for each of the patterns (1296 patterns) of the emotion value of the robot 100. Alternatively, the reaction rules 221 may prescribe at least one of a gesture and a statement as the behavior of the robot 100 for each group of patterns of the emotion value of the robot 100.
[0066] The strength of each gesture included in the behavior of the robot 100 defined in the reaction rule 221 is determined in advance. The strength of each utterance included in the behavior of the robot 100 defined in the reaction rule 221 is determined in advance.
[0067] For example, the reaction rules 221 prescribe the behavior of the robot 100 corresponding to a behavior pattern such as utterances related to the user's requests ("Make it more exciting" or "Listen quietly") when the user is listening to a song. The reaction rules 221 may also prescribe a music composition according to the user's emotions, lyrics or melodies according to the music composition, lyrics according to keywords that the user considers important, and the like.
[0068] The memory control unit 238 determines whether or not to store data including the user's behavior in the history data 222, based on the predetermined behavior strength for the behavior determined by the behavior determination unit 236 and the emotion value of the robot 100 determined by the emotion determination unit 232.
[0069] Specifically, when a total intensity value, which is the sum of the sum of the emotion values for each of the multiple emotion classifications of the robot 100, the predetermined intensity for the gesture included in the behavior determined by the behavior determination unit 236, and the predetermined intensity for the speech content included in the behavior determined by the behavior determination unit 236, is equal to or greater than a threshold value, it is determined to store data including the user's behavior in the history data 222.
[0070] When the memory control unit 238 decides to store data including the user's behavior in the history data 222, it stores in the history data 222 the behavior determined by the behavior determination unit 236, information analyzed by the sensor module unit 210 from the present time up to a certain period of time ago (e.g., all peripheral information such as data on the sound, images, smells, etc. of the scene), and the user's state recognized by the user state recognition unit 230 (e.g., the user's facial expression, emotions, etc.).
[0071] The behavior control unit 250 controls the control target 252 based on the behavior determined by the behavior determination unit 236. For example, when the behavior determination unit 236 determines an behavior including speaking, the behavior control unit 250 outputs a sound from a speaker included in the control target 252. At this time, the behavior control unit 250 may determine the speaking speed of the sound based on the emotion value of the robot 100. For example, the behavior control unit 250 determines a faster speaking speed as the emotion value of the robot 100 increases. In this way, the behavior control unit 250 determines the execution form of the behavior determined by the behavior determination unit 236 based on the emotion value determined by the emotion determination unit 232.
[0072] More specifically, the behavior control unit 250 executes control related to the creation of a piece of music. For example, the behavior control unit 250 determines the type of instrument, chord progression, melody, tone, sound dynamics, genre, rhythm, and the like as the composition of the piece of music based on the user's emotions. The behavior control unit 250 may further determine the title of the piece of music based on the user's emotions, and create lyrics as the composition of the piece of music based on the user's reaction to the determined title.
[0073] In addition, when the behavior control unit 250 detects the user's reaction when the created music is played, it changes the current music composition to a new music composition that corresponds to the user's emotions based on the user's emotions estimated from the detected reaction.
[0074] Furthermore, the behavior control unit 250 may learn the music composition that the user tends to like based on the changed music composition, and further change the music composition based on the learning result. For example, the behavior control unit 250 estimates the music composition that the user tends to like by learning the music compositions accumulated by repeatedly changing the music composition. Then, the behavior control unit 250 aims to create a better music based on the estimated music composition. Although not shown in FIG. 2, the control unit may further include a learning unit that learns the music composition.
[0075] The behavior control unit 250 may also recognize a change in the user's emotion in response to the execution of the behavior determined by the behavior determination unit 236. For example, the change in emotion may be recognized based on the user's voice or facial expression. In addition, the change in the user's emotion may be recognized based on the detection of an impact by the touch sensor included in the sensor unit 200. When an impact is detected by the touch sensor included in the sensor unit 200, the user's emotion may be recognized as having worsened, and when the detection result of the touch sensor included in the sensor unit 200 indicates that the user's reaction is laughing, happy, or the like, the user's emotion may be recognized as having improved. Information indicating the user's reaction is output to the communication processing unit 280.
[0076] In addition, after the behavior control unit 250 executes the behavior determined by the behavior determination unit 236 in the execution form determined according to the emotion of the robot 100, the emotion determination unit 232 further changes the emotion value of the robot 100 based on the user's reaction to the execution of the behavior. Specifically, the emotion determination unit 232 increases the emotion value of "happiness" of the robot 100 when the user's reaction to the behavior determined by the behavior determination unit 236 being performed on the user in the execution form determined by the behavior control unit 250 is not bad. In addition, the emotion determination unit 232 increases the emotion value of "sadness" of the robot 100 when the user's reaction to the behavior determined by the behavior determination unit 236 being performed on the user in the execution form determined by the behavior control unit 250 is bad.
[0077] Furthermore, the behavior control unit 250 expresses the emotion of the robot 100 based on the determined emotion value of the robot 100. For example, when the behavior control unit 250 increases the emotion value of "happiness" of the robot 100, the behavior control unit 250 controls the control object 252 to make the robot 100 perform a happy gesture. When the behavior control unit 250 increases the emotion value of "sadness" of the robot 100, the behavior control unit 250 controls the control object 252 to make the robot 100 assume a droopy posture.
[0078] The communication processing unit 280 is responsible for communication with the server 300. As described above, the communication processing unit 280 transmits user reaction information to the server 300. In addition, the communication processing unit 280 receives updated reaction rules from the server 300. When the communication processing unit 280 receives the updated reaction rules from the server 300, it updates the reaction rules 221. The communication processing unit 280 can transmit and receive information to and from the linked device 400.
[0079] The server 300 communicates between each robot 100 and the server 300, receives user reaction information transmitted from the robot 100, and updates the reaction rules based on reaction rules that include actions that have received positive reactions.
[0080] Fig. 3 is a diagram showing an example of an operation flow relating to an operation for determining an action in the robot 100. The operation flow shown in Fig. 3 is repeatedly executed. At this time, it is assumed that information analyzed by the sensor module unit 210 is input. Note that "S" in the operation flow indicates a step to be executed.
[0081] First, in step S101, the user state recognition unit 230 recognizes the state of the user based on the information analyzed by the sensor module unit 210. For example, the user state recognition unit 230 generates perceptual information such as "the user is not yet satisfied with the music composition" or "there is a 90% probability that the user is not satisfied with the provided music" and performs a process of understanding the meaning of the generated perceptual information. For example, the user state recognition unit 230 generates semantic information such as "the user is not satisfied with the music created."
[0082] In step S102, the emotion determining unit 232 determines an emotion value indicating the emotion of the user based on the information analyzed by the sensor module unit 210 and the state of the user recognized by the user state recognizing unit 230.
[0083] In step S103, the emotion determination unit 232 determines an emotion value indicating the emotion of the robot 100, based on the information analyzed by the sensor module unit 210 and the state of the user recognized by the user state recognition unit 230. The emotion determination unit 232 adds the determined emotion value of the user to the history data 222.
[0084] In step S104, the behavior recognition unit 234 recognizes a behavior classification of the user based on the information analyzed by the sensor module unit 210 and the user's state recognized by the user state recognition unit 230. For example, the behavior recognition unit 234 recognizes the user's behavior (gestures) while composing music or while listening to music.
[0085] In step S105, the behavior determination unit 236 determines the behavior of the robot 100 based on a combination of the user's current emotional value determined in step S102 and the past emotional values included in the history data 222, the emotional value of the robot 100, the user's behavior recognized by the behavior recognition unit 234, and the reaction rules 221.
[0086] In step S106, the behavior control unit 250 controls the control target 252 based on the behavior determined by the behavior determination unit 236. For example, the behavior control unit 250 executes control related to the creation of a piece of music. For example, the behavior control unit 250 determines the type of instrument, chord progression, melody, tone, dynamics, genre, rhythm, and the like as the composition of the music based on the user's emotions. The behavior control unit 250 may further determine the title of the music based on the user's emotions, and create lyrics as the composition of the music based on the user's reaction to the determined title.
[0087] In addition, when the behavior control unit 250 detects the user's reaction when the created music is played, it changes the current music composition to a new music composition that corresponds to the user's emotions based on the user's emotions estimated from the detected reaction.
[0088] Furthermore, the behavior control unit 250 may learn the music composition that the user tends to like based on the changed music composition, and further change the music composition based on the learning result. For example, the behavior control unit 250 may estimate the music composition that the user tends to like by learning the music compositions accumulated by repeatedly changing the music composition, and perform control to bring the music composition closer to the user's preferences based on the estimated music composition.
[0089] In step S107, the memory control unit 238 calculates a total intensity value based on the predetermined action intensities for the actions determined by the action determination unit 236 and the emotion value of the robot 100 determined by the emotion determination unit 232.
[0090] In step S108, the storage control unit 238 determines whether the total intensity value is equal to or greater than the threshold. If the total intensity value is less than the threshold, the process ends without storing data including the user's behavior in the history data 222. On the other hand, if the total intensity value is equal to or greater than the threshold, the process proceeds to step S109.
[0091] In step S109, the behavior determined by the behavior determination unit 236, the information analyzed by the sensor module unit 210 from the present time up to a certain period of time ago, and the user's state recognized by the user state recognition unit 230 are stored in the history data 222.
[0092] As described above, the robot 100 according to the present disclosure includes a control unit that recognizes the emotions of a composer, determines a musical composition according to the recognized emotions, and creates a piece of music based on the determined musical composition. This allows the robot 100 to appropriately support the user's musical composition activities. For example, the user can increase the variety of musical compositions and can create a piece of music that better suits his or her purpose based on the piece of music created by the robot 100.
[0093] The robot 100 further includes a detection unit that detects the composer's situation, and the control unit recognizes the composer's emotions based on the situation detected by the detection unit, and determines the type of instrument, chord progression, melody, tone color, or sound dynamics as the composition of the music based on the recognized emotions. This allows the robot 100 to create music that reflects the composer's emotions down to the smallest detail.
[0094] The control unit of the robot 100 further determines the title of the music piece based on the emotions of the composer recognized based on the situation, and creates lyrics as a part of the music piece composition based on the composer's reaction to the determined title. This allows the robot 100 to assist not only in composing music but also in writing lyrics.
[0095] The detection unit of the robot 100 detects the state of the composer when the music piece is played, and the control unit recognizes the composer's feelings about the played music piece based on the state of the composer when the music piece is played, and changes the composition of the music piece based on the recognized feelings. This allows the robot 100 to improve the music piece until the user is satisfied with it.
[0096] The control unit of the robot 100 causes the learning unit to learn the changed music composition, and further changes the music composition based on the learning result by the learning unit. This allows the robot 100 to create music that meets the user's preferences.
[0097] In addition, the detection unit of the robot 100 detects the composer's body movement, facial expression, or voice as the state of the composer. This allows the robot 100 to estimate the composer's emotions with high accuracy, thereby increasing the user's satisfaction with the music.
[0098] The robot 100 is mounted on a stuffed toy or connected wirelessly or by wire to a control target device mounted on the stuffed toy. This allows the robot 100 to feel closer to the user, thereby facilitating dialogue for composing music.
[0099] In the above embodiment, the robot 100 recognizes the user by using the face image of the user, but the disclosed technology is not limited to this aspect. For example, the robot 100 may recognize the user by using a voice uttered by the user, the user's email address, the user's SNS ID, or an ID card with a built-in wireless IC tag that the user possesses.
[0100] Furthermore, the robot 100 may, for example, understand the speech states of surrounding people as a user different from the user recognized as the composer, and perform emotion analysis for the number of people who are speaking. For example, the robot 100 may determine the emotion values of the surrounding people from the speech states of the surrounding people, and determine the composition of the music based on the emotion values of the composer user and the surrounding people. As an example, if the emotion value of "happiness" of the composer user increases while the emotion value of "anger" of more than half of the surrounding people increases, the robot 100 may determine the composition of the music by prioritizing the emotion value of "anger."
[0101] The robot 100 is an example of an electronic device equipped with a behavior control system. The application of the behavior control system is not limited to the robot 100, and the behavior control system can be applied to various electronic devices. The functions of the server 300 may be implemented by one or more computers. At least a part of the functions of the server 300 may be implemented by a virtual machine. At least a part of the functions of the server 300 may be implemented in the cloud.
[0102] 4 is a diagram illustrating an example of a hardware configuration of a computer 1200 functioning as the robot 100 and the server 300. A program installed in the computer 1200 can cause the computer 1200 to function as one or more "parts" of the apparatus according to the present embodiment, or cause the computer 1200 to execute operations or one or more "parts" associated with the apparatus according to the present embodiment, and / or cause the computer 1200 to execute a process or steps of the process according to the present embodiment. Such a program can be executed by the CPU 1212 to cause the computer 1200 to execute specific operations associated with some or all of the blocks of the flowcharts and block diagrams described herein.
[0103] The computer 1200 according to this embodiment includes a CPU 1212, a RAM 1214, and a graphic controller 1216, which are connected to each other by a host controller 1210. The computer 1200 also includes input / output units such as a communication interface 1222, a storage device 1224, a DVD drive, and an IC card drive, which are connected to the host controller 1210 via an input / output controller 1220. The DVD drive may be a DVD-ROM drive, a DVD-RAM drive, etc. The storage device 1224 may be a hard disk drive, a solid state drive, etc. The computer 1200 also includes input / output units such as a ROM 1230 and a keyboard, which are connected to the input / output controller 1220 via an input / output chip 1240.
[0104] The CPU 1212 operates according to a program stored in the ROM 1230 and the RAM 1214, thereby controlling each unit. The graphic controller 1216 retrieves image data generated by the CPU 1212 into a frame buffer or the like provided in the RAM 1214 or into itself, and causes the image data to be displayed on the display device 1218.
[0105] The communication interface 1222 communicates with other electronic devices via a network. The storage device 1224 stores programs and data used by the CPU 1212 in the computer 1200. The DVD drive reads programs or data from a DVD-ROM or the like and provides them to the storage device 1224. The IC card drive reads programs and data from an IC card and / or writes programs and data to an IC card.
[0106] The ROM 1230 stores therein a boot program or the like that is executed by the computer 1200 upon activation, and / or a program that depends on the hardware of the computer 1200. The input / output chip 1240 may also connect various input / output units to the input / output controller 1220 via a USB port, a parallel port, a serial port, a keyboard port, a mouse port, and the like.
[0107] The programs are provided by a computer-readable storage medium such as a DVD-ROM or an IC card. The programs are read from the computer-readable storage medium, installed in the storage device 1224, the RAM 1214, or the ROM 1230, which are also examples of computer-readable storage media, and executed by the CPU 1212. Information processing described in these programs is read by the computer 1200, and brings about cooperation between the programs and the various types of hardware resources described above. An apparatus or method may be constructed by implementing operations or processing of information according to the use of the computer 1200.
[0108] For example, when communication is performed between the computer 1200 and an external device, the CPU 1212 may execute a communication program loaded in the RAM 1214 and instruct the communication interface 1222 to perform communication processing based on the processing described in the communication program. Under the control of the CPU 1212, the communication interface 1222 reads transmission data stored in a transmission buffer area provided in the RAM 1214, the storage device 1224, a DVD-ROM, or a recording medium such as an IC card, and transmits the read transmission data to the network, or writes reception data received from the network to a reception buffer area or the like provided on the recording medium.
[0109] Furthermore, the CPU 1212 may cause all or a necessary portion of a file or database stored in an external recording medium such as the storage device 1224, a DVD drive (DVD-ROM), an IC card, etc. to be read into the RAM 1214, and perform various types of processing on the data on the RAM 1214. The CPU 1212 may then write back the processed data to the external recording medium.
[0110] Various types of information, such as various types of programs, data, tables, and databases, may be stored in the recording medium and undergo information processing. The CPU 1212 may perform various types of processing on the data read from the RAM 1214, including various types of operations, information processing, conditional judgment, conditional branching, unconditional branching, information search / replacement, etc., as described throughout this disclosure and specified by the instruction sequence of the program, and write back the results to the RAM 1214. The CPU 1212 may also search for information in a file, database, etc. in the recording medium. For example, when a plurality of entries each having an attribute value of a first attribute associated with an attribute value of a second attribute are stored in the recording medium, the CPU 1212 may search for an entry whose attribute value of the first attribute matches a specified condition from among the plurality of entries, read the attribute value of the second attribute stored in the entry, and thereby obtain the attribute value of the second attribute associated with the first attribute that satisfies a predetermined condition.
[0111] The above-mentioned programs or software modules may be stored in a computer-readable storage medium on the computer 1200 or in the vicinity of the computer 1200. In addition, a recording medium such as a hard disk or a RAM provided in a server system connected to a dedicated communication network or the Internet can be used as a computer-readable storage medium, thereby providing the programs to the computer 1200 via the network.
[0112] The blocks in the flowcharts and block diagrams in the present embodiment may represent stages of a process in which an operation is performed or "parts" of an apparatus responsible for performing the operation. Particular stages and "parts" may be implemented by dedicated circuitry, programmable circuitry provided with computer-readable instructions stored on a computer-readable storage medium, and / or a processor provided with computer-readable instructions stored on a computer-readable storage medium. The dedicated circuitry may include digital and / or analog hardware circuits, and may include integrated circuits (ICs) and / or discrete circuits. The programmable circuitry may include reconfigurable hardware circuits, such as, for example, field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), and the like, including AND, OR, XOR, NAND, NOR, and other logical operations, flip-flops, registers, and memory elements.
[0113] A computer-readable storage medium may include any tangible device capable of storing instructions that are executed by a suitable device, such that a computer-readable storage medium having instructions stored thereon comprises an article of manufacture that includes instructions that can be executed to create means for performing the operations specified in the flowcharts or block diagrams. Examples of computer-readable storage media may include electronic storage media, magnetic storage media, optical storage media, electromagnetic storage media, semiconductor storage media, and the like. More specific examples of computer-readable storage media may include floppy disks, diskettes, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), electrically erasable programmable read-only memories (EEPROMs), static random access memories (SRAMs), compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), Blu-ray disks, memory sticks, integrated circuit cards, and the like.
[0114] The computer readable instructions may include either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or either source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk®, JAVA®, C++, etc., and conventional procedural programming languages such as the “C” programming language or similar programming languages.
[0115] Computer readable instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, or to a programmable circuit, either locally or over a local area network (LAN), a wide area network (WAN), such as the Internet, etc., to cause the processor of the general purpose computer, special purpose computer, or other programmable data processing apparatus, or to a programmable circuit, to execute the computer readable instructions to generate means for performing the operations specified in the flowcharts or block diagrams. Examples of processors include computer processors, processing units, microprocessors, digital signal processors, controllers, microcontrollers, etc.
[0116] (Other embodiments) The robot 100 described above may be applied to a cohabitant that spends daily life with a user, and that advances a dialogue with the user based on information about the user's daily life, and provides information tailored to the user's hobbies and interests. One example of a cohabitant is a stuffed toy. That is, the robot 100 may be mounted on a stuffed toy, or may be applied to a control device that is connected wirelessly or by wire to a control target device (speaker or camera) mounted on the stuffed toy.
[0117] The emotion determining unit 232 may determine the emotion of the user according to a specific mapping. Specifically, the emotion determining unit 232 may determine the emotion of the user according to an emotion map (see FIG. 5), which is a specific mapping.
[0118] FIG. 5 is a diagram showing an emotion map 300 on which multiple emotions are mapped. In the emotion map 700, emotions are arranged in concentric circles radiating from the center. The closer to the center of the concentric circles, the more primitive emotions are arranged. The more outside the concentric circles, the more emotions that represent states and actions that arise from a state of mind are arranged. Emotions are a concept that includes emotions and mental states. On the left side of the concentric circles, emotions that are generally generated from reactions that occur in the brain are arranged. On the right side of the concentric circles, emotions that are generally induced by situational judgment are arranged. On the upper and lower sides of the concentric circles, emotions that are generally generated from reactions that occur in the brain and are induced by situational judgment are arranged. In addition, on the upper side of the concentric circles, emotions of "pleasure" are arranged, and on the lower side, emotions of "discomfort" are arranged. In this way, in the emotion map 700, multiple emotions are mapped based on the structure in which emotions are generated, and emotions that tend to occur simultaneously are mapped close to each other.
[0119] (1) For example, if the emotion engine, which is the emotion determination unit 232 of the robot 100, detects emotions in about 100 msec, the frequency of the determination of the reaction action (e.g., a backchannel) of the robot 100 may be set at least at the same timing as the detection frequency (100 msec) of the emotion engine, or may be set at a timing earlier than this. The detection frequency of the emotion engine may be interpreted as a sampling rate.
[0120] By detecting emotions in about 100 msec and immediately performing a corresponding reaction (e.g., a backchannel), unnatural backchannels are avoided, and a natural dialogue that reads the atmosphere can be realized. The reaction (backchannel, etc.) is performed according to the directionality and the degree (strength) of the mandala in the emotion map 300 of the robot 100. Note that the detection frequency (sampling rate) of the emotion engine is not limited to 100 ms, and may be changed according to the situation (e.g., when playing sports), the age of the user, etc.
[0121] (2) The directionality of emotions and the strength of their intensity may be preset in reference to the emotion map 700, and the movement of the interjections and the strength of the interjections may be set. For example, if the robot 100 feels a sense of stability or security, the robot 100 may nod and continue to listen. If the robot 100 feels anxious, confused, or suspicious, the robot 100 may tilt its head or stop shaking its head.
[0122] These emotions are distributed in the three o'clock direction of emotion map 700 and usually fluctuate between relief and anxiety. In the right half of emotion map 700, situational awareness dominates over internal sensations, resulting in a sense of calm.
[0123] (3) If the robot 100 is praised and feels good, the filler "ah" may be inserted before the line, and if the robot 100 is hurt by harsh words, the filler "ugh!" may be inserted before the line. Also, a physical reaction such as the robot 100 crouching down while saying "ugh!" may be included. These emotions are distributed around 9 o'clock on the emotion map 700.
[0124] (4) In the left half of the emotion map 700, internal sensations (reactions) are more important than situational awareness. This can give the impression that the person is reacting unconsciously.
[0125] When the robot 100 feels a favorable feeling in its situation recognition while feeling an internal sensation (reaction) of a sense of satisfaction, the robot 100 may nod deeply while looking at the other person, or may say "uh-huh." In this way, the robot 100 may generate a behavior that shows a balanced favorable feeling toward the other person, that is, a tolerance or tolerance toward the other person. Such emotions are distributed around 12 o'clock on the emotion map 300.
[0126] Conversely, even when the robot 100 is aware of a situation while experiencing an internal sensation (reaction) of discomfort, the robot 100 may shake its head when it feels disgust, or turn the LEDs in its eyes red and glare at the other person when it feels hatred. These emotions are distributed around the 6 o'clock position on the emotion map 300.
[0127] (5) The inside of emotion map 700 represents what is going on in one's mind, while the outside of emotion map 700 represents behavior. Therefore, the further out on emotion map 300 one goes, the more visible the emotions become (the more they are expressed in behavior).
[0128] (6) When listening to someone while feeling a sense of security, which is distributed around the 3 o'clock area of the emotion map 700, the robot 100 may lightly nod its head and say "Hmmm." However, when listening to someone while feeling a sense of love, which is distributed around 12 o'clock, the robot 100 may nod vigorously, nodding its head deeply.
[0129] The emotion determination unit 232 inputs the information analyzed by the sensor module unit 210 and the recognized state of the user 10 into a pre-trained neural network, obtains emotion values indicating each emotion shown in the emotion map 700, and determines the emotion of the user. This neural network is pre-trained based on a plurality of learning data that are combinations of the information analyzed by the sensor module unit 210 and the recognized state of the user 10, and emotion values indicating each emotion shown in the emotion map 300. In addition, this neural network is trained so that emotions that are arranged close to each other have similar values, as in the emotion map 900 shown in FIG. 6. FIG. 6 is a diagram showing another example of an emotion map. FIG. 6 shows an example in which multiple emotions, such as "peace of mind," "calm," and "encouraging," have similar emotion values.
[0130] Furthermore, the emotion determining unit 232 may determine the emotion of the robot 100 according to a specific mapping. Specifically, the emotion determining unit 232 inputs the information analyzed by the sensor module unit 210, the state of the user recognized by the user state recognizing unit 230, and the state of the robot 100 to a pre-trained neural network, acquires emotion values indicating each emotion shown in the emotion map 300, and determines the emotion of the robot 100. This neural network is pre-trained based on a plurality of learning data that are combinations of the information analyzed by the sensor module unit 210, the recognized state of the user, and the state of the robot 100, and emotion values indicating each emotion shown in the emotion map 300. For example, the neural network is trained based on learning data that indicates that when it is recognized from the output of the touch sensor 207 that the robot 100 is being stroked by the user, the emotion value becomes "3" indicating "happy," and based on learning data that indicates that when it is recognized from the output of the acceleration sensor 205 that the robot 100 is being hit by the user, the emotion value becomes "3" indicating "anger." Furthermore, this neural network is trained so that emotions that are placed close to each other have similar values, as in the emotion map 900 shown in FIG.
[0131] The emotion determination unit 232 may also determine the emotion of the robot 100 based on the behavioral content of the robot 100 generated by the sentence generation model. Specifically, the emotion determination unit 232 inputs the behavioral content of the robot 100 generated by the sentence generation model to a pre-trained neural network, acquires emotion values indicating each emotion shown in the emotion map 700, and integrates the acquired emotion values indicating each emotion with the emotion values indicating each emotion of the current robot 100 to update the emotion of the robot 100. For example, the emotion values indicating each acquired emotion and the emotion values indicating each emotion of the current robot 100 are averaged and integrated. This neural network is pre-trained based on multiple learning data that are combinations of texts indicating the behavioral content of the robot 100 generated by the sentence generation model and emotion values indicating each emotion shown in the emotion map 700. For example, if the utterance of the robot 100, "That's great. You're lucky," is obtained as the behavioral content of the robot 100 generated by the sentence generation model, then when the text representing this utterance is input to the neural network, a high emotional value is obtained for the emotion "happy," and the emotions of the robot 100 are updated so that the emotional value of the emotion "happy" becomes higher.
[0132] The behavior decision unit 236 generates the robot's behavior content by adding fixed sentences for asking about the robot's behavior content corresponding to the user's behavior to text representing the user's behavior, the user's emotions, and the robot's emotions, and inputting the added text into the dialogue function.
[0133] For example, the behavior determining unit 236 acquires text representing the state of the robot 100 from the emotion of the robot 100 determined by the emotion determining unit 232, using an emotion table as shown in Fig. 7. Fig. 7 is a diagram showing an example of an emotion table. Here, in the emotion table, an index number is assigned to each emotion value for each type of emotion, and text representing the state of the robot 100 is stored for each index number.
[0134] When the emotion of the robot 100 determined by the emotion determination unit 232 corresponds to the index number "2", the text "very happy state" is obtained. When the emotions of the robot 100 correspond to multiple index numbers, multiple texts representing the state of the robot 100 are obtained.
[0135] Also, for the user's emotions, an emotion table as shown in FIG. 8 is prepared. FIG. 8 is a diagram showing an example of the emotion table. Here, if the user's behavior is "talk to AAA", the emotion of the robot 100 is index number "2", and the user's emotion is index number "3", then "The robot is in a very happy state. The user is in a normal happy state. The user spoke to me with 'AAA'. How would you respond as the robot?" is input to the AI chat engine (sentence generation model) to obtain the robot's behavior content. The behavior decision unit 236 decides the robot's behavior from this behavior content. Note that "AAA" is the name (nickname) given to the robot 100 by the user.
[0136] In this way, the robot 100 can change its behavior according to the index number corresponding to the robot's emotion, so that the user gets the impression that the robot 100 has a heart, and is encouraged to take actions such as talking to the robot.
[0137] The behavior determining unit 236 may generate the behavioral content of the robot by adding not only texts representing the user's behavior, the user's emotions, and the robot's emotions, but also texts representing the contents of the history data 222, adding a fixed sentence for asking the user about the behavioral content of the robot corresponding to the user's behavior, and inputting the result into the dialogue function. This allows the robot 100 to change its behavior according to the history data representing the user's emotions and behavior, so that the user has the impression that the robot has individuality, and is encouraged to take actions such as talking to the robot. The history data may further include the emotions and behavior of the robot.
[0138] Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It is clear to those skilled in the art that various modifications and improvements can be made to the above embodiments. It is clear from the description of the claims that such modifications and improvements can also be included in the technical scope of the present invention.
[0139] It should be noted that the order of execution of each process, such as operations, procedures, steps, and stages, in the devices, systems, programs, and methods shown in the claims, specifications, and drawings is not specifically stated as "before" or "prior to," and that the process may be performed in any order unless the output of a previous process is used in a later process. Even if the operational flow in the claims, specifications, and drawings is described using "first," "next," etc. for convenience, it does not mean that the process must be performed in this order. [Explanation of symbols]
[0140] 1. Control System 20 Communication Network 100 Robots 200 Sensor section 201 Mike 202 3D Depth Sensor 203 2D Camera 204 Distance Sensor 210 Sensor module section 211 Voice Emotion Recognition Unit 212 Speech Understanding Department 213 Facial expression recognition unit 214 Face Recognition Unit 220 Storage Unit 221 Reaction Rules 222 Historical Data 230 User state recognition unit 232 Emotion Determination Department 234 Behavior Recognition Department 236 Action Decision-Making Department 238 Memory control unit 250 Behavior Control Unit 252 Control Object 280 Communication Processing Unit 300 Servers 400 Related Devices
Claims
1. A control unit that recognizes the emotions of a composer, determines a musical composition according to the recognized emotions, and creates a musical composition based on the determined musical composition. An electronic device comprising:
2. A detector for detecting the status of the composer Further equipped with The control unit is Based on the situation detected by the detection unit, the emotion of the composer is recognized, and based on the recognized emotion, the type of instrument, the chord progression, the melody, the tone color, or the dynamics of the sound are determined as the composition of the music piece.
2. The electronic device according to claim 1.
3. The control unit is A title of a piece of music is further determined based on the emotion recognized based on the situation, and lyrics are created as the piece of music based on the composer's reaction to the title.
3. The electronic device according to claim 2.
4. The detection unit is Detecting the status of the composer when the piece of music is played; The control unit is Based on the situation of the composer when the piece of music is played back, the feeling of the composer with respect to the piece of music played back is recognized, and a composition of the piece of music is changed based on the recognized feeling.
3. The electronic device according to claim 2.
5. The control unit is The changed music composition is learned by a learning unit, and the music composition is further changed based on a learning result by the learning unit.
5. The electronic device according to claim 4.
6. The detection unit is Detecting the composer's body movement, facial expression, or voice as the composer's situation 3. The electronic device according to claim 2.
7. The robot comprises: It is installed in the stuffed toy, or connected wirelessly or by wire to the controlled device installed in the stuffed toy.
2. The electronic device according to claim 1.
Citation Information
Patent Citations
Determination of analite in medium containing particle
JP1985053847A
Cited By
Music generation method and device based on intelligent voice analysis
CN119724132A
Music generation method and device based on intelligent speech analysis
CN119724132B
