Multimodal assisted writing method and apparatus, storage medium, and electronic device
By using deep learning models to convert speech and image information into text and uniformly encode them into semantic vectors, the problem of AI writing systems being unable to integrate multimodal information is solved, achieving efficient and accurate content generation.
Patent Information
- Application Number
- CN202611348630.7
- 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 AI writing systems are unable to effectively integrate multimodal information, resulting in inaccurate generated content that does not align with user intent.
By acquiring users' voice, image, and text information, a deep learning model is used to convert the voice into text and identify key objects and scene elements in the images. These are uniformly encoded into semantic vectors and then weighted and fused according to preset weights to form a fused intent vector, which is then input into the writing engine to generate the target text content.
It achieves accurate modeling of users' multi-dimensional creative intentions, improves the interactive efficiency and generation quality of AI writing, and ensures that the generated content is highly consistent with the user's intentions.
Smart Images

Figure CN123180150A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and in particular to a multimodal writing assistance method, apparatus, storage medium, and electronic device. Background Technology
[0002] Current AI-powered writing systems primarily rely on single text input for content generation, exhibiting technical limitations such as a limited interaction mode and insufficient ability to capture complex user creative intentions. Users may generate multimodal information during the writing process, including voice descriptions, image references, and text instructions. However, existing systems cannot effectively integrate this multimodal information, resulting in generated content whose themes, scenarios, and styles fail to fully match user needs. Although existing technologies have achieved voice and image recognition capabilities, these technologies often operate independently, lacking deep integration with writing intention modeling and failing to establish a unified cross-modal semantic representation method. This prevents voice, image, and text information from forming a consistent semantic space, limiting the accuracy and richness of the system's generated content. Summary of the Invention
[0003] This application provides a multimodal assisted writing method, device, storage medium, and electronic device to solve the technical problem that artificial intelligence writing is difficult to integrate multimodal information, resulting in inaccurate generated content and user intent.
[0004] In a first aspect, this application provides a multimodal assisted writing method, comprising: acquiring multimodal information input by a user, wherein the multimodal information includes speech information, image information, and first text information; converting the speech information into second text information based on a deep learning model, and identifying key objects and scene elements in the image information to generate third text information; uniformly encoding the first text information, the second text information, and the third text information into a semantic vector, and performing weighted fusion according to preset weights to form a fusion intent vector; and inputting the fusion intent vector into a writing engine, so that the writing engine generates target text content based on the fusion intent vector.
[0005] Secondly, this application provides a multimodal assisted writing device, comprising: an acquisition module for acquiring multimodal information input by a user, wherein the multimodal information includes voice information, image information, and first text information; a conversion module for converting the voice information into second text information based on a deep learning model, and identifying key objects and scene elements in the image information to generate third text information; a fusion module for uniformly encoding the first text information, the second text information, and the third text information into a semantic vector, and performing weighted fusion according to preset weights to form a fused intent vector; and a generation module for inputting the fused intent vector into a writing engine, so that the writing engine generates target text content based on the fused intent vector.
[0006] As an optional example, the above conversion module includes: a first conversion unit, used to read the above speech information into a binary stream and convert it into an audio data structure that can be processed by the above deep learning model; and a first processing unit, used to input the above audio data structure into the above deep learning model, so that the above deep learning model performs feature extraction, acoustic coding and language modeling inference on the above audio data structure to identify the language category and output the corresponding text sequence to obtain the above second text information.
[0007] As an optional example, the above conversion module includes: a second conversion unit, used to convert the above image information into a target format and input it into a visual coding model, so that the visual coding model extracts a fixed-dimensional image feature vector; a determination unit, used to determine the target writing scene prompt that best matches the above image feature vector from a plurality of predefined writing scene prompts; a recognition unit, used to input the above image information into a target detection model, so that the target detection model recognizes the key objects and their categories and locations in the above image information, forming a structured list of scene elements; and a synthesis unit, used to synthesize scene element text for assisting writing based on the above target writing scene prompt and the above list of scene elements, to obtain the above third text information.
[0008] As an optional example, the determining unit includes: a transformation subunit for converting each writing scenario prompt into a text vector representation; a calculation subunit for calculating a similarity score between the image feature vector and each text vector representation; and a determining subunit for determining the writing scenario prompt with the highest similarity score as the target writing scenario prompt.
[0009] As an optional example, the above-mentioned fusion module includes: a third conversion unit, used to input the first text information, the second text information, and the third text information into a semantic vector encoding model, so that the semantic vector encoding model converts the first text information, the second text information, and the third text information into a first vector representation, a first vector representation, and a third vector representation of a target dimension; a setting unit, used to set corresponding preset weights for the first vector representation, the first vector representation, and the third vector representation respectively; and a fusion unit, used to perform weighted fusion of the first vector representation, the first vector representation, and the third vector representation according to the preset weights to obtain the fusion intention.
[0010] As an optional example, the above-mentioned generation module includes: a generation unit, used to reason about the above-mentioned fused intent vector through the generation model of the above-mentioned writing engine, generate target text content that conforms to the writing intent of the above-mentioned user, and modify the above-mentioned target generated text according to the modification content of the above-mentioned user based on the above-mentioned target generated text input during the generation process.
[0011] Thirdly, this application provides a storage medium storing a computer program, wherein the computer program is executed by a processor to perform the above-described multimodal assisted writing method.
[0012] Fourthly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-described multimodal writing aid method through the computer program.
[0013] The technical solutions provided in this application have the following advantages compared with the prior art:
[0014] This application employs a method for acquiring multimodal information from user input, including speech information, image information, and first text information. Based on a deep learning model, the speech information is converted into second text information, and key objects and scene elements in the image information are identified to generate third text information. The first, second, and third text information are uniformly encoded into semantic vectors and then weighted and fused according to preset weights to form a fused intent vector. This fused intent vector is then input into a writing engine to generate target text content. This method simultaneously acquires the user's speech, image, and text information, uses a deep learning model to transcribe speech into text, and uses visual encoding and object detection models to identify key objects and scene elements in the image to generate corresponding text descriptions. Subsequently, text information from different modalities is uniformly encoded into semantic vectors and weighted and fused according to preset weights to form a fused intent vector that comprehensively expresses the user's creative intent. Finally, this fused intent vector is input into the writing engine to generate target text content highly consistent with the user's intent. This achieves accurate modeling of users' multi-dimensional creative intentions, effectively improving the comprehensive capabilities of AI writing in terms of interaction efficiency, semantic understanding, and content generation quality. It also solves the technical problem that AI writing struggles to integrate multimodal information, leading to inaccurate content generation and user intent. Attached Figure Description
[0015] 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.
[0016] 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.
[0017] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0018] Figure 1 This is a flowchart of an optional multimodal assisted writing method according to an embodiment of this application;
[0019] Figure 2 This is a flowchart illustrating the specific implementation of an optional multimodal assisted writing method according to an embodiment of this application.
[0020] Figure 3 This is a schematic diagram of the structure of an optional multimodal writing aid according to an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of an optional electronic device according to an embodiment of this application. Detailed Implementation
[0022] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0023] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0024] According to a first aspect of the embodiments of this application, a multimodal assisted writing method is provided, optionally, as follows: Figure 1 As shown, the above method includes:
[0025] S102, acquire multimodal information input by the user, wherein the multimodal information includes voice information, image information and first text information;
[0026] S104, based on a deep learning model, converts speech information into second text information and identifies key objects and scene elements in image information to generate third text information;
[0027] S106, the first text information, the second text information, and the third text information are uniformly encoded into a semantic vector, and then weighted and fused according to preset weights to form a fused intent vector;
[0028] S108, the fusion intent vector is input into the writing engine so that the writing engine generates target text content based on the fusion intent vector.
[0029] Optionally, this embodiment proposes a multimodal assisted writing method, aiming to overcome the interaction bottleneck of existing AI writing products that rely on single text input, and to achieve richer input dimensions, more accurate intent understanding, and more natural content generation capabilities. By constructing a unified semantic modeling system across speech, image, and text, the system can comprehensively capture the user's creative intent, significantly improving the interaction efficiency and generation quality of intelligent writing. The specific implementation process is as follows: Figure 2 As shown:
[0030] First, the system acquires multimodal information from the user input, including at least voice, image, and initial text information. The user's voice signal is acquired through the system's microphone, a process that uses the browser's media capture interface to call the system's audio hardware, thus establishing an audio stream recording channel. During acquisition, the system samples the sound signal at an audio sampling rate of approximately 16kHz. The acquisition module continuously monitors audio data events during recording, caching each audio segment in a local buffer. When the user actively ends the recording or the recording times out (e.g., 30 seconds), the system aggregates all audio frames into a standard WAV audio file object. After recording, the system constructs an upload data packet containing the audio file and sends it to the backend "speech-to-text" interface in form. Users can describe their creative goals via voice, express scene atmosphere or character settings via images, or directly input partial text fragments. The system uniformly receives and preprocesses the aforementioned multimodal information, forming the input foundation for subsequent in-depth understanding. Compared to traditional methods that only support text input, this method significantly expands the user's expression channels, making the input of creative intent more natural, comprehensive, and three-dimensional.
[0031] Secondly, based on deep learning models, speech information is converted into second-level text information. Speech information typically contains the user's immediate thoughts, emotional expressions, and impromptu ideas. A high-precision speech recognition engine can transcribe the speech signal into structured text, and further, a language model performs noise filtering, semantic correction, and sentence segmentation to make the resulting second-level text information more consistent with natural language expression habits. Simultaneously, for image information, key objects, scene layouts, and environmental attributes are extracted from the image using visual encoding and object detection models, generating third-level text information. This third-level text information not only describes the explicit content of the image but can also combine predefined writing scenario prompts to generate abstract semantic information more suitable for text creation, such as "a warm family atmosphere" or "the mood of a street scene with neon lights," achieving a high-level semantic mapping from visual content to writing elements.
[0032] Next, the first, second, and third text information are uniformly encoded into the same semantic space. To achieve effective cross-modal alignment, this technology utilizes a multimodal semantic coding model to transform text content from different sources into semantic vectors with consistent structure. Subsequently, according to a preset intent fusion strategy, corresponding weights are applied to the three semantic vectors to generate a fused intent vector. The weight setting method can be fixed or dynamically predicted by the model to highlight more important modal information in different scenarios. For example, when a user provides a scene-like image with limited text description, the system can appropriately increase the weight of the image modality to make the generated content more consistent with the visual intent; if the user provides a clear and detailed description via voice, the weight of the voice-text vector can be increased to ensure that the generated content is more consistent with the logic of language expression.
[0033] Finally, the fused intent vector is input into the writing engine. The writing engine can be a large language model or a specially trained generative model. Based on the semantic direction, style preference, scene information, and creative goals in the fused intent vector, the engine generates the target text content. The writing engine not only generates natural, fluent text that conforms to language norms, but also automatically adds details, style completion, and emotional rendering based on scene elements in the fused semantics, resulting in higher creative quality and emotional expression in the generated content.
[0034] Optionally, in this embodiment, users can express their creative intentions through multiple methods, including text, voice, and images, improving the richness and naturalness of the input. Different modalities are encoded into the same semantic space, effectively addressing the comprehension biases caused by modal fragmentation in existing technologies. Fusion of intent vectors can more comprehensively reflect the user's true needs, making the writing results more aligned with user expectations. Through image analysis and voice understanding, the system can automatically complete the plot, conceive scenes, and enrich the writing style, significantly improving writing quality.
[0035] As an alternative example, converting speech information into second text information based on a deep learning model includes:
[0036] The speech information is read as a binary stream and converted into an audio data structure that can be processed by a deep learning model;
[0037] The audio data structure is input into a deep learning model, which then performs feature extraction, acoustic coding, and language modeling inference on the audio data structure to identify the language category and output the corresponding text sequence, thus obtaining the second text information.
[0038] Optionally, in this embodiment, the process of converting speech information into second text information based on a deep learning model aims to achieve high-precision parsing and textual representation of user speech input. Specifically, this process first reads the underlying data of the speech information, loading the user-input speech signal in the form of a binary stream, and preprocessing it through decoding, normalization, and sampling rate correction to convert it into a standardized audio data structure that can be directly processed by the deep learning model. This audio data structure typically represents sound wave amplitude information in time series form, which can completely preserve the temporal characteristics, audio spectrum characteristics, and pronunciation details of the speech, thereby providing a reliable foundation for subsequent feature extraction and model inference.
[0039] After obtaining structured audio data, it is input into a pre-defined deep learning speech recognition model. This deep learning model is either a pre-trained neural network model based on the OpenAI speech recognition system or a lightweight end-to-end speech recognition model based on the Whisper-small architecture. It is used to perform multi-level acoustic feature modeling and semantic feature extraction on the input speech signal. The OpenAI speech recognition model can encode the original speech waveform or spectral features layer by layer, automatically learning pronunciation features, speech rhythm, intonation changes, and contextual dependencies. Therefore, even in complex noisy environments, with multiple speakers, or with different accents, it can still stably extract semantically discriminative high-level acoustic feature representations, providing reliable input for subsequent speech-to-text, semantic understanding, or intent recognition. Whisper-small is a lightweight end-to-end speech recognition model based on a Transformer encoder-decoder structure. It belongs to the small-to-medium scale version of the Whisper series models, balancing recognition accuracy with model size and inference efficiency. Specifically, first, the model performs acoustic feature analysis on the audio data, such as extracting Mel frequency cepstral coefficients (MFCC), Mel spectrograms, or other high-dimensional acoustic representations to capture articulation patterns, intonation variations, and formant features in speech. Then, the model maps these low-level features into stable and semantically discriminative high-level acoustic feature vectors through an acoustic coding module.
[0040] After acoustic feature extraction, the deep learning model further performs language modeling and inference, identifying the language category and word order relationships corresponding to the speech data through steps such as context analysis, multi-frame alignment, and sequence decoding. The model combines acoustic features with language model probabilities to dynamically adjust and optimize the decoding of candidate text sequences, ultimately outputting the target text result corresponding to the user's speech input, thus obtaining the second text information. This end-to-end speech recognition process maintains high recognition accuracy even in complex environments with noise interference and varying speech rates, providing reliable textual input for subsequent multimodal fusion.
[0041] As an optional example, identifying key objects and scene elements in image information to generate third-party text information includes:
[0042] The image information is converted into the target format and input into the visual coding model so that the visual coding model can extract image feature vectors of fixed dimensions.
[0043] From a set of predefined writing scenario prompts, identify the target writing scenario prompt that best matches the image feature vector;
[0044] Image information is input into the object detection model so that the object detection model can identify key objects in the image information, as well as their categories and locations, and form a structured list of scene elements;
[0045] Based on the target writing scenario prompts and the list of scenario elements, the scenario element text used to assist writing is synthesized to obtain third text information.
[0046] Optionally, in this embodiment, the process of identifying key objects and scene elements in image information to generate third-party text information aims to transform user-provided image content into a text description that can be used for semantic modeling. Specifically, this process first parses the image information input by the user, converting it into a target image format that the visual model can process, such as uniform resolution, color space adjustment (e.g., RGB conversion), normalization, and tensor structure construction. The processed image is input into a preset visual encoding model, which is a cross-modal visual semantic encoding model built based on the Contrastive Language-Image Pre-training (CLIP) mechanism. This model is used to extract global semantic features and model high-level semantic representations of the input image. CLIP performs contrastive learning on large-scale image and text pairing data, ensuring semantic consistency between image representation and text semantic representation in the same vector space. Specifically, the visual encoding model maps image content into fixed-dimensional image feature vectors through multi-layer feature extraction and attention modeling operations. These vectors can effectively represent the visual themes, styles, layouts, and overall scene semantics in the image.
[0047] After acquiring the image feature vector, the system determines the target writing scene prompt that best matches the image features from a predefined library of multiple writing scene prompts, based on vector similarity calculations (such as cosine similarity or vector distance metrics). Writing scene prompts can include different semantic categories such as "family gathering scene," "outdoor natural landscape description," and "city night scene description," to help subsequent text generation more accurately fit the image's theme. Through this prompt selection mechanism, the system can understand the semantic environment presented by the image from a writing perspective.
[0048] The raw image information is then further fed into an object detection model, such as YOLO, Faster R-CNN, or DETR, to identify key objects in the image, their categories, and spatial locations. The object detection model outputs a structured list of scene features, including the category label, confidence score, and bounding box coordinates for each object. This list not only clearly identifies the objects present in the image and their relationships but also provides crucial support for scene semantic construction.
[0049] After acquiring the target writing scenario prompts and a list of scenario elements, the system performs semantic synthesis based on both. Through methods such as pre-set text template filling, rule-guided generation, or language model-assisted induction, it generates scenario element text for writing assistance. For example, based on the prompt "outdoor natural scene" combined with detection results such as "trees, lakes, and pedestrians," it can automatically generate a textual description of the image scene. The resulting third-party text information can be used to enhance user intent understanding, significantly improving the semantic consistency and content richness of the generated writing.
[0050] As an optional example, the target writing scenario prompt that best matches the image feature vector is determined from a number of predefined writing scenario prompts, including:
[0051] Each writing scenario prompt is converted into a text vector representation;
[0052] Calculate the similarity score between the image feature vector and each text vector representation;
[0053] The writing scenario prompt with the highest similarity score is identified as the target writing scenario prompt.
[0054] Optionally, in this embodiment, a target writing scene prompt that best matches the image feature vector is determined from a plurality of predefined writing scene prompts. This aims to link visual features with the writing semantic space, thereby achieving cross-modal mapping from image semantics to writing semantics. Specifically, the system first constructs a writing scene prompt library, which covers various semantic templates suitable for literary creation, content generation, or scene description, such as "natural scenery description," "urban life scene," "warm family scene," "travel record scene," and "food scene." To achieve a unified comparison between image features and text semantics, the system performs a text vectorization operation on each writing scene prompt, converting the writing prompt into a computable text vector representation.
[0055] Text vectorization can be based on pre-trained language models (such as the CLIP text encoder) to obtain fixed-dimensional sentence vectors or semantic vectors through a multi-layer Transformer encoding structure, so that the semantic features of writing scenario prompts are presented in vector form. The text vectorization process not only includes basic language modeling and context feature extraction, but also semantic compression and spatial embedding, so that the semantic differences between different prompts can be quantified in vector space.
[0056] Subsequently, the system calculates the similarity between the image feature vector and each text vector representation. Similarity metrics can employ methods such as cosine similarity, dot product scoring, or Euclidean distance inverse normalization to measure the degree of match between the visual semantics expressed by the image and the semantic prompts for various writing scenarios. The similarity calculation process is carefully designed to enable the system to determine, across modal spaces, whether the image content is closer to different writing templates such as natural scenes, scenes of human activity, or scenes of emotional expression.
[0057] Based on multiple similarity scores, the system identifies the highest-scoring writing scenario prompt as the target writing scenario prompt. This prompt represents the writing topic most semantically closest to the image and serves as a crucial semantic basis for generating subsequent writing support content. Through this selection mechanism, the system not only achieves an effective mapping from visual content to writing semantics but also avoids generation deviations caused by blurry user image information or unclear themes, making the generated content more aligned with the writing style and scenario the user intends to present.
[0058] Through this matching process, this method can adaptively select the writing context in a cross-modal semantic space, providing accurate semantic guidance for subsequent integration of image element lists and generation of third-party text information. This significantly improves the intent understanding ability and content generation accuracy of multimodal assisted writing.
[0059] As an optional example, the first, second, and third text information are uniformly encoded into a semantic vector, and then weighted and fused according to preset weights to form a fused intent vector, including:
[0060] The first text information, the second text information, and the third text information are respectively input into the semantic vector encoding model so that the semantic vector encoding model converts the first text information, the second text information, and the third text information into the first vector representation, the first vector representation, and the third vector representation of the target dimension.
[0061] Set corresponding preset weights for the first vector representation, the third vector representation, and the third vector representation respectively;
[0062] Based on preset weights, the first vector representation, the third vector representation, and the third vector are weighted and fused to obtain the fusion intention.
[0063] Optionally, in this embodiment, to fully integrate the multimodal information input by the user and accurately depict the user's writing intent, the system performs unified vector encoding and weighted fusion processing on the first, second, and third text information to form a fused intent vector that can be directly used by the subsequent writing engine. Specifically, the system first inputs the above three types of text into a semantic vector encoding model. This semantic vector encoding model is a Transformer-based sentence vector model or other semantic embedding network, which can utilize the Transformer's self-attention mechanism to perform word segmentation, word vector embedding, context feature extraction, and semantic aggregation on the input text, thereby outputting a fixed-dimensional sentence vector representation.
[0064] During the encoding process, the model extracts semantic features from the first text information (the user-inputted historical or contextual text), the second text information (the text content generated by the speech recognition model), and the third text information (the scene element text generated by the image understanding module), transforming the three types of text into corresponding first, second, and third vector representations. This vector encoding process not only unifies the expression forms of different modalities but also maps natural language content to the same semantic space, making subsequent fusion calculations comparable and feasible.
[0065] After obtaining three types of text vectors, the system assigns preset weights to them based on the semantic contribution of each information source. Typically, the second vector reflects the user's immediate voice intent and therefore has a higher priority; the third vector expresses the image scene and visual cues; and the first vector maintains the coherence of historical input. The weights can be set through empirical strategies, statistical learning, or model training. For example, the weight of voice text can be set to 0.4, image text to 0.3, and historical text to 0.3, reflecting the influence of different modalities in overall intent inference.
[0066] Next, the system performs weighted calculations on the three types of vectors based on the aforementioned preset weights, forming a fused intent vector through a weighted summation of vectors dimension by dimension. This fused intent vector can simultaneously encompass the immediate needs in the user's speech, the scene constraints in the image, and the contextual associations in the historical text, achieving a unified expression of cross-modal and multi-source intent information. This fused vector not only preserves the core semantics of different input modalities but also balances the influence between different modalities in a unified space, preventing information from one modality from becoming overly dominant or being ignored.
[0067] This unified vector encoding and weighted fusion mechanism enables structured, high-dimensional semantic modeling of user creative intent. This fused intent vector can be directly used as the primary input to the generative writing engine, allowing the generative model to accurately grasp the writing direction, narrative style, scene atmosphere, and content focus, thereby significantly improving the overall generation quality and user experience of multimodal assisted writing.
[0068] As an optional example, inputting the fused intent vector into the writing engine to enable the writing engine to generate target text content based on the fused intent vector includes:
[0069] The writing engine's generative model infers the fused intent vector to generate target text content that matches the user's writing intent. During the generation process, the target generated text is modified based on the user's modifications to the target generated text input.
[0070] Optionally, in this embodiment, to achieve accurate content generation based on multimodal input, the system inputs the aforementioned fused intent vector into the writing engine, enabling the writing engine to generate text based on the comprehensive semantics expressed by the fused vector. The writing engine consists of a deep generative model, which can employ a Transformer-based Large Language Model (LLM), an encoder-decoder architecture model, or a generative pre-trained model with instruction understanding capabilities. After receiving the fused intent vector, the generative model uses it as the dominant semantic control signal to guide key generation behaviors during the decoding process, such as topic selection, semantic coherence maintenance, narrative structure planning, and language style control.
[0071] Specifically, the writing engine first performs forward reasoning on the fused intent vector. During the reasoning process, the model sets the initial generation state based on the cross-modal semantic information contained in the fused intent vector, enabling the model to focus on the user's immediate voice needs, scene cues in image expression, and topic constraints in historical text during subsequent content generation. Through an attention mechanism, the model can refer to the global semantics corresponding to the fused vector at each generation step, ensuring that the generated text is consistent with the user's expectations in terms of content, style, and structure.
[0072] During the generation process, the system also supports dynamic interactive correction. When users request modifications to the generated target text content (e.g., adding descriptions via voice, uploading new images, or correcting entered text), the system converts these new user inputs into incremental information, performs vectorization encoding and weighted fusion again, and generates a new fused intent vector. After receiving the updated fused intent vector, the writing engine aligns it with the context of the existing generated text and executes the reasoning generation process again, adjusting and rewriting the target text content in real time. This mechanism ensures both the coherence of the generated content and rapid response to changes in user intent.
[0073] Furthermore, the writing engine can integrate control dimensions during the generation process, such as rhythm, tone, length, and keyword coverage. By guiding the model to reference the fused intent vector and the user's personalized preference parameters during the decoding stage, the system can output final text that better matches the user's style and needs. For example, when the image presents a sunset scene at the beach and the voice description emphasizes a warm atmosphere, the generation model will automatically highlight scene elements such as "sunset," "soft tones," and "tranquil atmosphere," giving the generated text strong relevance and natural emotional expression.
[0074] Through the above mechanism, not only is accurate text generation based on multimodal fusion intent achieved, but a continuously iterative and optimized generation process is also constructed, enabling the system to continuously improve content quality and consistency in multiple rounds of user interaction, thereby significantly enhancing the intelligence and practicality of AI-assisted writing.
[0075] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0076] According to another aspect of the embodiments of this application, a multimodal writing aid is also provided, such as... Figure 3 As shown, it includes:
[0077] The acquisition module 302 is used to acquire multimodal information input by the user, wherein the multimodal information includes voice information, image information and first text information;
[0078] The conversion module 304 is used to convert speech information into second text information based on a deep learning model, and to identify key objects and scene elements in image information to generate third text information.
[0079] The fusion module 306 is used to encode the first text information, the second text information and the third text information into a semantic vector in a unified manner, and to perform weighted fusion according to preset weights to form a fusion intent vector;
[0080] The generation module 308 is used to input the fusion intent vector into the writing engine so that the writing engine can generate target text content based on the fusion intent vector.
[0081] It should be noted that the acquisition module 302 in this embodiment can be used to execute step S102 in this application embodiment, the conversion module 304 in this embodiment can be used to execute step S104 in this application embodiment, the fusion module 306 in this embodiment can be used to execute step S106 in this application embodiment, and the generation module 308 in this embodiment can be used to execute step S108 in this application embodiment.
[0082] As an optional example, the conversion module includes:
[0083] The first conversion unit is used to read speech information into a binary stream and convert it into an audio data structure that can be processed by a deep learning model.
[0084] The first processing unit is used to input the audio data structure into the deep learning model, so that the deep learning model can perform feature extraction, acoustic coding and language modeling inference on the audio data structure to identify the language category and output the corresponding text sequence to obtain the second text information.
[0085] As an optional example, the conversion module includes:
[0086] The second conversion unit is used to convert image information into a target format and input it into the visual coding model so that the visual coding model can extract image feature vectors of fixed dimensions.
[0087] The determining unit is used to identify the target writing scenario prompt that best matches the image feature vector from multiple predefined writing scenario prompts;
[0088] The recognition unit is used to input image information into the target detection model so that the target detection model can identify key objects in the image information, as well as their categories and locations, and form a structured list of scene elements.
[0089] The synthesis unit is used to synthesize scene element text to assist writing based on the target writing scene prompts and the list of scene elements, thus obtaining third text information.
[0090] As an optional example, the determined unit includes:
[0091] The transformation subunit is used to convert each writing scenario cue into a text vector representation;
[0092] The computational subunit is used to calculate the similarity score between the image feature vector and each text vector representation;
[0093] The sub-unit is determined to identify the writing scenario prompt with the highest similarity score as the target writing scenario prompt.
[0094] As an optional example, the fusion module includes:
[0095] The third conversion unit is used to input the first text information, the second text information and the third text information into the semantic vector encoding model respectively, so that the semantic vector encoding model converts the first text information, the second text information and the third text information into the first vector representation, the first vector representation and the third vector representation of the target dimension;
[0096] The setting unit is used to set corresponding preset weights for the first vector representation, the third vector representation, and the third vector representation respectively.
[0097] The fusion unit is used to perform weighted fusion of the first vector representation, the third vector representation, and the third vector according to preset weights to obtain the fusion intention.
[0098] As an optional example, the generated modules include:
[0099] The generation unit is used to reason about the fused intent vector through the generation model of the writing engine, generate target text content that conforms to the user's writing intent, and modify the target generated text according to the user's modification content based on the target generated text input during the generation process.
[0100] For other examples of this embodiment, please refer to the examples above, which will not be repeated here.
[0101] Figure 4 This is a schematic diagram of an optional electronic device according to an embodiment of this application, such as... Figure 4 As shown, it includes a processor 402, a communication interface 404, a memory 406, and a communication bus 408. The processor 402, communication interface 404, and memory 406 communicate with each other via the communication bus 408.
[0102] Memory 406 is used to store computer programs;
[0103] When processor 402 executes a computer program stored in memory 406, it performs the following steps:
[0104] Acquire multimodal information from user input, wherein the multimodal information includes voice information, image information, and first text information;
[0105] Based on a deep learning model, speech information is converted into second text information, and key objects and scene elements in image information are identified to generate third text information.
[0106] The first, second, and third text information are uniformly encoded into semantic vectors, and then weighted and fused according to preset weights to form a fused intent vector.
[0107] The fused intent vector is input into the writing engine so that the writing engine can generate target text content based on the fused intent vector.
[0108] Optionally, in this embodiment, the communication bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single thick line, but this does not indicate that there is only one bus or one type of bus. The communication interface is used for communication between the aforementioned electronic devices and other devices.
[0109] The memory may include RAM, or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0110] As an example, the memory 406 described above may include, but is not limited to, the acquisition module 302, conversion module 304, fusion module 306, and generation module 308 of the multimodal writing aid described above. Furthermore, it may include, but is not limited to, other module units of the multimodal writing aid described above, which will not be elaborated upon in this example.
[0111] The processor mentioned above can be a general-purpose processor, including but not limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0112] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.
[0113] Those skilled in the art will understand that Figure 4The structure shown is for illustrative purposes only. The device implementing the above multimodal assisted writing method can be a terminal device, such as a smartphone (e.g., Android phone, iOS phone), tablet computer, PDA, mobile Internet Devices (MID), PAD, etc. Figure 4 This does not limit the structure of the aforementioned electronic devices. For example, the electronic device may also include components that are more... Figure 4 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 4 The different configurations shown.
[0114] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, ROM, RAM, disk or optical disk, etc.
[0115] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, which, when executed by a processor, performs the steps in the multimodal assisted writing method described above.
[0116] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0117] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0118] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application.
[0119] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0120] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between units or modules, and may be electrical or other forms.
[0121] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0122] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0123] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A multimodal assisted writing method, characterized in that, include: Acquire multimodal information input by the user, wherein the multimodal information includes voice information, image information, and first text information; Based on a deep learning model, the speech information is converted into second text information, and key objects and scene elements in the image information are identified to generate third text information. The first text information, the second text information, and the third text information are uniformly encoded into a semantic vector, and then weighted and fused according to a preset weight to form a fused intent vector; The fusion intent vector is input into the writing engine so that the writing engine generates target text content based on the fusion intent vector.
2. The method according to claim 1, characterized in that, The process of converting the speech information into second text information based on a deep learning model includes: The speech information is read as a binary stream and converted into an audio data structure that the deep learning model can process; The audio data structure is input into the deep learning model, so that the deep learning model performs feature extraction, acoustic coding and language modeling inference on the audio data structure to identify the language category and output the corresponding text sequence, thereby obtaining the second text information.
3. The method according to claim 1, characterized in that, The step of identifying key objects and scene elements in the image information to generate third text information includes: The image information is converted into a target format and input into a visual coding model so that the visual coding model can extract image feature vectors of fixed dimensions. From a set of predefined writing scenario prompts, the target writing scenario prompt that best matches the image feature vector is determined; The image information is input into the target detection model so that the target detection model can identify key objects in the image information, as well as their categories and locations, to form a structured list of scene elements; Based on the target writing scenario prompts and the scenario element list, scenario element text for writing assistance is synthesized to obtain the third text information.
4. The method according to claim 3, characterized in that, The step of determining the target writing scenario prompt that best matches the image feature vector from a plurality of predefined writing scenario prompts includes: Each writing scenario prompt is converted into a text vector representation; Calculate the similarity score between the image feature vector and each text vector representation; The writing scenario prompt with the highest similarity score is identified as the target writing scenario prompt.
5. The method according to claim 1, characterized in that, The step of uniformly encoding the first text information, the second text information, and the third text information into a semantic vector, and then weighting and fusing them according to preset weights to form a fused intent vector includes: The first text information, the second text information, and the third text information are respectively input into the semantic vector encoding model, so that the semantic vector encoding model converts the first text information, the second text information, and the third text information into a first vector representation, a first vector representation, and a third vector representation of the target dimension; Set corresponding preset weights for the first vector representation, the first vector representation, and the third vector representation, respectively; According to the preset weights, the first vector representation, the third vector representation, and the third vector are weighted and fused to obtain the fusion intention.
6. The method according to claim 1, characterized in that, The step of inputting the fused intent vector into the writing engine, so that the writing engine generates target text content based on the fused intent vector, includes: The writing engine's generation model infers the fused intent vector to generate target text content that matches the user's writing intent. During the generation process, the target generated text is modified based on the user's input of modified content based on the target generated text.
7. A multimodal writing aid, characterized in that, include: The acquisition module is used to acquire multimodal information input by the user, wherein the multimodal information includes voice information, image information, and first text information; The conversion module is used to convert the speech information into second text information based on a deep learning model, and to identify key objects and scene elements in the image information to generate third text information. The fusion module is used to encode the first text information, the second text information, and the third text information into a semantic vector, and then perform weighted fusion according to preset weights to form a fusion intent vector. The generation module is used to input the fusion intent vector into the writing engine, so that the writing engine generates target text content based on the fusion intent vector.
8. A computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to perform the method described in any one of claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method described in any one of claims 1 to 6 through the computer program.
