An emotion-aware interactive method and system for assisting autistic children in socialization

By using AR assistive glasses to recognize the facial and voice data of the people interacting with children with autism, and generating communication guidance information, the problem of children with autism understanding the reasons for others' emotions is solved, and their social communication skills and adaptive social response abilities are improved.

CN122528079BActive Publication Date: 2026-11-27SICHUAN UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611032846.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-11-27
Estimated Expiration
2046-07-13

AI Technical Summary

Technical Problem

Children with autism often struggle to understand the emotional states of others during social interactions, leading to communication breakdowns and social anxiety. Current technologies that only identify emotional states have not been able to effectively address this issue.

Method used

By acquiring facial images and voice data of interactive objects through AR assistive glasses, the system can identify emotional states and generate communication guidance information, including suggested interactive response statements and dialogue strategies, to help children understand the expected response behavior of others.

Benefits of technology

It significantly improves the communication and responsiveness of children with autism in real social scenarios, reduces social avoidance and conflict behaviors, and helps children establish social response patterns through multimodal fusion and adaptive guided content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122528079B_ABST
    Figure CN122528079B_ABST
Patent Text Reader

Abstract

The application relates to an emotion perception interaction method and system for assisting autism children in socialization, and belongs to the technical field of data analysis. The method comprises the following steps: acquiring facial image data and / or voice data of an interaction object of an autism child; determining a current emotional state of the interaction object based on the facial image data and / or the voice data; determining an interaction expectation of the interaction object according to the current emotional state of the interaction object and the voice data; generating communication guidance information based on the interaction expectation of the interaction object; wherein the communication guidance information comprises at least one of the following: a suggested interaction response sentence, a prompted current avoidance sentence and a suggested next round of dialogue strategy; and outputting the communication guidance information and the current emotional state of the interaction object to prompt the autism child. The method can significantly improve the communication response ability of the autism child in a real social scene and reduce social avoidance or conflict behaviors caused by misunderstanding or no response.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data analysis technology, and in particular to an emotion perception interaction method and system to assist autistic children in social interaction. Background Technology

[0002] Children with autism commonly experience difficulty understanding emotions in social interactions. They struggle to accurately perceive others' inner states through facial expressions, tone of voice, or body language, leading to communication breakdowns, inappropriate responses, or social avoidance. When engaging in daily conversations with peers, family members, or teachers, these children often fail to adjust their behavior based on the emotional cues they receive, making what should be simple conversations frustrating. Over time, this can exacerbate their social anxiety and tendency towards isolation.

[0003] Currently, several assistive systems or methods for children with autism have been proposed. For example, existing technologies use cameras to capture facial images of the other person, employ deep learning models to identify the other person's current emotional state (such as happiness, sadness, anger, etc.), and display the identified emotion tags in the form of text or icons to indicate the other person's current mood to the child with autism.

[0004] However, actual research has found that sometimes the impairment of autistic children is not a complete inability to recognize facial expressions, but rather a difficulty in understanding the underlying reasons for the other person's emotional state—why the other person has such an expression or emotion. Simply informing autistic children of the other person's emotional state is insufficient for them to connect the emotion with the specific situation and their own behavior, thus making it impossible for them to infer what kind of response the other person expects. Existing methods fail to fundamentally address the difficulties autistic children face in social interactions, resulting in limited effectiveness in communication guidance. Summary of the Invention

[0005] To address the aforementioned problems in the prior art, this invention provides an emotion perception and interaction method and system to assist children with autism in social interaction.

[0006] In a first aspect, this application provides an emotion-perception interaction method to assist social interaction in children with autism, wherein the AR assistive glasses are worn by the children with autism, comprising: acquiring facial image data and / or voice data of the interaction object of the children with autism; determining the current emotional state of the interaction object based on the facial image data and / or the voice data; determining the interaction expectation of the interaction object based on the current emotional state of the interaction object and the voice data; generating communication guidance information based on the interaction expectation of the interaction object; wherein the communication guidance information includes at least one of the following: suggested interaction response statements, prompts for current avoidance statements, and suggested next round dialogue strategies; and outputting the communication guidance information and the current emotional state of the interaction object to prompt the children with autism.

[0007] Optionally, determining the current emotional state of the interactive object based on the facial image data and / or the voice data includes: when the facial image data and the voice data are acquired simultaneously within a first time window, extracting a first emotional feature and its corresponding first confidence score based on the facial image data; extracting a second emotional feature and its corresponding second confidence score based on the voice data; calculating a first emotional feature weight and a second emotional feature weight based on the first confidence score and the second confidence score, wherein a higher confidence score corresponds to a greater weight; and performing a weighted fusion based on the first emotional feature, the second emotional feature, the first emotional feature weight, and the second emotional feature weight to determine the current emotional state of the interactive object within the first time window.

[0008] Optionally, the method further includes: when only the facial image data is acquired within the second time window, obtaining the reference degree of the facial image data within the previous X time windows; wherein the reference degree is determined based on the weight of the emotional features extracted from the facial image data during weighted fusion; when the reference degree of the facial image data within the current X time windows is greater than a first reference threshold, determining the current emotional state of the interactive object within the second time window based on the facial image data of the second time window; when the reference degree of the facial image data within the current X time windows is not greater than the first reference threshold, acquiring the previous emotional state of the interactive object determined in the previous time window, and performing weighted fusion of the current candidate emotional state determined by the facial image data of the second time window with the previous emotional state to obtain the current emotional state of the interactive object within the second time window.

[0009] Optionally, the method further includes: when only the voice data is obtained within the third time window, obtaining the reference degree of the voice data within the previous Y time windows; wherein the reference degree is determined based on the emotional feature weights extracted from the voice data during weighted fusion; when the reference degree of the voice data within the current Y time windows is greater than a second reference threshold, determining the current emotional state of the interactive object within the third time window based on the voice data of the third time window; when the reference degree of the voice data within the current Y time windows is not greater than the second reference threshold, obtaining the previous emotional state of the interactive object determined in the previous time window, and performing weighted fusion of the current candidate emotional state determined by the voice data of the third time window with the previous emotional state to obtain the current emotional state of the interactive object within the third time window.

[0010] Optionally, determining the current emotional state of the interactive object further includes: when the identified emotional state is a preset negative emotion, obtaining the confidence level of the emotional state and / or the similarity between the emotional state and a preset neutral emotion; if the confidence level of the emotional state is less than a first preset threshold or the similarity between the emotional state and the preset neutral emotion is less than a second preset threshold, determining that the current emotional state of the interactive object is the preset neutral emotion or maintaining the previous emotional state.

[0011] Optionally, determining the current emotional state of the interactive object based on the facial image data and / or the voice data includes: matching the voice data with a pre-built hierarchical semantic library; wherein the hierarchical semantic library includes at least the following categories: basic emotion, bodily sensation, social intention, and negation / correction terms; determining a first emotional state of the interactive object based on the combined matching results; determining a second emotional state of the interactive object based on the facial image data; and fusing the first emotional state and the second emotional state based on a preset fusion rule to generate the current emotional state of the interactive object.

[0012] Optionally, determining the current emotional state of the interactive object based on the facial image data includes: acquiring emotional state predictions corresponding to multiple consecutive frames of facial images, and calculating the comprehensive weight of each frame of facial images; wherein the comprehensive weight is obtained by multiplying the image quality score, prediction confidence, and time decay factor; performing a weighted average of the emotional state predictions of the multiple frames of facial images within a sliding time window to obtain a preliminary emotional state prediction; calculating the JS divergence between the preliminary emotional state prediction and the emotional state output at the previous time step, and dynamically determining a smoothing coefficient based on the JS divergence; and performing an exponential moving average of the preliminary emotional state prediction and the emotional state output at the previous time step based on the smoothing coefficient to determine the current emotional state of the interactive object.

[0013] Optionally, the method further includes: real-time detection of the face of the interactive object; confirming the stable existence of the target when the face of the interactive object is continuously detected to reach a first threshold, or determining that the target is lost when the face of the interactive object is not continuously detected to reach a second threshold; calculating the offset between the center point of the face of the interactive object and the center point of the screen during the period when the target is stable; entering an attention guidance state and generating a directional guidance icon when the offset continuously exceeds a third threshold; and deactivating the attention guidance state when the face of the interactive object returns to the center of the screen and continuously reaches a fourth threshold.

[0014] Optionally, the method further includes: stopping the output of the communication guidance information after more than N consecutive social interactions.

[0015] Secondly, this application provides an emotion-perception interaction system to assist social interaction in children with autism, applied to AR assistive glasses. The AR assistive glasses are worn by children with autism and include: an acquisition module for acquiring facial image data and / or voice data of the interaction object of the child with autism; an emotion determination module for determining the current emotional state of the interaction object based on the facial image data and / or the voice data; an interaction expectation determination module for determining the interaction expectation of the interaction object based on the current emotional state of the interaction object and the voice data; and a communication guidance determination module for generating communication guidance information based on the interaction expectation of the interaction object. The communication guidance information includes at least one of the following: suggested interaction response statements, prompts for current avoidance statements, and suggested next-round dialogue strategies; and an output module for outputting the communication guidance information and the current emotional state of the interaction object to prompt the child with autism.

[0016] The beneficial effects of this invention include: Unlike existing technologies that only display emotion tags or fixed phrase templates, the method provided in this application, by acquiring facial image data and / or voice data of the interactive object, not only identifies the current emotional state but also determines the interactive object's expectations based on the emotional state and voice data. Specifically, it determines what kind of response the other party expects from the autistic child when expressing that emotion, and generates communication guidance information based on these expectations. This enables autistic children to understand and learn the connection between why the other party is expressing this emotion and what the other party expects them to do next. It fundamentally compensates for the cognitive deficiencies of autistic children in inferring emotional relationships and the psychological states of others, significantly improving their communication responsiveness in real social scenarios and reducing social avoidance or conflict behaviors caused by misunderstandings or inability to respond.

[0017] In addition, the generated communication guidance information includes a variety of specific and actionable guidance content, such as suggested interactive response statements, prompts for current avoidance statements, and strategies for the next round of dialogue. It avoids vague or rigid prompts and can adapt to different dialogue stages and social scenarios, effectively helping children with autism to gradually establish social response patterns. Attached Figure Description

[0018] Figure 1 This is a schematic diagram of the structure of an AR assistive glasses provided in an embodiment of the present invention; Figure 2 A flowchart illustrating the steps of a first method for assisting autistic children in social interaction according to an embodiment of the present invention; Figure 3 A flowchart illustrating the steps of a second method for assisting autistic children in social interaction according to an embodiment of the present invention; Figure 4A flowchart illustrating the steps of a third method for assisting autistic children in social interaction according to an embodiment of the present invention; Figure 5 A flowchart illustrating the steps of the fourth method for assisting autistic children in social interaction according to an embodiment of the present invention; Figure 6 This is a block diagram of an emotion perception and interaction system for assisting social interaction in children with autism, provided in an embodiment of the present invention. Detailed Implementation

[0019] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0020] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0021] In view of the problems existing in the prior art described above, this application proposes the following embodiments to solve them.

[0022] Please see Figure 1 This application provides an AR auxiliary glasses 100, including: glasses body 101, projector 102, attenuator 103, convex lens 104, PDLC film 105, collimating lens 106, reflector 107, beam splitter 108, camera 109, and control board 110.

[0023] The projector 102, attenuator 103, convex lens 104, PDLC (Polymer-Dispersed Liquid Crystal) film 105, collimating lens 106, reflector 107, beam splitter 108, camera 109, and control board 110 are all mounted on the main body of the glasses 101. This AR assistive glasses 100 is worn by children with autism to assist them in social interaction.

[0024] In this embodiment, the main body 101 of the glasses is made of SLA (Stereolithography) photosensitive resin by 3D printing, serving as the structural carrier of the whole device. The glasses are lightweight and can stably support various optical and electronic components.

[0025] Projector 102, which can be a Fengbao HD301A1-H2 model, is connected to control board 110 and used to output mood prompts, guide arrows, text, images, etc.

[0026] Attenuator 103 can be equipped with HT-OD030 (30mm circular adjustable attenuator) to reduce light intensity, ensure wearing safety and improve viewing comfort, and avoid strong light stimulation causing discomfort to children with autism.

[0027] The convex lens 104 has a diameter of 30mm and is used to converge the light beam and focus the projected image to ensure clear imaging of the virtual image.

[0028] The PDLC film 105 measures 30mm × 40mm and is a polymer-dispersed liquid crystal film. It can be switched between transparent and atomized states via electronic control to achieve display mode switching under different functions.

[0029] The collimating lens 106 has a diameter of 30 mm and is used to shape the divergent light emitted by the projector 102 into approximately parallel light, providing collimated illumination for subsequent optical paths.

[0030] The reflector 107 measures 30mm × 30mm × 3mm and is used to change the direction of the light path, guide the image to the subsequent optical channel, and achieve compact light path folding.

[0031] The beam splitter 108 measures 15mm × 15mm × 15mm and is used to split and combine light rays to fuse virtual images with the human eye's perspective.

[0032] Camera 109 is used to collect facial image data of the interactive object in real time as an input source for emotion recognition.

[0033] The control board 110 can use a Raspberry Pi edge computing unit, which integrates functions such as camera video acquisition, emotion recognition algorithm, attention guidance judgment and prompt information generation, and transmits the generated image to the projector 102 in real time to realize the synchronous projection of near-eye auxiliary information.

[0034] The models, materials, and dimensions of the above-mentioned components are for illustrative purposes only and are not intended to be limiting.

[0035] It should be noted that the AR assist glasses 100 in this embodiment adopts a switchable wide field of view and improved retinal projection AR display scheme.

[0036] Specifically, the control board 110 is connected to a relay module via a GPIO interface, and the relay module controls the power supply to the PDLC film 105. When the system is in emotion recognition and display mode, the control board 110 controls the relay to engage, energizing the PDLC film 105 and making it transparent. At this time, the image enters the improved retinal projection channel: the image emitted by the projector 102 is projected onto the center of the human eye's retina in an approximately parallel light form after passing through the collimating lens 106, convex lens 104, reflector 107, and beam splitter 108, achieving gaze matching. No matter how the wearer's eyes move, the emotion prompt icons and text always remain stably positioned in the clearest part of the field of vision, while effectively reducing the convergence-accommodation conflict caused by traditional stereoscopic displays, alleviating visual fatigue and dizziness. When the system detects that the autistic child's attention has deviated from the interactive object (e.g., the face is off-center or the target is lost), the control board 110 controls the relay to disconnect, causing the PDLC film 105 to be de-energized and become fogged. At this time, the system switches to a wide field-of-view projection channel: the fogging and scattering effect of the PDLC film expands the display field of view (up to about 50°). The system places attention guidance icons such as directional arrows outside the central communication area (e.g., at the edge of the screen), which can effectively prompt the child's gaze to deviate in the direction while avoiding obscuring the face of the real interactive object, thereby achieving rapid attention recovery and behavioral correction without interrupting the main social task. Through the above hardware and software collaborative control, the AR assistive glasses 100 of this application embodiment can dynamically switch between two display modes according to the real-time social status of the autistic child, realizing a natural integration and low-stimulation presentation of emotion recognition prompts and attention guidance functions.

[0037] Please see Figure 2 This application provides an emotion perception interaction method to assist autistic children in social interaction, applied to the AR assistive glasses 100 mentioned above. The method includes steps 201 to 205.

[0038] Step 201: Obtain facial image data and / or voice data of the interactive objects of the autistic child.

[0039] When a child with autism wears AR assistive glasses, the camera (e.g., an outward-facing camera) on the glasses can capture real-time facial image data of the people interacting with the child (such as family members, peers, or therapists). Simultaneously, when a microphone is present, the voice data of these individuals can be captured in real-time.

[0040] The above methods include three scenarios: facial data only, voice data only, and simultaneous collection of facial image data and voice data.

[0041] Step 202: Determine the current emotional state of the interacting object based on facial image data and / or voice data.

[0042] Then, the collected facial image data and / or voice data are analyzed, such as by using facial emotion recognition algorithms (e.g., deep learning models, multi-frame temporal voting, multimodal fusion, deepface-based facial emotion recognition mechanisms, etc.) to output the current emotional state of the interacting object.

[0043] For example, a voice emotion recognition model (analyzing text, intonation, pitch, intensity, etc.) can output emotion labels; when both exist simultaneously, a multimodal fusion strategy (such as confidence-weighted fusion) can be used to obtain a more reliable emotion judgment.

[0044] Emotional states can be discrete categories (such as happy, sad, angry, surprised, afraid, calm, etc.).

[0045] Step 203: Determine the interaction expectations of the interaction object based on the current emotional state and voice data of the interaction object.

[0046] Interaction expectations can characterize the next intention of the interacting party. Specifically, by combining the established emotional state with contextual analysis of the speech data, we can infer what the interacting party wants the autistic child to do at that moment. Interaction expectations can be specific to an action or behavioral goal, such as "apologize," "return the item," "stop the current action," "share the toy," "give an explanation," or "invite." Keywords, sentence structure, and repetition levels in the speech data are key to inferring expectations.

[0047] Step 204: Generate communication guidance information based on the interaction expectations of the interactive objects.

[0048] The communication guidance information includes at least one of the following: suggested interactive response statements, prompts for current avoidance statements, and suggested strategies for the next round of dialogue.

[0049] Suggested interactive responses could be to tell the child what to say (e.g., you could ask, "What's wrong?").

[0050] The current avoidance statement can be a reminder to the child not to say or do something (e.g., "Don't keep asking questions," which can be accompanied by anger).

[0051] A suggested strategy for the next round of dialogue could be to guide children on how to advance the conversation (e.g., “Now you can make an invitation,” with the corresponding emotion being happiness).

[0052] The specific content of the communication guidance information can be pre-built into an interaction expectation and response mapping library, and then directly matched from the interaction expectation and response mapping library.

[0053] Step 205: Output communication guidance information and the current emotional state of the interaction partner to prompt the autistic child.

[0054] Finally, the identified emotional state (such as a "happy" icon or text) and the generated communication guidance information can be presented to children with autism through the display module and / or voice module of the AR assistive glasses.

[0055] The output method can follow the low-stimulation principle: prioritize displaying static icons and short text, avoid high-frequency flashing and excessive voice broadcasting, and dynamically avoid the central communication area based on the face position to ensure that the real face of the interactive object is not obscured.

[0056] In summary, the emotion perception and interaction method for assisting social interaction in children with autism provided in this application has the following beneficial effects: Unlike existing technologies that merely display emotion labels or fixed phrase templates, the method provided in this application, by acquiring facial image data and / or voice data of the interacting object, not only identifies the current emotional state but also determines the interacting object's interaction expectations based on the emotional state and voice data. Specifically, it determines what kind of response the other party expects from the autistic child when expressing that emotion, and generates communication guidance information based on these expectations. This enables autistic children to understand and learn the connection between why the other party is expressing this emotion and what the other party expects them to do next. It fundamentally compensates for the cognitive deficiencies of autistic children in inferring emotional relationships and the psychological states of others, significantly improving their communication responsiveness in real social scenarios and reducing social avoidance or conflict behaviors caused by misunderstandings or an inability to respond.

[0057] In addition, the generated communication guidance information includes a variety of specific and actionable guidance content, such as suggested interactive response statements, prompts for current avoidance statements, and strategies for the next round of dialogue. It avoids vague or rigid prompts and can adapt to different dialogue stages and social scenarios, effectively helping children with autism to gradually establish social response patterns.

[0058] Optionally, the above steps for determining the current emotional state of the interactive object based on facial image data and / or voice data may specifically include: when the facial image data and voice data are acquired simultaneously within a first time window, extracting a first emotional feature and its corresponding first confidence score based on the facial image data; extracting a second emotional feature and its corresponding second confidence score based on the voice data; calculating the weight of the first emotional feature and the weight of the second emotional feature based on the first confidence score and the second confidence score, wherein the higher the confidence score, the greater the corresponding weight; and performing a weighted fusion based on the first emotional feature, the second emotional feature, the weight of the first emotional feature, and the weight of the second emotional feature to determine the current emotional state of the interactive object within the first time window.

[0059] The first time window can be 1 second, 2 seconds, 5 seconds, etc., or it can be 10 frames, 20 frames, 60 frames, etc. (The same applies to subsequent time windows, so they will not be elaborated further). The confidence score represents the probability value of predicting the emotion. For example, a confidence score of 0.85 for the emotion "anger" means that the probability of predicting the category as "anger" is 85%. The higher the confidence score, the greater the weight of the corresponding emotion feature. That is, the more reliable the judgment of a modality, the greater its weight in the fusion.

[0060] Specifically, when the AR assistive glasses simultaneously acquire facial images and voice data of the interacting object within the first time window, two independent emotion recognition models output the emotion category and its confidence score, respectively. Due to differences in lighting, occlusion, background noise, or individual expression, the reliability of the two modalities may differ.

[0061] Furthermore, the aforementioned methods primarily consider individual differences in expression. Research has found that in real-world social scenarios, individuals exhibit significant differences in their emotional expression. For instance, some people, even when calm, habitually display facial muscles resembling anger or surprise (e.g., naturally high brow bones, downturned corners of the mouth), or speak with expressive facial features but without strong inner emotions. In such cases, relying solely on facial images can easily lead to misjudgment of negative emotions (e.g., "anger" or "anxiety"), while the tone of voice remains calm and neutral. Similarly, some people naturally speak loudly and quickly, sounding excited or angry even in a pleasant or neutral state; conversely, others maintain a calm tone even when emotionally agitated. In these situations, relying solely on vocal features can easily lead to misjudgment of "anger" or "excitement," while facial expressions show no significant change. Therefore, this application employs a confidence-weighted fusion: using the confidence scores of the two modalities as dynamic weights, weighted summation is applied to their respective emotional features (or emotional probability distributions). This way, the high-confidence modality naturally dominates emotional judgment, while the contribution of the low-confidence modality decreases. The resulting comprehensive emotional state utilizes the complementarity of multimodal information while avoiding the errors introduced by fixed weights or simple voting when a particular modality fails.

[0062] The method further includes: when only facial image data is acquired within the second time window, obtaining the reference degree of the facial image data within the previous X time windows; wherein, the reference degree is determined based on the weight of the emotional features extracted from the facial image data during weighted fusion; when the reference degree of the facial image data within the current X time windows is greater than a first reference threshold, determining the current emotional state of the interactive object within the second time window based on the facial image data of the second time window; when the reference degree of the facial image data within the current X time windows is not greater than the first reference threshold, acquiring the previous emotional state of the interactive object determined in the previous time window, and performing weighted fusion of the current candidate emotional state determined by the facial image data of the second time window with the previous emotional state to obtain the current emotional state of the interactive object within the second time window.

[0063] Where X is a positive integer. The first reference threshold can be set to 0.6 or 0.7, and this application does not limit it.

[0064] It's important to note that when only facial image data is available in the second time window (e.g., an autistic child temporarily gazing at someone without them speaking, or no voice data being collected), the system queries the average weight assigned to the facial modality of the interacting object during bimodal fusion over the previous X time windows, i.e., the historical facial reference score. If this reference score is high (exceeding the first reference threshold), it indicates that the object's facial expressions have historically been clear, typical, and highly trusted by the system. In this case, the current emotion can be directly output based solely on facial data, resulting in a fast and accurate response. If the reference score is low, it indicates that the object's facial expressions themselves are unreliable (e.g., facial stiffness due to individual differences, or, as mentioned earlier, some people habitually exhibit features resembling anger or surprise in their facial muscles even when calm, or they may have rich facial expressions while speaking without strong inner emotions). In this case, judging solely based on the current facial expression is prone to error. Therefore, the emotional state from the previous time window is considered, as human emotions typically do not change drastically in a short period, and the previous emotion may be a high-confidence result from multimodal fusion or historical correction. Then, through weighted fusion, both current visual information and historical continuity can be utilized to suppress misjudgments.

[0065] The method further includes: when only voice data is acquired within the third time window, obtaining the reference degree of the voice data within the previous Y time windows; wherein the reference degree is determined based on the weights of the emotional features extracted from the voice data during weighted fusion; when the reference degree of the voice data within the current Y time windows is greater than a second reference threshold, determining the current emotional state of the interactive object within the third time window based on the voice data of the third time window; when the reference degree of the voice data within the current Y time windows is not greater than the second reference threshold, obtaining the previous emotional state of the interactive object determined in the previous time window, and performing weighted fusion of the current candidate emotional state determined by the voice data of the third time window with the previous emotional state to obtain the current emotional state of the interactive object within the third time window.

[0066] Where Y is a positive integer. The second reference threshold can be set to 0.6 or 0.7, and this application does not limit it.

[0067] Considering that autistic children often exhibit shifty gaze and fail to focus on the interacting object during interactions, facial information cannot be utilized when only speech data is available in the third time window (e.g., the autistic child is not looking at the other person, but the other person is speaking). In this case, the average speech weight of the interacting object during bimodal fusion over the previous Y time windows is evaluated, i.e., historical speech reference degree. If this reference degree is higher than the second reference threshold, it indicates that the interacting object's speech has been consistently reliable in the past (e.g., tone of voice matches true emotion), and the current speech is used directly to determine the emotion for a quick response. If the reference degree is lower than the second reference threshold, it indicates that the object's speech is unreliable (e.g., loud voice, exaggerated tone, but not actually excited), and the current speech output is not trusted. Instead, the current speech candidate emotion is weighted and fused with the emotional state of the previous time window. Because the historical reliability of the object's speech is low, the previous emotion is given higher weight during fusion, thus avoiding misjudgment of emotion due to individual differences.

[0068] Optionally, the above steps for determining the current emotional state of the interactive object further include: when the identified emotional state is a preset negative emotion, obtaining the confidence level of the emotional state and / or the similarity between the emotional state and a preset neutral emotion; if the confidence level of the emotional state is less than a first preset threshold or the similarity between the emotional state and the preset neutral emotion is less than a second preset threshold, determining that the current emotional state of the interactive object is a preset neutral emotion or maintaining the previous emotional state.

[0069] First, the front-end emotion recognition model (such as a model based on facial expressions or speech) outputs a preliminary emotion category and its confidence level. If the category belongs to a preset set of negative emotions (such as sadness, anger, fear, etc.), then key quantitative indicators are further obtained: confidence level and / or the similarity between the emotional state and a preset neutral emotion.

[0070] Confidence score indicates the degree of certainty with which the model predicts the outcome for that frame, and is usually the maximum value in the probability distribution (e.g., for sadness, 0.85 means there is an 85% probability of sadness).

[0071] Similarity to preset neutral emotion: The current predicted probability distribution is compared with the standard probability distribution of the preset neutral emotion (calm emotion), and the similarity between the two is calculated (such as cosine similarity, KL (Kullback-Leibler Divergence) divergence, or JS (Jensen-Shannon Divergence) divergence). The higher the similarity, the closer the current emotion is to neutral, and the more likely it is to be a misjudgment.

[0072] Then, two thresholds are set for decision-making. The trigger condition is that either "confidence < first threshold" or "similarity to neutral emotion < second threshold" (or both are met), in which case the current recognition result is determined to be unreliable. If the current recognition result is determined to be unreliable, the final output emotional state is corrected to a preset neutral emotion (such as a calm emotion), or the emotional state output at the previous moment is kept unchanged (i.e., no jump is made).

[0073] It should be noted that the above steps further verify the confidence level and similarity to neutral emotions when negative emotions (such as sadness) are identified. A negative emotion is only output when the confidence level is high and the emotion is clearly distinguishable from a neutral emotion; otherwise, it is corrected to neutral or the previous emotional state is maintained. This mechanism effectively avoids false positives of negative emotions caused by subtle fluctuations in facial expressions, changes in lighting, or biases in the recognition model. It is particularly suitable for children with autism, who are highly sensitive to negative cues, and false positives of sadness may trigger unnecessary anxiety or withdrawal. Through conservative correction, the risk of misguidance can be significantly reduced, and the credibility of emotional cues and the child's acceptance can be improved.

[0074] Optionally, please refer to Figure 3 Determining the current emotional state of the interactive object can specifically include steps 301 to 305.

[0075] Step 301: Obtain the voice data of the interactive object.

[0076] In this embodiment, the AR assistive glasses may also be equipped with a microphone to collect the voice of the interacting object in real time. After acquiring the voice of the interacting object, it is converted into voice data.

[0077] Step 302: Match the speech data with a pre-built hierarchical semantic library.

[0078] The hierarchical semantic database includes at least the following categories: basic emotions, bodily sensations, social intentions, and negation / correction terms.

[0079] For details on the word segmentation semantic database, please refer to Table 1: Table 1 During the matching process, the speech data is segmented into words, the dictionary is queried word by word, and the category to which the matched words belong is recorded.

[0080] Step 303: Based on the overall matching results, determine the first emotional state of the interactive object.

[0081] The initial emotional state of the interacting object is determined by combining the overall matching results and multiple factors.

[0082] Decision-making based on multiple factors can include at least the following: Keyword hit count: The more similar keywords hit, the higher the score.

[0083] Semantic weight: Important keywords (such as "very painful") contribute more.

[0084] Negation correction: The negative emotional or feeling words are reversed or demoted in weight.

[0085] The priority order of entries for basic emotions, physical sensations, social intentions, and negation / correction can be set.

[0086] Step 304: Determine the second emotional state of the interacting object based on facial image data.

[0087] This step can be referred to the description in the foregoing embodiments.

[0088] Step 305: Based on the preset fusion rules, merge the first emotional state and the second emotional state to generate the current emotional state of the interactive object.

[0089] The preset fusion rules can be as follows: When there is no effective voice input, facial emotion results will be the primary indicator.

[0090] When speech semantics clearly expresses high-value emotions (physical discomfort, fear, positive events, anger, surprise), the weight of speech semantics is increased, allowing it to correct facial outcomes.

[0091] When the facial expression indicates sadness or calmness, but the speech clearly indicates emotions such as fear, discomfort, or happiness, the speech should be allowed to correct the facial expression.

[0092] When both are consistent, the credibility of the emotional outcome is increased.

[0093] Of course, the preset fusion rules can directly merge the first emotional state and the second emotional state according to the set weights to generate the current emotional state of the interactive object.

[0094] It should be noted that the above steps integrate speech semantic analysis and facial expression analysis, and employ preset fusion rules for decision-making. The hierarchical semantic database includes categories such as basic emotions, bodily sensations, social intentions, and negation corrections, accurately resolving common expressions of physical discomfort (such as "pain" and "tired") and negation reversals (such as "not sad") in conversations by children with autism. The fusion rules ensure that high-value emotions expressed in speech (such as fear and discomfort) can correct facial recognition results, compensating for the deficiency of relying solely on facial expressions to perceive physical discomfort or semantic contradictions. This makes emotion recognition more consistent with real social scenarios, providing a more reliable basis for subsequent communication guidance.

[0095] Optionally, the above steps, which determine the current emotional state of the interactive object based on facial image data, may specifically include: writing the recognition results of multiple consecutive frames of facial images into a short-term voting window, and after reaching a preset output period, outputting a stable emotional result as the current emotional state of the interactive object through majority voting.

[0096] This mechanism can reduce the impact of single-frame misjudgment, facial jiggling, lighting changes, and detection noise on the final emotion display.

[0097] To verify the performance of the above algorithm in emotion recognition scenarios for children with autism, three sets of comparative experiments were designed: single-frame DeepFace emotion recognition, multi-frame temporal voting emotion recognition, and multimodal emotion recognition with speech-semantic fusion. The experiments were conducted under simulated everyday social environment conditions: the interaction partners were children with autism or simulated facial expression samples; the ambient lighting and viewing angle of the camera were controlled within the range of children's daily communication; the facial distance was maintained at a normal social distance (approximately 0.5–1.5 meters); and clear speech was ensured. The experimental results are shown in Table 2. Table 2 Experimental results show that the multi-frame temporal voting mechanism can effectively improve the stability of emotion recognition and reduce single-frame noise interference; the speech-semantic fusion mechanism further improves the recognition of key emotions and corrects potential misjudgments of facial micro-expressions. This experiment verifies the stability and effectiveness of the above algorithm for multimodal emotion recognition in the daily social scenarios of children with autism.

[0098] Please see Figure 4 Determining the current emotional state of the interactive object can specifically include steps 401 to 404.

[0099] Step 401: Obtain the predicted emotional state corresponding to each of the multiple consecutive facial images, and calculate the comprehensive weight of each facial image.

[0100] The overall weight is obtained by multiplying the image quality score, prediction confidence, and time decay factor.

[0101] The image quality score is determined by combining face detection confidence, head pose angle (yaw, pitch) and image sharpness (Laplacian variance), with a value range of 0 to 1.

[0102] Optionally, if the image quality score of a certain frame of facial image is detected to be lower than the minimum quality threshold, the frame will be directly discarded.

[0103] The prediction confidence score is the maximum value in the probability distribution of that frame, indicating the model's confidence in the prediction.

[0104] The time decay factor indicates that the closer the frame is to the current moment, the higher its weight.

[0105] Step 402: Perform a weighted average of the emotional state predictions of multiple frames of facial images within a sliding time window to obtain a preliminary emotional state prediction.

[0106] That is, by combining the comprehensive weights of each frame of facial images, a weighted average is performed on the emotional state predictions of multiple frames of facial images within a sliding time window to obtain a preliminary emotional state prediction.

[0107] Step 403: Calculate the JS divergence between the preliminary emotional state prediction and the emotional state output at the previous moment, and dynamically determine the smoothing coefficient based on the JS divergence.

[0108] This step introduces an adaptive smoothing mechanism to calculate the JS divergence between the initial emotional state prediction and the emotional state output at the previous time step. This value measures the degree of difference between the two probability distributions and ranges from 0 to 1. Then, the smoothing coefficient is dynamically determined based on the JS divergence.

[0109] For example, the smoothing coefficient is equal to the preset minimum smoothing coefficient plus the JS divergence target value; the JS divergence target value is the product of the difference between the preset maximum smoothing coefficient and the preset minimum smoothing coefficient and the JS divergence.

[0110] Step 404: Based on the smoothing coefficient, perform an exponential moving average between the preliminary emotional state prediction and the emotional state output at the previous moment to determine the current emotional state of the interactive object.

[0111] As can be seen, the above steps perform a weighted average of emotion predictions from multiple consecutive facial images (the weights are determined by image quality, prediction confidence, and time decay), and then use JS divergence to dynamically adjust the smoothing coefficient for exponential moving average, outputting a stable emotional state. This mechanism effectively suppresses emotional jumps caused by single-frame blur, occlusion, or transient facial expressions, while also quickly responding to real emotional shifts (the smoothing coefficient automatically increases when JS divergence is large). Compared to fixed windows or simple majority voting, this method achieves an adaptive balance between stability and sensitivity, and can adapt to the real-time dynamic changes in the facial expressions of interactive objects in social scenarios involving autistic children.

[0112] Please see Figure 5 Determining the current emotional state of the interactive object may further include steps 501 to 504.

[0113] Step 501: Obtain the voice data of the interactive object.

[0114] Step 502: Perform semantic analysis on the speech data to generate text emotion state prediction, and perform acoustic prosodic analysis on the speech data to generate prosodic emotion state prediction.

[0115] The text sentiment prediction can refer to any of the methods described in the foregoing embodiments.

[0116] Acoustic prosodic analysis specifically involves extracting acoustic features from audio waveforms, including fundamental frequency, root mean square energy, and speech rate. These acoustic features are input into a lightweight classification model (such as an RNN), which outputs a prosodic sentiment probability distribution.

[0117] Acoustic features are particularly effective in distinguishing states such as “anger,” “fear,” and “calm,” and can provide additional clues in short speech fragments or non-lexical interjections (such as “uh-huh”).

[0118] Step 503: Based on facial image data, determine the predicted facial emotion state.

[0119] This prediction can be made in any of the ways described in the foregoing embodiments.

[0120] Step 504: Calculate dynamic fusion weights based on the confidence and historical reliability parameters of each modality prediction, and perform weighted fusion of text emotion state prediction, prosodic emotion state prediction and facial emotion state prediction to determine the current emotion state of the interactive object.

[0121] For text modalities, confidence can be taken from the maximum predicted probability value, or normalized based on the clarity of the lexicon match (such as the number of keywords and negation complexity).

[0122] For prosodic modalities, the confidence score is taken from the maximum output value of the classification model or the softmax temperature normalization.

[0123] For facial modalities, the confidence level can be taken from the maximum value of the probability distribution after adaptive smoothing.

[0124] Each modality has a preset historical reliability parameter (e.g., the overall accuracy of the modality on an offline validation set).

[0125] Finally, the predicted emotional states of text, prosodic emotional states, and facial emotional states are weighted and fused to determine the current emotional state of the interacting object.

[0126] The above steps integrate three modalities: text semantic analysis, acoustic prosody analysis, and facial image analysis. The fusion weights are dynamically allocated based on the real-time confidence and historical reliability of each modality. Compared to single-modality or fixed-weight fusion, this approach can adaptively handle changes in data quality across different modalities: for example, it automatically reduces the weight of facial recognition when confidence decreases in low light, while relying on text or facial recognition when confidence in speech prosody decreases in noisy environments. This dynamic weighted fusion significantly improves the robustness of emotion recognition in various real-world social environments.

[0127] Furthermore, this application also provides an attention guidance strategy. The attention guidance strategy provided by this application embodiment will be described below.

[0128] Optionally, the method further includes: real-time detection of the face of the interactive object; confirming the stable existence of the target when the face of the interactive object is continuously detected to a first threshold, or determining that the target is lost when the face of the interactive object is not continuously detected to a second threshold; calculating the offset between the center point of the face of the interactive object and the center point of the screen during the period when the target is stable; entering the attention guidance state and generating a directional guidance icon when the offset continuously exceeds a third threshold; and deactivating the attention guidance state when the face of the interactive object returns to the center of the screen and continuously reaches a fourth threshold.

[0129] The above process uses multiple set thresholds for judgment.

[0130] For example, if the number of consecutive frames in which a face is detected reaches the first threshold T1 (which can be 3 frames), then the target is confirmed to be in a stable state.

[0131] If the number of consecutive frames in which no face is detected reaches the second threshold T2 (which can be 10 frames), the target is determined to be lost.

[0132] When the offset exceeds a preset value (e.g., 15% of the screen width) and the duration reaches the third threshold T3 (which can be 10 frames), the attention guidance state is officially entered. Once in the attention guidance state, a directional guidance icon (e.g., an arrow) is generated to prompt the autistic child which direction to turn their head to refocus on the interactive object.

[0133] In addition, when necessary, short voice prompts can be used to guide autistic children to regain their gaze during attention guidance.

[0134] When an autistic child follows the guidance or turns their gaze back, and the face of the interactive object returns to the center of the screen (the offset is less than another preset value), it needs to be confirmed that this return is stable, rather than a brief entry followed by an immediate departure. A fourth threshold (T4) is set: after returning to the center, the fourth threshold T4 (which can be maintained for 5 frames) must be continuously reached before the attention guidance state is lifted and the normal emotional cue mode is switched back.

[0135] As can be seen, the above steps determine whether the target is stably present by detecting thresholds in consecutive frames (first threshold, second threshold), and only trigger or deactivate attention guidance when the face continuously deviates or returns to the target at corresponding time thresholds (third threshold, fourth threshold). This state mechanism effectively avoids frequent false triggers caused by single-frame detection failures or short-term unintentional head turns, reducing unnecessary disturbance to children with autism. At the same time, the asymmetrical trigger duration (larger trigger threshold) ensures that guidance is only initiated when there is substantial attention deviation, while the shorter deactivation duration ensures that the prompt can be quickly removed once attention returns, improving the wearing experience.

[0136] Furthermore, in the above embodiments, a voice delay threshold (e.g., 2 seconds) can be set to trigger the voice prompt only after the voice has deviated from its continuous duration. A voice cooldown threshold (e.g., 5 seconds) can also be set to limit the repeated playback of the same voice message.

[0137] Validating the attention guidance function: The lighting conditions were ordinary indoor lighting. The test set up three scenarios: face off-center, target out of the field of view, and target re-entering the field of view. Each scenario was tested 25 times, for a total of 75 sets of samples. At the same time, the PDLC membrane was repeatedly tested for power on and off switching.

[0138] Test results show that the PDLC film completes one transition between transparent and fogged states in approximately 0.5 seconds. When the interactive object's face deviates from the center of the field of view or is lost from the field of vision, the overall response time for the system to output directional visual guidance cues is approximately 0.8–1.0 seconds; if the deviation or loss persists, a corresponding directional voice cue is triggered approximately 2.8–3.0 seconds later. When the target re-enters the field of vision after being lost, the overall response time for gaze regression cues is approximately 0.6–0.7 seconds.

[0139] The test results show that the attention guidance module can achieve stable responses in scenarios of target deviation, loss, and return, meeting the real-time prompting needs of autistic children in their daily social assistance.

[0140] Optionally, the method further includes: obtaining the face bounding box of the interactive object and extracting the center point coordinates of the face bounding box; normalizing the offset of the center point coordinates relative to the center of the image according to the current image size to obtain normalized horizontal and vertical offsets, and calculating the spatial Euclidean distance; entering the attention guidance state when the spatial Euclidean distance exceeds a set outer diameter threshold and the duration reaches a first duration; and deactivating the attention guidance state when the spatial Euclidean distance is lower than a set inner diameter threshold and the duration reaches a second duration.

[0141] The offset of the face center point relative to the geometric center of the image is normalized to eliminate the influence of different camera resolutions on the threshold setting.

[0142] The outer diameter threshold can be 0.35, and the inner diameter threshold can be 0.2. The first duration can be 10 frames, and the second duration can be 5 frames.

[0143] For example, when an autistic child gazes at an interactive object, a facial center offset of 0.12 (less than 0.2) indicates a normal emotional cue mode.

[0144] When a child with autism turns their head to look to the side, the center offset of the interactive object's face is 0.4 (greater than 0.35). The system starts timing, and after 11 frames, it enters the attention guidance state, displaying a directional arrow (e.g., to the right, if the teacher is to the right).

[0145] When an autistic child sees the arrow, they turn their head, and the center offset of the interactive object's face drops to 0.15 (less than 0.2). If this condition is met for 5 consecutive frames, the guidance is discontinued, and the emotion icon is restored.

[0146] Brief disturbance: If the child looks left and right quickly, the center offset of the interactive object's face will fluctuate between 0.3 and 0.4 and will not be triggered if it does not last for more than 10 consecutive frames; similarly, if the child briefly returns to the center for less than 5 frames and then moves away again, the attention guidance state will not be lifted.

[0147] The above steps further refine the spatial judgment method for attention guidance. By normalizing the offset, the influence of different image resolutions is eliminated. A dual threshold mechanism of inner and outer diameters is employed: guidance is triggered only when the deviation exceeds the larger outer diameter threshold and persists for a certain period; guidance is deactivated only when the deviation returns to below the smaller inner diameter threshold and persists for a certain period. This approach effectively avoids frequent state switching caused by minute fluctuations in the face near a single critical threshold, resulting in smoother guidance triggering.

[0148] Optionally, the aforementioned entry into the attention guidance state may further include: calculating the spatial deflection angle based on the normalized horizontal and vertical offsets; converting the deflection angle into corresponding discrete direction labels according to multiple preset angle intervals; voting on multiple direction labels stored in a historical direction sliding window of a set fixed length to obtain the voting result; when the new direction indicated by the voting result is different from the currently locked direction, and the difference between the number of votes for the new direction and the number of votes for the current direction reaches a preset vote threshold, the guidance direction is switched to the new direction; otherwise, the current direction is maintained.

[0149] After entering the attention-guided state, normalized horizontal and vertical offsets are obtained (representing the degree of left-right and up-down deviation of the interactive object's face relative to the center of the screen, respectively). To determine the specific direction to guide the autistic child to turn their head, these two offsets need to be combined into a spatial angle, namely the spatial deflection angle. This angle reflects the direction in which the face deviates from the center of the screen: for example, 0 degrees corresponds to the right, and 90 degrees corresponds to the top. By calculating this angle, it can be determined whether the autistic child should turn their head left, right, up, or down to bring their face back to the center of the screen.

[0150] Next, it's necessary to display clear, simple, and easily understood directional icons (such as arrows) to children with autism. Therefore, the entire circumference is pre-divided into several angular intervals, each interval corresponding to a discrete directional label. Based on which interval the spatial deflection angle calculated in the previous step falls into, it is converted into the corresponding directional label.

[0151] Because children's heads may tremble slightly, and there may be camera detection noise or slight jitter in the face bounding box, the direction labels calculated over several consecutive frames may be unstable, for example, fluctuating between "left" and "top left". If the direction labels of each frame are used directly to update the arrow icon, the arrow will flicker or jump frequently, confusing children with autism. Therefore, a fixed-length historical direction sliding window (e.g., a sequence of direction labels from the most recent 6 frames) is maintained. Each time a new direction label is obtained, it is stored in the window, and the oldest frame in the window is removed. Then, a majority vote is performed on all direction labels within the window, counting the frequency of each direction label, and the label with the most votes is used as the voting result for this window. In this way, brief, occasional abnormal directions will not immediately affect the output.

[0152] However, even after voting through a sliding window, the voting result can still fluctuate between two adjacent directions (e.g., "left" and "top left"), especially when the interactive object's face is located precisely at the boundary between the two directions. Switching the arrow immediately after each change in voting result would still cause frequent jitter. To further suppress this boundary jitter, a switch confirmation debouncing strategy is introduced. Specifically, when a new voting result (new direction) differs from the currently locked direction, the arrow is not switched immediately. Instead, the number of votes for the new direction is compared with the number of votes for the currently locked direction (which also has votes within the window). Only when the number of votes for the new direction exceeds a preset threshold (e.g., leading by 2 votes or more) is the direction considered to have truly changed, and the guiding direction is switched to the new direction. Otherwise, the original direction output is maintained.

[0153] As can be seen, the above steps debouncing and stabilizing the directional output for attention guidance. The deflection angle is discretized into directional labels, and then a majority vote is conducted based on a historical sliding window. Switching is only performed when the number of votes for the new direction exceeds the number of votes for the current direction by a preset advantage threshold. This mechanism avoids frequent jumps in directional cues (e.g., rapid left-right switching) caused by jittering of the offset vector near the directional boundaries, while ensuring the smoothness of directional changes. For children with autism, stable and clear directional cues are easier to understand and execute, improving the success rate of attention regression.

[0154] Optionally, the method further includes: after more than N consecutive social interactions, stopping the output of communication guidance information and only outputting the current emotional state of the interacting object.

[0155] N can be 100, 1000, etc.

[0156] It should be noted that the principle behind the above mechanism is that: through specific guidance and demonstration in the first N interactions, children with autism can initially learn how to respond when the other party shows a certain emotion; subsequent prompts of emotion without giving specific instructions can encourage children to actively recall and apply the response strategies they have learned, thereby enabling children with autism to respond autonomously and independently.

[0157] Please see Figure 6 Based on the same inventive concept, this application also provides an emotion perception interaction system 60 to assist autistic children in social interaction, applied to the AR assistive glasses in the aforementioned embodiments, including: The acquisition module 601 is used to acquire facial image data and / or voice data of the interactive object of the autistic child; The emotion determination module 602 is used to determine the current emotional state of the interactive object based on the facial image data and / or the voice data; The interaction expectation determination module 603 is used to determine the interaction expectation of the interaction object based on the current emotional state of the interaction object and the voice data; The communication guidance determination module 604 is used to generate communication guidance information based on the interaction expectations of the interaction object; wherein, the communication guidance information includes at least one of the following: suggested interaction response statements, prompts for current avoidance statements, and suggested next round dialogue strategies; The output module 605 is used to output the communication guidance information and the current emotional state of the interactive object to prompt the autistic child.

[0158] It should be noted that the above system content is based on the same concept as the method embodiment of this application, and the technical effects brought by the modules designed in the system can be found in the method embodiment section, and will not be repeated here.

[0159] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0160] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.

[0161] This application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal executes the steps in the above-described method embodiments.

[0162] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0163] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for assisting autistic children in social interaction through emotional perception, characterized in that, Application to AR assistive glasses, said AR assistive glasses for children with autism, including: Acquire facial image data and / or voice data of the interactive objects of the autistic child; Based on the facial image data and / or the voice data, determine the current emotional state of the interactive object; Based on the current emotional state of the interactive object and the voice data, determine the interactive object's interaction expectation; Communication guidance information is generated based on the interaction expectations of the interaction object; wherein, the communication guidance information includes at least one of the following: suggested interaction response statements, prompts for current avoidance statements, and suggested next round dialogue strategies; Output the communication guidance information and the current emotional state of the interactive object to prompt the autistic child; The method further includes: obtaining the face bounding box of the interactive object, extracting the center point coordinates of the face bounding box; normalizing the offset of the center point coordinates relative to the center of the image according to the current image size, obtaining normalized horizontal and vertical offsets, and calculating the spatial Euclidean distance; entering the attention guidance state when the spatial Euclidean distance exceeds a set outer diameter threshold and the duration reaches a first duration; and de-activating the attention guidance state when the spatial Euclidean distance is lower than a set inner diameter threshold and the duration reaches a second duration. The process of entering the attention guidance state further includes: calculating the spatial deflection angle based on the normalized horizontal and vertical offsets; converting the deflection angle into corresponding discrete direction labels according to multiple preset angle intervals; voting on multiple direction labels stored in a historical direction sliding window of a set fixed length to obtain the voting result; when the new direction indicated by the voting result is different from the currently locked direction, and the difference between the number of votes for the new direction and the number of votes for the current direction reaches a preset vote threshold, the guidance direction is switched to the new direction; otherwise, the current direction is maintained.

2. The emotional perception interaction method for assisting social interaction in children with autism according to claim 1, characterized in that, Determining the current emotional state of the interactive object based on the facial image data and / or the voice data includes: When the facial image data and the voice data are acquired simultaneously within the first time window, a first emotion feature and its corresponding first confidence score are extracted based on the facial image data; a second emotion feature and its corresponding second confidence score are extracted based on the voice data. Based on the first confidence score and the second confidence score, calculate the weight of the first emotion feature and the weight of the second emotion feature, wherein the higher the confidence score, the greater the corresponding weight; The current emotional state of the interactive object within the first time window is determined by weighted fusion based on the first emotional feature, the second emotional feature, the weight of the first emotional feature, and the weight of the second emotional feature.

3. The emotional perception interaction method for assisting social interaction in children with autism according to claim 2, characterized in that, The method further includes: When only the facial image data is acquired within the second time window, the reference degree of the facial image data within the first X time windows is obtained; wherein, the reference degree is determined based on the weight of the emotional features extracted from the facial image data during weighted fusion; When the reference value of facial image data within the current X time windows is greater than the first reference threshold, the current emotional state of the interactive object within the second time window is determined based on the facial image data of the second time window. When the reference value of the facial image data within the current X time windows is not greater than the first reference threshold, the previous emotional state of the interactive object determined in the previous time window is obtained, and the current candidate emotional state determined by the facial image data in the second time window is weighted and fused with the previous emotional state to obtain the current emotional state of the interactive object within the second time window.

4. The emotional perception interaction method for assisting social interaction in children with autism according to claim 2, characterized in that, The method further includes: When only the voice data is obtained in the third time window, the reference degree of the voice data in the first Y time windows is obtained; wherein, the reference degree is determined based on the emotional feature weights extracted from the voice data during weighted fusion. When the reference value of the voice data within the current Y time windows is greater than the second reference threshold, the current emotional state of the interactive object within the third time window is determined based on the voice data of the third time window. When the reference value of the voice data within the current Y time windows is not greater than the second reference threshold, the previous emotional state of the interactive object determined in the previous time window is obtained, and the current candidate emotional state determined by the voice data in the third time window is weighted and fused with the previous emotional state to obtain the current emotional state of the interactive object within the third time window.

5. The emotional perception interaction method for assisting social interaction in children with autism according to claim 1, characterized in that, Determining the current emotional state of the interactive object further includes: When the identified emotional state is a preset negative emotion, obtain the confidence level of the emotional state and / or the similarity between the emotional state and a preset neutral emotion; If the confidence level of the emotional state is less than the first preset threshold or the similarity between the emotional state and the preset neutral emotion is less than the second preset threshold, the current emotional state of the interactive object is determined to be the preset neutral emotion or to maintain the previous emotional state.

6. The emotion perception interaction method for assisting social interaction in children with autism according to claim 1, characterized in that, Determining the current emotional state of the interactive object based on the facial image data and / or the voice data includes: The voice data is matched with a pre-built hierarchical semantic database; wherein the hierarchical semantic database includes at least the following categories: basic emotion, bodily sensation, social intention, and negation / correction terms. Based on the combined matching results, the first emotional state of the interactive object is determined; Based on the facial image data, the second emotional state of the interactive object is determined; Based on preset fusion rules, the first emotional state and the second emotional state are merged to generate the current emotional state of the interactive object.

7. The emotional perception interaction method for assisting social interaction in children with autism according to claim 1, characterized in that, Based on the facial image data, determining the current emotional state of the interactive object includes: The system obtains the predicted emotional state corresponding to multiple consecutive frames of facial images and calculates the comprehensive weight of each frame of facial images; wherein the comprehensive weight is obtained by multiplying the image quality score, prediction confidence and time decay factor. The emotional state predictions of the multiple frames of facial images are weighted and averaged within a sliding time window to obtain a preliminary emotional state prediction. Calculate the JS divergence between the preliminary emotional state prediction and the emotional state output at the previous time step, and dynamically determine the smoothing coefficient based on the JS divergence; Based on the smoothing coefficient, an exponential moving average is performed between the preliminary emotional state prediction and the emotional state output at the previous moment to determine the current emotional state of the interactive object.

8. The emotional perception interaction method for assisting social interaction in children with autism according to claim 1, characterized in that, The method further includes: Real-time detection of the face of the interactive object; When the number of consecutive detections of the face of the interactive object reaches the first threshold, it is confirmed that the target is stably present; or when the number of consecutive failures to detect the face of the interactive object reaches the second threshold, it is determined that the target is lost. During the period when the target is stable, calculate the offset between the center point of the face position of the interactive object and the center point of the screen; When the offset continues to exceed the third threshold, it enters the attention guidance state and generates a directional guidance icon. Once the face of the interactive object returns to the center of the screen and continues to reach the fourth threshold, the attention guidance state is released.

9. The emotional perception interaction method for assisting social interaction in children with autism according to claim 1, characterized in that, The method further includes: After more than N consecutive social interactions, the output of the communication guidance information will cease.

10. An emotion-sensing interactive system to assist social interaction in children with autism, characterized in that, Application to AR assistive glasses, said AR assistive glasses for children with autism, including: The acquisition module is used to acquire facial image data and / or voice data of the interactive objects of the autistic child; An emotion determination module is used to determine the current emotional state of the interactive object based on the facial image data and / or the voice data. An interaction expectation determination module is used to determine the interaction expectation of the interaction object based on the current emotional state of the interaction object and the voice data. A communication guidance determination module is used to generate communication guidance information based on the interaction expectations of the interaction object; wherein, the communication guidance information includes at least one of the following: suggested interaction response statements, prompts for current avoidance statements, and suggested next round dialogue strategies; The output module is used to output the communication guidance information and the current emotional state of the interactive object to prompt the autistic child; The system is also used to: acquire the facial bounding box of the interactive object, extract the center point coordinates of the facial bounding box; normalize the offset of the center point coordinates relative to the center of the image according to the current image size, obtain the normalized horizontal and vertical offsets, and calculate the spatial Euclidean distance; when the spatial Euclidean distance exceeds a set outer diameter threshold and the duration reaches a first duration, enter the attention guidance state; when the spatial Euclidean distance is lower than a set inner diameter threshold and the duration reaches a second duration, deactivate the attention guidance state. It is used to calculate the spatial deflection angle based on the normalized horizontal and vertical offsets; convert the deflection angle into corresponding discrete direction labels according to multiple preset angle intervals; vote on the multiple direction labels stored in the historical direction sliding window with a set fixed length to obtain the voting result; when the new direction indicated by the voting result is different from the currently locked direction, and the difference between the number of votes for the new direction and the number of votes for the current direction reaches a preset vote threshold, the guiding direction will be switched to the new direction, otherwise the current direction will be maintained.

Citation Information

Patent Citations

  • Emotion detection method and device, medium and electronic equipment

    CN112541425A

  • Systems, environment and methods for emotional recognition and social interaction coaching

    US20190015033A1

  • Multi-modal emotion recognition device, method, and storage medium using artificial intelligence

    US20190163965A1