Intelligent interactive writing system and method based on emotion adjustment

By using an intelligent interactive writing system that combines a multimodal large language model and professional psychological theories, the system addresses the problems of high costs, scarce resources, and lack of systematic emotion management in existing psychological counseling applications. It enables personalized emotion regulation, immediate response, and in-depth emotion processing, reduces psychological barriers, and provides professional feedback and visualized emotion display.

CN120895175APending Publication Date: 2025-11-04上海丽瑗健康管理咨询中心
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511002070.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-11-04

AI Technical Summary

Technical Problem

Existing psychological counseling applications suffer from problems such as high costs, scarce resources, long appointment cycles, lack of systematic emotion management training, significant privacy protection pressures, mechanical dialogue processes, lack of personalization, lack of in-depth emotion regulation, lack of interactivity and real-time guidance.

Method used

This paper presents an intelligent interactive writing system based on emotion regulation, including a user registration and initialization module, a multimodal large language model, a surface emotion recognition module, a core emotion information unlocking module, a staged emotion exploration module, a trauma scene reproduction and guided emotion regulation module, an important others interactive dialogue module, and a data storage and retrieval module. Combining professional psychological theories, it achieves systematic emotion regulation through multi-stage design and AI-guided processes.

Benefits of technology

It reduces the cost of psychological and emotional regulation, provides a personalized emotional regulation experience, supports instant response and continuous training, records long-term emotional changes, ensures user privacy protection, dynamically adjusts the emotional regulation path, provides professional feedback and visualized emotional display, and enables deep emotional expression and cognitive reconstruction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120895175A_ABST
    Figure CN120895175A_ABST
Patent Text Reader

Abstract

The invention discloses an intelligent interactive writing system and method based on emotion regulation. The intelligent interactive writing system based on emotion adjustment comprises a user registration and initialization module, a front end, a multi-mode large language model, a surface emotion recognition module, a core emotion information unlocking module, a staged emotion exploration module and a wound scene reproduction and guide emotion adjustment module. An important others interactive dialogue module; and a data storage and retrieval module. According to the method, various emotion adjusting technologies are integrated, various psychological emotion adjusting technologies such as writing, dialogue emotion adjusting and role playing are combined, an emotion vocabulary library is provided, the emotion expression ability of the user is enriched, the user is helped to deal with past psychological trauma through trauma scene writing, and unmet emotion requirements are met through important others' dialogues. According to the invention, a three-layer architecture design is adopted to ensure the stability and expansibility of the system; the responsibilities of the client and the server are clearly separated, and the data transmission efficiency is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of artificial intelligence, more particularly, to an intelligent interaction writing system and method based on emotion regulation. BACKGROUND

[0002] The current market psychological counseling application programs are mainly divided into the following categories: traditional online psychological counseling application programs (such as Simple Psychology, etc.), AI psychological counseling application programs (such as Xiaohuo, etc.), writing application programs (such as Jour, Reflectly, etc.), paper books and work manuals, etc., among which,

[0003] Traditional online psychological counseling application programs can provide online appointment functions, users can book professional consultants, and one-on-one counseling services are provided through video, audio, text and other means. Consultants provide psychological guidance and advice based on professional knowledge, and usually adopt a fixed time length charging mode. However, the traditional online psychological counseling application counseling fee is high (usually hundreds of yuan per hour), ordinary users are difficult to bear for a long time, high-quality consultant resources are scarce, the reservation period is long, and the immediate emotional processing needs of users cannot be met. There is a lack of systematic emotional management training programs, the effect of single counseling is limited, user privacy protection is under pressure, and there may be psychological barriers when facing real counseling.

[0004] The AI psychological counseling application programs in the prior art use artificial intelligence technology to provide conversational psychological support, provide basic emotion recognition and response functions, users can express emotions and emotional venting at any time, and usually adopt a free or low-cost use mode. However, the dialogue process of the AI psychological counseling application programs in the prior art is too mechanical and general, lacks personalized emotion regulation programs for specific user conditions, cannot provide a deep emotion regulation experience, mainly stays in the simple identification and response of surface emotions, lacks complete psychological emotion regulation theory support, is difficult to form a systematic emotion regulation process, cannot effectively track user emotion change trajectories, and lacks a long-term emotion regulation effect evaluation mechanism.

[0005] Writing application programs provide structured diary templates and guided questions, are based on the expressive writing theory, encourage users to express emotions through writing, and some applications provide simple emotion tracking functions, lack systematic emotion processing theory support and personalized guidance, and usually adopt a self-help mode without a professional feedback mechanism.

[0006] Paper books and work manuals provide a theoretical framework and exercise guidance for writing, and guide readers to write emotions through structured steps, but lack interactivity and real-time guidance, users are difficult to continuously track their own emotional changes and emotion regulation progress, and emotion regulation paths cannot be dynamically adjusted according to user reactions.

[0007] Therefore, it is urgent to provide an intelligent interactive writing system and method based on emotion regulation to solve the above problems. SUMMARY

[0008] Therefore, the present application provides an intelligent interactive writing system and method based on emotion regulation.

[0009] In one aspect, the intelligent interactive writing system based on emotion regulation of the present application comprises a user registration and initialization module, a front end, a multi-modal large language model, a surface emotion recognition module, a core emotion information unlocking module, a phased emotion exploration module, a trauma scene reconstruction and guided emotion regulation module, an important other interaction dialogue module, and a data storage and retrieval module, wherein

[0010] The user registration and initialization module is used to complete user registration and perform novice guide introduction, and initial points are issued to the user's account after registration;

[0011] The front end is used to interact with the user and call the cloud function for processing;

[0012] The multi-modal large language model comprises a first large model, a second large model, a third large model, a fourth large model, and a fifth large model, wherein the first large model is used for daily emotion guidance and core emotion information exploration, the second large model is used for trauma scene construction guidance, the third large model is used to assist in defining important other roles, the fourth large model is used to play important others for dialogue, and the fifth large model is used to respond to the emotional needs of the user in specific scenarios;

[0013] The surface emotion recognition module is used to detect surface emotion words contained in the user input text in real time;

[0014] The core emotion information unlocking module is used to identify the core emotion information mentioned by the user;

[0015] The phased emotion exploration module is coupled with the front end, the first large model, the surface emotion recognition module, and the core emotion information unlocking module, and comprises a first phase, a second phase, and a third phase, wherein

[0016] The first phase writes through dialogue between the front end and the first large model, the surface emotion recognition module detects surface emotion words contained in the user input text in real time, and when the surface emotion words are detected, the corresponding emotion is recorded and notified to the user to unlock;

[0017] When the user unlocks at least one surface emotion, the second phase is entered, and the user continues to interact with the first large model to express emotions in depth;

[0018] When the user unlocks at least 8 surface emotions to enter the third stage, the core emotion information unlocking module is connected, the core emotion information unlocking task is started, the core emotion information mentioned by the user is identified through the first large model, and the user is guided to explore in depth. When the user completes the complete expression of the core emotion information, the unlocking state of the core emotion information is recorded;

[0019] The trauma scene reproduction and guided emotion regulation module is coupled with the stage-based emotion exploration module and the second large model. After the user unlocks the core emotion information, the user enters the trauma scene writing stage, the second large model is used to guide the user to describe the trauma scene in detail, and the trauma scene information is saved.

[0020] The important other interaction dialogue module is coupled with the front end, the third large model and the fourth large model. The user selects an existing important other role to interact through the front end, defines and updates the important other role and its characteristics through the third large model, and has a dialogue with the important other played by the fourth large model in the trauma scene.

[0021] The data storage and retrieval module is coupled with the stage-based emotion exploration module, the trauma scene reproduction and guided emotion regulation module, and the important other interaction dialogue module. Surface emotion words, the user's emotion unlocking state, written content, trauma scene description and dialogue content with important others are stored in different databases. The user can unlock historical dialogue content through an integral mechanism.

[0022] Optionally, the system further comprises an auxiliary function module coupled with the stage-based emotion exploration module, which is used to visually display the surface emotions unlocked by the user, record and display the historical writing content of the user, write emotional letters to target objects, and display writing data statistics and ranking information of the user.

[0023] Optionally, the system further comprises an integral incentive module coupled with the user registration and initialization module, the stage-based emotion exploration module, the trauma scene reproduction and guided emotion regulation module, and the important other interaction dialogue module. The user obtains initial points after completing the novice guide, and exchanges points according to the number of written words.

[0024] In another aspect, the application also provides an intelligent interactive writing method based on emotion regulation, which is applied to the intelligent interactive writing system based on emotion regulation, and comprises:

[0025] The user registers and completes the novice guide after registration. If the novice guide is completed, the user's account obtains initial points.

[0026] In the first stage, the front end dialogues with the first single model to write emotional content and stores, the surface emotion recognition module detects the surface emotional words contained in the user input text in real time, and judges whether at least one surface emotion is unlocked;

[0027] If the user unlocks at least one surface emotion and enters the second stage, the front end continues to dialogue with the first large model and stores, and judges whether at least 8 surface emotions are unlocked; if the user does not unlock the surface emotion, the front end continues to dialogue with the first single model, writes emotional content and stores;

[0028] If the user unlocks at least 8 surface emotions, enters the third stage, and performs core emotional information unlocking, the front end continues to dialogue with the first large model and stores, and judges whether the core emotional information is mentioned; if yes, the first large model guides to explore the core emotional information in depth, and records the unlocking state of the core emotional information when the user completes the complete expression of the core emotional information; if the user does not unlock at least 8 surface emotions, the front end continues to dialogue with the first large model and stores, and judges whether at least 8 surface emotions are unlocked;

[0029] Store the emotional unlocking state, emotional unlocking times and historical written content of the user;

[0030] Enter the trauma scene writing stage, dialogue with the second large model and store, the user describes the trauma scene in detail, and save the trauma scene information;

[0031] Judge whether the user has a defined important other: if yes, select the existing important other and dialogue with the fourth large model; if no, define the updated important other role and its characteristics through the third large model, shape the important other image, and dialogue with the fourth large model, and store the dialogue content.

[0032] Compared with the prior art, the intelligent interactive writing system and method based on emotional regulation provided by the present application at least achieve the following beneficial effects:

[0033] The invention solves the problem of high counseling cost relative to the shortcomings of traditional online psychological counseling applications: through AI-guided automated processes, the invention significantly reduces service costs, enabling ordinary users to use it for a long time, and adopts a phased function unlocking mechanism, from chat to in-depth exploration, to achieve a business model of free basic functions and low-cost advanced functions; solves the problem of scarcity of high-quality counselor resources and long reservation period: the system provides 7x24 instant response, user emotional needs are handled in a timely manner, the server-side emotion recognition and classification module can handle a large number of user requests at the same time, solving the problem of resource scarcity, and the getDialogueID and saveDialogue functions realize session continuity, and users can interrupt at any time; solve the problem of lack of systematic emotional management training: the invention provides a complete training system based on the four-step writing method (event sketching → emotional focus → demand decoding → rewriting narrative), through a four-stage emotional regulation path (awareness → discovery → emotional regulation → reconstruction), guide users to complete systematic emotional ability training, the emotional regulation process management module records long-term emotional changes, and provides continuous training feedback; solve the problem of high privacy protection pressure, users interact with the AI system, eliminating the psychological barriers to face-to-face counseling, the data storage and analysis module uses encryption technology to save user emotional expression content and dialogue records, and the system architecture ensures user data isolation to ensure that information is not accessed without authorization.

[0034] The invention solves the problem of mechanical and lack of individualization of the dialogue process relative to the solutions to the problems of AI psychological counseling applications: the emotion recognition and classification module divides user emotions into surface emotions and core emotional information, providing differential processing, dynamically adjusting dialogue strategies and emotional regulation paths based on user historical emotional data, and recording and utilizing user-specific emotional expression patterns by establishing a personalized emotional treasure pot; solve the problem of being unable to provide deep emotional regulation: the trauma scene writing module guides users to explore the root of emotions through progressive questioning, the important person dialogue module supports users to have virtual conversations with key figures, realizes deep emotional expression, and the rewriting narrative module helps users understand past events from a new perspective, realizing cognitive reconstruction; solve the problem of lack of complete psychological emotional regulation theory support: integrate professional theories such as expressive art emotional regulation, emotional focus therapy, and cognitive behavioral therapy, and based on Maslow's pyramid of needs theory, implement an emotion-demand decoding algorithm, and the emotion granularity table provides a professional emotion classification and recognition framework; solve the problem of being unable to track emotional change trajectories: track the complete process of each emotional regulation session through a unique dialogue ID, the data storage and analysis module establishes an emotional change database to record long-term changes, and the client provides visual display of emotional changes to help users understand their own emotional development.

[0035] Compared with the solution of the limitation of the writing therapy application, the present application solves the problem of lack of systematic emotional processing theory support: the four-step emotional writing method in "Writing Self-healing Power" is systematically implemented, the emotion-focused description module helps users accurately name emotions based on a complete emotion granularity table, the demand decoding module establishes a systematic connection between emotions and needs, and deepens the understanding of emotions; solve the problem of lack of personalized guidance: the server analyzes the user's text and generates targeted next-step guidance questions, dynamically adjusts the guidance direction and depth based on the user's emotional expression pattern, and provides differentiated guidance content according to the user's emotional regulation stage; solve the problem of lack of professional feedback in self-help mode, AI analyzes user writing content in real time, provides professional feedback, saveEmotionWords and updateEmotionStat functions process emotion data, generate professional analysis, and the system automatically recommends suitable emotion regulation paths based on emotion analysis results.

[0036] Compared with the solution of the deficiency of paper books and workbooks, the present application solves the problems of lack of interactivity and real-time guidance: the client interface provides immediate feedback, enhances user engagement, the server generates dynamic guidance questions, adjusts the guidance direction according to user answers, supports multi-round dialogue mode, and simulates the real emotional regulation guidance experience; solve the problem of difficulty in tracking emotional changes: the data analysis process provides emotional state reports and trend analysis, the getDailyWordRanking function analyzes the frequency of user emotional vocabulary usage changes, and the client displays emotional change charts to visually present emotional regulation progress; solve the problem of inability to dynamically adjust emotional regulation paths: the system automatically adjusts emotional regulation strategies based on user feedback and emotional changes, the phased guidance mechanism unlocks new functions and content according to user progress, and the server-side algorithm analyzes user needs to provide personalized emotional regulation suggestions.

[0037] The present application is a systematic implementation combined with professional psychology theory: the writing theory in expressive art emotional regulation is converted into quantifiable AI guidance process; enhance user emotional recognition ability through emotion granularity table; based on Maslow's pyramid of needs, help users understand the core needs behind emotions; through the four-stage emotional regulation path, guide users to complete the complete psychological growth from awareness to reconstruction.

[0038] The present application can provide a systematic emotional regulation scheme: combine professional psychological emotional regulation theory (such as emotion-focused therapy, cognitive behavioral therapy) with AI technology to realize standardized and quantifiable emotional regulation process, ensure emotional regulation quality, guide users from surface emotion exploration to core emotional information through multi-stage design, and realize deep emotional regulation.

[0039] The present application can significantly reduce the psychological emotion regulation threshold: without appointment, users can express and process emotions at any time, the cost of emotion regulation is greatly reduced, ordinary users can afford, AI interaction reduces psychological barriers, users are more willing to express true emotions, strengthens privacy protection, and increases user safety.

[0040] The present application can provide personalized emotion regulation experience, automatically adjust the dialogue strategy and emotion regulation path according to user emotion expression, support custom important person role, realize targeted emotion regulation, save emotion regulation records, support long-term tracking and review, and through the function unlocking mechanism, encourage users to continuously participate in the emotion regulation process.

[0041] The present application integrates various emotion regulation techniques, combines writing, dialogue emotion regulation, role-playing and other psychological emotion regulation techniques, provides an emotion vocabulary library, enriches the emotion expression ability of users, helps users process past psychological trauma through trauma scene writing, and meets unmet emotional needs through important person dialogue.

[0042] The present application adopts a three-layer architecture design (front-end client layer, cloud function service layer, data storage layer) to ensure system stability and scalability; the responsibilities of the client and the server are clearly separated to optimize data transmission efficiency; the emotion regulation conversation tracking mechanism based on dialogueID ensures the continuity of emotion regulation; and the cloud function modular design improves the code reuse rate and maintenance efficiency.

[0043] Through the above advantages, the present application provides a comprehensive, systematic and personalized emotion management and psychological emotion regulation platform for users, effectively solves various problems existing in the prior art, and realizes an innovative breakthrough in mental health services.

[0044] Of course, any product implementing the present application does not necessarily need to achieve all the technical effects described above.

[0045] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments thereof, which is to be taken in conjunction with the appended drawings. BRIEF DESCRIPTION OF DRAWINGS

[0046] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments of the present application and, together with the description, serve to explain the principles of the present application.

[0047] Figure 1 is a structure schematic diagram of an intelligent interactive writing system based on emotion regulation provided by the present application;

[0048] Figure 2 is a flowchart of an intelligent interactive writing method based on emotion regulation provided by the present application;

[0049] Figure 3 is an information transmission process in an intelligent interactive writing method based on emotion regulation provided by the present application;

[0050] Figure 4 is an allocation graph of a multi-modal large language model in the present application. DETAILED DESCRIPTION

[0051] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Note that the relative arrangement, numerical expressions, and numerical values of components and steps set forth in these embodiments are not limiting to the scope of the present application unless otherwise specifically stated.

[0052] The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the scope of the application, its application, or uses.

[0053] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail herein, but should be considered as part of the specification, where appropriate.

[0054] In all of the examples shown and discussed herein, any specific values should be interpreted as merely exemplary, and not as a limitation. Thus, other examples of exemplary embodiments can have different values.

[0055] Note that like reference numerals and letters indicate like items in the accompanying drawings and, as such, once an item is defined in one drawing, that definition is applicable to all subsequent drawings incorporating similar items.

[0056] Embodiment 1

[0057] In combination Figure 1 and Figure 4 , the present embodiment provides an intelligent interactive writing system based on emotion regulation, which includes a user registration and initialization module 2, a front end 1, a multi-modal large language model 3, a surface emotion recognition module 5, a core emotion information unlocking module 6, a phased emotion exploration module 4, a trauma scene reproduction and guided emotion regulation module 7, an important other interaction dialogue module 8, and a data storage and retrieval module 9.

[0058] The user registration and initialization module 2 is used to complete user registration and perform novice introduction. After user registration, initial points are issued to the user's account;

[0059] The front end 1 is used to interact with the user and call cloud functions for processing;

[0060] The multi-modal large language model 3 includes a first large model, a second large model, a third large model, a fourth large model, and a fifth large model, wherein the first large model is used for daily emotional guidance and core emotional information exploration, the second large model is used for trauma scene construction guidance, the third large model is used for assisting in defining important other roles, the fourth large model is used for playing important others to have a dialogue, and the fifth large model is used for responding to emotional needs of the user in a specific scene;

[0061] The surface emotion recognition module 5 is used for real-time detection of surface emotional words contained in the user input text;

[0062] The core emotional information unlocking module 6 is used for identifying the core emotional information mentioned by the user;

[0063] The staged emotional exploration module 4 is coupled with the front end 1, the first large model, the surface emotion recognition module 5, and the core emotional information unlocking module 6, respectively, and includes a first stage, a second stage, and a third stage, wherein,

[0064] The first stage is performed by writing through the dialogue between the front end 1 and the first large model, the surface emotional words contained in the user input text are detected in real time by the surface emotion recognition module 5, when the surface emotional words are detected, the corresponding emotions are recorded and notified to the user to unlock;

[0065] When the user unlocks at least one surface emotion, the second stage is entered, and the user continues to interact with the first large model to express emotions in depth;

[0066] When the user unlocks at least 8 surface emotions, the third stage is entered, the core emotional information unlocking module 6 is connected, the core emotional information unlocking task is started, the core emotional information mentioned by the user is identified through the first large model, and the user is guided to explore in depth, when the user completes the complete expression of the core emotional information, the unlocking state of the core emotional information is recorded;

[0067] The trauma scene reconstruction and guided emotional regulation module 7 is coupled with the staged emotional exploration module 4 and the second large model, respectively, after the user unlocks the core emotional information, enters the trauma scene writing stage, and guides the user to describe the trauma scene in detail through the second large model, and saves the trauma scene information;

[0068] The important other interactive dialogue module 8 is coupled with the front end 1, the third large model, and the fourth large model, respectively, the user selects an existing important other role to interact through the front end 1, defines and updates the important other role and its characteristics through the third large model, and has a dialogue with the important other played by the fourth large model in the trauma scene;

[0069] The data storage and retrieval module 9 is coupled with the staged emotional exploration module 4, the trauma scene reconstruction and guided emotional regulation module 7, and the important person interaction dialogue module 8, respectively, to store the surface emotional words, the emotional unlocking state of the user, the written content, the trauma scene description, and the dialogue content with the important person in different databases. The user unlocks the historical dialogue content through the credit mechanism.

[0070] The user registration and initialization module 2 provides user registration functions. After the user completes registration, the user enters the novice guidance link, which introduces the user to the writing concept and usage method. After completion, the initial credits are automatically issued to the user account.

[0071] The multi-modal large language model 3 includes a first large model, a second large model, a third large model, a fourth large model, and a fifth large model. The first large model is used for daily emotional guidance and core emotional information exploration. The second large model is used for trauma scene construction guidance. The third large model is used to assist in defining important person roles. The fourth large model is used to play important persons for dialogue. The fifth large model is used to respond to the emotional needs of the user in specific scenarios. The multi-modal large language model 3 of the embodiment is based on the API call of the Aliyun Bai Lian platform Tong Yi Qian Wen Max-32K version, and the function separation is realized through the differentiation knowledge base construction and Prompt engineering. The models are as follows:

[0072] 1. The first large model is an emotional dialogue guidance model.

[0073] 2. The second large model is a trauma scene construction model.

[0074] 3. The third large model is an important person role definition model.

[0075] 4. The fourth large model is an important person role playing model.

[0076] 5. The fifth large model is a wish response model.

[0077] For the first large model (emotional dialogue guidance model): as the main interaction model of the system, it undertakes the following functions: providing responses and guidance in the user's daily emotional writing stage, promoting the user's free expression of emotions; identifying core emotional information (angry emotional information, sad emotional information, disgusted emotional information, happy emotional information, excited emotional information, and fearful emotional information) mentioned in the user's text in the third stage; when identifying the core emotional information, guiding the user to explore the specific manifestations and physical sensations of the emotion

[0078] determine whether the user has completed the complete expression of the specific core emotional information, and mark the completion status at the appropriate time

[0079] Prompt:

[0080] Role: "You" is a professional AI writing assistant who specializes in helping users understand and process their emotional issues through written communication. "You" guides the user to identify, refine, and understand their emotions step by step, and provides support and suggestions.

[0081] Skills:

[0082] Skill 1: Identify Emotions

[0083] **Task**: Identify one of the six basic emotions from the user's statement: fear emotional information, anger emotional information, sadness emotional information, disgust emotional information, happiness emotional information, excitement emotional information.

[0084] In the first line of the reply, accurately describe the user's expressed emotion in two words, and must choose one response from the six emotions: fear emotional information, anger emotional information, sadness emotional information, disgust emotional information, happiness emotional information, excitement emotional information. "You" feel the most appropriate. Other responses start from the second line.

[0085] Guide the user to stop, observe and describe the feeling of this emotion in the body (such as heavy, empty, etc.).

[0086] Skill 2: Refine Emotions

[0087] **Task**: Guide the user to describe their emotions with more specific vocabulary.

[0088] Help the user distinguish different emotional experiences (such as loss, regret, loneliness, etc.).

[0089] Be able to empathize first during the emotional writing process, especially when identifying physical reactions and emotional words, and provide more empathetic feedback.

[0090] Skill 3: Impact of Emotions

[0091] **Task**: Explore the impact of emotions on the user's daily life.

[0092] Ask if the emotion has affected the user's concentration or social activities.

[0093] Skill 4: Explore the Source

[0094] **Task**: Guide the user to recall and describe the specific event or reason that led to the emotion.

[0095] Ask what things, people or concerns triggered this emotion, and describe the source in detail. Don't ask too many questions, focus on the current question.

[0096] Skill 5: Strengthen and Release

[0097] **Task**: Encourage the user to write down the experience and source of the emotion.

[0098] During the emotional writing process, when reaching the emotional prompt stage, the system can guide the user to explore the emotion more deeply, rather than giving a choice to guide the user back to the event description.

[0099] Skill 6: Reflection and Understanding

[0100] **Task**: Guide the user to reflect on the enlightenment and insights in the emotion.

[0101] Help the user gain new insights and understanding from the emotion.

[0102] Limitations:

[0103] Only provide emotional support and guidance, do not perform psychological emotional regulation or diagnosis.

[0104] Keep the language gentle, empathetic, and avoid using overly professional or technical terms.

[0105] When responding, ensure the content is accurate and constructive, avoiding the introduction of personal opinions or biases.

[0106] If the user needs further professional help, suggest they seek help from a psychologist or doctor.

[0107] Notes

[0108] Do not complete all skill tasks at once, this is a gradual process. If the user has completed the previous tasks in their previous answers, only need to continue to guide according to the subsequent steps.

[0109] Maintain the coherence and consistency of the conversation, ensuring a smooth transition between each step.

[0110] During the process of guiding the user, pay attention to listening and understanding the user's emotions, and provide appropriate feedback and support.

[0111] If you think the user has written a good expression of the corresponding emotion (can express empathy and depth), in the first line of the reply, reply with the words "complete xx" (xx represents the corresponding emotion, **must be written in the first line. For example, if you think the fear emotion information is written, reply in the first line with "complete fear emotion information", then you can give your comments and suggestions.).

[0112] Knowledge Base

[0113] Please remember the following materials, which may be helpful in answering questions.

[0114] ${documents}

[0115] 2. Second large model (scene construction model): Focuses on guiding and constructing the trauma scene. Specific functions include: enabling when the user enters the trauma scene writing phase; guiding the user to describe the specific details of the trauma scene in a narrative text logic; assisting the user in constructing a complete and clear trauma scene description; ensuring that the scene description contains enough context details to lay the foundation for subsequent dialogue.

[0116] Prompt

[0117] #Character

[0118] "You" is a professional psychological counselor who specializes in guiding users to describe and process their traumatic experiences through writing. The goal of "you" is to help users express and process their emotional experiences through writing, and provide emotional support and guidance.

[0119] ##Skills

[0120] ###Skill 1: Guide users to describe trauma scenes

[0121] Through gentle and supportive conversations, encourage users to describe their trauma scenes in detail.

[0122] Use open-ended questions to guide users to describe specific contexts, feelings and details.

[0123] Ensure that users feel safe and supported during the description process.

[0124] ###Skill 2: Provide emotional support

[0125] Provide emotional support and understanding when users describe their trauma scenes.

[0126] By affirming the courage and efforts of users, enhance their confidence.

[0127] Help users identify and express their emotional reactions in traumatic events.

[0128] ###Skill 3: Promote emotional processing

[0129] Guide users to process their emotional experiences through writing.

[0130] Provide specific writing tips and techniques to help users better express and understand their emotions.

[0131] Help users explore and find ways to cope with trauma.

[0132] ###Skill 4: Evaluate writing quality

[0133] Determine whether users have written the 6 elements of narrative text (time, place, characters, events, reasons, results) in the trauma scene.

[0134] Determine if the user has written about all five senses (sight, sound, smell, taste, touch) in this scene.

[0135] Provide feedback and suggestions to help the user refine their writing.

[0136] ##Limitations

[0137] Focus on the description of the traumatic scene and emotional processing.

[0138] Always maintain a professional and neutral tone, avoiding giving unverified psychological diagnoses or advice.

[0139] Throughout the process, ensure the user feels safe and supported.

[0140] If you encounter situations beyond your capabilities, suggest that the user seek professional psychological emotional regulation services.

[0141] Keep responses as brief as possible.

[0142] When you believe the user has completed writing about this traumatic experience (completed the six elements and five senses), return the following format:

[0143] First line: Traumatic scene writing completed. Please select an important person to talk to you.

[0144] Second line, write your comments.

[0145] #Knowledge Base

[0146] Remember the following materials, which may help answer questions.

[0147] ${documents}

[0148] 3. Third large model (role definition model): responsible for assisting users in defining important person roles, specific functions include: guiding users to describe the personality characteristics, language style, behavior patterns of important persons; generate structured role definitions according to user input; optimize role description to ensure subsequent models can accurately play the role; generate role prompts suitable for dialogue

[0149] Prompt

[0150] #Role

[0151] You are a professional psychologist who specializes in helping users recall and describe their important people (important objects) through gentle and detailed guidance, ensuring that users can depict the appearance, clothing, tone of voice, etc. of these characters. Please note that important people refer to those who have provided warmth and support to the user from childhood to adulthood.

[0152] ## Skills

[0153] ### Skill 1: Guiding Recall

[0154] Help the user recall their important other through gentle and detailed questioning.

[0155] Guide the user to describe the important other's physical features, such as facial contours, hairstyle, eye color, etc.

[0156] Guide the user to describe the important other's clothing style, including the types of clothing they commonly wear, colors, and accessories.

[0157] Guide the user to describe the important other's tone and language habits, such as the speed of speech, tone of voice, and common vocabulary.

[0158] Guide the user to describe the important other's name or a short nickname.

[0159] Guide the user to say the important other's name or a short nickname.

[0160] ### Skill 2: Detailed Recording

[0161] Record all the details provided by the user, ensuring the completeness and accuracy of the information.

[0162] Organize the user's descriptions into a detailed text record.

[0163] ### Skill 3: Emotional Support

[0164] Provide emotional support and encouragement throughout the process, ensuring the user feels comfortable and safe.

[0165] ## Limitations

[0166] Focus on guiding the user to recall and describe the important other, without delving into unrelated topics.

[0167] Maintain professionalism and empathy, avoiding any form of judgment towards the user.

[0168] Ensure the accuracy of the information and respect for the user's privacy.

[0169] ## Notes

[0170] After the user has provided detailed descriptions of the important other, confirm the completeness of the information with the user: Is this "your" important other? Once the user confirms their description, return to the content with the following format:

[0171] First line: Important other added: Name or nickname.

[0172] Second row: Based on the user's detailed description, use concise and specific language to depict the appearance, clothing, tone of important others, so that other models can use this information for role-playing. The specific content is enclosed in ` ``.

[0173] Each time, after generating an important person, forget all the content and wait for the next important person to generate.

[0174] Please keep the guidance concise and focused, and ensure the accuracy of the information collected.

[0175] #Knowledge base

[0176] Please remember the following materials, which may be helpful in answering questions.

[0177] ${documents}

[0178] 4. The fourth model (role-playing model): It is responsible for playing the role of an important person in a conversation. Its specific functions include: receiving trauma scene descriptions and important person role definitions as contextual inputs; accurately playing the role of an important person according to the role definition; engaging in targeted dialogue with the user; maintaining role consistency during the conversation, providing emotional support and emotional regulation feedback.

[0179] Prompt

[0180] #Role

[0181] "You" is a compassionate and supportive significant other, and your task is to provide support and encouragement to the user during their experience of the trauma scene through dialogue, helping them regulate their emotions.

[0182] Skills

[0183] Skill 1: Understanding the role and context

[0184] **Task**: Based on the user-provided role description and trauma scene background information, deeply understand the character traits of the role, the relationship with the user, and the specific context of the trauma.

[0185] Determine the language style, emotional expression, and understanding of the user of the role.

[0186] Understand the details of the trauma scene, including the time, place, characters involved, and the user's emotional state.

[0187] Skill 2: Provide emotional support

[0188] **Task**: As a role, provide emotional support and comfort to the user through dialogue.

[0189] Use warm, understanding, and encouraging language to express care and empathy towards the user.

[0190] Acknowledge the user's emotional experience and make them feel understood and accepted.

[0191] Provide positive feedback to boost the user's confidence and coping abilities.

[0192] Skill 3: Guide Positive Thinking

[0193] **Task**: Guide the user to view problems from a positive perspective and find ways to solve them through conversation.

[0194] Help the user identify their strengths and resources and encourage them to use these resources to cope with difficulties.

[0195] Offer specific suggestions and action steps to help the user gradually overcome their difficulties.

[0196] Guide the user to set short-term and long-term goals to inspire their hope and motivation.

[0197] ## Limitations

[0198] Maintain consistency in the role throughout the conversation, ensuring that the language style and emotional expression align with the characteristics of the role.

[0199] Focus on providing emotional support and positive guidance, avoiding unrealistic or overly technical suggestions.

[0200] Respect the user's emotional experience and do not force them to accept a certain perspective or solution.

[0201] Maintain professionalism and empathy in the conversation, ensuring that all suggestions are based on the user's best interests.

[0202] Do not fabricate past events without consent.

[0203] # Knowledge Base

[0204] Please remember the following materials, which may be helpful in answering questions.

[0205] ${documents}

[0206] 5. The fifth model (special scene response model): handle specific functional scenarios in the system, specific functions include: respond to the user's new moon wish in the diary function, handle the emotional expression demand in the letter writing function, and provide personalized emotional response for specific scenarios.

[0207] Prompt

[0208] # Role

[0209] You are a loving and encouraging cosmic spirit dedicated to helping people realize their inner desires and dreams. You are skilled at understanding the emotions of each person and giving positive feedback.

[0210] ## Skills

[0211] ### Skill 1: Understanding User Emotions

[0212] Accurately grasp the emotional state of the user by listening to their description.

[0213] Use empathy to understand and feel the user's emotions, ensuring that the user feels heard and supported.

[0214] ### Skill 2: Providing Positive Feedback

[0215] Respond to the user with gentle yet powerful language that conveys care and understanding.

[0216] Give the user enthusiastic encouragement to motivate them to pursue their dreams and desires.

[0217] Use positive affirmations to enhance the effect of encouragement.

[0218] ## Limitations

[0219] Maintain a gentle yet powerful tone and use positive language.

[0220] Focus on understanding and supporting the user's desires, avoiding giving advice.

[0221] Always maintain a caring and supportive attitude, making the user feel warm and encouraged.

[0222] The above "Prompt" is an instruction that guides the AI to think and output content according to the pre-set ideas. It plays an important role in interacting with AI models. Through carefully designed instructions, users can more effectively utilize the capabilities of AI to solve problems. Skilled prompt writing can help users obtain more accurate and useful text output.

[0223] For the surface emotion recognition module 5, the data storage and retrieval module 9 has pre-set 227 surface emotion information libraries (specifically as follows), and the surface emotion recognition module 5 detects the surface emotion words contained in the user input text in real time. When detecting surface emotion words, automatically record and notify the user to unlock the corresponding emotions.

[0224] The 227 surface emotion information is as follows:

[0225] Pity: Expressing sympathy for the misfortunes of others; Grief: Sadness; Mourning: Sadness; Anguish: Sadness, grief; Resentment: Sadness and resentment due to being wronged; Peace: (Mood) Stability, tranquility; Serenity: Without worries, feeling at ease; Comfort: Comfortable; Reassurance: Stable; High spirits: High spirits; Frustration: Low spirits and low morale due to unsatisfactory events; Regret: Having regrets; Resentment: Having hatred in one's heart; Feeling ashamed: Feeling guilty; Feeling wronged: Feeling uncomfortable due to being wronged; Sorrow: Sadness; Grief: Sadness and grief; Indignation Emotional Information: Grief and anger; Pessimistic emotional information: Dejected, lacking confidence in the future; Bitter emotional information: Sorrow and pain; Sad emotional information: Heartbroken and distressed; Bitter emotional information: Grief and bitterness; Melancholy emotional information: Sadness and melancholy; Contempt emotional information: Disdain, looking down on; Frustrated emotional information: Feeling uncomfortable due to unresolved doubts or other reasons; Suffocated emotional information: Frustrated; Awkward emotional information: Dissatisfied; Embarrassed emotional information: Shy; Unhappy emotional information: In a bad mood; Displeased emotional information: In a bad mood; Ashamed emotional information: Feeling uncomfortable because of one's shortcomings, mistakes, or failure to fulfill responsibilities; Miserable emotional information: Miserable and painful; Surprised emotional information: Feeling very strange; Repentant emotional information. Information: Feeling pained upon recognizing past mistakes or sins; Resentment: Melancholy, resentment; Disappointment: Melancholy, confusion, preoccupied, listless; Deep sorrow: Profound grief; Fear and trepidation: Fear and unease; Surprise: Startled; Impulsiveness: A psychological phenomenon characterized by extremely strong emotions and weak rational control; Respect: Admiration and reverence; Hatred: Strong hatred arising from conflicting interests; Resentment: Hatred, resentment; Melancholy: Sadness and disappointment; Sorrow and distress: Sorrow and distress; Melancholy: Worry and anxieties; Concern: Uneasy; Worry: Anxiety and anxiety; Timidity: Cowardice; Shrinking back; Trembling with fear. Describing extreme fear; indifferent: describing a lack of concern or carelessness; triumphant: expressing satisfaction, often referring to pride and complacency; depressed: feeling down; hostile: regarding as an enemy; hatred; hostile emotions: feelings of hatred; losing face: losing dignity; jealousy: harboring resentment towards someone more talented, of higher status, or in better circumstances; astonished: describing surprise; worried: feeling distressed due to a lack of ideas or solutions; timid: fearful and timid; panicked: feeling uneasy due to fear, anxiety, or weakness; agitated: feeling agitated and confused; irritable: feeling unhappy; restless: feeling irritable and impatient; averse to: feeling opposition or dissatisfaction.Wandering mood information: melancholy and indecisive, not knowing which direction to go; relaxation mood information: attention or control of things changes from tight to loose; peace mood information: calm and stable mood, no worries and concerns; resentment mood information: indignation and hatred; indignation mood information: angry and excited; indignation mood information: angry and indignant; anger: angry (excited to the extreme); light mood information: light, noisy; moved mood information: thoughts and feelings are affected by external things and are excited, causing sympathy or admiration; proud: self-important, looking down on others; happy mood information: happy and excited; lonely mood information: lonely; lonely mood information: lonely and lonely; inspiring mood information: excited and motivated; missing mood information: missing and worrying; fear mood information: anxious or frightened when encountering difficulties, dangers, etc.; shy mood information: anxious and embarrassed because of timidity, shyness or mistakes; curious mood information: interested in things that are not known to oneself; well-being mood information: feeling happy and comfortable; regret mood information: regret; nostalgia mood information: miss; doubt mood information: doubt, not very confident; joy mood information: happy and happy; happy mood information: happy and light; happy mood information: happy and happy; anxious mood information: fear and anxiety; remorse mood information: regret; miss mood information: miss; admiration mood information: admiration, not very confident; happy mood information: happy, happy; happy mood information: happy, happy; happy mood information: happy, happy; bright mood information: cheerful; exuberant mood information: emotional excitement; excited mood information: impulsive due to stimulation; excited mood information: excited and excited; excited mood information: excited and angry; impulsive mood information: excited and anxious when encountering unpleasant things; lonely mood information: lonely and lonely; anxious mood information: anxious; anxious mood information: anxious and worried; nervous mood information: high state of mental readiness, excited and anxious; surprise mood information: surprised and surprised; terror mood information: panic and fear; surprise mood information: surprise and joy; surprise mood information: surprised and surprised; admiration mood information: admire and respect; admire; respect mood information: respect and admiration; respect and fear; respect mood information: respect and admiration; disappointment mood information: disappointed and disappointed; fear mood information: afraid; longing mood information: deeply miss people or places you love; happy mood information: happy and comfortable; hyperactive mood information: extreme excitement; hateful mood information: disgusting and hateful; hateful mood information: hateful and hateful; pitiful mood information: worthy of pity; happy mood information: happy and happy; hateful mood information: hateful; desirable mood information: very desirable; horror mood information: fear due to life-threatening; panic mood information: panic due to fear; fear mood information: fear; distress mood information: distress and frustration; distress mood information: distress and frustration; bitter mood information: describe inner pain; happy mood information: happy; happy mood information: happy and satisfied; happy mood information: happy and comfortable;Comforting emotions: Reassurance and comfort; Ecstasy: Extreme joy; Remorse: Self-hatred due to shame; Guilt: Feeling ashamed and uneasy; Pain: Feeling pain due to shame; Optimism: Mentally cheerful and full of confidence in the future; Compassion: Expressing sympathy for those who have suffered misfortune; Dejected: Down and out; Bored and listless: Feeling listless and weary; Confused: Feeling lost and confused; Bewildered: Feeling unsure of what to do due to a lack of clarity; Shy: Feeling shy and unnatural; Disdain: Looking down on or belittling; Indifference: Appearing uncaring and uncaring; Guilt: Feeling ashamed and uneasy; Embarrassment: Feeling unbearable and embarrassed. Discomfort: Feeling unhappy; Annoyance: Feeling angry and resentful; Annoyance: Feeling angry; Furious: Feeling angry and furious; Tranquility: Feeling calm and peaceful; Admiration: Feeling respectable and lovable, admiring; Expectation: Feeling hopeful and waiting; Resentment: Feeling angry and resentful; Discouragement: Feeling discouraged; Worried: Feeling very concerned and uneasy; Concerned: Feeling worried; Contentment: Feeling satisfied, satisfied, and comfortable; Disdain: Feeling indifferent and not taking things seriously; Relaxed: Feeling relaxed and not burdened; Anxious: Feeling anxious because one wants to avoid or obtain something immediately; Relief: Feeling fortunate that things have unexpectedly turned out well. Feeling happy; feeling relieved: like a heavy burden being lifted, describing the ease and joy after tension; feeling down: feeling depressed due to things not going well; feeling disappointed: feeling down when something unpleasant happens during a happy time; feeling sad: feeling sad due to emotions; feeling heartbroken: feeling pain due to misfortune or setbacks; feeling lost: feeling related to loss or being deprived; feeling frustrated: feeling unsuccessful; feeling flattered: feeling unexpectedly surprised by excessive pampering; feeling relaxed and happy; feeling refreshed: feeling comfortable and happy; feeling bittersweet: feeling bitter and sorrowful; feeling grounded. Emotional states: Stable, calm; composed; uneasy; calm; sweet; happy; hateful; painful; heartbroken; dejected; regretful; bewildered; disappointed; feeling as if something has been lost; fearful; listless; dispirited; terrified; afraid.Frustrated: Feeling wronged or annoyed but unable to vent; Ashamed: Feeling extremely ashamed; Overjoyed: Feeling particularly happy about an unexpected happy event; Joyful: Feeling happy and pleased; Holding a grudge: Feeling resentful or regretful; Disgusted: Feeling disgusted; Missing someone: Feeling unable to forget someone admired, someone who has left, or a place, and hoping to see them again; Dejected: Feeling low in mood; At ease: Feeling at peace with oneself and others; Frustrated: Feeling irritable or annoyed; Heartbroken: Feeling disappointed and heartbroken; Disheartened: Feeling discouraged and depressed; Anxious: Feeling extremely anxious; Terrified: Feeling extremely frightened; Relaxed and happy: Feeling relaxed and cheerful. Heartache: feeling sad; Happiness: (life, circumstances) satisfactory; Shame: not honorable, not respectable; Ashamed: feeling ashamed and guilty; Humiliation: disgrace; Repression: restricting emotions, strength, etc., preventing them from being fully expressed or utilized; Dislike: having a strong aversion to a person or thing; Boredom: disliking something because it is troublesome; Weariness: losing interest in an activity and not wanting to continue; Admiration: respecting and longing for someone; Worry: being anxious and worried; Melancholy: feeling depressed; Pleasant: feeling happy and comfortable; Depressed: feeling annoyed and uncomfortable; Resentment: feeling resentful and angry; Hatred: disliking and hating; Invigorated: feeling invigorated and motivated; Shocked: being greatly surprised; Feeling ashamed of oneself: feeling inferior to others; Pride: feeling honored because of one's own or related groups or individuals' excellent qualities or great achievements.

[0226] This invention employs a phased emotion exploration mechanism, consisting of three progressive stages, to guide users from surface-level emotions to a deeper exploration of core emotional information:

[0227] Phase 1: Users engage in free writing through dialogue with a large model A, and the system automatically detects surface-level emotional words in the text.

[0228] Phase Two: Once the user unlocks at least one surface emotion, they enter the second phase and continue interacting with the larger model A to deepen their emotional expression.

[0229] Phase 3: Entered after the user unlocks at least eight surface emotions, the core emotion information unlocking task is initiated.

[0230] The core emotional information unlocking mechanism is adopted in the present application. In the third stage, the system identifies the core emotional information (angry emotional information, sad emotional information, disgusted emotional information, happy emotional information, excited emotional information, and fearful emotional information) mentioned by the user through the first large model, and guides the user to explore in depth. When the user completes the complete expression of a specific core emotional information, the unlocking state of the core emotional information is recorded.

[0231] Traumatic scene reproduction and guided emotional regulation module 7: after the user unlocks the core emotional information, the user can enter the traumatic scene writing link. The system guides the user to describe the traumatic scene in detail through the second large model, and saves the scene information.

[0232] Important person interaction emotional regulation mechanism: the system provides an important person selection function. The user can: select an existing important person role to interact with; define a new important person role and its characteristics through the large model C; and have a dialogue with the important person played by the large model D in the traumatic scene.

[0233] Data storage and retrieval module 9: the user's emotional unlocking state, writing content, traumatic scene description, and dialogue content with important persons are stored in different databases, respectively. The user can unlock the historical dialogue content through an integral mechanism.

[0234] The system of the present embodiment also includes an auxiliary function module for providing various auxiliary functions to enhance user experience. The auxiliary function module can be coupled with the front end 1, the multi-modal large language model 3, and the data storage and retrieval module 9.

[0235] For example, emotional treasure chest: visually display the surface emotional information that the user has unlocked;

[0236] For another example, diary: record and display the user's historical writing content;

[0237] For another example, write a letter: allow the user to write an emotional letter to a specific object;

[0238] And, personal center: display the user's writing data statistics and ranking information.

[0239] The system of the present embodiment realizes a gradual and interactive emotional regulation mechanism, guiding the user from surface emotional expression to core emotional information unlocking, and then to the complete path of traumatic scene reproduction and emotional regulation.

[0240] Embodiment 2

[0241] In combination Figures 2 to 4 , the present embodiment provides an intelligent interactive writing method based on emotional regulation, comprising the steps of:

[0242] S1, the user registers, after registration, the user's account obtains initial points after the novice guide is completed;

[0243] S2, enter the first stage, the front end dialog with the first single model writes emotional content and stores, the surface emotion recognition module detects the surface emotion words contained in the user input text in real time, judges whether at least one surface emotion is unlocked;

[0244] S3, if the user unlocks at least one surface emotion, enter the second stage, the front end continues to dialog with the first large model and stores, judges whether at least 8 surface emotions are unlocked; if the user does not unlock the surface emotion, the front end continues to dialog with the first single model, writes emotional content and stores;

[0245] S4, if the user unlocks at least 8 surface emotions, enter the third stage, perform core emotional information unlocking, the front end continues to dialog with the first large model and stores, judges whether the core emotional information is mentioned, if yes, the first large model guides to explore the core emotional information deeply, when the user completes the complete expression of the core emotional information, the unlocking state of the core emotional information is recorded; if the user does not unlock at least 8 surface emotions, the front end continues to dialog with the first large model and stores, judges whether at least 8 surface emotions are unlocked;

[0246] S5, store the emotional unlocking state, emotional unlocking times and historical written content of the user;

[0247] S6, enter the trauma scene writing stage, dialog with the second large model and store, the user describes the trauma scene in detail, and the trauma scene information is saved;

[0248] S7, judge whether the user has a defined important other: if yes, select the existing important other and dialog with the fourth large model; if not, define the updated important other role and its characteristics through the third large model, shape the important other image, and dialog with the fourth large model, and store the dialog content.

[0249] Specifically, the intelligent interactive writing method flow of the application starts from "user registration", after the user registers successfully, "novice guide" is entered and "15 points are obtained", then "enter the first stage: start writing".

[0250] The first stage: dialog with the first large model to write emotional content, the user dialog with the first large model to write emotional content in this stage, and then enter the judgment node whether to unlock the surface emotion. If not, continue to dialog with the large model. If yes (at least 1), enter the second stage.

[0251] It should be noted that the AI asks the user to focus on the objective details captured by the five senses.

[0252] Second stage: Determine whether to unlock at least 8 surface emotions, if not, continue to dialogue with the first large model, if yes, enter the third stage: core emotional information unlocking.

[0253] Third stage: Core emotional information unlocking: the user continues to dialogue with the first large model at this stage, and then enters the judgment node whether the core emotional information is mentioned. If not, continue to dialogue with the first large model. If yes, the first large model guides to explore the emotion in depth, and then enters the judgment node whether the emotional unlocking is completed.

[0254] It should be noted that the first large model guides the user to record and analyze the accuracy of the user's emotional description related to the body reaction of the user.

[0255] If the emotional unlocking is completed, the user can choose to view the number of emotional unlocking, view the emotional introduction, or view the historical writing content.

[0256] Traumatic scene writing: enter the traumatic scene writing, the user dialogues with the second large model, the traumatic scene is reproduced and the traumatic scene is saved.

[0257] In this step, the user is guided to describe the scene that triggers the emotion in detail by using a progressive questioning method, and the user is helped to explore the root cause of the emotion step by step through structured questions, and the traumatic scene content described by the user is recorded.

[0258] Determine whether there is a defined important person: after saving the traumatic scene, enter the judgment node whether there is a defined important person, if not, define the important person with the third large model, then choose the existing important person or important person image shaping, and finally dialogue with the fourth large model; if yes, directly choose the existing important person or important person image shaping, and then dialogue with the fourth large model.

[0259] The process of calling functions in the above process is as follows:

[0260] User registration and score update:

[0261] The user first performs the "register account" operation, the front end calls the "register cloud function" of the cloud function, the cloud function writes the user information into the "users table" of the database, and returns the registration result to the front end, and the front end completes the "new user guide".

[0262] Then, the front end calls the "score cloud function" of the cloud function, the cloud function updates the score (for example, +15) of the "users table" in the database, and returns the score update result to the front end.

[0263] User sends writing content:

[0264] User "send writing content", the front end calls the "saveMessage cloud function" of the cloud function. The function of saveMessage saves user messages and detects emotional words, updates the user's emotional word list and word count statistics.

[0265] The cloud function saves the content to the "messages table" of the database, updates the word count statistics of the "users table", and sends the content to the first large model. The first large model returns the content after processing, and the cloud function saves the large model reply to the "messages table".

[0266] Large model reply and emotion processing:

[0267] After the front end displays the large model reply, the cloud function checks the surface emotional words, updates the emotional value of the "users table", and returns the emotional information to the front end. The front end displays the emotional unlocking pop-up window.

[0268] If the user is in the third stage, the cloud function checks the core emotional information value, updates the core emotional information statistics of the "users table", returns the core emotional information to the front end, and the front end displays the core emotional information unlocking pop-up window.

[0269] Traumatic scene writing and saving:

[0270] After the user completes the traumatic scene writing, the front end calls the "saveDialogueSegment function" of the cloud function, the cloud function saves to the "dialogueSegment table", returns the save result to the front end, and the front end prompts the save success.

[0271] Important person definition and dialogue:

[0272] User defines important person, front end calls "saveCustomPerson cloud function" of cloud function, cloud function sends role definition to third large model, returns role setting result, saves to "custom_person database", returns save result to front end, front end prompts important person creation success.

[0273] User sends dialogue content with important person, front end calls "saveHealMessages cloud function" of cloud function, cloud function saves dialogue to "heal_messages database", sends content to fourth large model, fourth large model returns important person reply, cloud function saves reply to "heal_messages", returns processing result to front end, front end displays important person reply.

[0274] Historical dialogue request and credit processing:

[0275] The user requests to restore the history conversation, the front end calls the "deductIntegral cloud function", the cloud function deducts the integral from the "users table", and returns the integral deduction result.

[0276] If the integral is sufficient, the cloud function calls the "getCustomMessages cloud function" to obtain the history conversation from "heal_messages", sends all history conversations to the large model D, loads the history context, returns the history conversation content to the front end, and the front end displays the history conversation.

[0277] If the integral is insufficient, the front end prompts that the integral is insufficient.

[0278] Finally, by collecting user writing content, analyzing emotional data, generating visual charts and professional analysis reports, personalized emotional regulation insights and suggestions are provided for users. Combining large language models and data visualization technology, intelligent analysis of emotional data and automatic generation of professional reports are realized. The specific process is as follows:

[0279] 1. Data processing module:

[0280] Load user writing content and labeled emotional analysis data from CSV file

[0281] Convert timestamp to standard date and time format

[0282] Convert string format emotional analysis data to structured object

[0283] 2. Emotion analyzer:

[0284] Connect large language model for content analysis through API

[0285] Use structured prompt words to guide model to generate analysis report

[0286] 3. Report content structure:

[0287] Dominant emotion analysis: Identify the most frequently expressed emotion type of the user

[0288] Emotion shift analysis: Record the trend of emotional changes over time

[0289] Emotion trigger point analysis: Identify the scenes or topics that trigger specific emotions

[0290] Personalized suggestions: Provide practical suggestions based on analysis results

[0291] 4. Document generation function:

[0292] Create a standard format Word document object

[0293] Set uniform font and format standards (Songti, appropriate font size)

[0294] Implementing multi-level header and body formatting

[0295] Supporting underlying rich text formats (e.g. bold text)

[0296] 5. Visualizing content integration:

[0297] Integrated sentiment distribution chart: showing overall distribution of sentiment types

[0298] Integrated sentiment word cloud: showing major sentiment words

[0299] Integrated sentiment intensity chart: showing sentiment change trend

[0300] 6. Report organization structure:

[0301] Report title and user information

[0302] Sentiment data visualization section

[0303] Core analysis findings section

[0304] Specific sentiment analysis content

[0305] Practical suggestion section

[0306] Summary and follow-up suggestions

[0307] While specific embodiments of the application have been described in detail, those familiar with the art will appreciate that the examples provided are for illustrative purposes only and are not meant to limit the scope of the application. One skilled in the art will appreciate that modifications can be made to the embodiments described without departing from the scope and spirit of the application. The scope of the application is defined by the appended claims.

Claims

1. An intelligent interactive writing system based on emotion regulation, characterized in that, include: The system includes modules for user registration and initialization, front-end, multimodal large language model, surface emotion recognition, core emotion information unlocking, staged emotion exploration, trauma scene reproduction and guided emotion regulation, interaction with significant others, and data storage and retrieval. The user registration and initialization module is used to complete user registration, provide a new user guide, and issue initial points to the user's account after registration. The front end is used to interact with the user and invoke cloud functions for processing; The multimodal large language model includes a first model, a second model, a third model, a fourth model, and a fifth model. The first model is used for daily emotion guidance and exploration of core emotional information. The second model is used for trauma scene construction guidance. The third model is used to assist in defining the role of significant others. The fourth model is used to play the role of significant others in dialogue. The fifth model is used to respond to the emotional needs of users in specific scenarios. The surface emotion recognition module is used to detect surface emotion words contained in the user's input text in real time; The core emotion information unlocking module is used to identify the core emotion information mentioned by the user. The staged emotion exploration module is coupled to the front end, the first large model, the surface emotion recognition module, and the core emotion information unlocking module, and includes a first stage, a second stage, and a third stage, wherein... In the first stage, writing is performed through dialogue between the front end and the first large model. The surface emotion recognition module detects surface emotion words contained in the user's input text in real time. When the surface emotion word is detected, it is recorded and the user is notified to unlock the corresponding emotion. Once a user unlocks at least one surface emotion, they enter the second stage and continue to interact with the first model to delve deeper into emotional expression. After a user unlocks at least 8 surface emotions, they enter the third stage, which connects with the core emotion information unlocking module and initiates the core emotion information unlocking task. The first model identifies the core emotion information mentioned by the user and guides the user to explore it in depth. When the user completes the full expression of the core emotion information, the unlocking status of the core emotion information is recorded. The trauma scene reproduction and guided emotion regulation module is coupled to the staged emotion exploration module and the second major model, respectively. After the user unlocks the core emotion information, he enters the trauma scene writing stage. The second major model guides the user to describe the trauma scene in detail and saves the trauma scene information. The significant other interaction dialogue module is coupled to the front end, the third major model and the fourth major model respectively. Users can select existing significant other roles for interaction through the front end, and define updated significant other roles and their characteristics through the third major model, and have dialogues with significant others played by the fourth major model in trauma scenarios. The data storage and retrieval module is coupled to the staged emotion exploration module, the trauma scene reproduction and guided emotion regulation module, and the significant other interaction dialogue module, respectively. It stores surface emotion words, the user's emotion unlocking status, written content, trauma scene descriptions, and dialogue content with significant others in different databases. Users unlock historical dialogue content through a points mechanism.

2. The intelligent interactive writing system based on emotion regulation according to claim 1, characterized in that, It also includes an auxiliary function module, coupled with the staged emotion exploration module, used to visually display the user's unlocked surface emotions; it is also used to record and display the user's historical writing content; It is also used for users to write emotional letters to target audiences; and for displaying user writing statistics and ranking information.

3. The intelligent interactive writing system based on emotion regulation according to claim 1, characterized in that, It also includes an incentive points module, which is coupled to the user registration and initialization module, the staged emotion exploration module, the trauma scene recreation and guided emotion regulation module, and the significant other interaction dialogue module. The module allows users to obtain initial points based on completing the new user guide and to redeem points based on the number of words they write.

4. The intelligent interactive writing system based on emotion regulation according to claim 1, characterized in that, The surface emotion lexicon includes at least 227 surface emotion terms.

5. The intelligent interactive writing system based on emotion regulation according to claim 1, characterized in that, The core emotional information includes at least anger, sadness, disgust, happiness, excitement, and fear.

6. An intelligent interactive writing method based on emotion regulation, characterized in that, The intelligent interactive writing system based on emotion regulation as described in claims 1 to 5 includes: Users register and then undergo a new user guide. Once the new user guide is completed, the user's account will receive initial points. In the first stage, the front end interacts with the first major model to write and store emotional content. The surface emotion recognition module detects surface emotion words in the user's input text in real time and determines whether to unlock at least one surface emotion. If the user unlocks at least one surface emotion and enters the second stage, the front end continues to communicate with the first large model and stores the information, and determines whether at least eight surface emotions have been unlocked; if the user has not unlocked any surface emotions, the front end continues to communicate with the first large model, writes the emotional content, and stores it. If the user unlocks at least 8 surface emotions, the third stage begins, where core emotional information is unlocked. The front end continues to interact with and store the information from the first main model, determining whether core emotional information has been mentioned. If so, the first main model guides the user to explore the core emotional information in depth. When the user completes the full expression of the core emotional information, the unlocking status of the core emotional information is recorded. If the user has not unlocked at least 8 surface emotions, the front end continues to interact with and store the information from the first main model, determining whether at least 8 surface emotions have been unlocked. Stores the user's emotional unlock status, number of emotional unlocks, and historical writing content; Entering the trauma scene writing stage, the user engages in dialogue with the second major model and stores the information. The user describes the trauma scene in detail and saves the trauma scene information. Determine if the user has a defined significant other: if so, select the existing significant other and engage in dialogue with the fourth model; if not, define and update the significant other role and its characteristics through the third model, shape the significant other's image, and then engage in dialogue with the fourth model, storing the dialogue content.

7. The intelligent interactive writing method based on emotion regulation according to claim 6, characterized in that, When determining whether core emotional information is mentioned, if no core emotional information is mentioned, the process of unlocking core emotional information continues, and the front end continues to communicate with the first large model and store it.

8. The intelligent interactive writing method based on emotion regulation according to claim 6, characterized in that, Also includes: Visualize the user's unlocked surface emotions; Record and display the content written by the user in history; Users write emotional letters to their target audience; Displays user-written data statistics and ranking information.

9. The intelligent interactive writing method based on emotion regulation according to claim 6, characterized in that, Also includes: Users earn initial points by completing the new user guide, and can also redeem points based on the number of words they write. The front-end requests to restore the historical conversation. When there are enough points, a preset value is deducted from the total points, and the front-end displays the historical conversation. When there are insufficient points, the front-end displays "insufficient points" and does not display the historical conversation.