Information push method, device, computer equipment and storage medium

By extracting features of the target image and generating description information, combined with the part-of-speech and masked part-of-speech in the image description information, partial information is pushed to guide users to learn, which solves the problem of low learning efficiency in the existing way of viewing pictures and writing words, and improves information Utilization and learning efficiency.

CN112115294BActive Publication Date: 2024-09-10BEIJING LEXUEBANG NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202011046500.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-29
Publication Date
2024-09-10
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

The existing way of looking at pictures and writing words relies on students' independent learning ability, resulting in low learning efficiency and poor effective utilization. Especially for students with insufficient independent learning ability, they cannot fully utilize the knowledge in image description information.

Method used

By obtaining the target image, performing feature extraction processing, generating image description information, and based on the part-of-speech and preset masked part-of-speech of multiple characters in the image description information, the target push information is generated to be pushed to the user, so that the user needs to think about completing the information , thereby improving learning efficiency.

Benefits of technology

It improves users' effective utilization of push information, reduces the waste of push resources and user learning costs, and enhances learning efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112115294B
    Figure CN112115294B
Patent Text Reader

Abstract

The present disclosure provides an information push method, device, computer equipment and storage medium, wherein the method comprises: acquiring a target image; based on the target image, obtaining image description information of the target image, and determining the parts of speech corresponding to a plurality of characters in the image description information; based on the image description information, the parts of speech corresponding to the plurality of characters, and the preset target masked parts of speech, generating target push information; and pushing the target push information to a user terminal. The embodiment of the present disclosure can guide students to think in a targeted manner by pushing image description information masking characters of specific parts of speech to users, thereby improving the effective utilization rate of push information, improving learning efficiency, and thus reducing learning time costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of deep learning technology, and more specifically, to an information push method, apparatus, computer equipment, and storage medium. Background Art

[0002] At present, there are two main ways for students (or trainees) to improve their ability to write stories based on pictures;

[0003] The first method is to rely on the teaching and supervision of teachers (or instructors), combined with long-term practice and repetition; the second method is to learn and memorize a large number of pictures and reference answers in the tutoring materials. No matter which method is used, it depends on the students' independent learning ability, but the learning ability and learning foundation of different students are different, so the existing methods still have the problems of low efficiency and poor effect. Summary of the invention

[0004] The embodiments of the present disclosure at least provide an information push method, apparatus, computer equipment, and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides an information push method, including:

[0006] Get the target image;

[0007] Based on the target image, obtaining image description information of the target image, and determining parts of speech corresponding to a plurality of characters in the image description information;

[0008] Generate target push information based on the image description information, the parts of speech corresponding to the multiple characters, and a preset target masked part of speech;

[0009] Push the target push information to the user terminal.

[0010] In an optional implementation, the generating the target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and the preset target masked part of speech includes:

[0011] Determining a target character from the plurality of characters based on the parts of speech corresponding to the plurality of characters respectively and the preset target masked part of speech;

[0012] The target push information is generated based on other characters among the multiple characters except the target character.

[0013] In an optional implementation manner, obtaining image description information of the target image and parts of speech corresponding to a plurality of characters in the image description information based on the target image includes:

[0014] Performing feature extraction processing on the target image to obtain feature data of the target image;

[0015] Based on the feature data, image description information of the target image is generated, and the part of speech corresponding to each of the multiple characters included in the image description information is determined.

[0016] In an optional implementation manner, the performing feature extraction processing on the target image to obtain feature data of the target image includes:

[0017] Using a pre-trained feature extraction network, feature extraction processing is performed on the target image to obtain feature data of the target image.

[0018] In an optional implementation, the feature extraction network includes at least one of a residual neural network and a convolutional neural network.

[0019] In an optional implementation, generating image description information of the target image based on the feature data includes:

[0020] The pre-trained semantic prediction network is used to perform semantic prediction processing on the feature data to obtain image description information of the target image.

[0021] In an optional implementation, training a semantic prediction network includes:

[0022] Acquire sample feature data and sample image description information respectively corresponding to a plurality of sample images; the sample image description information includes a plurality of sample characters;

[0023] Based on the sample feature data and the plurality of sample characters, a sample feature vector sequence is formed; the sample feature vector sequence includes a first sample feature vector formed based on the sample feature data and a second sample feature vector formed by word vectors corresponding to the plurality of sample characters respectively;

[0024] Inputting the sample feature vector sequence into a neural network to be trained to obtain predicted image description information; the predicted image description information includes a plurality of predicted characters;

[0025] The predicted image description information and the sample image description information are used to train the neural network to obtain the semantic prediction network.

[0026] In an optional implementation, inputting the sample feature vector sequence into a neural network to be trained to obtain predicted image description information includes:

[0027] Using the neural network to be trained to perform feature learning on the first sample feature vector to obtain a sample intermediate feature vector corresponding to the first sample feature vector;

[0028] and taking each second sample feature vector in the sample feature vector sequence as the current sample feature vector in turn, and using the neural network to be trained to perform feature learning on the current sample feature vector and the sample intermediate feature vector corresponding to the previous sample feature vector of the current sample feature vector, to obtain a predicted word vector corresponding to the current sample feature vector;

[0029] The sample intermediate feature vector corresponding to the previous sample feature vector is a feature vector output by a target network layer in the neural network when the neural network to be trained is used to perform feature learning on the previous sample feature vector;

[0030] Based on the predicted character vector corresponding to the current sample feature vector, obtaining the sample predicted character corresponding to the current sample feature vector;

[0031] The predicted image description information is formed based on the sample predicted characters respectively corresponding to the plurality of sample feature vectors.

[0032] In an optional implementation, a pre-trained semantic prediction network is used to perform semantic prediction processing on the feature data to obtain image description information of the target image, including:

[0033] Inputting the feature data into the semantic prediction network to obtain first prediction result data corresponding to the feature data, and obtaining a first intermediate feature vector output by a target network layer of the semantic prediction network;

[0034] Input the first prediction result data and the first intermediate feature data as current input data into the semantic prediction network, obtain second prediction result data corresponding to the current input data, and obtain a second intermediate feature vector output by a target network layer of the semantic prediction network;

[0035] Based on the second prediction result data, obtaining a predicted character corresponding to the current input data;

[0036] The second prediction result data and the second intermediate feature vector are used as new current input data, and the process returns to the step of inputting the current input data into the semantic prediction network until a preset iteration stop condition is met.

[0037] In an optional implementation, the iteration stop condition includes:

[0038] The predicted character corresponding to the current input data is a preset character.

[0039] In an optional implementation manner, determining the part of speech corresponding to each of the multiple characters included in the image description information includes:

[0040] Based on the second intermediate feature vectors respectively outputted by the target network layer of the semantic prediction network in multiple iterations, a feature vector sequence is formed;

[0041] The pre-trained probabilistic graphical model is used to predict the part of speech of the character represented by each second intermediate feature vector in the feature vector sequence, so as to obtain the part of speech corresponding to the character represented by each second intermediate feature vector in the feature vector sequence.

[0042] In a second aspect, the present disclosure also provides an information push device, including:

[0043] An acquisition module, used for acquiring a target image;

[0044] A determination module, configured to obtain image description information of the target image based on the target image, and determine the parts of speech corresponding to a plurality of characters in the image description information;

[0045] A generating module, configured to generate target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and a preset target masked part of speech;

[0046] The push module is used to push the target push information to the user end.

[0047] In an optional implementation, when the generating module generates the target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and the preset target masked part of speech, it is configured to:

[0048] Determining a target character from the plurality of characters based on the parts of speech corresponding to the plurality of characters respectively and the preset target masked part of speech;

[0049] The target push information is generated based on other characters among the multiple characters except the target character.

[0050] In an optional implementation, when the determination module obtains the image description information of the target image and the parts of speech corresponding to the plurality of characters in the image description information based on the target image, it is configured to:

[0051] Performing feature extraction processing on the target image to obtain feature data of the target image;

[0052] Based on the feature data, image description information of the target image is generated, and the part of speech corresponding to each of the multiple characters included in the image description information is determined.

[0053] In an optional implementation, when the determination module performs feature extraction processing on the target image to obtain feature data of the target image, it is used to:

[0054] Using a pre-trained feature extraction network, feature extraction processing is performed on the target image to obtain feature data of the target image.

[0055] In an optional embodiment, the feature extraction network includes at least one of a residual neural network and a convolutional neural network.

[0056] In an optional implementation, when the determination module generates the image description information of the target image based on the feature data, it is configured to:

[0057] The pre-trained semantic prediction network is used to perform semantic prediction processing on the feature data to obtain image description information of the target image.

[0058] In an optional implementation, the determination module is used to:

[0059] Acquire sample feature data and sample image description information respectively corresponding to a plurality of sample images; the sample image description information includes a plurality of sample characters;

[0060] Based on the sample feature data and the plurality of sample characters, a sample feature vector sequence is formed; the sample feature vector sequence includes a first sample feature vector formed based on the sample feature data and a second sample feature vector formed by word vectors corresponding to the plurality of sample characters respectively;

[0061] Inputting the sample feature vector sequence into a neural network to be trained to obtain predicted image description information; the predicted image description information includes a plurality of predicted characters;

[0062] The predicted image description information and the sample image description information are used to train the neural network to obtain the semantic prediction network.

[0063] In an optional implementation, when the determination module inputs the sample feature vector sequence into the neural network to be trained to obtain the predicted image description information, it is used to:

[0064] Using the neural network to be trained to perform feature learning on the first sample feature vector to obtain a sample intermediate feature vector corresponding to the first sample feature vector;

[0065] and taking each second sample feature vector in the sample feature vector sequence as the current sample feature vector in turn, and using the neural network to be trained to perform feature learning on the current sample feature vector and the sample intermediate feature vector corresponding to the previous sample feature vector of the current sample feature vector, to obtain a predicted word vector corresponding to the current sample feature vector;

[0066] The sample intermediate feature vector corresponding to the previous sample feature vector is a feature vector output by a target network layer in the neural network when the neural network to be trained is used to perform feature learning on the previous sample feature vector;

[0067] Based on the predicted character vector corresponding to the current sample feature vector, obtaining the sample predicted character corresponding to the current sample feature vector;

[0068] The predicted image description information is formed based on the sample predicted characters respectively corresponding to the plurality of sample feature vectors.

[0069] In an optional implementation, when the determination module uses a pre-trained semantic prediction network to perform semantic prediction processing on the feature data to obtain image description information of the target image, it is used to:

[0070] Inputting the feature data into the semantic prediction network to obtain first prediction result data corresponding to the feature data, and obtaining a first intermediate feature vector output by a target network layer of the semantic prediction network;

[0071] Input the first prediction result data and the first intermediate feature data as current input data into the semantic prediction network, obtain second prediction result data corresponding to the current input data, and obtain a second intermediate feature vector output by a target network layer of the semantic prediction network;

[0072] Based on the second prediction result data, obtaining a predicted character corresponding to the current input data;

[0073] The second prediction result data and the second intermediate feature vector are used as new current input data, and the process returns to the step of inputting the current input data into the semantic prediction network until a preset iteration stop condition is met.

[0074] In an optional implementation, the iteration stop condition includes:

[0075] The predicted character corresponding to the current input data is a preset character.

[0076] In an optional implementation, when determining the part of speech corresponding to each of the multiple characters included in the image description information, the determination module is used to:

[0077] Based on the second intermediate feature vectors respectively outputted by the target network layer of the semantic prediction network in multiple iterations, a feature vector sequence is formed;

[0078] The pre-trained probabilistic graphical model is used to predict the part of speech of the character represented by each second intermediate feature vector in the feature vector sequence, so as to obtain the part of speech corresponding to the character represented by each second intermediate feature vector in the feature vector sequence.

[0079] In a third aspect, an optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.

[0080] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.

[0081] For a description of the effects of the above-mentioned information push device, computer equipment, and computer-readable storage medium, please refer to the description of the above-mentioned information push method, which will not be repeated here.

[0082] An information push method, apparatus, computer device and storage medium provided by the embodiments of the present disclosure generate target push information to be pushed to a user terminal by using multiple characters in image description information generated based on a target image, parts of speech corresponding to the multiple characters, and preset target masked parts of speech. Therefore, the push information seen by the user is not complete image description information, but information that needs to be completed after a certain amount of thinking, thereby guiding the user to learn the knowledge contained in the image description information, thereby improving the user's effective utilization of the target push information and thus improving learning efficiency.

[0083] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0084] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0085] Figure 1 A flow chart of an information push method provided by an embodiment of the present disclosure is shown;

[0086] Figure 2 A flowchart showing a specific method for obtaining image description information of a target image and parts of speech corresponding to a plurality of characters in the image description information based on a target image in the information push method provided by an embodiment of the present disclosure;

[0087] Figure 3 A flowchart of a method for training a semantic prediction network provided by an embodiment of the present disclosure is shown;

[0088] Figure 4 A flowchart of a method for obtaining predicted image description information by inputting a sample feature vector sequence into a neural network to be trained is shown in an embodiment of the present disclosure;

[0089] Figure 5 A flowchart showing a specific example of training a sample image using a neural network to be trained provided in an embodiment of the present disclosure;

[0090] Figure 6 A flowchart of a specific method provided by an embodiment of the present disclosure for performing semantic prediction processing on feature data using a pre-trained semantic prediction network to obtain image description information of the target image is shown;

[0091] Figure 7 A flowchart showing a specific example of using a trained neural network to perform semantic prediction processing on a target image provided by an embodiment of the present disclosure;

[0092] Figure 8 A flowchart showing a specific method for determining the part of speech corresponding to each of the multiple characters included in the image description information provided by an embodiment of the present disclosure is shown;

[0093] Fig. 9 A schematic diagram of an information push device provided by an embodiment of the present disclosure is shown;

[0094] Fig.10A schematic diagram of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0095] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0096] Research has found that students usually use picture-based writing to improve their language control and logical thinking abilities during writing training. At present, for images that students need to complete picture-based writing tasks, the Image Caption Generation (ICG) method can be used to obtain the description information corresponding to the image, and the description information can be pushed to the students. Students can learn how to describe images from the description information and improve their language expression ability; this method requires students to actively learn how to describe images, organize and express language, etc. from the description information, that is, it needs to rely on the students' autonomous learning ability; but for many students, their own autonomous learning ability is insufficient, and they cannot independently learn a lot of knowledge contained in the description information from the description information, that is, they cannot make full use of the description information, resulting in the problem of low effective utilization of the description information, which is easy to waste push resources and user learning costs.

[0097] Based on the above research, the present disclosure provides an information push method, apparatus, computer equipment and storage medium, which generates push information to the user end by generating multiple characters in the image description information based on the target image, the parts of speech corresponding to the multiple characters, and the preset target masked parts of speech. Therefore, the push information seen by the user is not the complete image description information, but the information that needs to be completed after a certain amount of thinking, and then the user can be guided to learn the knowledge contained in the image description information, so as to improve the effective utilization rate of the user's push information and thus improve the learning efficiency.

[0098] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0099] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0100] To facilitate understanding of the present embodiment, a method for pushing information disclosed in the present embodiment is first introduced in detail. The execution subject of the method for pushing information provided in the present embodiment is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device may be a user equipment (UE), a mobile device, a user terminal, a terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the method for pushing information may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0101] The information push method provided by the embodiment of the present disclosure is described below.

[0102] See also Figure 1 FIG. 1 is a flowchart of an information push method provided by an embodiment of the present disclosure, and the method includes steps S101 to S104, wherein:

[0103] S101: Acquire a target image;

[0104] S102: Based on the target image, obtain image description information of the target image, and determine the parts of speech corresponding to the plurality of characters in the image description information;

[0105] S103: Generate target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and the preset target masked parts of speech;

[0106] S104: Push target push information to the user terminal.

[0107] The disclosed embodiment performs feature extraction processing on the acquired target image to obtain feature data of the target image; generates image description information of the target image based on the image feature data of the target image; determines the part of speech corresponding to each of the multiple characters in the image description information, and processes the multiple characters in the image description information using the preset target masked part of speech to generate target push information that is pushed to the user end. This method can push image description information that masks specific part-of-speech characters to users, thereby being able to guide students to think in a targeted manner, thereby improving the effective utilization rate of push information and reducing the waste of push resources and user learning costs.

[0108] The above-mentioned S101 to S104 are described in detail below.

[0109] For the above S101, the target image may include, for example, a preset image that is acquired and determined in advance; when the user uses the user terminal to study, at least one preset image is pushed to the user terminal and displayed to the user; the user may determine any one of the at least one preset image as the target image, or use all preset images pushed to the user terminal as target images.

[0110] Alternatively, the target image may also be an image obtained by the user through image acquisition of any scene, for example, a photo taken by the user through his / her mobile phone camera, or a picture downloaded from a website, etc., without any limitation.

[0111] The target image includes at least one target object. For example, a user can obtain a target image by photographing a walking pedestrian. In this target image, the target objects include: the walking person and the road on which the person is walking. For another example, the target object can also be other objects, such as scenery, animals, and the like.

[0112] With respect to the above S102, when obtaining image description information based on the target image, in the case where the target image is a preset image, the image description information corresponding to each preset image can be pre-set, and its image description information and the preset image can be stored in association with each other; after the target image is determined from the preset images, the image description information stored in association with the target image can be obtained based on the associated storage relationship.

[0113] Exemplarily, the image description information of the target image includes a description of an objective object in the target image. Exemplarily, when the target image shows a pedestrian walking, the corresponding description information may include "a person walking on the road".

[0114] In a possible implementation, the description information of the target image is not limited to a language, such as Chinese, English, Japanese, Korean or other languages, or a combination of multiple languages. For example, when the target image shows butterflies flying in the sky, the corresponding description information may include "the butterflies flying in the sky".

[0115] In addition, no matter how the target image is obtained, the image description information of the target image can be obtained by processing the target image.

[0116] For example, see Figure 2 As shown, the embodiment of the present disclosure also provides a specific method for obtaining image description information of a target image and parts of speech corresponding to multiple characters in the image description information based on the target image, including:

[0117] S201: Perform feature extraction processing on the target image to obtain feature data of the target image;

[0118] S202: Generate image description information of the target image based on the feature data, and determine the part of speech corresponding to each of the multiple characters included in the image description information.

[0119] In a specific implementation, when performing feature extraction processing on a target image, for example, a pre-trained feature extraction network can be used to perform feature extraction processing on the target image to obtain feature data of the target image. The feature extraction network, for example, includes at least one of the following: Convolutional Neural Networks (CNN) and Residual Neural Networks (ResNet).

[0120] The semantic prediction network includes at least one of the following: a Hidden Markov Model (HMM), a Maximum Entropy Markov Model (MEMM), and a Conditional Random Field (CRF).

[0121] When generating image description information of a target image based on feature data, for example, a pre-trained semantic prediction network may be used to perform semantic prediction processing on the feature data to obtain image description information of the target image.

[0122] Here, see Figure 3 As shown, the embodiment of the present disclosure also provides a method for training a semantic prediction network, including:

[0123] S301: Acquire sample feature data corresponding to a plurality of sample images and sample image description information; the sample image description information includes a plurality of sample characters.

[0124] Wherein, each sample image in the plurality of sample images includes at least one objective object. Using the feature extraction network, feature extraction can be performed on each sample image in the plurality of sample images to obtain feature data corresponding to each sample image in the plurality of sample images.

[0125] Here, the feature extraction network can be pre-trained or jointly trained with the semantic prediction network.

[0126] After obtaining multiple sample images, sample annotation processing can be performed on each sample image to obtain sample image description information of each sample image in the multiple sample images. The sample image description information includes a description of the objective object in the sample image. Taking one sample image among multiple sample images as an example, when the sample image describes a small ball placed on the table, the sample image description information may include "a small ball is placed on the table". At this time, the sample description information includes 9 sample characters.

[0127] S302: constructing a sample feature vector sequence based on the sample feature data and a plurality of sample characters; the sample feature vector sequence includes a first sample feature vector constructed based on the sample feature data and a second sample feature vector constructed by word vectors corresponding to the plurality of sample characters.

[0128] Here, when determining the first sample feature vector based on the sample feature data of the sample image, the sample feature data may be directly used as the first sample feature vector.

[0129] At this time, the first sample feature vector is used to characterize the features of the sample image, and inputting the first sample feature vector into the semantic prediction network to be trained is conducive to enabling the semantic prediction network to be trained to learn the features of the sample image during training.

[0130] When generating the second sample feature vector based on each sample character, firstly, the multiple characters are converted into one-hot vectors respectively, and then the one-hot vector corresponding to each character in the multiple characters is converted into a vector with dimension K by using a preset conversion matrix, and the vector with dimension K is used as the word vector corresponding to the character. Then, according to the character order of the multiple characters, the word vectors corresponding to the multiple characters are used as the second sample feature vector in the feature vector sequence.

[0131] At this time, the order of the second sample feature vector in the feature vector sequence is consistent with the arrangement order of the plurality of sample characters in the image description information. The first sample feature vector and the second sample feature vector have the same dimension.

[0132] For example, for a sample image that describes a small ball placed on a table, when the corresponding description information is "a small ball is placed on the table", the corresponding multiple sample characters are arranged in the order of the characters in the description information, that is, in the order of "on", "table", "on", "put", "with", "one", "one", "small", and "ball", for a total of 9 sample characters. The 9 sample characters can determine the corresponding 9 word vectors, which are S1 to S9 respectively; the first sample feature vector composed of the sample feature data of the sample image is S0, and the generated sample feature vector sequence is: S0, S1 to S9.

[0133] S303: Input the sample feature vector sequence into the neural network to be trained to obtain predicted image description information; the predicted image description information includes multiple predicted characters.

[0134] Exemplarily, the neural network to be trained includes, for example, at least one of a Recurrent Neural Network (RNN), a Long Short-Term Memory (LSTM), and a Gated Recurrent Unit (GRU).

[0135] See Figure 4 As shown, an embodiment of the present disclosure provides a method for obtaining predicted image description information by inputting a sample feature vector sequence into a neural network to be trained, including:

[0136] S401: Use the neural network to be trained to perform feature learning on the first sample feature vector to obtain a sample intermediate feature vector corresponding to the first sample feature vector.

[0137] S402: Sequentially use each second sample feature vector in the sample feature vector sequence as the current sample feature vector, and use the neural network to be trained to perform feature learning on the current sample feature vector and the sample intermediate feature vector corresponding to the previous sample feature vector of the current sample feature vector to obtain a predicted word vector corresponding to the current sample feature vector.

[0138] Wherein, the sample intermediate feature vector corresponding to the previous sample feature vector is the feature vector output by the target network layer in the neural network when using the neural network to be trained to perform feature learning on the previous sample feature vector.

[0139] Here, by using the neural network to be trained to perform feature learning on the current sample feature vector and the sample intermediate feature vector corresponding to the previous sample feature vector of the current sample feature vector, a predicted word vector corresponding to the current sample feature vector can be obtained.

[0140] After the neural network to be trained completes the learning of the current sample feature vector, the next second sample feature vector in the sample feature vector sequence is used as the current sample feature vector. Exemplarily, in the case where the sample description information includes "There is a small ball on the table", if the current sample feature vector is the second sample feature vector corresponding to the sample character "There", then after performing feature learning on the second sample feature vector corresponding to "There", the sample character "table" is used as the new current sample feature vector.

[0141] S403: Based on the predicted word vector corresponding to the current sample feature vector, obtain a sample predicted character corresponding to the current sample feature vector.

[0142] In the specific implementation, see Figure 5 As shown, the embodiment of the present disclosure also provides a specific example of training a sample image using a neural network to be trained. In this example, it is assumed that the sample feature data of the sample image is S0; the sample image description information includes N characters, namely E1 to EN; E1 to EN are respectively vectorized to obtain N word vectors S1 to SN; a sample feature vector sequence is formed based on the sample feature data S0 and S1 to SN; the obtained feature vector sequence includes a first sample feature vector S0, and N second sample feature vectors S1 to SN.

[0143] First, the first sample feature vector S0 is input into the neural network to be trained, so that the neural network to be trained learns the features of the sample image included in the first sample feature vector S0 during processing the first sample feature vector S0, and outputs the sample intermediate feature vector T0.

[0144] Then the sample intermediate feature vector T0 and the first second sample feature vector S1 are input to the neural network to be trained. Since the sample intermediate feature vector T0 also contains image features, the predicted word vector M1 output by the neural network to be trained based on the sample intermediate feature vector T0 and the second sample feature vector S1 is affected by both the first character in the sample description information and the features of the sample image. In addition to learning the image features and the features of the sample description information, the neural network to be trained can also learn the association between the sample image and the first character in the sample description information. At this time, the neural network to be trained also outputs the sample intermediate feature vector T1 corresponding to the second sample feature vector S1.

[0145] Then, the sample intermediate feature vector T1 and the second sample feature vector S2 are input into the neural network to be trained. Since the sample intermediate feature vector T1 contains both the image features and the features of the first character in the sample description information, the predicted word vector M2 output by the neural network to be trained based on the sample intermediate feature vector T2 and the second sample feature vector S2 is affected by both the features of the sample image and the first and second characters in the sample description information, thereby enabling the neural network to be trained to learn the association between the second character and the first character, as well as the association between the second character and the sample image.

[0146] …

[0147] In this way, according to the above process, the third to the Nth second sample feature vectors S3 to SN are sequentially input into the neural network to be trained, so that the neural network to be trained can learn the features of the sample image, the features of N characters, the association relationship between the sample image and N characters, and the association relationship between N characters.

[0148] The N predicted character vectors are subjected to character conversion to obtain N predicted characters W1 to WN, and the N predicted characters constitute the predicted image description information.

[0149] Exemplarily, when the sample image Q shows a small ball placed on a table, first, the first sample feature vector S0 corresponding to the sample image is input into the neural network to be trained, and the sample intermediate feature vector T0 is obtained.

[0150] In the case where the description information corresponding to the sample image Q includes "a small ball is placed on the table", first, the second sample feature vector S1 corresponding to the sample character "in" is used as the current sample feature vector. At this time, the previous sample feature vector of the current sample feature vector is the first sample feature vector S0; and the second sample feature vector S1 and the sample intermediate feature vector T0 are input into the neural network to be trained, the sample intermediate feature vector T1 is obtained, and the sample predicted character W1 corresponding to the second sample feature vector S1 is obtained;

[0151] Then, the second sample feature vector S2 corresponding to the sample character "table" is used as the current sample feature vector. At this time, the previous sample feature vector of the current sample feature vector is the second sample feature vector S1; and the second sample feature vector S2 and the sample intermediate feature vector T1 are input into the neural network to be trained, the sample intermediate feature vector T2 is obtained, and the sample predicted character W2 corresponding to the second sample feature vector S2 is obtained;

[0152] ……

[0153] The second sample feature vector S9 corresponding to the sample character "ball" is used as the current sample feature vector. At this time, the previous sample feature vector of the current sample feature vector is the second sample feature vector S8; and the second sample feature vector S8 and the sample intermediate feature vector T8 corresponding to the second sample feature vector are input into the neural network to be trained, the sample intermediate feature vector T9 is obtained, and the sample predicted character W9 corresponding to the second sample feature vector S1 is obtained;

[0154] Furthermore, the sample predicted characters in the predicted image description information are sequentially: W1 to W9.

[0155] Continuing from S303 above, the method for training a semantic prediction network provided by the embodiments of the present disclosure further includes:

[0156] S304: Using the predicted image description information and the sample image description information, the neural network to be trained is trained to obtain a semantic prediction network.

[0157] In a specific implementation, when using the predicted image description information and the sample image description information to train the neural network to be trained, for example, the image description information and the sample image description information can be predicted to obtain the prediction loss. Based on the prediction loss, the neural network can be optimized so that the sample image description information and the predicted image description information generated by the optimized neural network for the sample image tend to be more consistent. The specific optimization process is not repeated here.

[0158] After the semantic prediction network is obtained, the semantic prediction network can be used to perform semantic prediction processing on the feature data of the target image to obtain image description information of the target image.

[0159] See also Figure 6 As shown, the embodiment of the present disclosure provides a specific method for obtaining image description information of a target image by performing semantic prediction processing on feature data using a pre-trained semantic prediction network, including:

[0160] S601: Inputting feature data into a semantic prediction network to obtain first prediction result data corresponding to the feature data, and obtaining a first intermediate feature vector output by a target network layer of the semantic prediction network;

[0161] S602: input the first prediction result data and the first intermediate feature data as current input data into the semantic prediction network, obtain second prediction result data corresponding to the current input data, and obtain a second intermediate feature vector output by the target network layer of the semantic prediction network;

[0162] S603: Obtaining a predicted character corresponding to the current input data based on the second prediction result data;

[0163] S604: Use the second prediction result data and the second intermediate feature vector as new current input data, and return to the step of inputting the current input data into the semantic prediction network until a preset iteration stop condition is met.

[0164] For example, see Figure 7 As shown, the embodiment of the present disclosure also provides a specific example of using a trained neural network to perform semantic prediction processing on a target image. In this example, it is assumed that the feature data obtained after the feature extraction processing of the target image using the feature extraction network is S0';

[0165] The feature data S0' is input into the semantic prediction network to obtain the first prediction result data S1' corresponding to the feature data and the first intermediate feature vector T0' output by the target network layer of the semantic prediction network.

[0166] The first prediction result data S1' and the first intermediate feature vector T0' are used as current input data and input into the semantic prediction network to obtain the second prediction result data S2' and the second intermediate feature vector T1'; the second prediction result data S2' is the word vector M1' corresponding to the first predicted character; based on the second prediction result data S2', the predicted character W1' corresponding to the current input data is obtained;

[0167] The second prediction result data S2' and the second intermediate feature vector T1' are used as new current input data and input into the semantic prediction network to obtain the second prediction result data S3' and the second intermediate feature vector T2'; the second prediction result data S3' is the word vector M2' corresponding to the second predicted character; based on the second prediction result data S3', the predicted character W2' corresponding to the current input data is obtained;

[0168] …

[0169] Until the iteration stop condition is met.

[0170] Here, the iteration stop condition includes: the predicted character corresponding to the current input data is a preset character. Exemplarily, the preset character may include a preset stop character, and the stop character includes, for example, a punctuation mark or a preset text.

[0171] Through the above process, the image description information of the target image can be obtained based on the pre-trained semantic prediction network.

[0172] See also Figure 8 As shown, the embodiment of the present disclosure also provides a specific method for determining the part of speech corresponding to each of the multiple characters included in the image description information, including:

[0173] S801: constructing a feature vector sequence based on second intermediate feature vectors outputted by the target network layer of the semantic prediction network in multiple iterations;

[0174] S802: Using a pre-trained probabilistic graphical model, predict the part of speech of the character represented by each second intermediate feature vector in the feature vector sequence to obtain the part of speech corresponding to the character represented by each second intermediate feature vector in the feature vector sequence.

[0175] The method for determining the second intermediate eigenvector can refer to the above Figure 5 The corresponding embodiments are shown and will not be described in detail here.

[0176] The pre-trained probabilistic graph model includes at least one of the following: Bayesian Network (BN), Markov Random Field (MRF), hidden Markov random field, conditional random field (CRF), etc. Using the pre-trained probabilistic graph model, the part-of-speech of the characters represented by each second intermediate feature vector in the feature vector sequence can be predicted.

[0177] Exemplarily, when the target image is a pedestrian photographed by a user, the characters represented by each second intermediate feature vector in the feature vector sequence may include "one", "a", "person", "on", "road", "on", "walk", and "go". When the pre-trained probabilistic graph model is displayed in the form of "character - part-of-speech", the part-of-speech results corresponding to the characters represented by each second intermediate feature vector can be determined as follows: one - numeral, a - classifier, person - noun, on - preposition, road - noun, on - preposition, walk - verb, go - verb.

[0178] Here, the probabilistic graph model can be jointly trained, for example, when training the semantic prediction network.

[0179] For example, when obtaining a sample image and the corresponding sample image description information, the part-of-speech corresponding to each sample character in the sample image description information can also be obtained.

[0180] In obtaining the predicted image description information of any sample image using the neural network to be trained, the second intermediate feature vectors corresponding to each character in the sample image description information can be obtained, that is, the second intermediate feature vectors of each second sample feature vector respectively. The specific way to obtain the second intermediate feature vector can be referred to the corresponding embodiments described above Figure 3 and will not be elaborated here.

[0181] Then, the second intermediate feature vectors corresponding to multiple second sample feature vectors are formed into a feature vector sequence, and this feature vector sequence formed by the second intermediate feature vectors is used as the input, and the part-of-speech corresponding to each sample character in the obtained sample image description information is used as the output to solve the parameters in the probabilistic graph model, and then the trained probabilistic graph model is obtained.

[0182] Then, based on this probabilistic graph model, the part-of-speech corresponding to each character included in the image description information can be predicted.

[0183] When determining the part of speech corresponding to each of the multiple characters included in the image description information based on the probability graph model, the probability graph can, for example, output an indicator mark corresponding to each character; the indicator mark is used to indicate the part of speech of the character; different parts of speech have different indicator marks.

[0184] Exemplarily, the indicator may be a sequence number 0, 1, 2 . . . N. Figure 8 , when the indicator corresponding to the character W1′ is 0, the indicator corresponding to the character W2′ is 2, and the indicator corresponding to the character WN′ is N, the indicator output by the probability graph model is shown.

[0185] Exemplarily, two directed dictionaries can be pre-constructed, including a first directed dictionary and a second directed dictionary. The first directed dictionary contains a mapping relationship from part of speech to indicator marks, and the second directed dictionary contains a mapping relationship from indicator marks to part of speech. Taking the first directed dictionary as an example, the mapping relationship from part of speech to indicator marks is, for example: noun → 0, verb → 1, preposition → 2, adjective → 3. After determining the corresponding indicator mark of each character based on the probabilistic graph model, the specific part of speech corresponding to each character can be determined based on the above-mentioned second directed dictionary.

[0186] The first directed dictionary is used to convert the parts of speech corresponding to each sample character in the sample image description information annotated by each sample image into corresponding indicator marks, and solve the probability graph model based on the indicator marks.

[0187] With respect to the above S103, when generating target push information based on image description information, parts of speech corresponding to multiple characters, and preset target masked parts of speech, for example, characters corresponding to preset target masked parts of speech among multiple characters can be masked to obtain target push information.

[0188] Exemplarily, for example, the following specific method may be adopted: based on the parts of speech corresponding to the multiple characters and the preset target masked part of speech, a target character is determined from the multiple characters; based on the other characters in the multiple characters except the target character, target push information is generated.

[0189] In a specific implementation, there is at least one target masked part of speech; the parts of speech of multiple characters can be matched with each target masked part of speech in at least one target masked part of speech; if the part of speech of any character successfully matches any target masked part of speech, the character is determined as the target character.

[0190] When using other characters in the image description information except the target character to generate the target push information, for example, a space, an underscore, or a part-of-speech prompt word corresponding to the target character can be added to the position of the target character in the image description information to replace the target character. The specific method for processing the target character can be set according to actual needs and will not be repeated here.

[0191] In a possible implementation, when determining the parts of speech corresponding to the multiple characters included in the image description information, the first directional dictionary is used, and based on the parts of speech corresponding to the characters in the image description information, multiple indicator marks corresponding to the multiple characters included in the image description information can be determined. Based on the preset target masked part of speech, at least one indicator mark corresponding to the target masked part of speech can be obtained, and based on the second directional dictionary and the determined characters of the corresponding part of speech, at least one corresponding character in the image description information is determined as the target character.

[0192] Exemplarily, when the target image is a pedestrian photographed by a user, the image description information obtained is "a person walking on the road", and the parts of speech corresponding to the multiple characters determined are "one-numeral, one-quantifier, person-noun, on-preposition, road-noun, on-preposition, go-verb, walk-verb", the preset target masked parts of speech may include, for example, at least one of the following: numeral, quantifier, noun, preposition, and verb. When the preset target masked part of speech is determined to be a noun, and the method of placing a part-of-speech prompt word corresponding to the target character to replace the target character is selected, the target characters can be determined to be "person" and "road" using the first directed dictionary and the second directed dictionary, and the target push information obtained is "a (noun) walking on (noun)".

[0193] In a possible implementation, after obtaining image description information of the target image based on the target image, the image description information may be supplemented once or multiple times (twice or more) to obtain the final image description information to enrich the user's thinking and expand the user's ideas.

[0194] For example, when the target image is a pedestrian photographed by the user and the image description information obtained is "a person walking on the road", supplementary descriptions can be made for specific things in the image description information, such as supplementing the description of "person" to obtain "person wearing red clothes and blue pants"; further, if the supplementary description of "person" is made, "a man wearing red clothes and blue pants" is obtained; if the supplementary description of "road" is made, "bluestone road" is obtained, and so on, the final description information obtained can be "a man wearing red clothes and blue pants walking on a bluestone road", which will not be elaborated on.

[0195] For S104, when the information push method provided in the embodiment of the present disclosure is executed in the server, when the generated target push information is pushed to the user end, the server pushes the generated target push information to the user end used by the user; or, pushes the target image together with the generated target push information to the user end. The specific push method can be adjusted according to actual needs and will not be repeated here.

[0196] In the case where the information push method provided in the example of the present disclosure is executed on the user side, when the target push information is pushed to the user side, for example, a prompt message can be displayed on the user side, and the prompt message is used to prompt the user that the target push information has been pushed to it; the target push information can also be directly displayed to the user through the graphical user interface of the user side to realize the push of the target push information.

[0197] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0198] Based on the same inventive concept, an information push device corresponding to the information push method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned information push method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0199] Reference Fig. 9 , which is a schematic diagram of an information push device provided by an embodiment of the present disclosure, the device comprises: an acquisition module 91, a determination module 92, a generation module 93, and a push module 94; wherein,

[0200] An acquisition module 91 is used to acquire a target image;

[0201] A determination module 92, configured to obtain image description information of the target image based on the target image, and determine the parts of speech corresponding to the plurality of characters in the image description information;

[0202] A generating module 93, configured to generate target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and a preset target masked part of speech;

[0203] The push module 94 is used to push the target push information to the user terminal.

[0204] In an optional implementation, when the generating module 93 generates the target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and the preset target masked parts of speech, it is configured to:

[0205] Determining a target character from the plurality of characters based on the parts of speech corresponding to the plurality of characters respectively and the preset target masked part of speech;

[0206] The target push information is generated based on other characters among the multiple characters except the target character.

[0207] In an optional implementation, when the determination module 92 obtains the image description information of the target image and the parts of speech corresponding to the plurality of characters in the image description information based on the target image, it is configured to:

[0208] Performing feature extraction processing on the target image to obtain feature data of the target image;

[0209] Based on the feature data, image description information of the target image is generated, and the part of speech corresponding to each of the multiple characters included in the image description information is determined.

[0210] In an optional implementation, when the determining module 92 performs feature extraction processing on the target image to obtain feature data of the target image, it is configured to:

[0211] Using a pre-trained feature extraction network, feature extraction processing is performed on the target image to obtain feature data of the target image.

[0212] In an optional embodiment, the feature extraction network includes at least one of a residual neural network and a convolutional neural network.

[0213] In an optional implementation, when the determination module 92 generates the image description information of the target image based on the feature data, it is configured to:

[0214] The pre-trained semantic prediction network is used to perform semantic prediction processing on the feature data to obtain image description information of the target image.

[0215] In an optional implementation, the determination module 92 is used to:

[0216] Acquire sample feature data and sample image description information respectively corresponding to a plurality of sample images; the sample image description information includes a plurality of sample characters;

[0217] Based on the sample feature data and the plurality of sample characters, a sample feature vector sequence is formed; the sample feature vector sequence includes a first sample feature vector formed based on the sample feature data and a second sample feature vector formed by word vectors corresponding to the plurality of sample characters respectively;

[0218] Inputting the sample feature vector sequence into a neural network to be trained to obtain predicted image description information; the predicted image description information includes a plurality of predicted characters;

[0219] The predicted image description information and the sample image description information are used to train the neural network to obtain the semantic prediction network.

[0220] In an optional implementation, when the determination module 92 inputs the sample feature vector sequence into the neural network to be trained to obtain the predicted image description information, it is used to:

[0221] Using the neural network to be trained to perform feature learning on the first sample feature vector to obtain a sample intermediate feature vector corresponding to the first sample feature vector;

[0222] and taking each second sample feature vector in the sample feature vector sequence as the current sample feature vector in turn, and using the neural network to be trained to perform feature learning on the current sample feature vector and the sample intermediate feature vector corresponding to the previous sample feature vector of the current sample feature vector, to obtain a predicted word vector corresponding to the current sample feature vector;

[0223] The sample intermediate feature vector corresponding to the previous sample feature vector is a feature vector output by a target network layer in the neural network when the neural network to be trained is used to perform feature learning on the previous sample feature vector;

[0224] Based on the predicted character vector corresponding to the current sample feature vector, obtaining the sample predicted character corresponding to the current sample feature vector;

[0225] The predicted image description information is formed based on the sample predicted characters respectively corresponding to the plurality of sample feature vectors.

[0226] In an optional implementation, when the determining module 92 uses a pre-trained semantic prediction network to perform semantic prediction processing on the feature data to obtain image description information of the target image, it is used to:

[0227] Inputting the feature data into the semantic prediction network to obtain first prediction result data corresponding to the feature data, and obtaining a first intermediate feature vector output by a target network layer of the semantic prediction network;

[0228] Input the first prediction result data and the first intermediate feature data as current input data into the semantic prediction network, obtain second prediction result data corresponding to the current input data, and obtain a second intermediate feature vector output by a target network layer of the semantic prediction network;

[0229] Based on the second prediction result data, obtaining a predicted character corresponding to the current input data;

[0230] The second prediction result data and the second intermediate feature vector are used as new current input data, and the process returns to the step of inputting the current input data into the semantic prediction network until a preset iteration stop condition is met.

[0231] In an optional implementation, the iteration stop condition includes:

[0232] The predicted character corresponding to the current input data is a preset character.

[0233] In an optional implementation, when determining the part of speech corresponding to each of the multiple characters included in the image description information, the determination module 92 is configured to:

[0234] Based on the second intermediate feature vectors respectively outputted by the target network layer of the semantic prediction network in multiple iterations, a feature vector sequence is formed;

[0235] The pre-trained probabilistic graphical model is used to predict the part of speech of the character represented by each second intermediate feature vector in the feature vector sequence, so as to obtain the part of speech corresponding to the character represented by each second intermediate feature vector in the feature vector sequence.

[0236] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0237] The present disclosure also provides a computer device, such as Fig.10 FIG. 1 is a schematic diagram of a computer device structure provided in an embodiment of the present disclosure, including:

[0238] A processor 10 and a memory 20; the memory 20 stores machine-readable instructions executable by the processor 21, and the processor 10 is used to execute the machine-readable instructions stored in the memory 20. When the machine-readable instructions are executed by the processor 10, the processor 10 performs the following steps:

[0239] Get the target image;

[0240] Based on the target image, obtaining image description information of the target image, and determining parts of speech corresponding to a plurality of characters in the image description information;

[0241] Generate target push information based on the image description information, the parts of speech corresponding to the multiple characters, and a preset target masked part of speech;

[0242] Push the target push information to the user terminal.

[0243] The above-mentioned memory 20 includes an internal memory 2021 and an external memory 2022; the memory 2021 here is also called an internal memory, which is used to temporarily store the calculation data in the processor 10, as well as the data exchanged with the external memory 2022 such as a hard disk. The processor 10 exchanges data with the external memory 2022 through the internal memory 2021.

[0244] The specific execution process of the above instructions can refer to the steps of the information push method described in the embodiment of the present disclosure, which will not be repeated here.

[0245] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the information push method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0246] The computer program product of the information push method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the information push method described in the above method embodiments. For details, please refer to the above method embodiments, which will not be repeated here.

[0247] The present disclosure also provides a computer program, which implements any one of the methods of the aforementioned embodiments when executed by a processor. The computer program product can be implemented in hardware, software, or a combination thereof. In an optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK), etc.

[0248] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0249] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0250] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0251] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0252] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. An information push method, characterized in that: include: Get the target image; Based on the target image, obtaining image description information of the target image, and determining parts of speech corresponding to a plurality of characters in the image description information; The determining of the part of speech corresponding to each of the multiple characters included in the image description information comprises: forming a feature vector sequence based on second intermediate feature vectors respectively outputted by a target network layer of a semantic prediction network in multiple iterations; predicting the part of speech of the characters represented by each second intermediate feature vector in the feature vector sequence using a pre-trained probabilistic graphical model, and obtaining the part of speech corresponding to the characters represented by each second intermediate feature vector in the feature vector sequence; Generate target push information based on the image description information, the parts of speech corresponding to the multiple characters, and a preset target masked part of speech; Pushing the target push information to the user terminal; The obtaining, based on the target image, image description information of the target image and parts of speech corresponding to a plurality of characters in the image description information, includes: Performing feature extraction processing on the target image to obtain feature data of the target image; Based on the feature data, generate image description information of the target image, and determine the part of speech corresponding to each of the multiple characters included in the image description information; The generating the image description information of the target image based on the feature data comprises: using a pre-trained semantic prediction network to perform semantic prediction processing on the feature data to obtain the image description information of the target image; The method of using a pre-trained semantic prediction network to perform semantic prediction processing on the feature data includes: inputting the feature data into the semantic prediction network to obtain first prediction result data corresponding to the feature data, and obtaining a first intermediate feature vector output by a target network layer of the semantic prediction network; inputting the first prediction result data and the first intermediate feature vector as current input data into the semantic prediction network to obtain second prediction result data corresponding to the current input data, and obtaining a second intermediate feature vector output by the target network layer of the semantic prediction network; obtaining a predicted character corresponding to the current input data based on the second prediction result data; using the second prediction result data and the second intermediate feature vector as new current input data, and returning to the step of inputting the current input data into the semantic prediction network until a preset iteration stop condition is met.

2. The information push method according to claim 1, characterized in that: The generating target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and the preset target masked parts of speech includes: Determining a target character from the plurality of characters based on the parts of speech corresponding to the plurality of characters respectively and the preset target masked part of speech; The target push information is generated based on other characters among the multiple characters except the target character.

3. The information push method according to claim 2, characterized in that: The step of performing feature extraction processing on the target image to obtain feature data of the target image includes: Using a pre-trained feature extraction network, feature extraction processing is performed on the target image to obtain feature data of the target image.

4. The information push method according to claim 3, characterized in that: The feature extraction network includes at least one of a residual neural network and a convolutional neural network.

5. The information push method according to claim 1, characterized in that: Training semantic prediction network, including: Acquire sample feature data and sample image description information respectively corresponding to a plurality of sample images; the sample image description information includes a plurality of sample characters; Based on the sample feature data and the plurality of sample characters, a sample feature vector sequence is formed; the sample feature vector sequence includes a first sample feature vector formed based on the sample feature data and a second sample feature vector formed by word vectors corresponding to the plurality of sample characters respectively; Inputting the sample feature vector sequence into a neural network to be trained to obtain predicted image description information; the predicted image description information includes a plurality of predicted characters; The predicted image description information and the sample image description information are used to train the neural network to obtain the semantic prediction network.

6. The information push method according to claim 5, characterized in that: The step of inputting the sample feature vector sequence into a neural network to be trained to obtain predicted image description information includes: Using the neural network to be trained to perform feature learning on the first sample feature vector to obtain a sample intermediate feature vector corresponding to the first sample feature vector; and taking each second sample feature vector in the sample feature vector sequence as the current sample feature vector in turn, and using the neural network to be trained to perform feature learning on the current sample feature vector and the sample intermediate feature vector corresponding to the previous sample feature vector of the current sample feature vector, to obtain a predicted word vector corresponding to the current sample feature vector; The sample intermediate feature vector corresponding to the previous sample feature vector is a feature vector output by a target network layer in the neural network when the neural network to be trained is used to perform feature learning on the previous sample feature vector; Based on the predicted character vector corresponding to the current sample feature vector, obtaining the sample predicted character corresponding to the current sample feature vector; The predicted image description information is formed based on the sample predicted characters respectively corresponding to the plurality of sample feature vectors.

7. The information push method according to claim 1, characterized in that: The iteration stop condition includes: The predicted character corresponding to the current input data is a preset character.

8. An information push device, characterized in that: include: An acquisition module, used for acquiring a target image; A determination module, configured to obtain image description information of the target image based on the target image, and determine the parts of speech corresponding to a plurality of characters in the image description information; When determining the part of speech corresponding to each of the multiple characters included in the image description information, the determination module is used to: form a feature vector sequence based on the second intermediate feature vectors respectively output by the target network layer of the semantic prediction network in multiple iterations; use a pre-trained probabilistic graphical model to predict the part of speech of the character represented by each second intermediate feature vector in the feature vector sequence, and obtain the part of speech corresponding to the character represented by each second intermediate feature vector in the feature vector sequence; A generating module, configured to generate target push information based on the image description information, the parts of speech corresponding to the plurality of characters, and a preset target masked part of speech; A push module, used to push the target push information to the user end; The determination module is specifically used for: Performing feature extraction processing on the target image to obtain feature data of the target image; Based on the feature data, generate image description information of the target image, and determine the part of speech corresponding to each of the multiple characters included in the image description information; The determination module is specifically used to: use a pre-trained semantic prediction network to perform semantic prediction processing on the feature data to obtain image description information of the target image, wherein: the feature data is input into the semantic prediction network to obtain first prediction result data corresponding to the feature data, and a first intermediate feature vector output by a target network layer of the semantic prediction network is obtained; the first prediction result data and the first intermediate feature vector are used as current input data and input into the semantic prediction network to obtain second prediction result data corresponding to the current input data, and a second intermediate feature vector output by the target network layer of the semantic prediction network is obtained; based on the second prediction result data, a predicted character corresponding to the current input data is obtained; the second prediction result data and the second intermediate feature vector are used as new current input data, and the step of inputting the current input data into the semantic prediction network is returned until a preset iteration stop condition is met.

9. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the information push method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a computer device, the computer device executes the steps of the information push method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Image description generating method based on neural network and image attention focuses

    CN106777125A

  • Multimode recurrent neural network picture description method based on FCN feature extraction

    CN106844442A

  • Automated generation and presentation of lessons via digital media content extraction

    CN109074345A

  • Image description method based on conditional random field and internal semantic attention

    CN111160467A

  • Book for story telling

    KR1020160114965A