Translation method, device and translation machine combining image analysis and speech recognition

By combining image analysis and speech recognition technology to extract user identity information and update the translation model, it solves the problems of translation deviation and low accuracy in traditional translation systems, and provides more accurate and personalized translation services.

CN118364830BActive Publication Date: 2024-08-30SHENZHEN BEIBO INTELLIGENT TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410789540.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-30
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

The traditional translation system ignores the multi-dimensional verification of user identity, resulting in a lack of pertinence in the translation results and easy translation deviation and low accuracy.

Method used

Combining image analysis and speech recognition technology, it collects the user's face image and voice information, extracts identity information through the image analysis model and speech recognition model, matches and fuses model parameters, and updates the translation model to provide personalized translation services.

Benefits of technology

It improves the accuracy of user identification and the degree of customization of translation models, provides more accurate and personalized translation services, and overcomes the problems of translation deviation and low accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118364830B
    Figure CN118364830B
Patent Text Reader

Abstract

The present invention provides a translation method, device and translator combining image analysis and speech recognition, including: collecting a facial image of a user of the translator, analyzing the facial image, and obtaining first identity information of the user of the translator; collecting speech information of the user of the translator, analyzing the speech information, and obtaining second identity information of the user of the translator; matching corresponding first model parameters based on the first identity information; matching corresponding second model parameters based on the second identity information; fusing the first model parameters and the second model parameters to obtain fusion model parameters; updating a preset language translation model based on the fusion model parameters to obtain an updated translation model; translating the conversation of the translator based on the updated translation model. In the present invention, a translation model is customized according to the identity information of the user, which overcomes the defects of the current translation system that is prone to translation deviation and low accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a translation method, device and translation machine combining image analysis and speech recognition. Background Art

[0002] Traditional translation methods mainly rely on text input and achieve text-to-text conversion by establishing a huge language database and complex algorithm models.

[0003] Most existing translation devices or applications rely solely on voice or text input for translation, ignoring the multi-dimensional verification of user identity, which affects the personalization and security of translation services. For example, the user's identity characteristics are not fully utilized to optimize the translation model, resulting in a lack of pertinence in the translation results.

[0004] Specifically, traditional translation systems often use a unified translation model to serve all users, ignoring the personalized needs of different users such as language habits, professional terminology preferences, etc. This translation method is difficult to meet the complex and ever-changing communication scenarios, is not targeted to users, and is prone to translation deviations and low accuracy. Summary of the invention

[0005] The main purpose of the present invention is to provide a translation method, device and translation machine combining image analysis and speech recognition, aiming to overcome the defects of the current translation system that easily causes translation deviation and low accuracy.

[0006] To achieve the above object, the present invention provides a translation method combining image analysis and speech recognition, comprising the following steps:

[0007] Collecting a facial image of a user of the translation machine, and analyzing the facial image based on an image analysis model to obtain first identity information of the user of the translation machine;

[0008] Collecting voice information of the translation machine user, analyzing the voice information based on a voice recognition model, and obtaining second identity information of the translation machine user;

[0009] Based on the first identity information, matching the corresponding first model parameter; based on the second identity information, matching the corresponding second model parameter; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to model parameters of the same type;

[0010] Performing fusion calculation on the first model parameter and the second model parameter to obtain fusion model parameters;

[0011] Based on the fusion model parameters, the preset language translation model is updated to obtain an updated translation model; and based on the updated translation model, the conversation of the translation machine is translated.

[0012] Furthermore, the analyzing the face image based on the image analysis model to obtain the first identity information of the translation machine user includes:

[0013] The facial features of the facial image are extracted based on the image analysis model, the facial features are analyzed, and the nationality information of the user of the translation machine is predicted and obtained as the first identity information.

[0014] Furthermore, the analyzing the voice information based on the voice recognition model to obtain the second identity information of the translation machine user includes:

[0015] The speech features of the speech information are extracted based on the speech recognition model, the speech features are analyzed, and the regional information of the user of the translation machine is predicted and obtained as the second identity information.

[0016] Furthermore, the fusing calculation of the first model parameter and the second model parameter to obtain the fused model parameter includes:

[0017] Obtaining weight values ​​corresponding to the first model parameter and the second model parameter respectively;

[0018] Based on the weight values ​​corresponding to the first model parameter and the second model parameter respectively, the first model parameter and the second model parameter are weightedly calculated, and the obtained weighted model parameters are used as the fusion model parameters.

[0019] Further, after translating the conversation of the translator based on the updated translation model, the method further comprises:

[0020] The translation machine saves the conversation content in the database;

[0021] Determine a corresponding target encryption algorithm based on the first identity information and the second identity information;

[0022] Based on the target encryption algorithm, encrypt the first identity information into a first character combination, and encrypt the second identity information into a second character combination;

[0023] Get the total duration of this call;

[0024] generating an identification code based on the first character combination, the second character combination and the total duration of the call;

[0025] The content of this call stored in the database is identified based on the identification code.

[0026] Further, determining a corresponding target encryption algorithm based on the first identity information and the second identity information includes:

[0027] Convert the first identity information into pinyin characters, and obtain the total number of characters in the pinyin characters as the first number;

[0028] Convert the second identity information into a Chinese name, and obtain the total number of Chinese characters in the Chinese name as a second number;

[0029] Obtain a preset encryption algorithm matrix; wherein the encryption algorithm matrix includes multiple rows and columns, and a different encryption algorithm name is added to each position of the encryption algorithm matrix;

[0030] In the encryption algorithm matrix, an encryption algorithm corresponding to the encryption algorithm name at the mth row and nth column position is obtained as the target encryption algorithm; wherein m is a number corresponding to the first quantity, and n is a number corresponding to the second quantity.

[0031] Furthermore, the first character combination and the second character combination each include nine characters;

[0032] The generating an identification code based on the first character combination, the second character combination and the total duration of the call includes:

[0033] Create a blank data table with three rows and three columns, and add the characters in the first character combination to the blank data table one by one in sequence to obtain a first data table;

[0034] Adding the characters in the second character combination to the first data table one by one in sequence to obtain a second data table; wherein, in each cell of the second data table, the characters in the second character combination are located after the characters in the first character combination;

[0035] Obtain the number of minutes and seconds in the total duration of the call; wherein the number corresponding to the number of minutes is a first number, and the number corresponding to the number of seconds is a second number;

[0036] Taking the lower left corner of the second data table as the vertex, construct a first ray and a second ray respectively; wherein the angle between the first ray and the bottom of the second data table is a first angle, which is the same as the first number; the angle between the second ray and the bottom of the second data table is a second angle, which is the same as the second number;

[0037] In the second data table, characters in cells intersecting the first ray and the second ray are extracted and combined in sequence, and the obtained combined characters are used as the identification code.

[0038] The present invention also provides a translation device combining image analysis and speech recognition, comprising:

[0039] A first acquisition unit is used to acquire a facial image of a user of the translation machine, and analyze the facial image based on an image analysis model to obtain first identity information of the user of the translation machine;

[0040] A second collecting unit is used to collect voice information of the translation machine user, analyze the voice information based on the speech recognition model, and obtain the second identity information of the translation machine user;

[0041] A matching unit, configured to match a corresponding first model parameter based on the first identity information; and to match a corresponding second model parameter based on the second identity information; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to model parameters of the same type;

[0042] A calculation unit, used for performing fusion calculation on the first model parameter and the second model parameter to obtain a fusion model parameter;

[0043] The translation unit is used to update the preset language translation model based on the fusion model parameters to obtain an updated translation model; and translate the conversation of the translation machine based on the updated translation model.

[0044] The present invention also provides a translation machine, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0045] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.

[0046] The translation method, device and translator combined with image analysis and speech recognition provided by the present invention include: collecting a facial image of a user of the translator, analyzing the facial image based on an image analysis model to obtain the first identity information of the user of the translator; collecting speech information of the user of the translator, analyzing the speech information based on a speech recognition model to obtain the second identity information of the user of the translator; matching the corresponding first model parameter based on the first identity information; matching the corresponding second model parameter based on the second identity information; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to the model parameters of the same type; fusing the first model parameter and the second model parameter to obtain a fusion model parameter; updating a preset language translation model based on the fusion model parameter to obtain an updated translation model; translating the conversation of the translator based on the updated translation model. In the present invention, the image analysis and speech recognition technologies are used in combination, which not only improves the accuracy of user identity recognition, but also customizes the translation model according to the user's identity information, thereby providing a more accurate and personalized translation service, overcoming the defects of the current translation system that easily causes translation deviation and low accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a schematic diagram of the steps of a translation method combining image analysis and speech recognition in one embodiment of the present invention;

[0048] Figure 2 is a structural block diagram of a translation device combining image analysis and speech recognition in one embodiment of the present invention;

[0049] Figure 3 It is a schematic block diagram of the structure of a translation machine according to an embodiment of the present invention.

[0050] The implementation, functional features and advantages of the present invention will be further described in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0052] Reference Figure 1 In one embodiment of the present invention, a translation method combining image analysis and speech recognition is provided, comprising the following steps:

[0053] Step S1, collecting a facial image of a user of a translation machine, analyzing the facial image based on an image analysis model, and obtaining first identity information of the user of the translation machine;

[0054] Step S2, collecting voice information of the translation machine user, analyzing the voice information based on a speech recognition model, and obtaining second identity information of the translation machine user;

[0055] Step S3, matching the corresponding first model parameter based on the first identity information; matching the corresponding second model parameter based on the second identity information; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to model parameters of the same type;

[0056] Step S4, fusing the first model parameters and the second model parameters to obtain fused model parameters;

[0057] Step S5, based on the fusion model parameters, updating the preset language translation model to obtain an updated translation model; translating the conversation of the translation machine based on the updated translation model.

[0058] In this embodiment, it specifically includes:

[0059] In the above step S1, the image acquisition technology: uses a high-definition camera, and can also be combined with an infrared or depth sensor to capture the user's facial image under various lighting conditions. Privacy protection measures must be considered during acquisition to ensure that the user agrees and only when necessary.

[0060] Image analysis model: This model is usually based on a convolutional neural network (CNN) or other deep learning architecture. After being trained on a large number of face images, it can identify facial feature points, such as the corners of the eyes, the tip of the nose, the corners of the mouth, etc., and analyze them through geometric relationships, texture features, etc. In addition, the model can also analyze auxiliary information such as nationality, expression, age, gender, etc. to increase the robustness of identity recognition.

[0061] In the above step S2, the voice collection technology: using a high-sensitivity microphone array, combined with noise suppression, echo cancellation and other algorithms, to ensure that the user's voice can be clearly captured even in a noisy environment. When collecting, pay attention to directionality and reduce environmental interference.

[0062] Speech recognition and voiceprint recognition models: The speech recognition part uses models such as long short-term memory network (LSTM) and Transformer to convert audio signals into text. Voiceprint recognition goes a step further. It is based on features such as spectrum analysis and Mel-frequency cepstral coefficients (MFCC). It uses machine learning algorithms to identify individual unique acoustic features and recognize user identity information through acoustic features. The above identity information mainly includes nationality and region information.

[0063] In the above step S3, the personalized parameter library: maintains a database containing user personalized parameters, which are model parameters refined based on the user's past usage habits, language habits, common expressions, etc.

[0064] Parameter matching logic: Based on the identity information determined in the above steps, the model parameters that best match the user are searched or calculated in the database. For example, for users who frequently use professional terms, their language model parameters will tend to be more accurate in translating professional terms; and parameter sets that are adapted to specific accents can improve the accuracy of accent recognition. Users of different nationalities and regions will correspond to different model parameters. It should be understood that the above-mentioned first model parameter and the second model parameter are different parameter values ​​corresponding to the same type of model parameters, that is, the model parameter types are consistent, but the specific parameter values ​​are different.

[0065] In the above step S4, fusion algorithm: fusion calculation can adopt a variety of strategies, such as simple weighted average, more complex attention mechanism, or adaptive fusion using deep learning network. The key is to balance the importance of visual and auditory information, and the weight can be adjusted dynamically according to the scene.

[0066] Parameter optimization: The fusion process can also include fine-tuning of parameters, using optimization algorithms such as gradient descent to ensure that the newly generated fusion model parameters can both reflect the user's personalized needs and maintain the generalization ability of the translation model.

[0067] In the above step S5, the model update process: the fused parameters are injected into the basic translation model to quickly adjust the model parameters. This process involves the online learning or transfer learning strategy of the model to ensure the continuous improvement of translation quality.

[0068] Real-time application: The updated translation model is instantly deployed to the translation device or cloud service to respond to the user's translation request in real time. In actual conversations, the translation model can quickly and accurately understand and convert the user's language while maintaining the natural fluency and cultural adaptability of the translation, improving the user experience. The translation model is customized according to the user's identity information to provide more accurate and personalized translation services.

[0069] In this embodiment, the comprehensive use of image analysis and speech recognition technology can not only improve the accuracy of user identity recognition, but also customize the translation model according to the user's identity information, so as to provide more accurate and personalized translation services, and overcome the defects of the current translation system that is prone to translation deviation and low accuracy.

[0070] In one embodiment, the analyzing the facial image based on the image analysis model to obtain the first identity information of the translation machine user includes:

[0071] The facial features of the facial image are extracted based on the image analysis model, the facial features are analyzed, and the nationality information of the user of the translation machine is predicted and obtained as the first identity information.

[0072] In this embodiment, it specifically includes:

[0073] Image analysis model construction: This image analysis model is usually based on deep learning, especially convolutional neural networks (CNNs) or more advanced architectures such as ResNet, MobileNet, etc. These models perform well in image recognition and classification tasks. They extract complex features from raw pixel data through multi-layer neuron learning, thereby achieving efficient distinction between different categories.

[0074] Dataset preparation: In order for the model to predict nationality, a face image dataset containing a wide range of nationalities is required, with each sample accompanied by a correct nationality label. This dataset should be as comprehensive as possible, covering people of different ages, genders, skin colors, and cultural backgrounds to ensure the generalization ability of the model.

[0075] Model training: Using the above dataset, the model learns to associate specific facial features with corresponding nationalities through supervised learning. During the training process, the model adjusts its internal parameters to minimize the error between the predicted nationality and the true nationality.

[0076] Feature-to-nationality mapping: The model does not learn direct nationality labels, but rather a complex mapping relationship between facial features and nationality. By comparing the user’s facial feature vector with the feature distribution of each category (i.e., different nationalities) in the training set, the model predicts the most likely corresponding nationality.

[0077] After building the above image analysis model, you can use the image analysis model to identify nationality.

[0078] First, facial feature extraction is performed, which includes key point detection: the image analysis model will locate and mark the key feature points in the facial image, such as the position of the eyes, nose, mouth, and facial contours. This step helps to standardize and align the facial image for subsequent analysis.

[0079] Feature vector extraction: Afterwards, through a series of convolutional and pooling layers, the model converts the entire face image into a high-dimensional feature vector, which contains comprehensive information such as the shape, structure, and texture of the face, and is the core representation of individual differences in the face. The high-dimensional feature vector is then analyzed based on the above image analysis model, and compared with the feature distribution of each category (i.e., different nationalities), so as to predict the most likely corresponding nationality as the above first identity information.

[0080] In one embodiment, the analyzing the voice information based on the voice recognition model to obtain the second identity information of the translation machine user includes:

[0081] The speech features of the speech information are extracted based on the speech recognition model, the speech features are analyzed, and the regional information of the user of the translation machine is predicted and obtained as the second identity information.

[0082] In this embodiment, it specifically includes:

[0083] Voice collection and preprocessing: First, the translation device collects the user's voice samples through a built-in high-quality microphone. The preprocessing stage includes noise reduction, dereverberation, voice segmentation, etc. to ensure that the extracted features are pure, accurate, and not affected by environmental factors.

[0084] Feature extraction: Using technologies such as Mel Frequency Cepstral Coefficient (MFCC), fundamental frequency (F0), spectral envelope, etc., key parameters reflecting the physical and linguistic characteristics of speech are extracted from the processed speech signal. These features include not only basic attributes such as pitch and intensity, but also more complex language features such as pronunciation habits, rhythm, and intonation changes.

[0085] Regional speech model: Build or use existing regional speech databases, which contain speech samples from people in different regions, and each sample is annotated with the approximate regional information of the speaker. The breadth and depth of the database directly affect the accuracy of the prediction.

[0086] Model training and classification: Based on the above features and regional labels, machine learning or deep learning models (such as support vector machines, random forests, deep neural networks, etc.) are used for training to learn the differences between speech features in different regions. The training process aims to establish a mapping model from speech features to regional information.

[0087] Region Identification: After the user's voice is feature extracted, the model will compare these features with the regional feature patterns obtained through training, and predict the region to which the user is most likely to belong through classification algorithms (such as nearest neighbor, maximum likelihood estimation, etc.). The regional information can be country, region, or even finer geographical divisions, depending on the refinement of the model and the richness of the training data.

[0088] In one embodiment, the fusing calculation of the first model parameter and the second model parameter to obtain the fused model parameter includes:

[0089] Obtaining weight values ​​corresponding to the first model parameter and the second model parameter respectively;

[0090] Based on the weight values ​​corresponding to the first model parameter and the second model parameter respectively, the first model parameter and the second model parameter are weightedly calculated, and the obtained weighted model parameters are used as the fusion model parameters.

[0091] In this embodiment, by allocating the contribution (i.e., weight value) of image and voice information, the advantages of the two are complemented to form a comprehensive model parameter that better represents the user's identity characteristics, thereby guiding the personalized update of the translation model and improving the quality of translation services and user experience. In this embodiment, the weight values ​​corresponding to the first model parameter and the second model parameter are preset values.

[0092] In one embodiment, after translating the conversation of the translation machine based on the updated translation model, the following steps are performed:

[0093] The translation machine saves the conversation content in the database;

[0094] Determine a corresponding target encryption algorithm based on the first identity information and the second identity information;

[0095] Based on the target encryption algorithm, encrypt the first identity information into a first character combination, and encrypt the second identity information into a second character combination;

[0096] Get the total duration of this call;

[0097] generating an identification code based on the first character combination, the second character combination and the total duration of the call;

[0098] The content of this call stored in the database is identified based on the identification code.

[0099] In this embodiment, it specifically includes:

[0100] Data archiving: First, the conversation content translated by the translator is recorded and saved in the database. This measure facilitates subsequent query, analysis or review, which is crucial for service quality monitoring, user feedback processing and continuous optimization of translation models.

[0101] Identity information identification and algorithm selection: Based on the first identity information and the second identity information, the corresponding security encryption algorithm is determined. This step takes into account that different users or groups may have different security requirements or preferences, and implements customized security measures.

[0102] Encryption processing: Using a certain target encryption algorithm, the first and second identity information are converted into a first character combination and a second character combination that are difficult to decipher. This process enhances user privacy protection, and even if the data is illegally accessed, the direct identity information will not be easily leaked.

[0103] Call duration record: records the total duration of the call. This information can be used for statistical analysis or as part of security identification.

[0104] Generate an identification code: Combine the encrypted first character combination, second character combination, and total call duration to generate a unique identification code. This identification code is a highly abstracted piece of information that contains both the basic information of the call and has high security due to the encryption process.

[0105] Database identification: Finally, use the generated identification code to mark the content of this call saved in the database. This means that when retrieving or accessing specific call records, instead of directly exposing the user's identity information, it is done through a secure identification code, further strengthening data management and privacy protection.

[0106] In summary, through a series of meticulous operations, this solution not only ensures the effective storage of translated call content to support service optimization and management, but also greatly enhances data security through encryption and anonymization processing, meeting the current strict requirements for personal privacy protection. In this way, both the needs of service functions are met and the privacy of user information is guaranteed.

[0107] In one embodiment, determining the corresponding target encryption algorithm based on the first identity information and the second identity information includes:

[0108] Convert the first identity information into pinyin characters, and obtain the total number of characters in the pinyin characters as the first quantity;

[0109] Convert the second identity information into a Chinese name, and obtain the total number of Chinese characters in the Chinese name as the second quantity;

[0110] Obtain a preset encryption algorithm matrix; wherein, the encryption algorithm matrix includes multiple rows and multiple columns, and different encryption algorithm names are added to each position of the encryption algorithm matrix;

[0111] Obtain the encryption algorithm corresponding to the encryption algorithm name at the position of the m-th row and the n-th column in the encryption algorithm matrix as the target encryption algorithm; wherein, m is the number corresponding to the first quantity, and n is the number corresponding to the second quantity.

[0112] In this embodiment, it specifically includes:

[0113] Count the conversion of the first identity information into pinyin characters: First, convert the first identity information (such as China) into its pinyin form, and then calculate the total number of all pinyin characters. For example, if the first identity information is "China", after conversion to pinyin, it is "Zhong guo", and the total number of characters is 8.

[0114] Convert the second identity information into a Chinese name and count the number of Chinese characters: Next, confirm the second identity information and keep it in the form of a Chinese name, and then count the total number of Chinese characters in it. If the second identity information is "Guangdong", the total number of Chinese characters is 2.

[0115] Build an encryption algorithm matrix: Design a preset encryption algorithm matrix, which consists of multiple rows and columns, and each cell represents a different encryption algorithm. For example, the first row and first column of the matrix can correspond to the AES encryption algorithm, the second row and first column corresponds to the RSA algorithm, and so on. The design of this matrix is ​​pre-configured, and the matrix contains a variety of efficient and widely recognized encryption algorithms, and each encryption algorithm has its fixed position.

[0116] Select encryption algorithm based on quantity: Use the first quantity (total number of pinyin characters) and the second quantity (total number of Chinese characters) obtained above as the row and column numbers of the matrix, i.e., m and n. If the first quantity is 8 and the second quantity is 2, then extract the encryption algorithm from the 8th row and 2nd column of the matrix as the target encryption algorithm. In this way, each selection is dynamic and unique, depending on the specific identity information characteristics of the participant.

[0117] In this embodiment, the above mechanism achieves a flexible and seemingly random encryption algorithm selection method by mapping simple statistical features of identity information to a specific position in an encryption algorithm matrix. The advantage of this method is that it can provide a personalized encryption scheme for each communication, and at the same time it does not directly depend on the specific content of the identity information, which increases the difficulty for attackers to predict or crack the encryption method. In addition, it can simplify management and configuration because the actual encryption algorithm selection logic is hidden under a relatively simple mathematical operation.

[0118] In one embodiment, the first character combination and the second character combination each include nine characters;

[0119] The generating an identification code based on the first character combination, the second character combination and the total duration of the call includes:

[0120] Create a blank data table with three rows and three columns, and add the characters in the first character combination to the blank data table one by one in sequence to obtain a first data table;

[0121] Adding the characters in the second character combination to the first data table one by one in sequence to obtain a second data table; wherein, in each cell of the second data table, the characters in the second character combination are located after the characters in the first character combination;

[0122] Obtain the number of minutes and seconds in the total duration of the call; wherein the number corresponding to the number of minutes is a first number, and the number corresponding to the number of seconds is a second number;

[0123] Taking the lower left corner of the second data table as the vertex, construct a first ray and a second ray respectively; wherein the angle between the first ray and the bottom of the second data table is a first angle, which is the same as the first number; the angle between the second ray and the bottom of the second data table is a second angle, which is the same as the second number;

[0124] In the second data table, characters in cells intersecting the first ray and the second ray are extracted and combined in sequence, and the obtained combined characters are used as the identification code.

[0125] In this embodiment, it specifically includes:

[0126] First, create a basic three-row and three-column blank data table. This data table will serve as the basic framework for subsequent processing.

[0127] Fill the first character combination: fill the characters in the first character combination into the blank data table one by one in order to form the first data table. For example, if the first character combination is "ABC123456", then these nine characters will be filled into the nine cells of the data table one by one.

[0128] Merge the second character combination: Then, add the characters of the second character combination to the first data table one by one in order, and the characters of the first character combination in each cell are followed by the corresponding characters of the second character combination. For example, if the second character combination is "1016DEF58", the characters in each cell of the second data table are: A1, B0, C1, 16, 2D, 3E, 4F, 55, 68.

[0129] Extract call duration information: Separate the minutes and seconds of the total call duration and mark them as the first digit and the second digit respectively. For example, if the call duration is 12 minutes and 49 seconds, then the first digit is 12 and the second digit is 49.

[0130] Construct rays and locate characters: Use the lower left corner of the second data table as the starting point, and construct two rays based on the first number and the second number. The first angle formed by the first ray and the bottom of the data table is equal to the angle corresponding to the first number (for example, if the first number is 12, the first angle is 12°). Similarly, the second angle between the second ray and the bottom is the angle corresponding to the second number (for example, if the second number is 49, the second angle is 49°).

[0131] Extracting identification code characters: Finally, according to the intersection points of the two rays and the data table cells, extract the characters in the cells where these intersection points are located, and combine them in the order of the cells to form the final identification code. The above intersection means that the above two rays intersect when they pass through the corresponding cells.

[0132] In summary, this scheme creatively combines character sequences and time information, uses geometric figures (the intersection of rays and tables) to select specific characters, and generates a unique identification code that is associated with the information of both parties and incorporates the duration of the call. This method not only enhances the personalization and security of the identification code, but also demonstrates a novel idea for information encoding.

[0133] Reference Figure 2 In one embodiment of the present invention, a translation device combining image analysis and speech recognition is provided, comprising:

[0134] A first acquisition unit is used to acquire a facial image of a user of the translation machine, and analyze the facial image based on an image analysis model to obtain first identity information of the user of the translation machine;

[0135] A second collecting unit is used to collect voice information of the translation machine user, analyze the voice information based on the speech recognition model, and obtain the second identity information of the translation machine user;

[0136] A matching unit, configured to match a corresponding first model parameter based on the first identity information; and to match a corresponding second model parameter based on the second identity information; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to model parameters of the same type;

[0137] A calculation unit, used for performing fusion calculation on the first model parameter and the second model parameter to obtain a fusion model parameter;

[0138] The translation unit is used to update the preset language translation model based on the fusion model parameters to obtain an updated translation model; and translate the conversation of the translation machine based on the updated translation model.

[0139] In this embodiment, for the specific implementation of each unit in the above device embodiment, please refer to the above method embodiment, which will not be repeated here.

[0140] Reference Figure 3 The present invention also provides a translation machine in an embodiment, the internal structure of the translation machine can be as follows Figure 3As shown. The translator includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the translator includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the translator is used to store the corresponding data in this embodiment. The network interface of the translator is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0141] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the translation machine to which the solution of the present invention is applied.

[0142] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0143] In summary, the translation method, device and translator combined with image analysis and speech recognition provided in the embodiment of the present invention include: collecting the facial image of the user of the translator, analyzing the facial image based on the image analysis model, and obtaining the first identity information of the user of the translator; collecting the voice information of the user of the translator, analyzing the voice information based on the speech recognition model, and obtaining the second identity information of the user of the translator; matching the corresponding first model parameter based on the first identity information; matching the corresponding second model parameter based on the second identity information; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to the model parameters of the same type; fusing the first model parameter and the second model parameter to obtain the fusion model parameter; updating the preset language translation model based on the fusion model parameter to obtain the updated translation model; translating the conversation of the translator based on the updated translation model. In the present invention, the comprehensive use of image analysis and speech recognition technology not only improves the accuracy of user identity recognition, but also customizes the translation model according to the user's identity information, thereby providing more accurate and personalized translation services, overcoming the defects of the current translation system that easily causes translation deviation and low accuracy.

[0144] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0145] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0146] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A translation method combining image analysis and speech recognition, characterized in that: The following steps are involved: Collecting a facial image of a user of the translation machine, and analyzing the facial image based on an image analysis model to obtain first identity information of the user of the translation machine; Collecting voice information of the translation machine user, analyzing the voice information based on a voice recognition model, and obtaining second identity information of the translation machine user; Based on the first identity information, matching the corresponding first model parameter; based on the second identity information, matching the corresponding second model parameter; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to model parameters of the same type; Performing fusion calculation on the first model parameter and the second model parameter to obtain fusion model parameters; Based on the fusion model parameters, updating the preset language translation model to obtain an updated translation model; translating the conversation of the translation machine based on the updated translation model; After translating the conversation of the translation machine based on the updated translation model, the method includes: The translation machine saves the conversation content in the database; Determine a corresponding target encryption algorithm based on the first identity information and the second identity information; Based on the target encryption algorithm, encrypt the first identity information into a first character combination, and encrypt the second identity information into a second character combination; Get the total duration of this call; generating an identification code based on the first character combination, the second character combination and the total duration of the call; Identify the content of the call stored in the database based on the identification code; The determining a corresponding target encryption algorithm based on the first identity information and the second identity information includes: Convert the first identity information into pinyin characters, and obtain the total number of characters in the pinyin characters as the first number; Convert the second identity information into a Chinese name, and obtain the total number of Chinese characters in the Chinese name as a second number; Obtaining a preset encryption algorithm matrix; wherein the encryption algorithm matrix includes multiple rows and columns, and a different encryption algorithm name is added to each position of the encryption algorithm matrix; Obtaining the encryption algorithm corresponding to the encryption algorithm name at the mth row and nth column position in the encryption algorithm matrix as the target encryption algorithm; wherein m is a number corresponding to the first quantity, and n is a number corresponding to the second quantity; The first character combination and the second character combination each include nine characters; The generating an identification code based on the first character combination, the second character combination and the total duration of the call includes: Create a blank data table with three rows and three columns, and add the characters in the first character combination to the blank data table one by one in sequence to obtain a first data table; Adding the characters in the second character combination to the first data table one by one in sequence to obtain a second data table; wherein, in each cell of the second data table, the characters in the second character combination are located after the characters in the first character combination; Obtain the number of minutes and seconds in the total duration of the call; wherein the number corresponding to the number of minutes is a first number, and the number corresponding to the number of seconds is a second number; Taking the lower left corner of the second data table as the vertex, construct a first ray and a second ray respectively; wherein the angle between the first ray and the bottom of the second data table is a first angle, which is the same as the first number; the angle between the second ray and the bottom of the second data table is a second angle, which is the same as the second number; In the second data table, characters in cells intersecting the first ray and the second ray are extracted and combined in sequence, and the obtained combined characters are used as the identification code.

2. The translation method combining image analysis and speech recognition according to claim 1, characterized in that: The analyzing the face image based on the image analysis model to obtain the first identity information of the translation machine user includes: The facial features of the facial image are extracted based on the image analysis model, the facial features are analyzed, and the nationality information of the user of the translation machine is predicted and obtained as the first identity information.

3. The translation method combining image analysis and speech recognition according to claim 1, characterized in that: The step of analyzing the voice information based on the voice recognition model to obtain the second identity information of the translation machine user includes: The speech features of the speech information are extracted based on the speech recognition model, the speech features are analyzed, and the regional information of the user of the translation machine is predicted and obtained as the second identity information.

4. The translation method combining image analysis and speech recognition according to claim 1, characterized in that: The fusing and calculating the first model parameter and the second model parameter to obtain the fused model parameter includes: Obtaining weight values ​​corresponding to the first model parameter and the second model parameter respectively; Based on the weight values ​​corresponding to the first model parameter and the second model parameter respectively, the first model parameter and the second model parameter are weightedly calculated, and the obtained weighted model parameters are used as the fusion model parameters.

5. A translation device combining image analysis and speech recognition, characterized in that: include: A first acquisition unit is used to acquire a facial image of a user of the translation machine, and analyze the facial image based on an image analysis model to obtain first identity information of the user of the translation machine; A second collecting unit is used to collect voice information of the translation machine user, analyze the voice information based on the speech recognition model, and obtain the second identity information of the translation machine user; A matching unit, configured to match corresponding first model parameters based on the first identity information; Based on the second identity information, matching a corresponding second model parameter; wherein the first model parameter and the second model parameter are different parameter values ​​corresponding to model parameters of the same type; A calculation unit, used for performing fusion calculation on the first model parameter and the second model parameter to obtain a fusion model parameter; A translation unit, configured to update a preset language translation model based on the fusion model parameters to obtain an updated translation model; and translate the conversation of the translation machine based on the updated translation model; After translating the conversation of the translation machine based on the updated translation model, the method includes: The translation machine saves the conversation content in the database; Determine a corresponding target encryption algorithm based on the first identity information and the second identity information; Based on the target encryption algorithm, encrypt the first identity information into a first character combination, and encrypt the second identity information into a second character combination; Get the total duration of this call; generating an identification code based on the first character combination, the second character combination and the total duration of the call; Identify the content of the call stored in the database based on the identification code; The determining a corresponding target encryption algorithm based on the first identity information and the second identity information includes: Convert the first identity information into pinyin characters, and obtain the total number of characters in the pinyin characters as the first number; Convert the second identity information into a Chinese name, and obtain the total number of Chinese characters in the Chinese name as a second number; Obtaining a preset encryption algorithm matrix; wherein the encryption algorithm matrix includes multiple rows and columns, and a different encryption algorithm name is added to each position of the encryption algorithm matrix; Obtaining the encryption algorithm corresponding to the encryption algorithm name at the mth row and nth column position in the encryption algorithm matrix as the target encryption algorithm; wherein m is a number corresponding to the first quantity, and n is a number corresponding to the second quantity; The first character combination and the second character combination each include nine characters; The generating an identification code based on the first character combination, the second character combination and the total duration of the call includes: Create a blank data table with three rows and three columns, and add the characters in the first character combination to the blank data table one by one in sequence to obtain a first data table; Adding the characters in the second character combination to the first data table one by one in sequence to obtain a second data table; wherein, in each cell of the second data table, the characters in the second character combination are located after the characters in the first character combination; Obtain the number of minutes and seconds in the total duration of the call; wherein the number corresponding to the number of minutes is a first number, and the number corresponding to the number of seconds is a second number; Taking the lower left corner of the second data table as the vertex, construct a first ray and a second ray respectively; wherein the angle between the first ray and the bottom of the second data table is a first angle, which is the same as the first number; the angle between the second ray and the bottom of the second data table is a second angle, which is the same as the second number; In the second data table, characters in cells intersecting the first ray and the second ray are extracted and combined in sequence, and the obtained combined characters are used as the identification code.

6. A translation machine, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Translation method and device, medium and near-to-eye display equipment

    CN112764549A

  • Translation system and method based on face recognition

    CN112949323A