Scene prediction method and device based on multi-modal fusion and storage medium
By using a multimodal fusion-based scene prediction method, a time-series event chain and scene evolution prediction features are constructed. A pre-trained AI model is used to distinguish between real scene changes and instantaneous interference, which solves the problem of frequent mode switching on mobile terminals and improves the stability and smoothness of mode switching.
Patent Information
- Application Number
- CN202611419994.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-14
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2046-09-14
AI Technical Summary
Sensor data from mobile terminals is susceptible to transient interference, resulting in frequent mode switching and poor performance, making it impossible to effectively distinguish between changes in the real scene and data fluctuations caused by transient interference.
By using a multimodal fusion-based scene prediction method, we construct a time-series event chain and scene evolution prediction features, and use a pre-trained AI model to predict the scene, distinguishing between real scene changes and instantaneous interference, and reducing the frequency of mode switching.
It enhances the anti-interference capability of scene prediction, improves the smoothness and rationality of mode switching, and reduces the frequent switching of terminal operating modes.
Smart Images

Figure CN122946895B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, device and storage medium for scene prediction based on multimodal fusion. Background Technology
[0002] Mobile devices typically offer features such as silent mode, vibration mode, and do not disturb mode, allowing users to manually switch the device's operating mode according to different environments. With technological advancements, mobile devices can now simultaneously utilize information such as audio, images, location, and motion status for scene recognition and automatically switch modes based on the recognition results.
[0003] The current mode switching method assumes that all sensors provide valid data and performs static scene recognition based on the sensor data at the current moment. However, in real-world environments, sensor data is easily affected by transient interference, such as sudden changes in illumination, transient noise, and short-term occlusion. These transient fluctuations are directly treated as real environmental changes, causing the device to frequently switch between different scene modes in a short period of time, resulting in poor switching performance.
[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a scene prediction method, device and storage medium based on multimodal fusion, which aims to solve the technical problem of false triggering of mode switching caused by sensor data failure.
[0006] To achieve the above objectives, this application proposes a scene prediction method based on multimodal fusion, the method comprising: When the change in at least one modality in the multimodal data exceeds a preset threshold, the target mode is determined based on the modal failure detection results of the multimodal data. Based on the target modality at each sampling time within a preset window, a time-series event chain is constructed to record the order of event occurrence and time interval. The scene evolution prediction features are determined based on the time-series event chain, wherein the scene evolution prediction features are the transition probability distributions of each of the candidate transition scenarios; The fusion features of the target modality at the current moment, the temporal event chain, and the scene evolution prediction features are input into the pre-trained AI model to obtain the scene prediction result corresponding to the current moment.
[0007] In one embodiment, before the step of constructing a temporal event chain based on the target modality associated with the candidate scene set when the number of modalities associated with the multimodal data and the candidate scene set is within a preset range, the scene prediction method based on multimodal fusion further includes: The candidate scene set is determined by identifying the candidate scenes with the highest matching degree among the multimodal data and pre-stored scene patterns. Identify the target modality in the multimodal data that matches each of the candidate scene sets, and record the modality number of the target modality.
[0008] In one embodiment, before the step of determining the candidate scene set composed of multiple candidate scenes with the highest matching degree among the multimodal data and pre-stored scene patterns, the scene prediction method based on multimodal fusion further includes: Collect the multimodal data; When the change in at least one modality in the multimodal data is detected to be greater than a preset threshold, the step of determining the candidate scene set composed of multiple candidate scenes with the highest matching degree among the multimodal data and the pre-stored scene modes is executed.
[0009] In one embodiment, the step of constructing a time-series event chain based on the target modality associated with the candidate scene set when the number of modalities associated with the multimodal data and the candidate scene set is within a preset range includes: When the number of modalities associated with the multimodal data and the candidate scene set is within a preset range, record the event information corresponding to each target modality within the preset window; The event information is combined into the time-series event chain based on the occurrence sequence of the event information.
[0010] In one embodiment, before the step of inputting the temporal event chain, the scene evolution prediction features, and the fused features after target modality fusion into a pre-trained AI model to obtain the scene prediction result, the scene prediction method based on multimodal fusion further includes: Determine the credibility parameters for each of the target modes; Modal weights are calculated based on the confidence parameters, and fused features are constructed based on the modal weights after fusing each of the target modalities.
[0011] In one embodiment, the step of determining the scene evolution prediction features based on the temporal event chain includes: The initial scenario is determined based on the start time of the aforementioned event chain; Based on the event information in the time-series event chain, output the scene evolution prediction features of the initial scene for each subset of the candidate scene set.
[0012] In one embodiment, the step of inputting the temporal event chain, the scene evolution prediction features, and the fused features after fusing the target modality into a pre-trained AI model to obtain the scene prediction result includes: The fused feature vector, the fixed-dimensional context vector obtained by encoding the temporal event chain, and the scene evolution prediction feature are concatenated to obtain the concatenated feature. The spliced features are used as input parameters of the pre-trained AI model to obtain the scene prediction results output by the pre-trained AI model.
[0013] In one embodiment, after the step of inputting the temporal event chain, the scene evolution prediction features, and the fused features after target modality fusion into a pre-trained AI model to obtain the scene prediction result, the scene prediction method based on multimodal fusion further includes: Control the client to switch to the scene mode corresponding to the scene prediction result; Obtain scene feedback information after switching to the scene mode, and update the decision parameters of the pre-trained AI model based on the scene feedback information.
[0014] In addition, to achieve the above objectives, this application also proposes a scene prediction device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the scene prediction method based on multimodal fusion as described above.
[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the scene prediction method based on multimodal fusion as described above.
[0016] One or more technical solutions proposed in this application have at least the following technical effects: When the number of modalities associated with the multimodal data and the candidate scene set is within a preset range, a temporal event chain is constructed based on the target modality associated with the candidate scene set. The scene evolution prediction features are determined based on the temporal event chain. Then, the temporal event chain, the scene evolution prediction features, and the fused features after fusing the target modality are input into the pre-trained AI model to obtain the scene prediction results. In this way, the temporal evolution logic of the scene is sorted out by using the temporal event chain. The model reasoning is performed through the multidimensional information of the scene evolution prediction features and the multimodal fusion features. This effectively distinguishes between data fluctuations caused by changes in the real scene and instantaneous interference, avoids misjudging short-term abnormal data as changes in environmental state, enhances the anti-interference ability of scene prediction, reduces the frequent switching of terminal operating modes, and improves the smoothness and rationality of automatic mode switching. Attached Figure Description
[0017] 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.
[0018] 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.
[0019] Figure 1 This is a flowchart illustrating the first embodiment of the scene prediction method based on multimodal fusion in this application. Figure 2 This is a schematic diagram of the scene prediction process of the scene prediction method based on multimodal fusion in this application; Figure 3 This is a schematic diagram of the modules of the scenario prediction system in this application; Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the scene prediction method based on multimodal fusion in the embodiments of this application.
[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0021] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0022] Mobile devices typically offer features such as silent mode, vibration mode, and do not disturb mode, allowing users to manually switch the device's operating mode according to different environments. With technological advancements, mobile devices can now simultaneously utilize information such as audio, images, location, and motion status for scene recognition and automatically switch modes based on the recognition results.
[0023] The current mode switching method assumes that all sensors provide valid data and performs static scene recognition based on the sensor data at the current moment. However, in real-world environments, sensor data is easily affected by transient interference, such as sudden changes in illumination, transient noise, and short-term occlusion. These transient fluctuations are directly treated as real environmental changes, causing the device to frequently switch between different scene modes in a short period of time, resulting in poor switching performance.
[0024] Based on this, this application provides a solution that triggers a time-series analysis process by determining the number of associated modalities within a preset range. A time-series event chain is constructed based on the selected target modalities. Then, scene evolution prediction features are extracted. Finally, the three types of features—time-series link, evolution trend, and current modality—are integrated and input into a pre-trained model to output prediction results. This effectively distinguishes between real scene changes and data fluctuations caused by instantaneous interference such as sudden changes in illumination, instantaneous noise, and short-term occlusion. It avoids misjudging short-term abnormal data as changes in environmental state, significantly enhances the anti-interference capability and judgment stability of scene prediction, reduces the frequent switching of terminal operating modes, and improves the smoothness and rationality of automatic mode switching.
[0025] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, or an electronic device, scene prediction device, etc., capable of realizing the above functions. The scene prediction device can be a tablet computer, personal computer, mobile phone, etc. The following description uses a mobile terminal as an example to illustrate this embodiment and the subsequent embodiments.
[0026] This application provides a scene prediction method based on multimodal fusion, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the scene prediction method based on multimodal fusion in this application.
[0027] In this embodiment, the scene prediction method based on multimodal fusion includes steps S10 to S30: Step S10: When the number of modalities associated with the multimodal data and the candidate scene set is within a preset range, construct a time-series event chain based on the target modalities associated with the candidate scene set.
[0028] Multimodal data refers to heterogeneous environmental data collected by mobile terminals through different types of sensors. It encompasses multiple modalities, including audio, image, location, and motion. Different modalities characterize environmental attributes from dimensions such as sound, vision, geographic location, and device status, forming the data foundation for scene recognition. Different modalities are typically divided into multiple submodalities. For example, the collected modal data may include audio features such as MFCC features (Mel-frequency cepstral coefficients), audio energy, audio spectral features, environmental sound categories, and signal-to-noise ratio features. Image modalities include ambient brightness, image sharpness, scene category, number of people, and spatial structure features. Location modalities include specific location types, such as residential areas, company areas, school areas, hospital areas, factory areas, commercial areas, and public transportation areas. Motion modalities include stationary, walking, running, driving, and riding in vehicles. In short, multimodal data can include submodal data under various broad categories.
[0029] The candidate scene set is a collection of candidate scenes with the highest matching degree between pre-stored scene patterns and multimodal data. The number of associated modalities is the total number of modalities whose feature matching degree with a certain candidate scene reaches a preset threshold at the same time. The higher the number, the higher the confidence of scene recognition. Different scenes also correspond to multiple sub-scenes. For example, outdoor scenes can be further divided into strong light outdoor sub-scenes and weak light outdoor sub-scenes based on light intensity. Home scenes can also be divided into sleep home sub-scenes and activity home sub-scenes based on usage time. Therefore, in this embodiment, the candidate scene set includes not only the major categories of scenes, but also the specific sub-categories corresponding to each major category.
[0030] The preset interval is a pre-defined numerical range for the number of associated modalities. It is used to filter out scenarios to be verified that have moderate confidence and are susceptible to transient interference, to exclude high-confidence scenarios that do not require verification, and to exclude low-confidence scenarios that have no match. The target modality is a modality type that has a high correlation with the candidate scenario and strong temporal stability. The temporal event chain is a chain-like data structure formed by arranging the feature change events triggered by each modality within the time window in chronological order of occurrence. The feature change events can include at least one of the following: illumination change events, sound change events, network connection events, Bluetooth connection events, location change events, motion state change events, and calendar-triggered events. These events usually contain specific event details, such as illumination change events containing N units of increase / decrease in illumination, and so on for other events.
[0031] In this embodiment, a candidate scene set can be determined by scene matching degree, which consists of multiple candidate scenes with the highest matching degree among pre-stored scene patterns. Specifically, the mobile terminal synchronously collects multiple modal data such as audio, image, location, and motion based on a fixed sampling period. Each modal data is input into a scene feature matching model, which outputs the matching degree score of each modality with all scenes at the current time. Then, the scenes with the highest matching degree scores are selected as the candidate scene set. Next, the target modality is determined by the matching degree score of the multimodal data with the corresponding modality in the candidate scene set, and the number of target modalities is recorded to obtain the modality count. For each type of scene in the candidate scene set, the number of modalities with matching degree scores higher than a preset matching threshold is counted to obtain the number of associated modalities corresponding to that scene. Then, the number of associated modalities of the candidate scene is compared with a preset interval. If the number of associated modalities of at least one type of scene is within the preset interval, the subsequent time-series event chain construction process is triggered.
[0032] When constructing a time-series event chain, the number of modalities associated with the multimodal data and the candidate scene set is within a preset range. Event information corresponding to each target modality within a preset window is recorded. Then, the event information is combined into a time-series event chain based on the occurrence sequence of the event information.
[0033] For example, the currently collected multimodal data includes 10 modalities: audio modality, visible light image modality, infrared image modality, brightness sensor modality, GPS (Global Positioning System) positioning modality, base station positioning modality, accelerometer sensor modality, gyroscope sensor modality, Wi-Fi (Wireless Fidelity) signal modality, and Bluetooth signal modality. Currently, 100 scenarios are preset. The 10 modal data are input into a scene feature matching model, which then outputs the three scenarios with the highest matching degree: a free-flowing conversation scenario in a meeting, a subway commuting scenario, and an outdoor walking scenario. The preset interval range is [4, 7]. In the meeting scenario, the matching degree of 5 modalities exceeds the threshold. In the commuting scenario, the matching degree of 4 modalities exceeds the threshold. In the outdoor walking scenario, the matching degree of 6 modalities exceeds the threshold. The number of associated modalities of the three candidate scenarios all fall within the preset interval range. At this time, the timing event chain construction process is triggered. The mobile terminal takes the current time as the standard and detects three events in sequence within the preset 30-second window: audio sound pressure level decrease (5th second), motion acceleration returns to zero (12th second), and image light intensity decrease (13th second). At this time, a timing event chain composed of the three events of the environment becoming quieter, motion stopping, and brightness decreasing is generated.
[0034] This embodiment reduces the computational overhead of processing by converting continuous multimodal data into discrete event chains containing time intervals, while preserving the sequence and rhythm of scene changes, providing a temporal basis for calculating the probability of subsequent scene evolution.
[0035] It should be noted that the maximum value of the preset interval is less than the total number of modalities in the multimodal data. For example, when the total number of modalities is 10, the preset interval is usually 4-7. This is to exclude high-confidence scenarios that do not require verification and low-confidence scenarios that do not match. The parameters of the preset interval can be dynamically set based on actual needs.
[0036] Step S20: Determine the scene evolution prediction features based on the time-series event chain.
[0037] Among them, the scene evolution prediction feature is the transition probability distribution of each candidate scene. The transition probability distribution is a distribution vector composed of the probability values of transitioning from the current scene to each candidate scene.
[0038] In this embodiment, scene prediction can be performed based on the current scene state and the event evolution pattern. That is, the transition probability of the scene corresponding to the current multimodal data is determined based on the time-series event chain. Specifically, the initial scene can be determined based on the start time of the time-series event chain, and then the scene evolution prediction features of the initial scene in each subset of the candidate scene set are output according to the event information in the time-series event chain.
[0039] Therefore, as an optional implementation, the initial scenario at the start of the time-series event chain is used as the initial benchmark. The transition probabilities of each candidate scenario are iteratively updated step by step along the event sequence, thereby achieving dynamic evolution prediction based on the complete event evolution information within the current window. First, the initial scenario state is identified through the multimodal features corresponding to the start of the time-series event chain. The scenario at the start of the window is identified through a pre-trained lightweight scenario classifier and used as the initial scenario state. Then, each event node in the time-series event chain is traversed, and the probability weights of each candidate transition scenario are iteratively updated according to the event type, change magnitude, and confidence level of its modality. Specifically, a weight mapping rule library between event types and candidate scenarios can be pre-constructed. For example, in the event of light change, the sub-event of decreased light intensity has a positive weight of N1 for indoor scenario candidate transitions and a negative weight of N2 for outdoor scenario candidate transitions; similarly, in the event of motion state change, the sub-event of motion acceleration returning to zero has a positive weight of N3 for sedentary scenario candidate transitions. Therefore, based on the time sequence, for each event node traversed, the probability weights of each candidate scenario are adjusted according to the mapping rules. The greater the change in the event and the higher the effective confidence of the modality to which the event belongs, the greater the magnitude of the weight adjustment. After traversing all event nodes, the updated weights of each candidate scenario are normalized to obtain the transition probability distribution from the initial scenario to each candidate transition scenario, which serves as the scene evolution prediction feature.
[0040] For example, the starting moment of the time-series event chain corresponds to the outdoor walking scenario. In the candidate scenario set, the base probabilities for indoor meetings, outdoor stays, and outdoor sports are 0.3, 0.5, and 0.2, respectively. Then, the event chain is traversed sequentially through three events: decreasing light intensity, zeroing motion acceleration, and decreasing audio sound pressure level. For each event, the weight of indoor meetings is increased, while the weights of outdoor stays and outdoor sports are decreased. After the event traversal is complete, the cumulative weights of the three candidate scenarios are 0.72, 0.12, and 0.16, respectively. After normalization, the transition probability distribution is: indoor meetings 0.72, outdoor stays 0.12, and outdoor sports 0.16, which represents the final scene evolution prediction feature.
[0041] As an alternative implementation, candidate scene transition probabilities can be calculated based on the Markov transition matrix. The current scene state is extracted from the temporal event chain and matched against the corresponding starting state row in the pre-stored scene transition matrix. The initial transition distribution can be obtained by extracting the transition probability row corresponding to the current state. Specifically, the current scene state label is read from the latest node of the event chain, the global scene Markov transition matrix stored locally on the terminal is retrieved, the row vector corresponding to the current state is located, and the basic transition probabilities are temporally corrected based on the event interval characteristics of the current event chain. The average time interval of the three most recent events in the current event chain is calculated and compared with a typical time threshold for scene transition. If the average interval is less than the threshold, the probability value of high-probability candidate scenes is increased, and the probability value of low-probability scenes is decreased; conversely, the probability distribution is smoothed, reducing the determinism of the transition. Then, the probability values of all corrected candidate scenes are summed, and each probability value is divided by the sum to obtain a normalized probability distribution vector, thus obtaining the scene evolution prediction features.
[0042] For example, in the current scenario of walking indoors, the base probability of transitioning to an indoor meeting in the transition matrix is 0.6, and the base probability of transitioning to walking outdoors is 0.3. However, the average interval between the three most recent events in the current event chain is 5 seconds, which is less than the typical transition threshold of 10 seconds. Therefore, after correction, the probability of an indoor meeting increases to 0.7, the probability of walking outdoors is 0.25, and the total probability of the remaining candidate scenarios is 0.05.
[0043] It should be noted that the above parameters are for illustrative purposes only and are not intended to limit this application.
[0044] Step S30: Input the temporal event chain, scene evolution prediction features, and the fusion features after target modality fusion into the pre-trained AI model to obtain the scene prediction results.
[0045] Feature fusion is a comprehensive feature vector obtained by weighted fusion and feature concatenation of features from all target modalities at the current moment. This vector represents the weight proportion of each target modality at the current moment, thereby improving the accuracy of scene prediction. The scene prediction result is the final scene category judgment output by the model. This result corresponds to the operating mode that the terminal needs to switch to, such as silent mode for meeting scenarios, do-not-disturb mode for sleep scenarios, ringing mode for outdoor scenarios, and driving mode for driving scenarios. The mode control parameters for sub-scenarios under different scenarios are also different; for example, the vibration and audio parameters of the ringing mode differ between outdoor running mode and outdoor walking mode. The pre-trained AI model is a deep learning / machine learning model pre-trained using a large amount of historical multimodal scene data. This model has the ability to output scene prediction results based on multi-dimensional input features. Preferably, the AI model includes at least one of the following: Transformer model, deep neural network model, random forest model, and support vector machine model. At least one model can be selected for training based on actual computing power requirements and data accuracy to obtain the pre-trained AI model.
[0046] Therefore, in this embodiment, as an optional implementation, the AI model is trained using a multi-branch fusion Transformer model. The fusion feature vector, the fixed-dimensional context vector obtained by encoding the temporal event chain, and the scene evolution prediction feature vector can be concatenated. The concatenated features are used as input parameters of the pre-trained AI model, and then the scene prediction results output by the pre-trained AI model are obtained.
[0047] Specifically, in the model processing, the three types of input features are first preprocessed to adapt to the input formats of different branches of the model. Then, the target modality fusion features are layer-normalized and input into the static feature branch; the temporal event chain is converted into a sequence vector using event embedding encoding and input into the temporal branch; and the transition probability distribution features are dimensionally expanded and input into the trend feature branch. After feature extraction in each of the three branches, multi-feature fusion is achieved through cross-attention modules. Finally, the static feature branch outputs the current state vector, the temporal branch outputs the process evolution vector, and the trend branch outputs the transition trend vector. These three vectors are then weighted by attention through cross-attention layers to obtain a comprehensive feature vector containing the current state, historical process, and future trend. The fused comprehensive feature is then input into the classification head to output the scene category prediction result, i.e., the confidence score of all candidate scenes is output, and the scene category with the highest confidence score is selected as the final scene prediction result.
[0048] For example, the current target modality fusion features correspond to low volume, weak light, and stillness, while the time-series event chain corresponds to the time-series state of gradually entering a quiet and still state. In the transition probability distribution, the meeting scene has the highest probability. After the three types of features are input into the model, the model outputs a confidence level of 0.92 for the meeting scene. The meeting scene is then used as the final scene prediction result.
[0049] It should be noted that the fusion features of the target modality include the weight ratios between each modality, and the formula for calculating the fusion features is as follows: F = Σ(Wi × Fi), where Fi represents the corresponding modal feature and Wi represents the corresponding modal weight.
[0050] As an alternative implementation, a weighted fusion of features from different modalities can be performed using an attention mechanism. The three types of features are then adaptively weighted by an attention module before being input into a pre-trained model to improve anti-interference capabilities. Specifically, the attention-weighted fusion of the target modality is first performed, extracting the current-time features of each target modality. An attention weight generation network is then used to calculate the attention weights for each modality, resulting in the weighted target modality fusion features. Next, a multi-feature adaptive weighted integration is performed. For the three types of features—temporal event chain encoding features, scene evolution prediction features, and target modality fusion features—the weight ratios of the three types of features are calculated using a multi-feature attention module. The weights of temporal features, trend features, and current features are adaptively adjusted according to the scene type. For example, in scenarios with high volatility, the weights of temporal and trend features are increased; in stable scenarios, the weights of current features are increased. This action dynamically adjusts the contribution of features from different dimensions, relying more on temporal and trend features when the data is susceptible to interference, and relying more on current features when the data is stable, achieving flexible anti-interference adaptation. Finally, the weighted and integrated features are input into the pre-trained time-series prediction model. The model combines the scene evolution patterns learned from historical training data to output the scene state prediction results within a preset time period, and also outputs the confidence level of the prediction results.
[0051] Furthermore, after obtaining the scene prediction result, the client can be controlled to switch to the scene mode corresponding to the prediction result, thus achieving intelligent scene mode switching. Next, scene feedback information after switching to the scene mode is obtained, and the decision parameters of the pre-trained AI model are updated based on this feedback. During this process, the user's feedback behavior to the automatic mode switching is recorded, awarding +1 reward for maintaining the current mode and -1 reward for reverting to the original mode. Based on this, a Q(Scene, Mode) user behavior reinforcement learning model is established, continuously optimizing the configuration decision strategy based on the reward value: if the user maintains the current mode: Reward = +1; if the user reverts to the original mode: Reward = -1. Finally, the decision parameters of the pre-trained AI model are updated using this scene feedback information to continuously learn user habits through reinforcement learning, achieving personalized mode control.
[0052] To help understand the scene prediction process diagram in this embodiment, please refer to... Figure 2 Specifically, the constructed time-series event chain includes a user entering the office area, triggering a change in the WiFi network status, then identifying an event node where the lights dim based on sensor-detected lighting information, and simultaneously "sensing" the user sitting down using a position / accelerometer. This series of coherent events converges to the event chain analysis module for analysis and prediction features. Finally, during the scene evolution prediction process, an AI module identifies the high correlation between the current continuous behavior and the office scene, deriving a prediction result for Meeting_PreState (pre-meeting state). Based on this prediction result, a pre-emptive execution of a terminal mode switching strategy (mute / do not disturb) is automatically triggered, proactively adapting to the environment before the meeting begins, thus achieving a complete closed loop from physical event perception to intelligent scene prediction and proactive execution.
[0053] This embodiment provides a scene prediction method based on multimodal fusion. It triggers a time-series analysis process by determining the number of associated modalities within a preset range. Based on the selected target modalities, a time-series event chain is constructed, and scene evolution prediction features are further extracted. Finally, the three types of features—time-series chain, evolution trend, and current modality—are fused and input into a pre-trained model to output prediction results. This effectively distinguishes between real scene changes and data fluctuations caused by instantaneous interference such as sudden changes in illumination, transient noise, and short-term occlusion. It avoids misjudging short-term abnormal data as changes in environmental state, enhances the anti-interference capability and judgment stability of scene prediction, reduces the frequent switching of terminal operating modes, and improves the smoothness and rationality of automatic mode switching.
[0054] Based on the first embodiment of this application, in the second embodiment of this application, the same or similar content as the first embodiment can be referred to the above description, and will not be repeated hereafter. On this basis, before determining the candidate scene set composed of multiple candidate scenes with the highest matching degree among multimodal data and pre-stored scene modes, it is necessary to first collect multimodal data, and when the change in at least one modality of the multimodal data is detected to be greater than a preset threshold, the step of determining the candidate scene set composed of multiple candidate scenes with the highest matching degree among multimodal data and pre-stored scene modes is executed.
[0055] Therefore, in this embodiment, after the mobile terminal collects the raw sensor data of each modality, it typically calculates the feature changes of adjacent sampling points in real time and compares these changes with a preset threshold. That is, it judges whether there is a potential scene switching possibility in the environment by the magnitude of data changes, and initiates failure detection when a significant change occurs, balancing the detection response rate and the terminal's computing power overhead. Specifically, by calculating the sound pressure level change magnitude of the audio modality, the displacement velocity of the position modality, the brightness and texture change rate of the image modality, and the acceleration amplitude change of the motion modality, when the change of any modality exceeds the corresponding preset threshold, the subsequent process of determining candidate scenes is triggered.
[0056] For example, for image modalities, the change in the image modality is considered greater than a preset threshold if any of the following conditions are met: image brightness is lower than a threshold, image sharpness is lower than a preset threshold, effective scene features cannot be extracted for multiple consecutive frames, or camera occlusion is detected. For audio modal data, the change in the audio modality is determined to be greater than a threshold when the signal-to-noise ratio is lower than a preset threshold, background noise is higher than a preset threshold, or high noise duration exceeds a preset duration. For positioning modalities, the change in the positioning modality is determined to be greater than a threshold when the number of detected satellites is insufficient, the positioning result shows abnormal jumps, or the GPS error exceeds a preset range. For motion modalities, the change in the motion modality is determined to be greater than a preset threshold when the motion sensor offset exceeds a threshold or the data anomaly rate exceeds a threshold.
[0057] It is understandable that when the change in one of the modal data exceeds a preset threshold, it does not necessarily mean that the modal data is invalid or abnormal. For example, when a user moves from a dimly lit scene to a brightly lit meeting scene, the change in illumination exceeds the preset threshold, and subsequent meeting scene judgments need to be based on illumination. Therefore, this illumination modality is not an invalid modality.
[0058] For example, when a user enters a brightly lit conference room from a dimly lit corridor, the change in the illumination intensity of the image modality exceeds a preset threshold, triggering a detection process to determine the set of candidate scenes with the highest matching degree among the candidate scenes.
[0059] This embodiment provides a scene prediction method based on multimodal fusion. By triggering the determination of a candidate scene set only when the change in at least one modality of the multimodal data exceeds a preset threshold, the method avoids performing scene recognition and matching calculations for all modal data throughout the entire time period, reduces the terminal's computing power consumption, and controls the terminal's energy consumption while ensuring the scene prediction response speed.
[0060] Based on any embodiment of this application, in the third embodiment of this application, the content that is the same as or similar to the above embodiments can be referred to the above description, and will not be repeated hereafter. In addition, before step S30, steps S40~S50 are also included: Step S40: Determine the confidence parameters for each target mode; Step S50: Calculate the modal weights based on the confidence parameters, and construct the fusion features of each target modality fusion based on the modal weights.
[0061] In this embodiment, confidence parameters can be calculated for each target modality to construct fusion features. Specifically, for the audio modality, the audio confidence Caudio is obtained from the signal-to-noise ratio (SNR) using a function f; the image confidence Cimage is obtained from brightness and sharpness using a function f; the location confidence Clocation is obtained from GPS error using a function f; and the motion confidence Cmotion is obtained from stability using a function f. Next, the confidence values of all target modalities are summed. First, a dynamic weight is calculated for each modality according to the formula Wi = Ci / ΣCi, representing the proportion of each confidence level to the overall confidence level. Finally, the feature vector Fi corresponding to each modality is multiplied by its dynamic weight Wi, and all weighted results are accumulated to construct the fusion feature vector F = Σ(Wi × Fi), where Fi represents the corresponding modal feature and Wi represents the corresponding modal weight.
[0062] This embodiment calculates the confidence level for each target modality separately to avoid interference from invalid information. Then, a dynamic weighting formula is used to convert the confidence level of each modality into its proportion in the fusion process. This allows high-quality, high-reliability modal features to automatically gain greater decision-making power, suppressing low-confidence modalities. Finally, a fusion feature vector F=Σ(Wi×Fi) is constructed through weighted summation, preserving the unique discriminative information of each target modality while optimizing the combination based on real-time quality, thus improving the effectiveness of subsequent model recognition.
[0063] This application provides a scene prediction device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the scene prediction method based on multimodal fusion in the first embodiment described above. Further, please refer to... Figure 3 , Figure 3 A schematic diagram of the scene prediction system is shown. This system is deployed either locally on the scene prediction device or in the cloud connected to the scene prediction device. Specifically, Figure 3The multimodal acquisition module shown is used to acquire multimodal data; the feature extraction module is used to extract feature information of the target modality; the target modality detection module is used to identify whether multiple modalities and their submodalities, such as image, audio, positioning and motion modalities, are target modalities related to the candidate scene set; the modality isolation control module is used to reset the weights corresponding to non-target modalities to zero and remove them from the fusion process; the dynamic credibility assessment and fusion module is used to dynamically calculate the fusion weights based on the data quality of the target modality; the temporal event chain analysis module is used to establish environmental event sequences and extract scene evolution features; the scene evolution prediction module is used to predict the target scene that the user is about to enter based on the event chain; the AI scene recognition module is used to combine the fusion features and scene evolution features to generate scene recognition results and scene confidence; the user behavior learning module is used to continuously update the user preference model through reinforcement learning; the mode decision control module is used to generate the final mode control command based on the scene recognition results, scene confidence, and user preferences; and the mode execution module is used to execute mode switching, such as terminal mode switching such as silent, vibration, do not disturb, and driving mode.
[0064] The following is for reference. Figure 4 The diagram illustrates a structural schematic suitable for implementing the scene prediction device in the embodiments of this application. The scene prediction device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (PADs), portable media players (PMPs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The scene prediction device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0065] like Figure 4As shown, the scene prediction device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the scene prediction device. The processing unit 1001, the ROM 1002, and the RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the scene prediction device to communicate wirelessly or wiredly with other devices to exchange data. While the figure shows scene prediction devices with various systems, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0066] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0067] The scene prediction device provided in this application employs the multimodal fusion-based scene prediction method described in the above embodiments, which can solve the technical problem of false triggering of mode switching caused by sensor data failure. Compared with the prior art, the beneficial effects of the scene prediction device provided in this application are the same as those of the multimodal fusion-based scene prediction method provided in the above embodiments, and other technical features of this scene prediction device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0068] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0069] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0070] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the scene prediction method based on multimodal fusion in the above embodiments.
[0071] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory, read-only memory, erasable programmable read-only memory (EPROM, or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0072] The aforementioned computer-readable storage medium may be included in the scene prediction device; or it may exist independently and not assembled into the scene prediction device.
[0073] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the scene prediction device, cause the scene prediction device to: construct a time-series event chain based on the target modality associated with the candidate scene set when the number of modalities associated with the multimodal data and the candidate scene set is within a preset range; Determine the scene evolution prediction features based on the aforementioned time-series event chain; The time-series event chain, the scene evolution prediction features, and the fusion features after target mode fusion are input into the pre-trained AI model to obtain the scene prediction results.
[0074] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0075] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0076] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0077] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described scene prediction method based on multimodal fusion, thereby solving the technical problem of false triggering of mode switching caused by sensor data failure. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the scene prediction method based on multimodal fusion provided in the above embodiments, and will not be repeated here.
[0078] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A scene prediction method based on multimodal fusion, characterized in that, The scene prediction method based on multimodal fusion includes: When the number of modalities associated with the multimodal data and the candidate scene set is within a preset range, a time-series event chain is constructed based on the target modalities associated with the candidate scene set, including recording event information corresponding to each target modality within a preset window; the event information is combined into the time-series event chain based on the occurrence sequence of the event information, wherein the target modality is a modal type with high correlation to the candidate scene and strong temporal stability; Determining scene evolution prediction features based on the time-series event chain includes determining an initial scene based on the start time of the time-series event chain; and outputting the scene evolution prediction features of the initial scene for each subset of the candidate scene set based on the event information in the time-series event chain, wherein the scene evolution prediction features are the transition probability distributions of each candidate scene. The time-series event chain, the scene evolution prediction features, and the fusion features after target mode fusion are input into the pre-trained AI model to obtain the scene prediction results.
2. The scene prediction method based on multimodal fusion as described in claim 1, characterized in that, Before the step of constructing a time-series event chain based on the target modalities associated with the candidate scene set when the number of modalities associated with the multimodal data and the candidate scene set is within a preset range, the scene prediction method based on multimodal fusion further includes: The candidate scene set is determined by identifying the candidate scenes with the highest matching degree among the multimodal data and pre-stored scene patterns. Identify the target modality in the multimodal data that matches each of the candidate scene sets, and record the modality number of the target modality.
3. The scene prediction method based on multimodal fusion as described in claim 2, characterized in that, Before the step of determining the candidate scene set composed of multiple candidate scenes with the highest matching degree among the multimodal data and pre-stored scene patterns, the scene prediction method based on multimodal fusion further includes: Collect the multimodal data; When the change in at least one modality in the multimodal data is detected to be greater than a preset threshold, the step of determining the candidate scene set composed of multiple candidate scenes with the highest matching degree among the multimodal data and the pre-stored scene modes is executed.
4. The scene prediction method based on multimodal fusion as described in claim 1, characterized in that, Before the step of inputting the temporal event chain, the scene evolution prediction features, and the fused features after target modality fusion into the pre-trained AI model to obtain the scene prediction result, the scene prediction method based on multimodal fusion further includes: Determine the credibility parameters for each of the target modes; Modal weights are calculated based on the confidence parameters, and fused features are constructed based on the modal weights after fusing each of the target modalities.
5. The scene prediction method based on multimodal fusion as described in claim 1, characterized in that, The step of inputting the temporal event chain, the scene evolution prediction features, and the fused features after fusing the target modality into the pre-trained AI model to obtain the scene prediction result includes: The fused feature vector, the fixed-dimensional context vector obtained by encoding the temporal event chain, and the scene evolution prediction feature are concatenated to obtain the concatenated feature. The spliced features are used as input parameters of the pre-trained AI model to obtain the scene prediction results output by the pre-trained AI model.
6. The scene prediction method based on multimodal fusion as described in claim 1, characterized in that, After the step of inputting the temporal event chain, the scene evolution prediction features, and the fused features after target modality fusion into the pre-trained AI model to obtain the scene prediction result, the scene prediction method based on multimodal fusion further includes: Control the client to switch to the scene mode corresponding to the scene prediction result; Obtain scene feedback information after switching to the scene mode, and update the decision parameters of the pre-trained AI model based on the scene feedback information.
7. A scene prediction device, characterized in that, The scene prediction device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the scene prediction method based on multimodal fusion as described in any one of claims 1 to 6.
8. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the scene prediction method based on multimodal fusion as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Scene adaptive information processing method and device, equipment and storage medium
CN121743959A
Multi-scene multi-modal interaction behavior prediction method and system based on time sequence diagram
CN122490425A
