A cross-device intelligent assistance and system for healing consultation
By collecting voice data during therapeutic consultations to generate snapshots of composite business conversation states and automatically reconstructing the interface on mobile devices, the problem of fragmented therapeutic consultation tools and insufficient emotional response is solved. This achieves seamless transition and real-time emotion adjustment between fixed and mobile scenarios, improving the efficiency and immersion of therapeutic consultations.
Patent Information
- Application Number
- CN202611347576.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing healing counseling aids are fragmented, and general cross-device transfer technologies cannot continue complex business conversations. Furthermore, the lack of non-invasive emotional response regulation within a professional phased framework leads to a disjointed and inefficient counseling process.
By collecting consultation voice data in fixed scenarios, a snapshot of the composite business session state is generated, and the consultation interface is automatically reconstructed on the mobile terminal to achieve seamless continuation of the healing consultation session. Combined with real-time emotion recognition and atmosphere adjustment, it provides non-invasive professional assistance.
It enables seamless continuity of therapeutic counseling between fixed and mobile settings, improves counseling efficiency, ensures data integrity and real-time emotional response, and enhances the immersion and accuracy of counseling.
Smart Images

Figure CN123182718A_ABST
Abstract
Description
Technical Field
[0001] The technical solution of this application relates to the field of smart healing interaction technology, and in particular to a cross-device intelligent assistance and system for healing consultation. Background Technology
[0002] In high-end healing, wellness consultation, and health management settings, communication between consultants and members places great emphasis on the environment, time management, completeness of consultation records, and the immediacy of personalized services. Currently, consultants typically need to operate multiple independent devices simultaneously, such as a voice recorder, timer, music player, translation device, and a member profile system on a computer. This process is cumbersome, easily distracting, and negatively impacts the immersive experience of the consultation.
[0003] Meanwhile, counselors' work scenarios are not limited to fixed consultation rooms; they often need to conduct follow-up visits or mobile consultations. Existing technologies, such as Apple's Handoff and Huawei's distributed soft bus, enable cross-device workflow solutions for standardized content like browser pages and memos; applications like WeChat and DingTalk allow switching between device terminals for audio and video calls. However, none of these solutions can achieve cross-device reconstruction of complex business session states in the vertical field of therapeutic counseling, which includes multiple heterogeneous dimensions such as time progress, audio segment indexes, temporary text caching, and member profile operation contexts. This results in fragmented consultation processes, requiring manual data integration later, which is inefficient and prone to errors.
[0004] Furthermore, existing voice emotion recognition technologies are mostly used for post-event analysis in call center quality control or for sending alerts to managers, failing to establish real-time closed-loop intervention. Consumer-grade emotion + music adjustment relies solely on users' historical preferences and does not incorporate the professional staged logic of therapeutic counseling. While some AI-powered psychological chatbots can provide empathetic responses, their interaction mode is a human-computer dialogue, unsuitable for assisting counselors in real-world interpersonal counseling scenarios. Therefore, there is an urgent need for a human-computer collaborative therapeutic assistance system that can seamlessly maintain a complete counseling workbench between fixed and mobile settings, and can adaptively adjust the atmosphere non-invasively based on the member's real-time emotional state at each stage of counseling. Summary of the Invention
[0005] The main purpose of this application is to provide a cross-device intelligent assistance method and system for healing counseling, aiming to solve the technical problems of existing healing counseling assistance tools being scattered, general cross-device transfer technology being unable to continue the state of complex business conversations, and the lack of non-invasive emotional response regulation under a professional phased framework.
[0006] To achieve the above objectives, this application proposes a cross-device intelligent assistance method for healing counseling, the method comprising: In a fixed scenario, the consultation voice data during the healing consultation process is collected through terminal devices, and the timing progress data of the current consultation session and the operation context data of the member's profile are obtained. The consultation voice data is transcribed in real time to generate temporary text cache data. At the same time, the consultation voice data is subjected to real-time emotion recognition to extract the acoustic features of the member's voice and output real-time emotion status labels. The real-time emotion status labels are then associated with the corresponding entry points in the temporary text cache data. Generate a composite business session state snapshot, which includes at least: current time progress data, current consultation stage identifier data, index data of recorded audio files and slice association data based on consultation stage segmentation, temporary text cache data with the emotional state tag association, and currently invoked member profile identifier and operation context data. When a fixed scene switch is detected, the composite business session state snapshot is encrypted and pushed to the mobile application; After receiving and parsing the composite business session state snapshot, the mobile application automatically reconstructs the consultation interface, enabling the timer to continue running from the breakpoint, the recording to generate new segments and establish a logical connection with the previous recording, the temporary notes along with their associated emotional state tags to be restored to the state before leaving, and the member profile interface to be restored to the operation context before leaving, so as to achieve seamless continuity of the healing consultation session between fixed and mobile devices. After the mobile consultation ends, the consultation data generated on the mobile device is merged with the composite business session status snapshot to generate a complete healing consultation record and upload it to the cloud server.
[0007] In this embodiment, the step of detecting a fixed scene switch includes: The strength of the near-field communication signal between the target terminal device and the mobile application is continuously monitored, and a timer is started when the strength of the near-field communication signal is lower than a preset threshold. When the near-field communication signal strength remains below the preset threshold for a preset duration, a migration confirmation prompt is generated on the display interface of the target terminal device, and a migration confirmation notification is generated simultaneously on the mobile application. In response to a migration confirmation command triggered on the target terminal device or the mobile application, it is determined that the consultant has left the fixed scene, and the generation and push operation of the composite business session state snapshot is triggered.
[0008] In this embodiment, prior to the step of generating a composite service session state snapshot, the method further includes: The device binding status between the target terminal device and the mobile application is obtained, and the device binding status is maintained through cloud account authentication and near-field communication pairing. When the mobile application establishes a near-field communication connection with the target terminal device for the first time, the account identity is verified through the cloud server. After the verification is successful, the mobile application and the target terminal device are bound as associated devices under the same consultation workbench. During the consultation process, the device binding status is continuously monitored. If the device binding status is abnormally interrupted, the currently generated consultation data is cached in real time in the local storage unit, and data synchronization and status consistency verification are automatically triggered after the device binding status is restored.
[0009] In this embodiment, after the step of performing real-time emotion recognition on the consultation voice data, the method further includes: Based on the real-time emotional state tag and the current consultation stage identifier, the preset consultation emotional atmosphere stage mapping strategy library is queried to obtain the atmosphere control parameters that match the current consultation stage and the current emotional state tag. In the mapping strategy library, each consultation stage is configured with corresponding background music type parameters, background volume parameters and light effect parameters for different emotional state tags. According to the ambient control parameters, the background music playback type and volume of the target terminal device are adjusted in a gradual transition manner, and the color and brightness of the ambient light effect at the edge of the display unit of the target terminal device are adjusted in a low-frequency breathing rhythm. The adjustment of the ambient control parameters does not pop up an interactive window or emit a voice prompt sound throughout the process, and the adjustment of the background volume transitions from the current value to the target value within a few seconds at a preset gradual rate.
[0010] In this embodiment, after the step of querying the preset counseling emotional atmosphere stage mapping strategy library, the method further includes: When the real-time emotional state label is tense or anxious and the current consultation stage is the listening and relaxation stage, natural sound effects or piano music with soothing effects that have been preset and evaluated are selected from the music library as target background music, and the current background volume is reduced to a preset low value at the gradual rate. At the same time, a soft warm light effect is activated at the edge of the display unit and runs with a low-frequency breathing rhythm. The duration of the real-time emotional state tag is compared with the preset remaining duration of the current consultation stage. When the duration exceeds a preset threshold, a stage extension instruction is sent to the timing module. The stage extension instruction includes an extension amount. The timing module extends the timing end of the current consultation stage according to the extension amount and accordingly shifts the timing start and end points of subsequent consultation stages.
[0011] In this embodiment, the step of automatically reconstructing the consultation interface after the mobile application receives and parses the composite service session state snapshot includes: The current timing progress data and the current consultation stage identifier data are parsed from the composite business session state snapshot. The timing continues from the timing value corresponding to the current timing progress data in the timing display area of the mobile application, and the current consultation stage identifier is displayed in the stage identifier display area. The index data of the recorded audio file and the slice association data based on the consultation stage segmentation are parsed from the composite business session state snapshot. A new recording file is created in the recording module of the mobile application, and the metadata of the new recording file is logically linked with the slice association data. Parse the temporary text cache data with the emotional state tag association from the composite business session state snapshot, and restore the content of the temporary text cache data and the emotional state tag markers corresponding to each entry point in the note editing area of the mobile application. The member profile identifier and operation context data of the currently invoked member are parsed from the composite business session state snapshot, and the profile module, page scroll position and expanded information card corresponding to the operation context data are restored in the profile browsing area of the mobile application.
[0012] In this embodiment, the step of merging the consultation data generated by the mobile terminal with the composite business session state snapshot includes: Acquire newly generated mobile audio files, mobile note data, mobile emotion recognition results, and mobile atmosphere control logs during mobile consultations; The mobile terminal recording file is concatenated with the recorded audio file index in the composite service session state snapshot, and a continuous time axis index is generated according to the time sequence of the consultation stage. Audio waveform smoothing is performed at the cross-device connection points. The mobile terminal note data and the temporary text cache data in the composite business session state snapshot are merged in chronological order, and the note timestamps at the cross-device connection points are continuously verified and calibrated. The merged audio files, notes, emotion recognition results, and atmosphere control logs are packaged into a complete healing consultation record in a unified timeline format and uploaded to the cloud server for storage in the corresponding member file.
[0013] In this embodiment, after the step of generating a complete healing consultation record and uploading it to the cloud server, the method further includes: The start and end times of each consultation stage, emotional state labels at each time point, and corresponding atmosphere control actions are extracted from the complete healing consultation records to generate an emotional change curve with consultation time as the horizontal axis and emotional state as the vertical axis. The core dialogue topics within each consultation stage are extracted from the complete healing consultation record, and a visual mind map is generated according to the progressive relationship of the consultation stages. Each node in the visual mind map corresponds to a consultation stage, and each node contains the key emotional labels and core issue summary of that stage. Based on the conversation content in the complete healing consultation record, key themes, questions, decisions, or action plans are identified from the speech-to-text according to preset card extraction rules, generating one or more information cards, and the information cards are associated with and stored with the corresponding consultation time point and emotional state tags.
[0014] In this embodiment, after the step of collecting consultation voice data during the healing consultation process, the method further includes: The language information of the consultation voice data is identified, and the identified language information is compared with the working language preset by the consultant. When the identified language information is different from the consultant's preset working language, the real-time translation engine is automatically activated to translate the consultation voice data in real time and generate translated text. The translated text is displayed in the translation area of the target terminal device or the mobile application's display interface. At the same time, the original speech-to-text and the translated text are used to generate a bilingual comparison record in a time-aligned manner. The bilingual comparison record is then associated with the current timing node and the current consultation stage identifier.
[0015] To address the aforementioned technical problems, this invention also discloses a cross-device intelligent assistance system for healing consultation, characterized by comprising: The target terminal device, deployed in a fixed consultation room, integrates a processing unit, a display unit, an audio acquisition and playback unit, a timing unit, a near-field communication unit, a wireless communication unit, and a storage unit; A mobile application, installed on the counselor's mobile device, has the same counseling assistance function modules as the target terminal device; Cloud servers are used for data synchronization and storage; The system is configured to perform the cross-device intelligent assistance method for healing counseling as described above. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating the first embodiment of the cross-device intelligent assistance method for healing counseling of the present invention; Figure 2 This is a flowchart illustrating the second embodiment of the cross-device intelligent assistance method for healing consultation of the present invention; Figure 3 This is a flowchart illustrating the third embodiment of the cross-device intelligent assistance method for healing counseling of the present invention; Figure 4 This is a schematic diagram of the overall system architecture; Figure 5 Functional module structure diagram of a desktop smart terminal; Figure 6 A flowchart illustrating the seamless migration of consultation sessions across devices; Figure 7 A schematic diagram of the adaptive consultation atmosphere adjustment process based on voice emotion recognition. Detailed Implementation
[0019] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0020] This application provides a cross-device intelligent assistance method for therapeutic consultation, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the cross-device intelligent assistance method for healing consultation according to this application. In this embodiment, the cross-device intelligent assistance method for healing consultation includes: Step S10: In a fixed scenario, collect consultation voice data during the healing consultation process through a terminal device, and obtain the timing progress data of the current consultation session and the member file operation context data. In a fixed scenario, the system collects consultation voice data during the healing consultation process through terminal devices, and obtains the timing progress data of the current consultation session and the operation context data of the member's profile.
[0021] The desktop smart terminal is deployed in a fixed consultation room. Equipped with a high-fidelity microphone array, it can capture audio conversations between members through multiple channels. Before the consultation begins, member authentication is completed via the terminal's facial recognition module or near-field communication membership card recognition. The system then retrieves the member's profile data from the cloud server, which includes basic information, historical consultation records, and personal preference settings. After the profile is loaded, the consultation support system running on the terminal enters the consultation preparation state. At this point, the timing unit is initialized, the display unit shows the current consultation stage as pending, and the audio acquisition unit is in a ready-to-start mode.
[0022] After clicking the "Start Consultation" button on the terminal device's touchscreen, the system officially enters the healing consultation process. The microphone array then begins real-time acquisition of the consultation voice. The acquired voice data is cached in the terminal's storage unit in pulse code modulation format, while the audio stream is split into multiple processing channels. One channel sends the voice data to the local speech-to-text engine for real-time processing, and another channel sends the voice data to the emotion analysis engine for acoustic feature extraction. The timing circuit starts timing the moment the consultation begins. This timing circuit has two working modes: positive timing and segmented timing. The positive timing mode records the total time elapsed from the start of the consultation to the current moment, while the segmented timing mode records the time elapsed in the current consultation segment and the remaining preset time of the segment.
[0023] Upon initiating a consultation, the system retrieves the current consultation session's timing progress data from the timing unit. This timing progress data is not a single time value, but rather structured data containing multiple sub-items such as total duration, the current consultation stage identifier, the time already consumed in that stage, and the remaining time in that stage. The consultation stage identifier corresponds to the system's preset healing consultation phased logic. This phased logic divides a complete healing consultation into a listening and relaxation stage, an emotional release stage, a cognitive restructuring stage, and an action planning stage. Each stage has a default preset duration, which can be adjusted before or during the consultation based on the member's actual situation.
[0024] The system also retrieves member profile operation context data for the current consultation session from the member profile management module. This data records the operation trajectory within the member profile interface, specifically including the name of the currently viewed profile module, the page's vertical scroll position, the list of expanded information cards, and the type and timestamp of the most recent query or edit operation performed in the profile. For example, if the system is viewing the member's emotional change curve from their last consultation before the consultation begins, the operation context data will record the curve's position on the page and whether the curve itself is expanded. If the system opens and partially edits the member's medication record card during the consultation, the operation context data will record that the card is expanded, the field with the editing focus, and any unsaved edits.
[0025] The aforementioned consultation voice data, timing progress data, and member file operation context data together constitute the initial state data set of a consultation session in a fixed scenario. This data set is not statically stored but continuously updated during the consultation process. Voice data accumulates as the conversation progresses, timing progress data is refreshed in real time as the timing circuit operates, and member file operation context data dynamically changes with each browsing and editing operation in the file interface. This real-time updated data provides the basic data source for subsequently generating composite business session state snapshots. After all collected and acquired data undergoes preliminary processing locally on the terminal, it is temporarily stored in the storage unit according to a preset data structure, awaiting further processing in subsequent steps.
[0026] Step S20: Perform real-time speech transcription on the consultation voice data to generate temporary text cache data. At the same time, perform real-time emotion recognition on the consultation voice data, extract the acoustic features of the member's voice and output real-time emotion status labels, and establish an association between the real-time emotion status labels and the corresponding entry points in the temporary text cache data. The system performs real-time speech transcription of consultation voice data to generate temporary text cache data. Simultaneously, it performs real-time emotion recognition on consultation voice data, extracts the acoustic features of members' voices and outputs real-time emotion state labels, and establishes a correlation between the real-time emotion state labels and the corresponding entry points in the temporary text cache data.
[0027] The consultation voice data collected by the microphone array is continuously input into the terminal's processing unit in the form of an audio stream. The processing unit copies the audio stream into two paths: one is sent to the local speech-to-text engine, and the other is sent to the local sentiment analysis engine. The two paths are processed in parallel without interference.
[0028] After receiving the audio stream, the speech-to-text engine first performs speech activity detection, identifying which segments contain valid speech and which are silence or background noise from the continuous audio signal. Following speech activity detection, the engine segments the valid speech segments into several audio segments of appropriate length. Each audio segment undergoes pre-emphasis, framing, and windowing processing to extract acoustic features such as Mel-frequency cepstral coefficients. These acoustic features are input into a pre-trained speech recognition acoustic model, which outputs the corresponding phoneme sequence. This phoneme sequence is then decoded by a language model to obtain the final text-to-text result. The transcription result is output in a streaming manner, meaning that the corresponding text segment is output immediately after processing each audio segment, rather than waiting for the entire audio segment to be processed. The output text segments are written sequentially to a temporary text cache, each text segment accompanied by its timestamp information, accurate to the second, recording the start and end positions of the corresponding speech on the consultation timeline.
[0029] After receiving the audio stream, the sentiment analysis engine first uses speaker separation technology to distinguish between the voice channel and the member's voice channel. Speaker separation is based on differences in voiceprint features. By extracting individual characteristics such as timbre and fundamental frequency of different speakers, the voice segments belonging to different speakers in the audio stream are labeled and assigned to their respective channels. After separation, the sentiment analysis engine only performs in-depth processing on the data of the member's voice channel; the data of the voice channel is only used as a contextual reference and does not participate in the generation of sentiment labels.
[0030] The sentiment analysis engine extracts acoustic features from member voice data, including speech rate, volume, fundamental frequency, and energy variation features. Speech rate is quantified by counting the number of syllables produced per unit time, reflecting the member's current speech output rate. Volume is quantified by calculating the average amplitude of the speech signal, reflecting the member's current vocal intensity. Fundamental frequency is quantified by extracting the fundamental frequency trajectory from the speech signal; the mean, variance, and trend of the fundamental frequency reflect the member's pitch and intonation stability. Energy variation is quantified by analyzing the energy distribution of the speech signal within short time frames, reflecting the member's breath stability and emotional arousal level. These acoustic features are extracted in fixed time windows, each two to three seconds long, with partial overlap between adjacent windows to ensure feature continuity.
[0031] The extracted acoustic features are input into a pre-trained lightweight emotion classification model, deployed at the edge of the device, enabling inference without relying on cloud server computing resources. The emotion classification model is built on a lightweight neural network architecture, with its parameter count controlled within an appropriate range to ensure inference latency on the terminal device is less than 100 milliseconds. The model takes the acoustic feature vector of the current time window as input and outputs the corresponding emotion state label and its confidence score. The emotion state label is a discrete category, including at least four categories: relaxed, slightly tense, anxious, and happy. The model's output emotion state label is not determined independently for the current time window, but rather smoothed by combining the output results of multiple preceding time windows to avoid frequent jumps in emotion labels due to recognition biases in individual windows. The smoothed emotion state label is the final recognition result output for that time window.
[0032] The system establishes a correlation between the identified real-time emotion state tags and the corresponding entry points in the temporary text cache data. Specifically, each emotion state tag has a timestamp, which corresponds to the position of the speech segment that generated the emotion tag on the consultation timeline. The system searches for text segments in the temporary text cache data that match the timestamp and appends the emotion state tag as metadata to the corresponding text segment. If the timestamp of an emotion state tag falls between two adjacent text segments, the system interpolates or matches based on the distance between the timestamp and the timestamps of each text segment, ensuring that each emotion tag can be associated with a specific entry point. Through this correlation mechanism, each text record in the temporary text cache data not only contains the transcribed text content and its timestamp information, but also the emotion state tag of the member speaking that text. This temporary text cache data with emotion tags becomes part of the subsequent snapshot of the state of composite business sessions, providing a data foundation for the continuity of emotion intervention after cross-device migration.
[0033] Step S30: Generate a composite business session state snapshot. The composite business session state snapshot includes at least: current time progress data, current consultation stage identifier data, index data of recorded audio files and slice association data based on consultation stage segmentation, temporary text cache data with the emotional state tag association, currently invoked member profile identifier and operation context data. Generate a composite business session state snapshot. The composite business session state snapshot includes at least the current time progress data, the current consultation stage identifier data, the index data of the recorded audio files and the slice association data based on the consultation stage segmentation, the temporary text cache data with emotion state tag association, the currently invoked member profile identifier and operation context data.
[0034] The composite business session status snapshot is a structured data package continuously generated and maintained by the desktop smart terminal during the consultation process. This data package is not built all at once at a specific moment, but is continuously updated throughout the entire consultation. Whenever the timer progress changes, the consultation stage switches, a new recording segment is generated, a new emotion tag is identified and associated with a note entry point, or a browsing or editing operation is performed in the file interface, the corresponding data fields in the snapshot are refreshed. The snapshot is stored in the terminal's storage unit using a predefined data structure, which organizes the data across various dimensions using a hierarchical nested format.
[0035] The current time progress data is a top-level field in the snapshot, containing four subfields: total duration, identifier of the current consultation stage, time elapsed in the current stage, and remaining time in the current stage. The total duration records the total number of seconds elapsed from the start of the consultation to the moment the snapshot is generated. The identifier of the current consultation stage is an enumeration value, corresponding to one of the four stages in the system's preset healing consultation phased logic: listening and relaxation stage, emotional guidance stage, cognitive restructuring stage, or action planning stage. The time elapsed in the current stage records the number of seconds elapsed from the start of the current stage to the moment the snapshot is generated. The remaining time in the current stage records the remaining seconds after subtracting the elapsed time from the preset total duration of the current stage; this value is updated accordingly if the current stage has been extended or shortened.
[0036] The current consultation stage identifier data is stored separately from the stage identifier in the timeline progress data. This is to ensure that the snapshot can quickly locate the current consultation stage during parsing without having to extract it from the timeline progress data again. In addition to the stage name, this identifier data also includes the stage number, the preset total duration of the stage, and the start timestamp of the stage on the consultation timeline.
[0037] The index data of the recorded audio files and the slice association data based on consultation stage segmentation are another set of core fields in the snapshot. The index data records a list of identifiers for all generated audio files from the start of the consultation to the snapshot generation time. Each audio file is marked with a unique identifier containing the generation date, generation time, and a random checksum. The slice association data defines the logical mapping between each audio file and the consultation stage. Specifically, whenever a consultation stage changes, the system records a stage breakpoint in the recording index, marking the end position of the previous stage and the start position of the next stage. Through this mechanism, the recording data of the entire consultation process is divided into several logical slices according to consultation stages, with each slice corresponding to all the recording content within a consultation stage. The slice association data is stored in list form, with each entry containing a stage identifier, the identifier of the starting audio file for that stage and its start time offset, and the identifier of the ending audio file for that stage and its end time offset. This data structure enables mobile applications to accurately know at which stage the previous recording ended, at which stage the newly generated recording should start, and how to logically splice the old and new recordings according to stages after cross-device migration.
[0038] Temporary text cache data with associated emotion state tags is the core field in the snapshot that carries the consultation content. This field stores all speech-to-text transcripts from the start of the consultation to the moment the snapshot was generated. The text is arranged chronologically, and each text record includes its timestamp information and its association with an emotion state tag. The association between emotion state tags and the entry point of the notes is stored in the form of key-value pairs, where the key is the timestamp of the entry point of the notes, and the value is the emotion state tag and its confidence score corresponding to that time point. The temporary text cache data also includes notes that were manually typed or handwritten during the consultation. These human notes also include timestamp information and are also associated with emotion state tags. That is, if an emotion tag exists near the timestamp of a human note, the emotion tag is stored as contextual metadata of the note.
[0039] The currently accessed member profile identifier and operation context data are key fields for ensuring accurate restoration of the profile interface in the snapshot. The member profile identifier is a unique identification code for a member in the system, which allows for precise location of the corresponding member profile on the cloud server. The operation context data records the operation status in the member profile interface, specifically including the name of the currently viewed profile module, the vertical scroll position coordinates of the page, the list of expanded information card identifiers, the control identifier of the most recent edit operation, and the cache of unsaved edit content. The operation context data is organized in a hierarchical structure, with the top layer being the module identifier, the second layer being the view state parameters within each module, and the bottom layer being the specific control states and input content.
[0040] The data from the above five dimensions are encapsulated into a composite business session state snapshot according to a predefined unified data format. Each snapshot is generated with a timestamp and a version number. The timestamp records the moment the snapshot was generated, and the version number records the sequence number of the snapshot generated during this consultation process. Multiple historical versions of the snapshot are retained in the storage unit, but only the latest version is used for cross-device migration; historical versions are only used for data consistency verification or anomaly recovery.
[0041] Step S40: When a fixed scene switch is detected, the composite service session state snapshot is encrypted and pushed to the mobile application. A continuous connection is maintained between the desktop smart terminal and the mobile application installed on the consultant's mobile device via a near-field communication (NFC) link. The NFC link relies on the Bluetooth communication protocol. During the initial pairing, the smart terminal and mobile device complete identity binding through cloud account authentication. After binding, the devices will automatically establish a connection as long as they are within each other's Bluetooth signal range. The system determines whether the consultant is still in a fixed scenario by monitoring the Bluetooth signal strength indicator (SSI). Specifically, it determines whether the fixed scenario has successfully switched based on the consultant's location, or whether the fixed scenario has changed based on the actual location of the mobile device. The Bluetooth SSI is measured in decibels (dB / mW) and decreases with increasing distance between devices. The smart terminal samples the Bluetooth SSI at a fixed interval of one second.
[0042] When the Bluetooth signal strength indication values obtained from multiple consecutive samples are all below a preset threshold, the system determines that the fixed scene is changing. To avoid misjudgment due to instantaneous signal fluctuations, the system does not rely on a single sampling result but instead introduces a duration-based judgment condition. Specifically, the system maintains a counter, which increments whenever the sampled value falls below the preset threshold and resets to zero whenever the sampled value recovers above the threshold. When the counter reaches a preset upper limit, i.e., when the Bluetooth signal strength has been continuously below the preset threshold for a preset duration, the system initially determines that the consultant has left the fixed scene. This preset duration can be configured according to the size of the consultation room and the signal attenuation characteristics, with a typical value of five to ten seconds.
[0043] After initial assessment, the system does not silently perform the migration in the background. Instead, it generates a migration confirmation prompt on the desktop smart terminal's display interface and simultaneously generates a migration confirmation notification on the mobile application. The migration confirmation prompt on the desktop terminal is presented in a non-intrusive manner, for example, displaying a question in a fade-in / fade-out manner at the edge of the display interface, asking the consultant whether they confirm migrating the current consultation session to the mobile device. The migration confirmation notification on the mobile application appears as a push notification in the phone's notification bar, which the consultant can view without unlocking the phone. The consultant can choose to confirm or cancel the migration based on the actual situation. If the consultant does not make any choice within the preset response time, the system defaults to confirming the migration to ensure the continuity of the consultation process.
[0044] In response to the triggered migration confirmation command, the system immediately initiates the encryption and push process for the composite business session state snapshot. The system first reads the latest composite business session state snapshot data from the storage unit. This snapshot contains all five dimensions of state data continuously updated in the previous steps. The snapshot data then enters the encryption module, which uses a symmetric encryption algorithm to encrypt the snapshot data. The encryption key is generated based on the consultant's account information in the system and the session identifier of the current consultation session, ensuring that a different encryption key is used for the migration data of each consultation. The encrypted snapshot data forms a ciphertext data packet, with metadata such as the session identifier, snapshot version number, and encryption algorithm identifier appended to the packet header.
[0045] After encryption, the system selects a push path based on current network conditions. If a usable Bluetooth connection still exists between the desktop smart terminal and the mobile application, and the Bluetooth signal quality is sufficient to support data transmission, the system prioritizes pushing the encrypted data packet to the mobile application via Bluetooth Direct. Bluetooth Direct has the advantages of low latency and independence from external networks. If the Bluetooth connection is completely lost or the signal quality is insufficient to support reliable transmission, the system uploads the encrypted data packet to the cloud server via Wi-Fi and simultaneously sends a cloud data ready notification to the mobile application. Upon receiving the notification, the mobile application downloads the encrypted data packet from the cloud server. To improve transmission efficiency and reliability, the encrypted data packet employs a block transmission and checksum retransmission mechanism during transmission. Each data block is accompanied by a checksum. After receiving the data, the receiving end performs integrity verification on the data block. If a data block is found to be corrupted or lost, it requests a retransmission from the sending end.
[0046] The entire push process is designed to be seamless for both the user and the consultant. The desktop terminal does not display any pop-up windows or emit any notification sounds during the push process, and it does not interrupt the ongoing consultation conversation. The push operation is executed silently in the background, ensuring that the consultation between the consultant and the member remains undisturbed even if the push process takes several seconds. After the push is complete, the desktop terminal enters standby mode, awaiting data merging and synchronization after the consultant completes the consultation on the mobile device.
[0047] In step S50, after the mobile application receives and parses the composite business session state snapshot, it automatically reconstructs the consultation interface, so that the timer continues to run from the breakpoint, the recording generates a new segment and establishes a logical connection with the previous recording, the temporary notes along with their associated emotional state tags are restored to the state before leaving, and the member profile interface is restored to the operation context before leaving, so as to achieve seamless continuity of the healing consultation session between fixed devices and mobile devices. After receiving and parsing the snapshot of the composite business session state, the mobile application automatically reconstructs the consultation interface, enabling the timer to continue running from the breakpoint, the recording to generate new segments and establish a logical connection with the previous recording, the temporary notes along with their associated emotional state tags to be restored to the state before leaving, and the member profile interface to be restored to the operation context before leaving, so as to achieve seamless continuity of the healing consultation session between fixed and mobile devices.
[0048] Upon receiving the encrypted data packet, the mobile application first decrypts it using the decryption key corresponding to the encryption process. The decryption key is generated in the same way as the encryption key, both based on the consultant's account information and session identifier. After decryption, the application performs format and integrity checks on the snapshot data to confirm that it has not been damaged or tampered with during transmission. Once the checks pass, the application enters the automatic reconstruction process of the consultation interface. This process executes sequentially in the order of the timing module, recording module, note-taking module, and file module. The reconstruction of each module is independent and performed in parallel to shorten the overall reconstruction time.
[0049] The timing module's reconstruction extracts current timing progress data and current consultation stage identifier data from the snapshot. The application's timing display area first sets the timer's value to the total timing duration recorded in the snapshot, and then the timer continues running from that value, incrementing by one second. The timing display area also shows the name of the current consultation stage, which corresponds to the current consultation stage identifier recorded in the snapshot. The stage progress bar is rendered based on the elapsed time and remaining time of the current stage recorded in the snapshot. The progress bar's fill ratio reflects the completion status of the current stage, and the progress bar continuously updates as the timer runs after reconstruction. Through the above operations, the timer achieves precise continuation from the point of disconnection on the fixed device when resuming on the mobile device, without requiring manual input of any time values or resetting of timing parameters.
[0050] The recording module's reconstruction extracts index data of recorded audio files from snapshots and segment association data based on consultation phase divisions. The application's recording module creates a new recording file in local storage, whose metadata records its logical association with previous recordings. Specifically, the new recording file's metadata includes a reference to the last previous recording file and a type flag indicating that the new file is a continuation file. Simultaneously, the application reconstructs a mapping table between consultation phases and recording files locally based on the segment association data. This mapping table records a list of recording files corresponding to each consultation phase. The list of recording files for previous phases comes from snapshot data, while the list for the current phase includes the portion already recorded in the current phase and the portion to be newly recorded on the mobile device. When recording is started on the mobile device or automatically by the system, the newly generated audio data is written to the newly created recording file. This file establishes a logical link with previous recordings through the reference in its metadata, ensuring that subsequent data merging correctly splices the fixed-end recordings and mobile recordings according to the phase order.
[0051] The refactoring of the note-taking module extracts temporary text cache data with associated emotion state tags from snapshots. The application's note-editing area restores all text content from the snapshots sequentially, with each text record displaying its associated emotion state tag to its right or below in the form of a color marker or small icon. The restoration of human-generated notes is the same as for speech-to-text; temporary notes not yet saved on the fixed device are fully presented on the mobile device, and the emotion tags associated with each human-generated note are also restored. The scroll position in the note-editing area automatically positions itself to the last note recorded in the snapshot—the note being viewed or edited when leaving the fixed scene—allowing users to continue previous note-taking work without manual scrolling. The state of the note input box is also restored; if the counselor is entering an unfinished note when leaving, the unfinished content in the input box is fully restored, allowing them to continue entering that note on the mobile device.
[0052] The reconstruction of the profile module extracts the currently invoked member profile identifier and operation context data from the snapshot. The application first loads the corresponding member profile data from the cloud server or local cache based on the member profile identifier. After loading, it locates the profile module the consultant was browsing before leaving based on the module identifier in the operation context data. The page scroll position is precisely restored according to the scroll position coordinates in the operation context data, and the vertical scroll bar of the display area moves to the same position as when the consultant left. Expanded information cards are re-expanded according to the card identifier list in the operation context data, and the expanded state and scroll position of each card are restored. If a field in a card was being edited before leaving and the edited content has not been saved, the unsaved edited content recorded in the operation context data is restored to the corresponding input control, allowing the consultant to continue the editing operation on the mobile device.
[0053] After the reconstruction of the above four modules is completed, the consultation interface of the mobile application remains completely consistent with the consultation interface of the desktop smart terminal at the time of disconnection in terms of functionality and data content. The timer value, recording status, notes, and file page seen on the mobile device are the same as when disconnected from the fixed terminal, allowing users to directly continue consultation conversations with members on the mobile device without any manual settings or data retrieval. Members will not perceive any interruption or change throughout the entire migration process, and no explanation or clarification is required, ensuring the natural and smooth flow of the consultation process.
[0054] Step S60: After the consultation ends on the mobile terminal, merge the consultation data generated on the mobile terminal with the composite business session status snapshot to generate a complete healing consultation record and upload it to the cloud server.
[0055] After the mobile consultation ends, the consultation data generated on the mobile device is merged with the snapshot of the composite business session status to generate a complete healing consultation record and upload it to the cloud server.
[0056] After completing all consultation content on the mobile device, clicking the "End Consultation" control on the mobile application interface initiates the data merging process. The first step of this process is to collect all newly generated data from the mobile device during the consultation. This data includes mobile audio recordings, mobile note data, mobile emotion recognition results, and mobile atmosphere control logs. The mobile audio recordings document all consultation audio from the transition from the fixed scenario to the end of the consultation. The mobile note data includes speech-to-text transcriptions added by the counselor during the mobile consultation, newly entered manual notes, and modifications to existing notes. The mobile emotion recognition results include all emotion state tags identified during the mobile consultation and their timestamps. The mobile atmosphere control logs contain every atmosphere control action performed by the system during the mobile consultation, along with its trigger time and control parameters.
[0057] The second step in the merging process is to concatenate the mobile recording file with the index of the recorded audio file in the composite business session state snapshot. This concatenation is not simply a matter of linking the beginning and end of the recording files; rather, it requires organizing the recordings according to the consultation phase based on the segment association data. Specifically, the system first extracts the index data of the recorded audio files and the segment association data based on the consultation phase from the snapshot to determine the end position of the preceding recording in the last consultation phase. Then, the system connects the beginning of the mobile recording file with the end of the preceding recording on the timeline, generating a continuous timeline index. To ensure audio continuity at the cross-device connection point, the system smooths the audio waveform one second before and after the connection point, avoiding perceptible traces of audio signal jumps or sound quality differences caused by device switching in the recording. The smoothing is achieved by calculating the amplitude envelope of the audio signals before and after the connection point and performing crossfade-in and fade-out, making the transition between the two recordings natural and smooth.
[0058] The third step in the merging process is to merge the mobile note data with the temporary text cache data in the composite business session state snapshot in chronological order. The merging operation uses timestamps as the primary key, arranging historical text records in the snapshot and newly added text records on the mobile device in chronological order to form a complete, time-continuous chain of consultation text records. For the continuity of timestamps at cross-device junctions, the system performs a verification operation: checking whether the time difference between the timestamp of the last record in the snapshot and the timestamp of the first record on the mobile device is reasonable. If the time difference exceeds a preset reasonable range, the timestamps of the mobile device records are calibrated based on the total duration of the records in the snapshot and the starting value of the mobile device's timer to ensure that the timeline of the entire text record chain is continuous without any breaks.
[0059] The fourth step in the merging process is to integrate the emotion recognition results and the atmosphere control logs according to a unified timeline. The historical emotion tags carried in the snapshots are merged with the newly recognized emotion tags from the mobile device in chronological order, forming a complete sequence of emotion changes throughout the entire consultation. The atmosphere control logs are also merged in chronological order, with each log entry including the time point of the control, the type of control, the parameter values before and after the control, and the emotional state tag that triggered the control.
[0060] After data merging, the system encapsulates all the aforementioned data into a complete healing consultation record using a unified data format. This record includes the complete audio recording of the consultation and its segmented index organized by consultation stage, the complete speech-to-text transcript and its association with emotional state tags, all of the therapist's manual notes, a complete time series of emotional changes, a complete log of atmosphere control implementation, and the start and end times and durations of each consultation stage. After encapsulation, the system uploads the complete healing consultation record to the cloud server via the wireless communication module of the mobile application. The upload process uses a breakpoint resume mechanism; if the network is interrupted during the upload, the system will resume uploading from the interrupted position after the network is restored, without needing to retransmit the data that has already been successfully uploaded.
[0061] After receiving the complete healing consultation record, the cloud server stores it in the corresponding member's file. The stored consultation record, along with the member's historical consultation records, is arranged chronologically to form the member's long-term healing file. Subsequent access to the member's file from any device allows viewing the complete record of the consultation, including audio playback, transcription, emotional curves, and atmosphere intervention logs. The system also automatically generates a structured consultation summary based on the complete record. This summary includes a consultation overview, key issues at each stage, an overview of emotional fluctuations, and therapist notes, for later review or use in developing follow-up plans.
[0062] Furthermore, based on the embodiment of step S40 above, the step of detecting a fixed scene switch includes: The strength of the near-field communication signal between the target terminal device and the mobile application is continuously monitored, and a timer is started when the strength of the near-field communication signal is lower than a preset threshold. When the near-field communication signal strength remains below the preset threshold for a preset duration, a migration confirmation prompt is generated on the display interface of the target terminal device, and a migration confirmation notification is generated simultaneously on the mobile application. In response to a migration confirmation command triggered on the target terminal device or the mobile application, it is determined that the consultant has left the fixed scene, and the generation and push operation of the composite business session state snapshot is triggered.
[0063] The desktop smart terminal and the mobile application installed on the consultant's mobile device maintain a continuous connection via Bluetooth communication protocol. The establishment of the Bluetooth communication link relies on the device pairing process completed upon initial use of the desktop terminal and mobile device. During pairing, both parties complete identity binding through cloud account authentication. After binding, the devices will automatically establish a connection as long as they are within each other's Bluetooth signal coverage area. The system determines changes in the spatial distance between the consultant and the desktop smart terminal by monitoring the received signal strength indicator (RSS) value of the Bluetooth communication link. The RSS value is measured in decibels (dB) and milliwatts (mW), and this value monotonically decreases as the straight-line distance between the devices increases; that is, the closer the devices are, the higher the signal strength value, and the farther the devices are, the lower the signal strength value. The near-field communication management module inside the desktop smart terminal periodically samples the RSS value of the Bluetooth communication link at fixed time intervals. The sampling period is set to one second, meaning that the current signal strength value is read from the Bluetooth communication protocol stack once per second.
[0064] The system begins executing the departure detection logic upon initiating a consultation session. The near-field communication management module compares the received signal strength indicator value obtained from each sample with a preset signal strength threshold. This preset threshold is pre-calibrated based on the space dimensions of the consultation room and the attenuation characteristics of Bluetooth signals in an indoor environment. Its physical meaning corresponds to the typical signal strength value when a consultant is carrying a mobile device to the consultation room door or about to leave. When the signal strength value of a sample is higher than or equal to the preset threshold, the system considers the consultant still in the consultation room and does not trigger any subsequent actions. When the signal strength value of a sample is lower than the preset threshold, the system considers the consultant may be moving towards the consultation room exit, at which point the near-field communication management module starts a timer. After the timer starts, the system continues to sample the signal strength at fixed intervals and continuously compares each new sample value with the preset threshold. If, during a sample taken during the timer's operation, the signal strength value recovers to above the preset threshold, the timer is immediately reset and stops, and the system returns to normal monitoring status without triggering any migration actions. The system only officially confirms that the counselor has left the fixed scene when the signal strength value remains below a preset threshold and the timer's cumulative duration reaches the preset duration. This preset duration is configured based on the actual layout of the consultation room and the fluctuation characteristics of the Bluetooth signal in the indoor environment, typically ranging from five to ten seconds. Its purpose is to filter out false triggers caused by the counselor's brief movement within the consultation room or momentary fluctuations in the Bluetooth signal. By introducing a duration-based determination condition, the system can effectively distinguish between two different scenarios: the counselor's brief movement and the counselor's actual departure from the consultation room, preventing the consultation session from being incorrectly migrated due to momentary signal fluctuations.
[0065] When the timer reaches the preset duration, the system officially determines that the consultant has left the fixed scene. However, the system does not immediately execute the session migration operation; instead, it enters the migration confirmation phase. The display control module of the desktop smart terminal generates a migration confirmation prompt on the touch screen, which is visually presented in the edge area of the display interface. The content of the migration confirmation prompt is a query asking the consultant whether they confirm migrating the current consultation session from the desktop smart terminal to the mobile application to continue execution. The presentation of this prompt adopts a non-intrusive design, meaning that the prompt information does not cover the core working area of the consultation interface, nor does it obscure the displayed timer value, recording status indicator, or member profile content, ensuring that the dialogue between the consultant and the member is not disturbed. At the same time, the desktop smart terminal sends a migration confirmation notification to the mobile application through the cloud server. This notification appears in the notification bar of the mobile device as a push message. After receiving the push notification, the mobile application displays the same migration confirmation query on the screen of the mobile device as on the desktop terminal. The consultant can view the notification content in the notification bar and respond without unlocking the mobile device. Both desktop and mobile devices have a response time limit for the migration confirmation prompts. If the consultant does not make any selection on any device within the preset response time, such as 30 seconds, the system will default to confirming the migration to ensure that the continuity of the consultation process is not interrupted for a long time.
[0066] After reviewing the migration confirmation prompt, the counselor can make a judgment based on the actual situation. If the counselor believes they only need to leave the consultation room briefly to retrieve items and will return quickly, or if they believe the current consultation phase is not suitable for device switching, the counselor can click the cancel migration control on the touch screen of the desktop smart terminal, or click the cancel migration button in the notification bar of the mobile device. Regardless of which device the counselor cancels on, the cancellation command will be synchronized to the other device via the cloud server. The migration confirmation prompts on both devices will disappear simultaneously, and the system will return to normal consultation status. All functional modules such as timing, recording, and emotion recognition will continue to run on the desktop terminal without performing any migration actions. If the counselor confirms they need to leave the consultation room and wishes to continue the consultation on the mobile device, the counselor can click the confirm migration control on either the desktop terminal or the mobile device. After the migration confirmation command is triggered, the desktop smart terminal immediately enters the process of generating and pushing a snapshot of the composite business session status. The snapshot generation process reads the latest composite business session state snapshot data from the storage unit. This snapshot includes five dimensions of state information: current timing progress data, current consultation stage identifier data, index data of recorded audio files and segment relationship data based on consultation stage segmentation, temporary text cache data with emotional state tag relationships, currently accessed member profile identifier, and operation context data. The snapshot data is then encrypted to form a ciphertext data packet and pushed to the mobile application via a Bluetooth direct connection channel or a cloud relay channel. The entire snapshot generation and push process is executed silently in the background. The desktop terminal does not pop up any additional prompt windows or emit any notification sounds during the push process, and does not interrupt the ongoing dialogue between the consultant and the member. After the push is completed, the desktop terminal enters standby mode, waiting for the consultant to complete the subsequent consultation on the mobile device and perform data merging and synchronization operations. After the mobile application receives the encrypted data packet, it immediately enters the automatic reconstruction process of the consultation interface defined in step S50. The timer continues to run from the breakpoint, the recording generates a new segment and establishes a logical connection with the previous recording, the temporary notes along with their associated emotional state tags are restored to the state before leaving, and the member profile interface is restored to the operation context before leaving. The counselor can then seamlessly continue the same consultation on the mobile device.
[0067] Based on the embodiment of step S50 above, the step of automatically reconstructing the consultation interface after the mobile application receives and parses the composite service session state snapshot includes: The current timing progress data and the current consultation stage identifier data are parsed from the composite business session state snapshot. The timing continues from the timing value corresponding to the current timing progress data in the timing display area of the mobile application, and the current consultation stage identifier is displayed in the stage identifier display area. The index data of the recorded audio file and the slice association data based on the consultation stage segmentation are parsed from the composite business session state snapshot. A new recording file is created in the recording module of the mobile application, and the metadata of the new recording file is logically linked with the slice association data. Parse the temporary text cache data with the emotional state tag association from the composite business session state snapshot, and restore the content of the temporary text cache data and the emotional state tag markers corresponding to each entry point in the note editing area of the mobile application. The member profile identifier and operation context data of the currently invoked member are parsed from the composite business session state snapshot, and the profile module, page scroll position and expanded information card corresponding to the operation context data are restored in the profile browsing area of the mobile application.
[0068] After decrypting and verifying the integrity of the encrypted data packet, the mobile application officially enters the automatic reconstruction process of the consultation interface. The application extracts the status information of each dimension from the decrypted snapshot data one by one, and restores the information to an operable interface state according to the preset reconstruction order.
[0069] The reconstruction of the timing module was initiated first. The application parses the current timing progress data and the current consultation stage identifier data from the snapshot data. The current timing progress data includes three sub-fields: total duration, time consumed in the current stage, and remaining time in the current stage. Immediately after the interface loads, the application's timing display area sets the displayed timer value to the total duration recorded in the snapshot. This setting operation is completed the instant the interface renders, ensuring that the timing value seen by the counselor when opening the mobile application is exactly the same as the timing value when leaving the fixed location. After the value is set, the timer continues running from that value, incrementing by one second. This means the timer achieves precise continuation from the point of disconnection from the fixed location, without requiring the counselor to manually input any time value or reset the timing parameters. Simultaneously, the application extracts the current consultation stage identifier data from the snapshot, which includes two sub-items: stage name and stage number. The stage identifier display area displays the current consultation stage name on the interface in a prominent text label format, such as the Listening and Relaxation Stage, Emotional Guidance Stage, Cognitive Restructuring Stage, or Action Planning Stage. The progress bar component is rendered based on the elapsed time and remaining time of the current stage. The fill ratio of the progress bar is calculated by dividing the elapsed time of the current stage by the sum of the elapsed time and the remaining time, and this ratio is presented as a percentage of the progress bar's width. The animation of the progress bar filling from zero to the current ratio is completed rapidly within a few hundred milliseconds after the interface loads, allowing the consultant to intuitively grasp the progress of the current consultation stage. All the above-mentioned time-related interface elements are continuously updated after the reconstruction. The timer value refreshes once per second, and the fill ratio of the stage progress bar increases synchronously and slowly as the timer value increases, ensuring that the consultant on the mobile device has a completely consistent time experience with the fixed device.
[0070] The reconstruction of the recording module and the timing module are performed synchronously. The application parses the index data of the recorded audio files and the slice association data based on the consultation stage segmentation from the snapshot data. The index data of the recorded audio files records a unique list of all recording files generated on the fixed end from the start of the consultation to the migration time. Each recording file identifier contains encoded information such as device number, recording date, and recording sequence number. The slice association data records the logical mapping between each recording file and the consultation stage, specifically represented by a list structure. Each entry in the list contains a stage identifier, the starting recording file identifier and start time offset corresponding to the stage, and the ending recording file identifier and end time offset corresponding to the stage. The application performs the creation operation of new recording files in the recording module. The newly created recording files use the same encoding format and sampling parameters as the recording files on the fixed end to ensure data compatibility. The newly created recording files write the association information that establishes a logical link with the previous recordings in the metadata area of the file system. The logical link is established as follows: a reference identifier pointing to the last preceding recording file is written into the metadata. This reference identifier is the file identifier corresponding to the last entry in the index list of recorded audio files in the snapshot. A continuation type flag is also written into the metadata, indicating that the new recording file exists as a continuation of the timeline of the preceding recording, rather than an independent new recording file unrelated to the preceding one. The application also completely copies the slice association data to the local mapping table on the mobile device and adds an entry to the mapping table. This entry records the identifier of the current consultation stage, the recording file identifier and offset position at the end of the previous stage, and the newly created mobile recording file as a continuation of the current stage. Through this mapping relationship, when the consultant starts recording on the mobile device, the newly generated audio data is written to the newly created recording file. The reference identifier in the file's metadata allows the system to accurately identify which stage of the preceding recording the file should be appended to during subsequent data merging. After the recording module's interface controls are reconstructed, they are displayed in a recording-ready state. The color and text prompt of the recording button are consistent with the state when the client leaves, allowing the consultant to start or continue recording without resetting the recording parameters.
[0071] The reconstruction of the note-taking module was initiated after the reconstruction of the recording module was completed. The application parses temporary text cache data with emotional state tag associations from the snapshot data. The temporary text cache data contains all speech-to-text transcripts and human notes from the start of the consultation to the migration time. Each record is accompanied by its timestamp information and the emotional state tag corresponding to that timestamp. The application restores and displays all text content in chronological order from top to bottom in the note editing area. Each text record contains three components when displayed: the timestamp of the record, the recorded text content, and the emotional state tag associated with the text content. The emotional state tag is presented in a non-intrusive visual manner on one side of each record. For example, different colored dots represent different emotion categories: red dots correspond to anxiety, yellow dots to mild tension, green dots to relaxation, and orange dots to pleasure. When the counselor clicks on an emotion tag, the application displays the confidence score and recognition time window of that emotion tag in the form of a bubble, helping the counselor understand the reliability and recognition accuracy of that emotion tag. Human-generated notes and speech-to-text are distinguished by different font styles or background colors, but their sentiment tagging mechanisms are identical. Each human-generated note carries a sentiment status tag corresponding to its creation timestamp. After all content is restored, the scroll position in the note editing area automatically positions itself to the time of the last note recorded in the snapshot. Specifically, it reads the record with the largest timestamp from the temporary text cache and scrolls that record to the center of the editing area. The state of the note input box is also restored during the reconstruction. If the counselor is entering an unsaved note while leaving the fixed device, the incomplete input stored in the snapshot is restored to the input box, with the cursor positioned at the end of the input. The counselor can continue entering the note on the mobile device without re-entering the already entered portion. The note editing area also supports counselors adding new notes on the mobile device. When a new note is saved, it is automatically associated with the current sentiment status tag as contextual metadata, ensuring that the sentiment association logic between new and historical notes remains consistent during subsequent merging.
[0072] The reconstruction of the profile module begins after the reconstruction of the notes module is completed. The application parses the currently invoked member profile identifier and operation context data from the snapshot data. The member profile identifier is a unique identification code for a member in the system. The application loads the corresponding member profile data from the cloud server cache or directly from local storage based on this code. After loading, the application locates the profile module that the consultant was browsing before leaving based on the profile module name in the operation context data. The profile module name corresponds to a functional area in the member profile system, such as the basic information module, consultation record module, health indicator tracking module, medication management module, or mood trend analysis module. The application switches the main display area of the profile interface to the view corresponding to that module. The restoration of the page scroll position depends on the vertical scroll offset and horizontal scroll offset recorded in the operation context data. When rendering the module view, the application sets the scroll bar position of the scroll container to the above two offset values respectively, so that the content positioning of the display area is completely consistent with the visible range when the fixed end leaves. The expanded information cards are re-expanded based on the card identifier list recorded in the operation context data. The application iterates through the card identifier list and calls the expansion method of each card, ensuring that the content area of each card is expanded and visible as soon as the interface loads. For the scroll position within the card, the operation context data also records the internal scroll offset of each expanded card. After the card is expanded, the application positions its internal scroll container to the corresponding offset position. If the consultant was editing an input field in a card before leaving the fixed-end device and the edited content has not yet been saved, the unsaved edited content recorded in the operation context data is extracted by the application and filled into the corresponding input control. The cursor returns to the focus position before leaving, and the consultant can continue the editing operation on the mobile device. After all the above reconstruction operations of the profile module are completed, the member profile interface seen by the consultant on the mobile device remains completely consistent with the interface when leaving the fixed-end device in terms of module view, page scroll position, card expansion state, and unsaved edited content. The consultant does not need to re-search for members, re-navigate to the target module, or re-scroll to the target position on the mobile device; they can directly continue viewing or editing the profile in the profile browsing area before leaving.
[0073] After the reconstruction process of all four modules was completed, the mobile application's consultation interface maintained precise consistency with the desktop smart terminal's state at the time of departure in four dimensions: timer display values, audio file association status, note editing content, and file browsing location. Consultants could directly continue the consultation conversation on the mobile device without any manual settings, data retrieval, or status restoration operations. Members experienced no interruption during the entire device switchover process, ensuring the complete naturalness and smoothness of the consultation process.
[0074] Based on the embodiment of step S60 above, the step of merging the consultation data generated by the mobile terminal with the composite service session state snapshot includes: Acquire newly generated mobile audio files, mobile note data, mobile emotion recognition results, and mobile atmosphere control logs during mobile consultations; The mobile terminal recording file is concatenated with the recorded audio file index in the composite service session state snapshot, and a continuous time axis index is generated according to the time sequence of the consultation stage. Audio waveform smoothing is performed at the cross-device connection points. The mobile terminal note data and the temporary text cache data in the composite business session state snapshot are merged in chronological order, and the note timestamps at the cross-device connection points are continuously verified and calibrated. The merged audio files, notes, emotion recognition results, and atmosphere control logs are packaged into a complete healing consultation record in a unified timeline format and uploaded to the cloud server for storage in the corresponding member file.
[0075] Specifically, the start and end times of each consultation stage, emotional state labels at each time point, and corresponding atmosphere control actions are extracted from the complete healing consultation records. This generates an emotion change curve with consultation time on the horizontal axis and emotional state on the vertical axis. The curve simultaneously marks the boundaries of each consultation stage and key atmosphere control events, allowing the counselor to grasp the overall emotional fluctuation trajectory of the consultation – this is the core component of the meeting minutes. Simultaneously, the system extracts the core dialogue topics within each consultation stage from the complete healing consultation records and generates a visual mind map according to the progressive relationship of the consultation stages. Each node in the visual mind map corresponds to a consultation stage, and each node contains key emotional labels, a summary of core issues, and the counselor's key notes for that stage, helping the counselor quickly organize the consultation flow – this is the specific implementation of the mind map.
[0076] Furthermore, based on the conversation content in the complete therapeutic consultation record, the counselor identifies key themes, questions, decisions, or action plans from the speech-to-text according to preset card extraction rules, automatically generating one or more information cards, or extracting key information from the conversation content based on keywords and semantic structure to form cards. The card generation employs two modes: an automatic generation mode, where the system extracts high-frequency themes and key decision points from the entire transcribed text and automatically combines them to generate structured cards; and an extraction mode, where the system extracts corresponding content fragments from the text and fills them into the card fields based on preset templates or the counselor's defined focus points. Regardless of the mode used, each information card includes structured fields such as card type, summary content, associated timestamp, associated emotion tag, and associated consultation stage, and is stored in association with the corresponding consultation time point and emotional state tag. The counselor can edit the cards, prioritize them, or add notes for quick reference during subsequent follow-up planning or efficacy evaluation. The aforementioned emotional change curves (meeting minutes), visual mind maps, and information cards are all byproducts of this consultation record, stored together in the corresponding member files on the cloud server, forming a multi-layered healing record system with the original audio recordings and transcribed texts.
[0077] After the counselor clicks the "End Consultation" button on the mobile application, the system enters the data merging process. Upon initiation, the mobile application first performs data collection, retrieving all newly generated data from the mobile device's local storage. This data includes mobile audio files, mobile note data, mobile emotion recognition results, and mobile atmosphere control logs. The mobile audio files record all audio data captured by the microphone from the moment the counselor leaves the fixed setting until the end of the consultation. These files are stored in pulse code modulation format on the mobile device's storage unit, and each file includes a start and end timestamp. The mobile note data includes all newly added speech-to-text text, newly entered manual notes, and any modifications or additions to existing notes during the mobile consultation. Each note entry is accompanied by a timestamp indicating its generation or modification. The mobile emotion recognition results include all emotion state labels output by the emotion analysis engine during the mobile consultation, along with their corresponding confidence scores and timestamps. These emotion labels span the entire time period from the completion of the transfer to the end of the consultation. The mobile atmosphere control log contains a record of every atmosphere control action performed by the system during the mobile consultation process. Each log entry includes the execution timestamp of the control action, the control type, the parameter values before and after the control, and the emotional state tag that triggered the control action.
[0078] The audio recording splicing operation begins immediately after data collection. The system reads a snapshot of the composite business session state from local storage. This snapshot is received by the mobile application during the migration phase and persistently stored locally. The system extracts the index data of the recorded audio files and the segment relationship data based on the consultation phases from the snapshot. This data records the identifiers of all audio files from the start of the consultation to the migration time and their logical organization according to the consultation phases. The system then splices the mobile recording files with the index of the recorded audio files in the snapshot. The splicing operation first determines the end position of the previous recording in the last consultation phase based on the segment relationship data. This end position corresponds to the moment the counselor leaves the fixed scene. Subsequently, the system aligns the start position of the mobile recording file with the end position of the previous recording on the timeline, generating a continuous timeline index that spans the entire consultation session. The generation of the timeline index follows the chronological order of the consultation phases, starting from the start of the listening and relaxation phase, passing through the emotional guidance phase, the cognitive restructuring phase, and finally the end of the action planning phase. The start and end positions of each phase on the timeline are precisely marked.
[0079] Audio waveform smoothing is a crucial step in the splicing process. Due to potential differences between fixed and mobile devices in microphone hardware characteristics, ambient noise, and audio acquisition parameters, discontinuities in amplitude, timbre, and noise floor levels may occur at the device-to-device transition point. The system performs waveform smoothing on the audio data one second before and after the transition point. Specifically, it extracts the audio waveform signals one second before and after the transition point, calculates the amplitude envelope curves of the two waveform segments, and then performs crossfade-in / fade-out operations within a two-second time window before and after the transition point. The crossfade-in / fade-out is implemented as follows: in the one-second window before the transition point, the amplitude of the preceding recording gradually decays from its original amplitude to zero using a cosine curve; in the one-second window after the transition point, the amplitude of the mobile recording gradually rises from zero to its original amplitude using a cosine curve. The amplitudes of both waveforms are zero at the junction point. Within the transition region before and after the junction point, the sum of the amplitudes of the two waveforms remains constant, ensuring that the audio signal at the junction is energetically continuous and audibly smooth, without sudden pops or volume jumps. After smoothing, the system merges the preceding recording, the smoothed transition region recording, and the subsequent recording into a single complete audio file.
[0080] The note data merging operation and the audio recording splicing operation are executed in parallel. The system extracts temporary text cache data from the snapshot, which contains all speech-to-text and human notes from the fixed end from the start of the consultation to the migration time. Simultaneously, the system acquires mobile note data, which contains all newly added notes from the migration completion time to the consultation end time. The system merges and arranges the two sets of note data in chronological order using timestamps as the primary key, forming a complete text record chain from the start to the end of the consultation. During the merging process, the system performs continuity checks on the note timestamps at the cross-device junctions. Due to potential clock frequency deviations or slight differences in timing start points between the timing circuits of the fixed and mobile devices, there may be time discrepancies between the timestamp of the last note in the snapshot and the timestamp of the first note on the mobile device. The system performs the verification operation as follows: it reads the total time duration recorded in the snapshot and the time consumed in the current consultation phase, reads the initial value of the mobile timer at the start of the consultation, compares these two sets of data with the timestamps of the last note in the snapshot and the first note on the mobile device, and calculates the offset between the fixed-end timing reference and the mobile-end timing reference. If the offset is within a preset reasonable range, the system determines that the timeline is continuous and no adjustment is needed; if the offset exceeds the preset reasonable range, the system will uniformly subtract or add the offset to the timestamps of all notes on the mobile device for calibration, so that the timeline of the mobile device notes is precisely aligned with the timeline of the fixed device notes, ensuring that the timeline of the entire text record chain is continuous without breaks or overlaps.
[0081] The integration of emotion recognition results and atmosphere control logs is performed synchronously with the note merging operation. The system merges the historical emotion tag sequence carried in the snapshot with the newly recognized emotion tag sequence from the mobile device according to a unified timeline, forming a complete emotion change sequence throughout the entire consultation. The atmosphere control logs are also merged according to a unified timeline, with each log entry retaining its original timestamp, control type, parameter values before and after control, and the emotion state tag that triggered the control. The system cross-validates the merged emotion tag sequence with the atmosphere control logs to confirm that each control log entry has a corresponding emotion state tag as its triggering basis. If a control log entry is found to lack a corresponding emotion trigger record, the system matches the corresponding emotion tag from the emotion tag sequence and supplements the association based on the nearest neighbor principle of timestamps.
[0082] After all the above merging operations are completed, the system packages the merged audio files, note data, emotion recognition results, and atmosphere control logs into a complete healing consultation record according to a unified data encapsulation format. This record consists of two parts: header information and main data. The header information records metadata such as member profile identifier, consultation date, total consultation duration, and start and end times of each consultation stage. The main data includes complete audio data and stage-organized slice indexes, complete speech-to-text transcription and emotion tag associations, complete human-written notes, complete emotion change sequence data, and a complete atmosphere control execution log. After encapsulation, the system uploads the complete healing consultation record to the cloud server via the mobile application's wireless communication module. The upload operation uses a breakpoint resume mechanism to ensure transmission reliability. If the network is interrupted during the upload process, the system will resume uploading the remaining data after the successfully transmitted data block from the interrupted position once the network is restored, without needing to retransmit the successfully uploaded portion. After receiving the complete healing consultation record, the cloud server locates the corresponding member file storage directory based on the member file identifier in the record header information. This consultation record is then appended as a new record to the member's historical consultation record list, arranged chronologically with previous consultation records to form a traceable and comparable long-term healing archive. Once storage is complete, the cloud server sends a confirmation message to the mobile application. Upon receiving this confirmation message, the mobile application displays a message to the therapist indicating that the consultation record has been successfully saved. The therapist can then end the mobile consultation, close the application, or continue with other follow-up operations.
[0083] Additionally, you can view Figure 2 , Figure 2 This is a flowchart illustrating the second embodiment of the cross-device intelligent assistance method for anticipated consultation of the present invention, based on the shown... Figure 2 Before the step of generating a composite service session state snapshot, the method further includes: Step S70: Obtain the device binding status between the target terminal device and the mobile application. The device binding status is maintained through cloud account authentication and near-field communication pairing. Step S80: When it is detected that the mobile application and the target terminal device establish a near-field communication connection for the first time, the account identity is verified through the cloud server. After the verification is successful, the mobile application and the target terminal device are bound as associated devices under the same consultation workbench. Step S90: During the consultation process, the device binding status is continuously monitored. If the device binding status is abnormally interrupted, the currently generated consultation data is cached in the local storage unit in real time, and data synchronization and status consistency verification are automatically triggered after the device binding status is restored.
[0084] The device binding status between the desktop smart terminal and the mobile application is a fundamental prerequisite for the proper functioning of the entire cross-device consultation assistance system. Establishing and maintaining this binding status relies on the combined efforts of two mechanisms: cloud account authentication and near-field communication (NFC) pairing. Neither can be omitted. The cloud account authentication mechanism verifies the legitimacy of the consultant operating the device, while the NFC pairing mechanism verifies the physical proximity and communication reachability between the mobile device and the desktop terminal. The combination of these two mechanisms ensures that the system can accurately identify the consultant's identity during cross-device migration while guaranteeing the secure physical transmission of migration data.
[0085] The process of obtaining device binding status is jointly performed by the desktop smart terminal and the mobile application before the consultation begins. Upon power-on, the desktop smart terminal establishes a connection with the cloud server via its wireless communication module and continuously listens for connection requests from the mobile application. After the consultant logs in, the mobile application verifies the consultant's account information and login credentials through the cloud server. Once verification is successful, the mobile application enters a pairing state. Both the desktop smart terminal and the mobile application hold a unique user identifier for the consultant within the system. This user identifier is sent and verified along with the message body as part of the identity credential in every subsequent communication interaction. The device binding status is represented internally by a state machine, including unbound, paired but unauthenticated, bound and authenticated, and bound inactive states. The desktop smart terminal is in an unbound state by default when idle, waiting to establish an initial connection with the mobile application.
[0086] The device binding process is triggered when a mobile application and a desktop smart terminal establish a near-field communication (NFC) connection for the first time. Establishing a NFC connection relies on the Bluetooth communication protocol. The mobile application actively scans for nearby Bluetooth devices, filters out desktop smart terminals belonging to the same service desk based on the service identifier carried in the Bluetooth broadcast, and attempts to establish a Bluetooth connection. After a successful Bluetooth connection, the mobile application does not immediately recognize it as a bound device; instead, it enters the authentication phase. The mobile application sends an authentication request containing the user's identifier to the desktop smart terminal via the Bluetooth channel. Upon receiving the authentication request, the desktop smart terminal forwards the user identifier to the cloud server via its wireless communication module for identity verification. The cloud server queries its database based on the user identifier, confirms the account exists and is valid, and then returns an account verification success message to the desktop smart terminal. Upon receiving the verification success message, the desktop smart terminal sends an authentication confirmation message containing the desktop terminal's device identifier to the mobile application via the Bluetooth channel. Upon receiving the confirmation message, the mobile application also performs a secondary verification with the cloud server via its own wireless communication module to confirm that there is valid device binding permission between the desktop smart terminal's device identifier and the currently logged-in account. After both parties complete mutual verification on the cloud server side, the desktop smart terminal and the mobile application are officially bound as associated devices under the same consultation workbench. Once bound, the desktop smart terminal displays the identification information of the bound device on its screen, and the mobile application's interface status changes from pending pairing to ready. Consultants can then initiate the consultation process on either device. This dual authentication mechanism effectively prevents unauthorized mobile devices from connecting to the desktop terminal, ensuring the security and privacy of member consultation data.
[0087] During the consultation, the system continuously monitors the device binding status between the desktop smart terminal and the mobile application. This monitoring is performed by two parallel detection threads. The first thread monitors the connection status of the near-field communication (NFC) link, sending heartbeat probe packets at fixed intervals and waiting for responses. If no response is received within a preset timeout period, the NFC link is considered disconnected. The second thread monitors the activity status of the cloud session. Both the desktop smart terminal and the mobile application send session hold signals to the cloud server at fixed intervals. If the cloud server does not receive a session hold signal from either device within a preset timeout period, the cloud session for that device is considered expired or abnormally interrupted. If either detection thread detects an anomaly, the system determines that the device binding status has been abnormally interrupted. Possible causes of abnormal device binding status interruption include the consultant leaving the consultation room with the mobile device, causing the Bluetooth signal to exceed the coverage area; the mobile device running out of battery and automatically shutting down; a cloud network failure causing session timeout; or the mobile application being forcibly closed by the operating system due to insufficient system resources.
[0088] When an abnormal interruption in device binding is detected, the system immediately activates the local cache protection mechanism. The desktop smart terminal persistently writes the currently generated consultation data from its running memory to the local cache area of the storage unit. The written consultation data includes the collected consultation voice data, the generated temporary text cache data, the identified emotion state tags and their associations, the current timing progress data, the current consultation stage identifier data, and the current member profile operation context data. The local cache area uses a circular write method, prioritizing the overwriting of the oldest cached data when cache space is insufficient, ensuring that the most recently generated consultation data is always completely preserved. After completing local caching, the desktop smart terminal enters a waiting recovery state. During this period, the terminal maintains monitoring of the near-field communication link and polling of cloud sessions, while continuing to collect consultation voice locally and update cached data, but does not perform any data synchronization operations such as pushing to the mobile device or uploading to the cloud. When the mobile application detects an abnormal interruption in device binding, it performs a similar local caching operation, temporarily storing the consultation data generated by the mobile device in the local storage of the mobile device.
[0089] When the device binding status is restored to normal, the system automatically triggers a data synchronization and status consistency verification process. The conditions for restoring the device binding status are the re-establishment of the near-field communication link and successful re-authentication of the cloud session. After restoration is triggered, both the desktop smart terminal and the mobile application send their locally cached consultation data version numbers to each other for comparison to determine which cached data is the latest version. If the desktop smart terminal's cached data version is updated, it is used as the baseline data and pushed to the mobile terminal for status restoration. If the mobile application's cached data version is updated, it is used as the baseline data and pushed to the desktop terminal for status restoration. If the timestamps of the cached data from both ends overlap, the system merges the cached data according to the timestamp order, prioritizing the desktop terminal's data within the overlapping time interval, as the desktop terminal's microphone array typically offers higher recording quality and a more stable acquisition environment. After the status consistency verification is completed and data synchronization is successful, both the desktop smart terminal and the mobile application return to normal consultation status, and the consultant can continue the consultation process on either device. If a conflict is found in the cached data on both ends during the data synchronization process that cannot be automatically merged—for example, if both ends recorded different notes within the same time interval and the timestamps completely overlap—the system will present the conflicting data in a list on the desktop terminal's display interface. The consultant can then manually select which end's data to retain before continuing the synchronization operation. This local caching and automatic recovery mechanism ensures that even if the device binding status experiences a brief interruption, consultation data will not be lost, and consultants and members will not need to interrupt or restart the consultation process due to device connectivity issues.
[0090] Additionally, you can view Figure 3 , Figure 3 This is a flowchart illustrating the third embodiment of the cross-device intelligent assistance method for anticipated consultation of the present invention, based on the shown... Figure 3 After the step of performing real-time emotion recognition on the consultation voice data, the method further includes: Step S100: Based on the real-time emotional state tag and the current consultation stage identifier, query the preset consultation emotional atmosphere stage mapping strategy library to obtain the atmosphere control parameters that match the current consultation stage and the current emotional state tag. In the mapping strategy library, each consultation stage is configured with corresponding background music type parameters, background volume parameters and light effect parameters for different emotional state tags. Step S110: According to the ambient control parameters, adjust the background music playback type and volume of the target terminal device in a gradual transition manner, and adjust the color and brightness of the ambient light effect at the edge of the display unit of the target terminal device in a low-frequency breathing rhythm. The ambient control parameters are adjusted without popping up an interactive window or issuing a voice prompt. The background volume is adjusted from the current value to the target value within a few seconds at a preset gradual rate.
[0091] During the consultation process, the desktop smart terminal continuously runs the emotion recognition engine. Whenever the emotion recognition engine outputs a new real-time emotion state label, the system triggers a query process for atmosphere control parameters. The query process is not initiated by manual operation by the counselor, nor by any timed triggering conditions; it is entirely driven by the output events of the emotion recognition engine. That is, the system automatically enters the query process each time a new emotion label is recognized and confirmed. The first step of the query process is to read the current consultation stage identifier data from the system memory. This data is updated by the timing module when consultation stages switch and is persistently stored in the global variable area of memory. The read operation is completed within milliseconds, causing no perceptible delay to the consultation process. Simultaneously, the system obtains the latest real-time emotion state label and its confidence score. This label is output by the emotion classification model within the current time window and has been smoothed to eliminate instantaneous fluctuations.
[0092] After obtaining the current consultation stage identifier and real-time emotional state label, the system uses these two pieces of information as joint query conditions to perform a query operation in the preset consultation emotional atmosphere stage mapping strategy library. The mapping strategy library is stored in the storage unit of the desktop smart terminal and organized in the form of a structured data table. The first-level index of the table is the consultation stage identifier, namely, four enumerated values: listening and relaxation stage, emotional guidance stage, cognitive reconstruction stage, and action planning stage. Under each consultation stage identifier, the second-level index of the table is the emotional state label, namely, four enumerated values: relaxed, mild tension, anxiety, and pleasure. Each combination of consultation stage and emotional state corresponds to a unique atmosphere control scheme record. Each record contains three fields: background music type parameter, background volume parameter, and lighting effect parameter. The background music type parameter is a pointer or identifier to a specific track in the music library. Each track stored in the music library has been pre-evaluated and labeled with its applicability score for each consultation stage. The background volume parameter is a target volume value expressed as a percentage. The range of this value varies depending on the characteristics of the consultation stage. For example, the upper limit of the allowed background volume is lower in the listening and relaxation stage, while the upper limit of the allowed background volume is higher in the action planning stage. The lighting effect parameters include two subfields: color value and brightness value. The color value is represented by color temperature or chromaticity coordinates, and the brightness value is represented as a percentage of the maximum brightness of the display unit. The query operation precisely matches the combination of the current consultation stage and the current emotional state label in the mapping strategy library and extracts the complete atmosphere control scheme corresponding to that combination. If a combination is not explicitly defined in the strategy library, the system defaults to maintaining the control parameters currently being executed, ensuring that the system can provide effective control output under any circumstances without interruption of control due to query failure.
[0093] After obtaining the atmosphere control parameters through the query operation, the system enters the atmosphere adjustment execution phase. This phase follows a gradual transition principle, meaning all atmosphere parameter changes are slow and smooth, rather than abrupt jumps. Background music playback type switching uses a fade-in / fade-out method. Specifically, the system locates the target track in the music library and begins pre-buffering. Simultaneously, the volume of the currently playing track is gradually reduced to zero at a preset fade rate. Once the current track is completely muted, the system immediately switches the playback source to the target track and gradually increases its volume from zero to the target volume value at the same fade rate. The entire switching process is completed within seconds, providing the consultant and member with a natural transition in musical style rather than an abrupt cut. Background volume adjustment also follows a gradual transition principle. The system compares the current volume value with the retrieved target volume value, calculates the difference, and then evenly distributes this difference within a set transition time according to a preset fade step size. This allows the volume value to gradually approach the target value from the current value in fixed, small increments every millisecond until the target value is fully reached, at which point the adjustment stops. This gradual volume adjustment avoids causing members' attention or discomfort due to sudden and large changes in volume, allowing members to perceive changes in the background environment without realizing it.
[0094] The adjustment of the ambient lighting effect at the edge of the display unit is also performed in a gradual transition manner. The lighting effect is generated by an array of light-emitting diodes (LEDs) arranged around the perimeter of the desktop smart terminal display unit. This array supports independent control of color and brightness. The system controls the chromaticity output of the LED array based on the color value obtained from the queried lighting effect parameters, and controls the driving current of the LED array based on the brightness value. The lighting effect is adjusted simultaneously in both color and brightness dimensions. The color gradually transitions from the current chromaticity to the target chromaticity at a preset chromaticity change rate, and the brightness gradually transitions from the current brightness value to the target brightness value at a preset brightness change rate. While the color and brightness are gradually transitioning, the luminous intensity of the lighting effect is periodically modulated with a low-frequency breathing rhythm. The frequency of the breathing rhythm is set to six to eight times per minute, that is, a complete breathing cycle is completed every 7.5 to 10 seconds. The breathing rhythm is achieved by superimposing a sine wave modulation signal on the target brightness value. The amplitude of the modulation signal is controlled within the range of 10% to 20% of the target brightness value, so that the lighting effect fluctuates periodically in a gentle manner around the target brightness, simulating the rhythm of breathing. This low-frequency breathing rhythm lighting effect can create a soothing atmosphere without attracting the visual attention of members.
[0095] The entire atmosphere adjustment process is conducted without any pop-up windows or voice prompts, causing no visible or audible interference to the main consultation flow. The dialogue between the counselor and the client remains completely unaffected during the atmosphere adjustment; the adjustment actions only affect the background environment. The system records an execution log for each atmosphere adjustment in the background. The log includes the triggering emotional state tag and its confidence level, the matched adjustment parameters, the start and end times of the adjustment, and the trajectory of parameter changes during the adjustment. This log data is stored in the system's event log cache for extraction and integration when generating structured consultation records after the consultation. This allows counselors to review the triggering reasons and effects of each atmosphere adjustment afterward, providing data support for subsequent optimization of consultation strategies. After completing the current atmosphere adjustment, the system continues to monitor the output of the emotion recognition engine, waiting for the next triggering of an emotional state tag, thus forming a continuous closed-loop adjustment cycle.
[0096] In addition, after the step of querying the preset consultation emotional atmosphere stage mapping strategy library, the method further includes: When the real-time emotional state label is tense or anxious and the current consultation stage is the listening and relaxation stage, natural sound effects or piano music with soothing effects that have been preset and evaluated are selected from the music library as target background music, and the current background volume is reduced to a preset low value at the gradual rate. At the same time, a soft warm light effect is activated at the edge of the display unit and runs with a low-frequency breathing rhythm. The duration of the real-time emotional state tag is compared with the preset remaining duration of the current consultation stage. When the duration exceeds a preset threshold, a stage extension instruction is sent to the timing module. The stage extension instruction includes an extension amount. The timing module extends the timing end of the current consultation stage according to the extension amount and accordingly shifts the timing start and end points of subsequent consultation stages.
[0097] When the real-time emotion state label output by the emotion recognition engine is determined to be either tense or anxious, and the current consultation stage recorded by the timing module is identified as the listening and relaxation stage, both conditions being met simultaneously trigger a specific atmosphere control and stage extension joint processing flow. After obtaining the emotion label, the system first performs a condition matching operation, comparing the emotion label value with preset sets of tense and anxious labels, and simultaneously comparing the current stage identifier with the enumerated values of the listening and relaxation stages. If both comparison operations return true, the system proceeds to the subsequent processing branch. Upon successful condition matching, the system immediately initiates the execution of the atmosphere control branch.
[0098] The first step in the atmosphere control branch is to select target background music from the music library. Each track in the library undergoes an independent evaluation process upon entry, conducted by personnel with a background in psychological counseling. This process involves subjective scoring and objective acoustic feature analysis of each track's soothing efficacy. The evaluation results are appended to the track's metadata as tags, including applicable mood type, soothing efficacy level, rhythmic characteristics, and instrumentation. Based on the currently identified mood tag of tension or anxiety, the system searches the music library for natural sound effects or piano pieces with a soothing efficacy level higher than a preset threshold, marked as suitable for relieving tension or anxiety. Natural sound effects include simulated natural environmental sounds such as rain, streams, forest winds, and tides. Piano pieces selected are slow-paced, predominantly low-to-mid-range music with a relatively small dynamic range. After selecting the track, the system determines if any background music is currently playing. If a track is currently playing, the system performs a fade-out operation, gradually reducing the volume of the current track to zero over several seconds, then switches to the target track and gradually increases the volume from zero to the preset target low value. If no track is currently playing, the system directly and gradually increases the volume of the target track from mute to the preset low value. The target low value for volume reduction is pre-defined based on the characteristics of the listening and relaxation phase. This low value is typically set to between 8% and 12% of the maximum background music volume, ensuring that the background music, after being reduced in volume, exists only as a weak ambient noise and does not mask the conversation between the member and the consultant.
[0099] While adjusting the volume, the system adjusts the ambient lighting effect around the display unit's edge. The LED array positioned around the edge of the display unit receives drive signals from the lighting effect control module. The system sets the target color of the LED array to a warm light effect, with chromaticity coordinates corresponding to orange-yellow light within a color temperature range of 2700 to 3000 Kelvin. Light within this color temperature range has a psychologically comforting and calming association. Simultaneously, the system sets the target brightness of the LED array to a low value between 15% and 25% of its maximum brightness to prevent excessively bright light from creating a prominent visual focal point in the consultation room environment. Once the color and brightness reach their target values, the system activates a low-frequency breathing rhythm modulation function. The modulation parameters for the low-frequency breathing rhythm include a sine wave modulation waveform, a modulation frequency of six to eight times per minute, and a modulation depth of 10% to 20% of the target brightness value. The driving current of the LED array fluctuates periodically around the target brightness according to a sinusoidal waveform, creating a gentle alternation of light intensity. This variation is similar to the frequency of human breathing at rest, producing a soothing and relaxing psychological suggestion effect at an unconscious level. The entire light effect adjustment process is synchronized with the volume adjustment, and the two do not interfere with each other.
[0100] While the atmosphere control branch is executing, the system startup phase extends the execution of the decision branch. The first step of the extended decision branch is to obtain the duration of the real-time emotional state label. The emotion recognition engine continuously recognizes the member's voice in fixed time windows, outputting an emotion label for each time window. The system maintains an emotion label sequence cache, recording the emotion label output results for each time window in the most recent period. The system backtracks from the cache starting from the current moment, counting the number of time windows that are consecutively marked as tense or anxious, and multiplies this number by the length of the time window to obtain the duration of the real-time emotional state label. The duration is counted based on continuity; that is, if any emotion label that is neither tense nor anxious appears during the backtracking process, the duration count immediately stops and restarts counting from after that non-tense label, ensuring that the count is the actual duration of the current round of tense or anxious emotion, rather than the cumulative total duration.
[0101] After obtaining the duration, the system reads the preset remaining time for the current consultation phase from the timing module. The preset remaining time equals the preset total time for the current phase minus the time already consumed in the current phase. The system compares the duration with a preset duration threshold, which is set based on the time scale of the listening and relaxation phases and professional experience in psychological counseling; a typical value is set at 15% to 20% of the preset total time for that phase. If the duration is less than the preset threshold, the system determines that the member's tension or anxiety is still within the normal fluctuation range, and there is no need to trigger the phase extension operation; the system only executes the actions of the atmosphere control branch mentioned above. If the duration is greater than or equal to the preset threshold, the system determines that the member's tension or anxiety has lasted for a relatively long time, and the preset remaining time is insufficient for the member to fully calm down within this phase. In this case, the system sends a phase extension command to the timing module.
[0102] The stage extension instruction includes the core parameter of extension time. The extension time is calculated based on the difference between the duration and a preset threshold, and the ratio of the remaining time in the current stage. Specifically, the preset threshold is subtracted from the duration to obtain the excess time, and then 50% to 80% of this excess time is taken as the extension time. The upper limit of the extension time is set at 30% of the preset total time for the current stage to prevent excessive extension from causing the overall consultation time to spiral out of control. Upon receiving the stage extension instruction, the timing module parses the extension time from the instruction and extends the timing endpoint of the current consultation stage by that amount, effectively increasing the preset remaining time of the current stage. The timing module also calculates the impact of the extension time on subsequent consultation stages, shifting the timing start and end points of the emotional guidance stage, cognitive restructuring stage, and action planning stage by the same amount of extension time according to a preset order. This ensures that the relative order and time intervals between consultation stages remain unchanged, and the total consultation time is increased accordingly by the extended time. After updating all stage timing parameters, the timing module refreshes the updated timing progress data to the timing display area and stage progress bar area on the screen. The counselor can see in real-time on the interface that the remaining time for the current stage has increased and the start and end times of subsequent stages have been correspondingly extended. Through this emotion-driven dynamic adjustment mechanism for stage duration, the system adaptively matches the member's current psychological state, ensuring that the member is not forced into the next consultation stage due to the mechanical ticking of the timer before their emotions have fully subsided.
[0103] Furthermore, you can also view Figure 4 , Figure 4 This is a schematic diagram of the overall system architecture, based on Figure 4The document outlines a cross-device intelligent support system for therapeutic counseling, comprising three main physical components: a desktop intelligent terminal deployed in a fixed counseling room, a mobile application installed on the counselor's mobile device, and a cloud-based server. The desktop intelligent terminal is the core device for counselors performing therapeutic counseling within the fixed counseling room. It integrates a central processing unit, touchscreen display, microphone array, speaker, Bluetooth and Wi-Fi communication modules, near-field communication module, timing circuitry, and storage module. Internally, it houses a local speech recognition engine, emotion analysis engine, translation engine, a counseling phase-emotion-atmosphere mapping strategy library, and a music library evaluated for its soothing effectiveness. The counselor and client sit face-to-face on either side of a counseling table in the fixed counseling room. The desktop intelligent terminal is placed in the center of the table. Its microphone array simultaneously captures the voice signals of both the counselor and the client, the speaker plays background music and voice prompts, and the touchscreen displays information such as timing progress, transcribed text, client profiles, and emotion curves. When the counselor conducts counseling in the fixed counseling room, the desktop intelligent terminal serves as the primary counseling workbench, handling all functions.
[0104] When a counselor enters the consultation room with a smartphone equipped with a mobile application, a connection is automatically established between the phone and the desktop smart terminal via Bluetooth or near-field communication (NFC). The NFC link is used not only for device authentication and status synchronization but also to continuously monitor whether the counselor remains within the fixed consultation room by receiving signal strength indicators. When the counselor needs to leave the consultation room for follow-up visits or mobile consultations, the desktop smart terminal, upon detecting that the NFC signal strength is below a preset threshold, generates a composite business status snapshot containing timing progress data, audio segment index data, note data with emotion tags, and member file operation context data. This snapshot is pushed to the mobile application on the phone via Bluetooth Direct or Wi-Fi. The mobile application receives and parses the snapshot, automatically reconstructing the consultation interface, allowing the counselor to continue the consultation dialogue with the member in a mobile setting. The mobile application also integrates the same consultation assistance function modules as the desktop smart terminal, including music playback, timing, recording, transcription, note-taking, translation, and file management functions.
[0105] Both desktop smart terminals and mobile applications maintain a connection to the cloud server via a wide area network. The cloud server is responsible for storing and synchronizing member profile data, receiving consultation records uploaded from desktop smart terminals or mobile applications and storing them in the structured therapy healing archive. After each consultation, the system automatically generates a complete structured record including consultation phase records, emotional change curves, and atmosphere intervention logs, and uploads it to the cloud server for counselors to access and view on any device, forming a long-term tracking file of the member's psychological and emotional state.
[0106] Furthermore, you can also view Figure 5 , Figure 5 This is a functional module structure diagram of a desktop smart terminal, based on the diagram shown. Figure 5 This indicates that the hardware architecture of the desktop smart terminal uses a central processing unit (CPU) as its core. The CPU is connected to a storage engine, dedicated circuits, communication modules, and input / output modules via a bus. The storage engine manages the read and write operations of the storage modules. The storage modules house a local speech recognition engine, emotion analysis engine, translation engine, a consultation phase-emotion-atmosphere mapping strategy library, and a music library evaluated for its soothing effectiveness. These engines and strategy libraries are invoked and executed by the CPU during the consultation process. The dedicated circuits include a timing clock circuit and an audio codec circuit. The timing clock circuit provides both active timing and phased timing functions, supports setting preset consultation phase durations, real-time calculation of remaining time, and reminders when the time expires. The audio codec circuit converts the analog speech signals collected by the microphone array into digital audio streams for the processing unit, and simultaneously converts the digital audio streams into analog signals to drive the speakers.
[0107] The communication module includes Bluetooth and Wi-Fi modules as well as a near-field communication (NFC) module. The Bluetooth and Wi-Fi modules handle wide-area network communication between the desktop smart terminal and the cloud server, as well as near-field communication with the mobile application. This module also has signal strength indication and distance sensing capabilities, allowing it to detect changes in Bluetooth signal strength to determine if the consultant has left the designated consultation room with their mobile phone. The NFC module identifies members at the start of the consultation. When the consultant brings their membership card close to the NFC sensing area, the module reads the identification code from the membership card and triggers the system to retrieve the corresponding member profile data from the cloud server.
[0108] The input / output module includes a touchscreen display, a microphone array, and a speaker. The touchscreen display is the main interface for interaction between the consultant and the desktop smart terminal, displaying time values, consultation stage indicators, speech-to-text transcription, translation results, member profile content, and mood change curves. An array of LEDs is arranged around the edge of the display for outputting ambient lighting effects. The microphone array contains multiple high-fidelity pickup units, capable of acquiring the consultant's and member's voice signals in a multi-channel manner and possessing dual-channel sound source separation capabilities, distinguishing the consultant's voice channel from the member's voice channel in a mixed audio signal. The speaker features progressive volume control, smoothly and gradually changing the background music volume when the system performs ambient adjustment, avoiding sudden volume changes that might attract the member's attention or cause discomfort. The emotion analysis engine extracts acoustic features and classifies emotion tags from members' voice channels. After establishing a correlation between the identified emotion tags and timing nodes and note entry points, the system queries the consultation stage-emotion-atmosphere mapping strategy library to obtain matching adjustment parameters. All adjustment parameters are executed in accordance with non-intrusive constraint rules, that is, the adjustment of background music and ambient lighting effects does not cause pop-ups, prompts, or interruptions to the main consultation dialogue process.
[0109] Furthermore, you can also view Figure 6 , Figure 6 This is a flowchart illustrating the seamless migration process for consultation session block devices, based on the diagram shown. Figure 6 When a counselor enters the designated consultation room with a mobile phone equipped with the mobile application, the phone and the desktop smart terminal automatically establish a connection via Bluetooth and complete device binding. After the counselor verifies their membership card via near-field communication or facial recognition on the desktop smart terminal, the system retrieves the member's profile data from the cloud server and switches the current interface to the consultation preparation state. After the counselor clicks the "Start Consultation" button on the touchscreen, the system enters the preset consultation phase. The timing clock circuit starts the main timing and phase segment timing, the recording module begins collecting consultation voice, and the emotion analysis engine simultaneously starts real-time recognition of the member's voice. During the consultation, the system continuously monitors the Bluetooth signal strength between the desktop smart terminal and the mobile phone to determine whether the counselor needs to leave the designated consultation room.
[0110] When the system detects that conditions requiring departure have been triggered, these conditions include the Bluetooth signal strength remaining below a preset threshold for a preset duration or the counselor manually clicking the exit contact control on the touchscreen. Once the trigger conditions are met, the desktop smart terminal immediately generates a composite business session state snapshot. This snapshot's data structure includes timing progress data and the current consultation stage identifier, audio segment indexes and their association with segments based on consultation stage segmentation, temporary notes data with emotion tag associations, the context of the member profile currently accessed by the counselor, and the member profile page identifier and scroll position. It also includes member emotion snapshot fragments accumulated before the consultation, namely emotion curve fragments and key emotion tag points. After the snapshot is generated, it is encrypted and pushed to the mobile application on the phone via Bluetooth direct connection or Wi-Fi cloud relay.
[0111] The mobile application automatically reconstructs the consultation interface after receiving and parsing the snapshot, achieving a seamless consultation experience. The timer continues running from the breakpoint value recorded in the snapshot and synchronously restores the current consultation stage indicator on the display interface. The recording module generates a new recording file, and the metadata of the new file contains the logical association relationship with the previous recording file based on the consultation stage slice, ensuring that it can be correctly spliced in the stage order during subsequent merging. The note editing area restores the temporary note text content stored in the snapshot, and all the emotional state tags associated with each note are restored to the corresponding note entry point position. The member profile interface is restored to the page identifier and scroll position recorded in the snapshot, so that the counselor can continue to view or edit the profile at the precise position before leaving without having to search or navigate again. The emotional curve review module of the mobile application displays the emotional curve segments and key emotional tags accumulated in the previous consultation, allowing the counselor to quickly review the member's emotional fluctuation process when continuing the consultation, ensuring the continuity and accuracy of emotional intervention across devices. The counselor can seamlessly continue the counseling session outdoors using their mobile phone. After the counseling session ends, the counselor clicks the end-of-court control. The mobile application merges the recordings, notes, and emotional data generated on the mobile device with the previously received snapshot information to form a complete structured healing counseling record, which is then uploaded to the cloud server and stored in the member's file.
[0112] Furthermore, you can also view Figure 7 , Figure 7 This is a schematic diagram of an adaptive consultation atmosphere adjustment process based on voice emotion recognition. Figure 7Before the consultation begins, the system defaults to playing soft, soothing background music preset by the consultant, with the volume set to 15% of the maximum volume. The timer enters the preset first consultation phase, the listening and relaxation phase, and the timer display shows the preset total duration and remaining time for this phase. During the consultation phase's timer interval, the desktop smart terminal's microphone array continuously collects the consultant's and client's dual-channel voice signals. Using sound source separation technology, the client's voice channel is separated from the mixed audio and independently sent to the emotion analysis engine for processing. The emotion analysis engine extracts acoustic features from the client's voice channel, including speech rate, volume, fundamental frequency, and energy changes. The extracted feature vectors are input into a pre-trained lightweight emotion classification model, which outputs the emotion state label and its confidence score for the current time window.
[0113] The system determines whether the currently identified emotion label triggers the adjustment threshold, i.e., the emotion label is tension or anxiety and the confidence level is higher than the preset confidence level threshold. If the adjustment threshold is not triggered, the system continues to run with default parameters and continuously monitors subsequent voice input. If the adjustment threshold is triggered, the system queries the consultation stage-emotion-atmosphere mapping strategy library and matches the corresponding atmosphere control scheme based on the current consultation stage identifier and the real-time emotion state label as joint conditions. After a successful match, the system executes the atmosphere adjustment operation. All adjustment operations follow non-intrusive constraint rules. The background music transitions gradually from the current track to the target track and from the current volume to the target low value to avoid abrupt changes that might attract the member's attention. The ambient light effect at the edge of the display unit outputs a warm-colored light effect with a low-frequency breathing rhythm. The color, brightness, and flashing rhythm of the light effect are consistent with the matching scheme of the current consultation stage and emotion state. The entire atmosphere adjustment process only operates at the background environment level, without pop-ups or prompts, ensuring that the dialogue between the counselor and the member is completely undisturbed.
[0114] While implementing atmosphere adjustment, the system silently records the intervention actions in a log cache, without actively announcing the intervention to the counselor or member. Upon receiving a persistent signal of tension or anxiety, the timing module activates an elastic adjustment mechanism. If the system determines that the remaining preset time for the current stage is insufficient for the member to fully calm down, it automatically extends the time limit for the current consultation stage by a preset amount and correspondingly shifts the start and end points of subsequent consultation stages backward, matching the consultation rhythm to the member's psychological state. The system continuously monitors emotional changes in subsequent speech. When it detects that the member's emotions have stabilized, it gradually increases the background music volume back to the default value and fades out the ambient lighting effects, then automatically proceeds to the next consultation stage. This cycle continues throughout the consultation, with each emotional fluctuation triggering corresponding adaptive adjustments. After the consultation, the system automatically generates a structured healing record, including a full text transcription and translation, a timeline-based emotional change curve, key emotional tags for each consultation stage, and execution logs for each atmosphere intervention. This record is uploaded to the member's cloud-based profile for long-term tracking and optimization of subsequent healing plans by the counselor.
Claims
1. A cross-device intelligent assistance method for therapeutic counseling, characterized in that, The method includes the following steps: In a fixed scenario, the consultation voice data during the healing consultation process is collected through terminal devices, and the timing progress data of the current consultation session and the operation context data of the member's profile are obtained. The consultation voice data is transcribed in real time to generate temporary text cache data. At the same time, the consultation voice data is subjected to real-time emotion recognition to extract the acoustic features of the member's voice and output real-time emotion status labels. The real-time emotion status labels are then associated with the corresponding entry points in the temporary text cache data. Generate a composite business session state snapshot, which includes at least: current time progress data, current consultation stage identifier data, index data of recorded audio files and slice association data based on consultation stage segmentation, temporary text cache data with the emotional state tag association, and currently invoked member profile identifier and operation context data. When a fixed scene switch is detected, the composite business session state snapshot is encrypted and pushed to the mobile application; After receiving and parsing the composite business session state snapshot, the mobile application automatically reconstructs the consultation interface, enabling the timer to continue running from the breakpoint, the recording to generate new segments and establish a logical connection with the previous recording, the temporary notes along with their associated emotional state tags to be restored to the state before leaving, and the member profile interface to be restored to the operation context before leaving, so as to achieve seamless continuity of the healing consultation session between fixed and mobile devices. After the mobile consultation ends, the consultation data generated on the mobile device is merged with the composite business session status snapshot to generate a complete healing consultation record and upload it to the cloud server.
2. The cross-device intelligent assistance method for healing consultation according to claim 1, characterized in that, The step of detecting a fixed scene change includes: The strength of the near-field communication signal between the target terminal device and the mobile application is continuously monitored, and a timer is started when the strength of the near-field communication signal is lower than a preset threshold. When the near-field communication signal strength remains below the preset threshold for a preset duration, a migration confirmation prompt is generated on the display interface of the target terminal device, and a migration confirmation notification is generated simultaneously on the mobile application. In response to a migration confirmation command triggered on the target terminal device or the mobile application, it is determined that the consultant has left the fixed scene, and the generation and push operation of the composite business session state snapshot is triggered.
3. The cross-device intelligent assistance method for healing consultation according to claim 1, characterized in that, Before the step of generating a composite service session state snapshot, the method further includes: The device binding status between the target terminal device and the mobile application is obtained, and the device binding status is maintained through cloud account authentication and near-field communication pairing. When the mobile application establishes a near-field communication connection with the target terminal device for the first time, the account identity is verified through the cloud server. After the verification is successful, the mobile application and the target terminal device are bound as associated devices under the same consultation workbench. During the consultation process, the device binding status is continuously monitored. If the device binding status is abnormally interrupted, the currently generated consultation data is cached in real time in the local storage unit, and data synchronization and status consistency verification are automatically triggered after the device binding status is restored.
4. The cross-device intelligent assistance method for healing counseling according to claim 1, characterized in that, Following the step of performing real-time emotion recognition on the consultation voice data, the method further includes: Based on the real-time emotional state tag and the current consultation stage identifier, the preset consultation emotional atmosphere stage mapping strategy library is queried to obtain the atmosphere control parameters that match the current consultation stage and the current emotional state tag. In the mapping strategy library, each consultation stage is configured with corresponding background music type parameters, background volume parameters and light effect parameters for different emotional state tags. According to the ambient control parameters, the background music playback type and volume of the target terminal device are adjusted in a gradual transition manner, and the color and brightness of the ambient light effect at the edge of the display unit of the target terminal device are adjusted in a low-frequency breathing rhythm. The adjustment of the ambient control parameters does not pop up an interactive window or emit a voice prompt sound throughout the process, and the adjustment of the background volume transitions from the current value to the target value within a few seconds at a preset gradual rate.
5. The cross-device intelligent assistance method for healing counseling according to claim 4, characterized in that, After the step of querying the preset consultation emotional atmosphere stage mapping strategy library, the method further includes: When the real-time emotional state label is tense or anxious and the current consultation stage is the listening and relaxation stage, natural sound effects or piano music with soothing effects that have been preset and evaluated are selected from the music library as target background music, and the current background volume is reduced to a preset low value at the gradual rate. At the same time, a soft warm light effect is activated at the edge of the display unit and runs with a low-frequency breathing rhythm. The duration of the real-time emotional state tag is compared with the preset remaining duration of the current consultation stage. When the duration exceeds a preset threshold, a stage extension instruction is sent to the timing module. The stage extension instruction includes an extension amount. The timing module extends the timing end of the current consultation stage according to the extension amount and accordingly shifts the timing start and end points of subsequent consultation stages.
6. The cross-device intelligent assistance method for healing consultation according to claim 1, characterized in that, The steps of the mobile application receiving and parsing the composite business session state snapshot and automatically reconstructing the consultation interface include: The current timing progress data and the current consultation stage identifier data are parsed from the composite business session state snapshot. The timing continues from the timing value corresponding to the current timing progress data in the timing display area of the mobile application, and the current consultation stage identifier is displayed in the stage identifier display area. The index data of the recorded audio file and the slice association data based on the consultation stage segmentation are parsed from the composite business session state snapshot. A new recording file is created in the recording module of the mobile application, and the metadata of the new recording file is logically linked with the slice association data. Parse the temporary text cache data with the emotional state tag association from the composite business session state snapshot, and restore the content of the temporary text cache data and the emotional state tag markers corresponding to each entry point in the note editing area of the mobile application. The member profile identifier and operation context data of the currently invoked member are parsed from the composite business session state snapshot, and the profile module, page scroll position and expanded information card corresponding to the operation context data are restored in the profile browsing area of the mobile application.
7. The cross-device intelligent assistance method for healing consultation according to claim 1, characterized in that, The step of merging the consultation data generated by the mobile terminal with the composite business session state snapshot includes: Acquire newly generated mobile audio files, mobile note data, mobile emotion recognition results, and mobile atmosphere control logs during mobile consultations; The mobile terminal recording file is concatenated with the recorded audio file index in the composite service session state snapshot, and a continuous time axis index is generated according to the time sequence of the consultation stage. Audio waveform smoothing is performed at the cross-device connection points. The mobile terminal note data and the temporary text cache data in the composite business session state snapshot are merged in chronological order, and the note timestamps at the cross-device connection points are continuously verified and calibrated. The merged audio files, notes, emotion recognition results, and atmosphere control logs are packaged into a complete healing consultation record in a unified timeline format and uploaded to the cloud server for storage in the corresponding member file.
8. The cross-device intelligent assistance method for healing consultation according to claim 1, characterized in that, After the step of generating a complete healing consultation record and uploading it to the cloud server, the following steps are also included: The start and end times of each consultation stage, emotional state labels at each time point, and corresponding atmosphere control actions are extracted from the complete healing consultation records to generate an emotional change curve with consultation time as the horizontal axis and emotional state as the vertical axis. The core dialogue topics within each consultation stage are extracted from the complete healing consultation record, and a visual mind map is generated according to the progressive relationship of the consultation stages. Each node in the visual mind map corresponds to a consultation stage, and each node contains the key emotional labels and core issue summary of that stage. Based on the conversation content in the complete healing consultation record, key themes, questions, decisions, or action plans are identified from the speech-to-text according to preset card extraction rules, generating one or more information cards, and the information cards are associated with and stored with the corresponding consultation time point and emotional state tags.
9. The cross-device intelligent assistance method for healing counseling according to claim 1, characterized in that, Following the step of collecting consultation voice data during the healing consultation process, the method further includes: The language information of the consultation voice data is identified, and the identified language information is compared with the working language preset by the consultant. When the identified language information is different from the consultant's preset working language, the real-time translation engine is automatically activated to translate the consultation voice data in real time and generate translated text. The translated text is displayed in the translation area of the target terminal device or the mobile application's display interface. At the same time, the original speech-to-text and the translated text are used to generate a bilingual comparison record in a time-aligned manner. The bilingual comparison record is then associated with the current timing node and the current consultation stage identifier.
10. A cross-device intelligent assistance system for therapeutic counseling, characterized in that, include: The target terminal device, deployed in a fixed consultation room, integrates a processing unit, a display unit, an audio acquisition and playback unit, a timing unit, a near-field communication unit, a wireless communication unit, and a storage unit; A mobile application, installed on the counselor's mobile device, has the same counseling assistance function modules as the target terminal device; Cloud servers are used for data synchronization and storage; The system is configured to perform a cross-device intelligent assistance method for healing counseling as described in any one of claims 1 to 9.
