Training sample generation method and device and data recommendation method and device for industrial scene
By extracting and constructing labeled training samples and training the data recommendation model to be viewed, the problem of quickly and accurately obtaining data from massive data in industrial scenarios is solved, and efficient data recommendation is achieved.
Patent Information
- Application Number
- CN202410898594.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Existing data recommendation technology is not suitable for industrial scenarios, and it is difficult to quickly and accurately retrieve the required data from massive data, making it difficult for relevant personnel to obtain the required information in a timely manner in production, operation, maintenance and other scenarios.
By obtaining the target user's job role information and target behavior information sequence, extracting sub-sequences, performing feature extraction and label construction, and generating labeled training samples for training the data recommendation model to be viewed, thereby achieving high-quality recommendations for industrial scene data .
It achieves the rapid and accurate acquisition of required data from massive industrial data, reduces the time waste of relevant personnel looking for information in data files, and improves the efficiency and accuracy of industrial scene data recommendation.
Smart Images

Figure CN118734074A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification generally relate to the field of industrial data mining, and in particular to a training sample generation method, a model training method, and a data recommendation method and apparatus for industrial scenario data recommendation. Background Art
[0002] In the context of intelligent manufacturing and Industry 4.0, data mining technology is increasingly being used in the manufacturing industry. For example, in factory production scenarios, data mining can be used in production processes, operations, fault detection, maintenance, decision support, and product quality improvement. At present, the scale of industrial data is getting larger and larger. For example, the industrial data that needs to be managed by a large chemical plant may include data from the factory construction phase, data from the production operation phase, data from the inspection and maintenance phase, etc., each of which contains a large amount of data of various types; for another example, the digital factory (DF) is also built on the basis of massive data.
[0003] Faced with massive amounts of data, relevant personnel (such as factory employees) often need to accurately and quickly retrieve the data files they need to view in production, operation, maintenance and other scenarios to help them respond to various on-site situations in a timely, safe and correct manner. However, existing data recommendation technologies often recommend information such as goods, audio and video, and news based on interests, which is not suitable for industrial scenarios. Therefore, a data recommendation technology suitable for industrial scenarios is needed to help relevant personnel obtain the required data more quickly and accurately. Summary of the invention
[0004] In view of the above, the embodiments of this specification provide a method for generating training samples for industrial scene data recommendation, a method for training a data recommendation model to be viewed, and a method and device for recommending data to be viewed. By using this method and device, the feature part and label part of the training sample are constructed by extracting the relevant information of the user in a targeted manner, thereby realizing the generation of high-quality training samples for industrial scene data recommendation. In addition, the generated training samples can also be used to train the data recommendation model to be viewed for recommending data to be viewed. This helps relevant personnel to obtain the required data from massive industrial data more quickly and accurately.
[0005] According to one aspect of an embodiment of the present specification, there is provided a method for generating training samples for industrial scene data recommendation, comprising: obtaining work role information and a target behavior information sequence of a target user, wherein the target behavior information in the target behavior information sequence includes recorded operation information for the target operation behavior and data viewing information for the target data viewing behavior, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; extracting a subsequence consisting of a plurality of target behavior information arranged in sequence from the target behavior information sequence; performing feature extraction on the work role information and the subsequence to generate corresponding sample features; constructing a corresponding sample label based on the data targeted by the next target behavior information of the subsequence; and obtaining a labeled training sample based on the work role information and the target behavior information sequence obtained with the sample features and the corresponding sample labels as the feature part and the label part respectively.
[0006] According to another aspect of an embodiment of the present specification, a training method for a data recommendation model to be viewed is provided, comprising: obtaining labeled training samples obtained by the aforementioned training sample generation method; and using a feature portion of the labeled training samples as an input of the data recommendation model to be viewed, and using a corresponding label portion of the labeled training samples as an expected output, to train the data recommendation model to be viewed.
[0007] According to another aspect of an embodiment of the present specification, a method for recommending data to be viewed is provided, comprising: obtaining a labeled training sample set, wherein a feature portion of the labeled training sample is determined based on work role information and a target behavior information sequence, and a label portion in the labeled training sample is determined based on data targeted by the next target behavior information of the target behavior information sequence; obtaining the work role information and the current target behavior information sequence of a logged-in user, wherein the target behavior information in the current target behavior information sequence includes operation information for the target operation behavior and data viewing information for the target data viewing behavior recorded up to the present, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; determining recommended viewing data corresponding to the work role information and the current target behavior information sequence of the logged-in user based on the obtained labeled training sample set; and presenting the recommended viewing data to the logged-in user.
[0008] According to another aspect of an embodiment of the present specification, there is provided a training sample generating device for industrial scene data recommendation, comprising: an information acquisition unit, configured to acquire work role information and a target behavior information sequence of a target user, wherein the target behavior information in the target behavior information sequence comprises recorded operation information for the target operation behavior and data viewing information for the target data viewing behavior, and the data targeted by the target data viewing behavior comprises data associated with industrial equipment and / or industrial processes; an information extraction unit, configured to extract a subsequence consisting of a plurality of target behavior information arranged in sequence from the target behavior information sequence; a feature extraction unit, configured to perform feature extraction on the work role information and the subsequence to generate corresponding sample features; a label construction unit, configured to construct a corresponding sample label based on the data targeted by the next target behavior information of the subsequence; and a sample generation unit, configured to obtain a labeled training sample using the sample feature and the corresponding sample label as a feature part and a label part, respectively.
[0009] According to another aspect of an embodiment of the present specification, there is provided a training device for a data recommendation model to be viewed, comprising: a sample acquisition unit, configured to acquire labeled training samples obtained by the aforementioned training sample generation method; a model training unit, configured to use a feature portion of the labeled training sample as an input of the data recommendation model to be viewed, and use a corresponding label portion of the labeled training sample as an expected output, to train and obtain the data recommendation model to be viewed.
[0010] According to another aspect of an embodiment of the present specification, there is provided a device for recommending data to be viewed, comprising: a sample set acquisition unit, configured to acquire a labeled training sample set, wherein a feature portion of the labeled training sample is determined based on work role information and a target behavior information sequence, and a label portion in the labeled training sample is determined based on data targeted by the next target behavior information of the target behavior information sequence; a to-be-predicted information acquisition unit, configured to acquire the work role information of a logged-in user and a current target behavior information sequence, wherein the target behavior information in the current target behavior information sequence includes operation information for the target operation behavior and data viewing information for the target data viewing behavior recorded up to the present, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; a recommended data determination unit, configured to determine recommended viewing data corresponding to the work role information and the current target behavior information sequence of the logged-in user based on the acquired labeled training sample set; and a data presentation unit, configured to present the recommended viewing data to the logged-in user.
[0011] According to another aspect of an embodiment of the present specification, there is provided an electronic device, comprising: at least one processor, and a memory coupled to the at least one processor, the memory storing instructions, which, when executed by the at least one processor, enables the at least one processor to execute the training sample generation method as described above, or implement the training method as described above, or implement the method for recommending data to be viewed as described above.
[0012] According to another aspect of an embodiment of the present specification, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, it implements the training sample generation method as described above, or implements the training method as described above, or implements the method for recommending data to be viewed as described above.
[0013] According to another aspect of an embodiment of the present specification, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to implement the training sample generation method as described above, or to implement the training method as described above, or to implement the method for recommending data to be viewed as described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] A further understanding of the nature and advantages of the content of this specification may be achieved by referring to the following drawings. In the drawings, similar components or features may have the same reference numerals.
[0015] Figure 1 An exemplary architecture of a training sample generation method for industrial scenario data recommendation, a training method for a data recommendation model to be viewed, and a method and apparatus for recommending data to be viewed according to an embodiment of the present specification is shown.
[0016] Figure 2 A flowchart of an example of a method for generating training samples for industrial scene data recommendation according to an embodiment of the present specification is shown.
[0017] Figure 3A A schematic diagram showing an example of a process of constructing a sample label according to an embodiment of the present specification.
[0018] Figure 3B A schematic diagram showing an example of an association relationship between industrial devices according to an embodiment of the present specification.
[0019] Figure 4 A flowchart of another example of a method for generating training samples for industrial scene data recommendation according to an embodiment of the present specification is shown.
[0020] Figure 5 A flowchart of an example of a method for training a to-be-viewed data recommendation model according to an embodiment of the present specification is shown.
[0021] Figure 6 A flowchart showing an example of a method for recommending data to be viewed according to an embodiment of the present specification.
[0022] Figure 7 A flowchart showing an example of a process of determining recommended viewing data according to an embodiment of the present specification.
[0023] Figure 8 A block diagram showing an example of a training sample generating device for industrial scene data recommendation according to an embodiment of the present specification.
[0024] Fig. 9 A block diagram showing an example of a training device for a to-be-viewed data recommendation model according to an embodiment of the present specification.
[0025] Fig.10 A block diagram showing an example of an apparatus for recommending data to be viewed according to an embodiment of the present specification.
[0026] Fig.11 A schematic diagram showing an example of an electronic device according to an embodiment of the present specification. DETAILED DESCRIPTION
[0027] The subject matter described herein will be discussed below with reference to example implementations. It should be understood that the discussion of these implementations is only to enable those skilled in the art to better understand and implement the subject matter described herein, and is not a limitation of the scope of protection, applicability or examples set forth in the claims. The functions and arrangements of the elements discussed may be changed without departing from the scope of protection of the embodiments of this specification. Various processes or components may be omitted, substituted or added to each example as needed. In addition, the features described relative to some examples may also be combined in other examples.
[0028] As used herein, the term "including" and its variations represent open terms, meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment". The term "another embodiment" means "at least one other embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other definitions may be included below, whether explicit or implicit. Unless the context clearly indicates otherwise, the definition of a term is consistent throughout the specification.
[0029] The flowcharts used in this specification illustrate the operations implemented by the system according to some embodiments in this specification. It should be clearly understood that the operations of the flowcharts may not be implemented in sequence. On the contrary, the operations may be implemented in reverse order or simultaneously. In addition, one or more other operations may be added to the flowchart. One or more operations may be removed from the flowchart.
[0030] The following will describe in detail with reference to the accompanying drawings a method for generating training samples for industrial scenario data recommendation, a method for training a data recommendation model to be viewed, and a method and apparatus for recommending data to be viewed according to an embodiment of the present specification.
[0031] Figure 1 An exemplary architecture 100 of a training sample generation method for industrial scenario data recommendation, a training method for a to-be-viewed data recommendation model, and a method and apparatus for recommending to-be-viewed data according to an embodiment of this specification is shown.
[0032] exist Figure 1 In the embodiment, the network 110 is used to interconnect the terminal device 120 and the application server 130 .
[0033] The network 110 may be any type of network capable of interconnecting network entities. The network 110 may be a single network or a combination of various networks. In terms of coverage, the network 110 may be a local area network (LAN), a wide area network (WAN), etc. In terms of carrier media, the network 110 may be a wired network, a wireless network, etc. In terms of data exchange technology, the network 110 may be a circuit switching network, a packet switching network, etc.
[0034] The terminal device 120 may be any type of electronic computing device that can be connected to the network 110, access a server on the network 110, process data or signals, etc. For example, the terminal device 120 may include various desktops, laptops, smart phones, etc. In one embodiment, the terminal device 120 may be used by a user. In some cases, the terminal device 120 may interact with the application server 130. It is understood that there may be different numbers of terminal devices 120 connected to the network 110. In one example, there may be multiple terminal devices 120. In one example, a user may send a data viewing request to the application server 130 through the terminal device 120. The application server 130 may recommend to the user the data files that the user needs to view. In some examples, the application server 130 may also be connected to a database server 140. The database server 140 may be used to store various data files so that the application server 130 may recommend to the user using the terminal device. In some examples, in the smart factory scenario, the database server 140 can be used to store various data files owned by the factory, such as three-dimensional models of equipment, equipment manuals, process flow charts, operating specification documents, operating demonstration videos, ledgers, equipment maintenance records, inventory information, etc. In some examples, the database server 140 can be an enterprise's own database or a cloud database. It is understood that the functions of the database server 140 can also be integrated in the application server 130, which is not limited here.
[0035] In some examples, the application server 130 may also be connected to the model training server 150. In some examples, the training sample generation method for industrial scene data recommendation may be performed by any of the application server 130, the database server 140, and the model training server 150, or may be performed by other servers. In some examples, the training method of the data recommendation model to be viewed may be performed by the model training server 150. In some examples, the method for recommending data to be viewed may be performed by the application server 130.
[0036] It should be understood that Figure 1 All network entities shown in the figure are exemplary. Any other network entities may be involved in the architecture 100 according to specific application requirements.
[0037] Figure 2 A flowchart of an example 200 of a method for generating training samples for industrial scene data recommendation according to an embodiment of the present specification is shown.
[0038] like Figure 2 As shown, at 210, the target user's work role information and target behavior information sequence are obtained.
[0039] In this embodiment, the target behavior information in the target behavior information sequence may include recorded operation information for the target operation behavior and data viewing information for the target data viewing behavior. The data targeted by the target data viewing behavior may include data associated with industrial equipment and / or industrial processes. In some examples, the job role information can be used to indicate operators, maintenance personnel, managers, and the like. In some examples, the job role information of the target user can be obtained through the relevant information of the logged-in user, and the target behavior information sequence can be obtained using data burying technology. In some examples, the target user may be an operator, maintenance personnel, manager, and the like who has extensive experience in the corresponding industrial scenario, which helps to obtain high-quality training samples.
[0040] In some examples, the target operation behavior can be for Figure 1 The logged-in behavior of the data file recommendation system of the application server 130 shown, the recorded operation information may be the relevant information of the logged-in account. In some examples, the relevant information of the account may include job role information, years of employment, etc. In some examples, the above data file recommendation system may also be integrated into the office automation system (OA) of enterprises, factories, etc.
[0041] In some examples, the target operation behavior may include an identification acquisition behavior and / or a state switching behavior for industrial equipment. For example, each industrial equipment may have a unique identification code, and the target operation behavior may include a scanning operation for the unique identification code of the industrial equipment. For another example, the target operation behavior may include a state switching behavior of the industrial equipment, such as switching between the running and parking states of a generator, a pump, a blower, etc., such as changing the opening of a valve, etc. or switching between the open and closed states.
[0042] In some examples, the data associated with industrial equipment may include at least one of the following: a 3D model file of the industrial equipment, an image related to the industrial equipment, a video related to the industrial equipment, and a document manual related to the industrial equipment. For example, the data associated with industrial equipment may include at least one of the following: a 3D model file of a complex industrial equipment (e.g., .fbx, .obj, etc. format), various photos of the industrial equipment, introduction videos, inspection videos, maintenance videos, and teaching videos of the industrial equipment, various operation manuals, design documents, instructional documents, maintenance records, and archived files of the industrial equipment.
[0043] In some examples, the data associated with the industrial process may include at least one of the following: images related to the industrial process, videos related to the industrial process, and document manuals related to the industrial process. For example, the data associated with the industrial process may include at least one of the following: various explanatory pictures and demonstration pictures related to the industrial process, explanatory videos, demonstration videos, teaching videos, and recorded archived videos related to the industrial process, and various operating specifications, explanatory documents, operating manuals, and archived files related to the industrial process.
[0044] In some examples, the data associated with industrial equipment and / or the data associated with industrial processes may also specifically include at least one of the following: certain chapters and paragraphs in a document, certain video clips in a video file, etc.
[0045] At 220 , a subsequence consisting of a plurality of sequentially arranged target behavior information is extracted from the target behavior information sequence.
[0046] In this embodiment, the order of arrangement of the target behavior information in the subsequence is generally consistent with the order of arrangement in the target behavior information sequence. In some examples, the target behavior information sequence may be "view the design document of bucket A, scan the equipment code of pump A, scan the equipment code of pipeline A, view the historical maintenance report of pipeline A, view the operation manual of pump B". In one example, the subsequence may be "view the design document of bucket A, scan the equipment code of pump A, scan the equipment code of pipeline A, view the historical maintenance report of pipeline A". In one example, the subsequence may be "scan the equipment code of pump A, scan the equipment code of pipeline A".
[0047] At 230 , feature extraction is performed on the work role information and the subsequence to generate corresponding sample features.
[0048] In this embodiment, the work role information and the subsequences can be converted into corresponding features respectively. In some examples, various feature extraction methods can be used to achieve the conversion of corresponding features. Afterwards, sample features can be generated based on the features corresponding to the obtained work role information and the subsequences of the target behavior information sequence. In some examples, the features corresponding to the obtained work role information and the subsequences of the target behavior information sequence can be combined into sample features. In some examples, the obtained subsequences of the work role information and the target behavior information sequence or the features corresponding to each of them can be input into a pre-trained first feature embedding layer, and the output of the obtained first feature embedding layer is used as sample features.
[0049] In some examples, the obtained work role information may be "operator", and x0 may be used to represent the feature corresponding to "operator". The feature sequence corresponding to the subsequence "view the design document of bucket A, scan the equipment code of pump A, scan the equipment code of pipeline A, view the historical maintenance report of pipeline A" may be [x1, x2, x3, x4]. Among them, x1 to x4 may be used to represent the features corresponding to viewing the design document of bucket A, scanning the equipment code of pump A, scanning the equipment code of pipeline A, and viewing the historical maintenance report of pipeline A, respectively. In one example, the corresponding sample feature may be {x0, x1, x2, x3, x4}. In one example, the corresponding sample feature may also be f(x0, x1, x2, x3, x4), where f() may be used to represent the above-mentioned first feature embedding layer. Accordingly, the feature sequence corresponding to the subsequence "scan the equipment code of pump A, scan the equipment code of pipeline A" may be [x2, x3]. In one example, the corresponding sample feature may be {x0, x2, x3}. In one example, the corresponding sample feature may also be f(x0, x2, x3,).
[0050] At 240 , a corresponding sample label is constructed based on the data targeted by the next target behavior information of the subsequence.
[0051] In this embodiment, the data to which the next target behavior information of the subsequence is directed can be first determined. Figure 2 Taking the example described in step 220 of the embodiment as an example, the data targeted by the next target behavior information of the subsequence (for example, "view the operating manual of pump B") can be "the operating manual of pump B". In some examples, feature extraction can be performed on the data targeted by the next target behavior information of the subsequence, and the obtained features are used as sample labels. This embodiment does not limit the method of feature extraction. In some examples, the data targeted by the next target behavior information of the subsequence can be mapped to a specified category, and the corresponding specified category is used as a sample label. For example, "the operating manual of pump B" is mapped to "category 002003", "the historical maintenance report of pipeline A" is mapped to "category 001012", and so on.
[0052] At 250 , the sample features and the corresponding sample labels are used as the feature part and the label part respectively to obtain labeled training samples.
[0053] In one example, the Figure 2Taking the example described in step 220 of the embodiment as an example, the labeled training sample can be expressed as {x0, x1, x2, x3, x4|l5}. Among them, x0 can be used to represent the feature corresponding to "operating personnel". {x0, x1, x2, x3, x4} can be used as the feature part of the labeled training sample, and l5 can be used as the label part of the labeled training sample. In some examples, l5 can be the feature corresponding to "operating manual of pump B". In some examples, l5 can be the specified category to which "operating manual of pump B" is mapped. Similarly, the labeled training sample can be expressed as {x0, x2, x3|l4}. Among them, the meaning of the relevant symbols can refer to the above. {x0, x2, x3} can be used as the feature part of the labeled training sample, and l4 can be used as the label part of the labeled training sample. In some examples, l4 can be the feature corresponding to "historical maintenance report of pipeline A". In some examples, l4 can be the specified category to which "historical maintenance report of pipeline A" is mapped.
[0054] Figure 3A FIG. 1 is a schematic diagram showing an example of a sample label construction process 300 according to an embodiment of the present specification. Figure 3A As shown, the association relationship between the industrial equipment and / or industrial process involved in the data targeted by the next target behavior information of the subsequence of the target behavior information sequence and the industrial equipment and / or industrial process involved in the data targeted by the target behavior information in the subsequence can be determined. Then, based on the data targeted by the next target behavior information and the determined association relationship, the label part of the labeled training sample is constructed.
[0055] In some examples, the aforementioned Figure 2Taking the example described in step 220 of the embodiment as an example, the association relationship between the industrial equipment (e.g., pump B) involved in the data targeted by the next target behavior information (e.g., "view the design document of barrel A", "scan the equipment code of pump A", "scan the equipment code of pipeline A", "view the historical maintenance report of pipeline A") of the subsequence of the above target behavior information sequence and the industrial equipment (e.g., barrel A, pump A, pipeline A) involved in the data targeted by the target behavior information in the above subsequence can be determined. In some examples, the association relationship between industrial equipment and / or industrial processes can be determined based on the analysis of all data files that can be recommended by the aforementioned data file recommendation system. For example, the association relationship between industrial equipment can be determined based on the equipment connection diagram, equipment layout diagram, etc., such as direct connection relationship, indirect connection relationship, substitution relationship (e.g., multi-way standby), etc. For another example, the association relationship between industrial processes can be determined based on operating procedures, process instruction manuals, etc., such as direct upstream and downstream relationships, indirect upstream and downstream relationships, substitution relationships, etc. In some examples, the above association relationship can be subjected to feature extraction or category mapping to obtain a relationship label. The above operations may refer to the above corresponding processing process of the data targeted by the next target behavior information. In some examples, the corresponding feature extraction result or category mapping result of the data targeted by the next target behavior information may be combined with the above relationship label to construct a sample label.
[0056] Figure 3B A schematic diagram showing an example of an association relationship between industrial devices according to an embodiment of this specification. Figure 3B As shown, pump A is connected to barrel A through pipe A, and as a backup, pump B is connected to barrel A through pipe B, so that it can be determined that the association relationship between pump B and barrel A, pump A, and pipe A can be a direct connection relationship, a substitution relationship, and an indirect connection relationship, respectively. Afterwards, the label part of the labeled training sample can be generated based on the data targeted by the next target behavior information and the determined association relationship. In some examples, the features corresponding to the data targeted by the next target behavior information and the determined association relationship can be combined into the label part of the labeled training sample. For example, the features corresponding to the direct connection relationship, the indirect connection relationship, the substitution relationship, the direct upstream and downstream relationship, and the indirect upstream and downstream relationship can be 11, 12, 13, 14, and 15, respectively. In some examples, the data targeted by the next target behavior information and the determined association relationship can be input into the pre-trained second feature embedding layer, and the output result of the second feature embedding layer obtained can be used as the label part of the labeled training sample.
[0057] Figure 4A flowchart of another example of a training sample generation method 400 for industrial scene data recommendation according to an embodiment of the present specification is shown.
[0058] like Figure 4 As shown, at 410, the target user's work role information and target behavior information sequence are obtained.
[0059] At 420 , a subsequence consisting of a plurality of sequentially arranged target behavior information is extracted from the target behavior information sequence.
[0060] At 430 , additional state information corresponding to the target behavior information in the subsequence is obtained.
[0061] In this embodiment, the additional state information may be used to indicate an additional state at a specific moment. In some examples, the specific moment may be the moment when the behavior indicated by each target behavior information in the target behavior information sequence occurs. The additional state information may be various state information associated with the next target behavior information. In some examples, the additional state information may be state information of the industrial equipment targeted by the target behavior information, spare parts state information, etc.
[0062] In some examples, the type of additional status information can be determined based on the operation information and data viewing information in the subsequence before the work role information and the current target behavior information. In the above example, the feature sequence corresponding to the target behavior information sequence can be [x1, x2, x3, x4, x5]. Then, the type of additional status information corresponding to the current target behavior information (such as the information of recording and scanning the device code of pump A) can be determined based on the work role information (such as "operator"), the operation information corresponding to x1 (such as the information of recording and scanning the device code of pipeline A), the operation information corresponding to x2 (such as the information of recording and scanning the device code of pipeline A) and the data viewing information corresponding to x3 (such as the information of recording and viewing the historical maintenance report of pipeline A). Similarly, the type of additional status information corresponding to the current target behavior information (such as the information of recording and viewing the operation manual of pump B corresponding to x4) (such as the current air pressure of barrel A, the current power of pump A, etc.) can also be determined based on the work role information, the operation information corresponding to x1 and the operation information corresponding to x2 (such as the working status of pipeline A, etc.).
[0063] In some examples, the correspondence between the type of additional status information and the work role information and the operation information and data viewing information in the subsequence before the current target behavior information can be determined by a predetermined rule, or by a pre-set correspondence table, or by a pre-trained type determination model. In some examples, the type determination model can output the type of additional status information corresponding to the current target behavior information based on the input work role information, the operation information and data viewing information in the subsequence before the current target behavior information.
[0064] At 440 , feature extraction is performed on the acquired work role information, subsequences, and corresponding additional state information to generate corresponding sample features.
[0065] In this embodiment, feature extraction of additional state information can be further added on the basis of feature extraction of work role information and subsequences as described above. In some examples, such as the aforementioned examples, sample features can be expressed as {x0, x1, x2, x3, st3, x4, st4}, where the meanings of x0 to x4 can refer to the aforementioned. st3 and st4 can be used as features of additional state information corresponding to the target behavior information corresponding to x3 and x4, respectively. Similarly, in one example, sample features can be expressed as {x0, x2, x3, st3}. The meanings of related symbols can refer to the aforementioned.
[0066] At 450 , a corresponding sample label is constructed based on the data targeted by the next target behavior information of the subsequence.
[0067] At 460 , the sample feature and the corresponding sample label are used as the feature part and the label part respectively, to obtain a labeled training sample.
[0068] In some examples, a labeled training sample can be expressed as {x0,x1,x2,x3,st3,x4,st4|l5}. {x0,x1,x2,x3,st3,x4,st4} can be used as the feature part of the labeled training sample, and l5 can be used as the label part of the labeled training sample. Similarly, in one example, a labeled training sample can be expressed as {x0,x2,x3,st3|l4}. The meanings of the relevant symbols can refer to the above. {x0,x2,x3,st3} can be used as the feature part of the labeled training sample, and l4 can be used as the label part of the labeled training sample.
[0069] It should be noted that the above steps 410, 420, 450, and 460 may refer to the relevant descriptions of steps 210, 220, 240, and 250 in the aforementioned embodiments.
[0070] In the above manner, the dimension of the feature part of the training sample is further enriched by introducing additional state information, which helps to improve the training effect of the model.
[0071] Figure 5 A flowchart of an example of a method 500 for training a to-be-viewed data recommendation model according to an embodiment of the present specification is shown.
[0072] like Figure 5 As shown, at 510, a labeled training sample obtained according to a training sample generation method is obtained.
[0073] In this embodiment, the training sample generation method can refer to the above Figure 2-Figure 4 In this embodiment, a training sample set consisting of a plurality of labeled training samples may be obtained.
[0074] At 520 , the feature part of the labeled training sample is used as the input of the to-be-viewed data recommendation model, and the corresponding label part of the labeled training sample is used as the expected output, so as to train and obtain the to-be-viewed data recommendation model.
[0075] In this embodiment, the data recommendation model to be viewed may be various machine learning models (e.g., multi-layer perceptron, neural network model, deep learning model, etc.). In some examples, the prediction result output by the current data recommendation model to be viewed based on the feature part of the input labeled training sample may be compared with the corresponding label part, and the loss value may be calculated using the loss function, and then the model parameters of the current data recommendation model to be viewed may be adjusted based on the calculated loss value.
[0076] In some examples, the label part in the labeled training sample may have more than one sub-label, such as a first sub-label for indicating the data to be recommended and a second sub-label for indicating the association between the industrial equipment and / or industrial process involved in the data to be recommended and the industrial equipment and / or industrial process involved in the data targeted by the target behavior information corresponding to the corresponding feature part. In these examples, the data recommendation model to be viewed can use each sub-label of the label part as the expected output, and calculate the comprehensive loss value based on the output prediction results corresponding to each sub-label, and then adjust the model parameters of the current data recommendation model to be viewed based on the calculated comprehensive loss value. Thus, the data recommendation model to be viewed can learn the association between industrial equipment and / or industrial processes, so as to more accurately implement high-quality data recommendations for industrial scenarios, so as to reduce the time wasted by relevant personnel in searching for required information in a large number of data files.
[0077] use Figure 1-Figure 5The training sample generation method for industrial scene data recommendation and the training method for the to-be-viewed data recommendation model disclosed in the invention achieve the generation of high-quality training samples for industrial scene data recommendation by extracting relevant information of users in a targeted manner to construct the feature part and label part of the training sample. In addition, the generated training samples can also be used to train the to-be-viewed data recommendation model for recommending the to-be-viewed data.
[0078] Figure 6 A flowchart of an example of a method 600 for recommending data to be viewed according to an embodiment of the present specification is shown.
[0079] like Figure 6 As shown, at 610, a labeled training sample set is obtained.
[0080] In this embodiment, the feature part of the labeled training samples in the labeled training sample set can be determined based on the work role information and the target behavior information sequence, and the label part can be determined based on the data targeted by the next target behavior information in the target behavior information sequence.
[0081] In some examples, the Figure 2-Figure 4 The training sample generation method described in the embodiment obtains a labeled training sample set.
[0082] At 620 , the work role information and current target behavior information sequence of the logged-in user are obtained.
[0083] In this embodiment, the target behavior information in the current target behavior information sequence may include operation information for the target operation behavior and data viewing information for the target data viewing behavior recorded up to the present. The data targeted by the target data viewing behavior may include data associated with industrial equipment and / or industrial processes.
[0084] In this embodiment, the logged-in user may be the user to whom data is to be recommended. The specific meaning and explanation of the above-mentioned work role information and current target behavior information sequence can be referred to as follows: Figure 2-Figure 4 Related description in the embodiments.
[0085] At 630 , based on the acquired labeled training sample set, recommended viewing data corresponding to the job role information and current target behavior information sequence of the logged-in user is determined.
[0086] In some examples, the acquired job role information and current target behavior information sequence of the logged-in user may be input into a to-be-viewed data recommendation model to obtain recommended viewing data.
[0087] In these examples, the to-be-viewed data recommendation model can be trained using a labeled training sample set, and can select recommended viewing data from candidate to-be-viewed data based on the input acquired job role information and current target behavior information sequence of the logged-in user. In some examples, the candidate to-be-viewed data can be all data files that can be recommended by the aforementioned data file recommendation system. In some examples, the following can be used: Figure 5 The training method described in the embodiment obtains a recommendation model for the data to be viewed.
[0088] In some examples, the candidate data to be viewed may also be data matching the work role information selected from all data files that can be recommended by the aforementioned data file recommendation system. In some examples, for the same industrial equipment (e.g., equipment p), for "operators", the candidate data to be viewed may include the design documents, three-dimensional model files, operation manuals, etc. of the industrial equipment; and for "maintenance personnel", the candidate data to be viewed may include the design documents, maintenance records, spare parts inventory, repair manuals, etc. of the industrial equipment. In these examples, all data files that can be recommended by the aforementioned data file recommendation system may be classified in advance to distinguish the work roles matched by each data file. It can be understood that in these examples, a data file may belong to multiple categories, for example, it can be recommended to both "operators" and "managers". Thus, for each work role information, candidate data to be viewed that matches the work role information may be selected from all data files that can be recommended by the aforementioned data file recommendation system.
[0089] Figure 7 A flowchart showing an example of a process 700 for determining recommended viewing data according to an embodiment of the present specification.
[0090] like Figure 7 As shown, at 710, according to the determination method of the feature part of the labeled training sample, the acquired work role information and current target behavior information sequence of the logged-in user are converted into corresponding current features of the user.
[0091] In this embodiment, the method of converting the acquired work role information of the logged-in user and the current target behavior information sequence into the user's current features can be consistent with the method of determining the feature portion of the labeled training sample based on the work role information and the target behavior information sequence. In some examples, the work role information can be converted into corresponding features using a correspondence table between work roles and feature codes, and the feature extraction method can be used to achieve the conversion of features corresponding to the current target behavior information sequence, so that the user's current features can be obtained based on the features corresponding to the work role information and the features corresponding to the current target behavior information sequence. For example, the user's current features can be directly combined. For another example, the pre-trained first feature embedding layer can be used to output the user's current features based on the features corresponding to the input work role information and the features corresponding to the current target behavior information sequence.
[0092] At 720 , recommended viewing data is determined from the data indicated by the label part in the labeled training sample set based on a K-Nearest Neighbor (KNN) algorithm.
[0093] In this embodiment, the labeled training samples to which K feature parts that are closest to the current feature of the user belong can be determined from the labeled training sample set, and the recommended viewing data can be determined from the data indicated by the label parts of the determined K labeled training samples.
[0094] In some examples, the data with the highest votes or the first few (eg, 3) with the highest votes among the data indicated by the label parts of the K labeled training samples may be determined based on a voting mechanism as recommended viewing data.
[0095] In some examples, the recommended viewing data can be further determined in combination with the correspondence between the data indicated by the label part and the work role information. In these examples, a correspondence table between the data and the work role information can be obtained in advance. The correspondence table can be used to indicate the degree of association between the candidate data and each work role information. For example, the degree of association between the maintenance manual of a certain device and the operator, maintenance personnel, and management personnel can be 0.3, 1, and 0.3 respectively; and the degree of association between the operation manual of the device and the operator, maintenance personnel, and management personnel can be 1, 0.1, and 0.4 respectively. In some examples, the recommended viewing data can be determined in combination with the voting situation and the above correspondence table. In one example, if 3 / 5 of the voting results (K=5) indicate that the maintenance manual of device M is recommended, and 2 / 5 indicate that the operation manual of device M is recommended, and the work role of the logged-in user is an operator, the operation manual of device M (2 / 5×1=0.4) can be determined as the recommended viewing data instead of the maintenance manual of device M (3 / 5×0.3=0.18). It is understandable that more than one recommended viewing data may be determined in descending order according to the comprehensive scores in combination with the voting situation and the above correspondence table.
[0096] Back to Figure 6 , at 640 , the recommended viewing data is presented to the logged in user.
[0097] In this embodiment, the determined at least one recommended viewing data may be presented to the logged-in user in various ways (e.g., in a list form, in a pop-up window form, etc.). In some examples, if the recommended viewing data is a document, video, three-dimensional model, etc., the storage address of the recommended viewing data, such as a Uniform Resource Identifier (URI), an access link, etc., may be provided to the logged-in user. In some examples, if the recommended viewing data is a specific part of a document, video, etc., an identifier for indicating the specific part may also be provided to the logged-in user.
[0098] In some examples, after presenting the recommended viewing data to the logged-in user, it is also possible to detect whether there is negative feedback from the logged-in user on the recommended viewing data. In response to detecting negative feedback from the logged-in user on the recommended viewing data, a difficult sample may be generated based on the acquired sequence of work role information and current target behavior information of the logged-in user to further train the to-be-viewed data recommendation model.
[0099] In these examples, negative feedback may include, for example, not opening the file where the recommended viewing data is located, and viewing time for the recommended viewing data being less than a predetermined time threshold (e.g., 5 seconds). In some examples, the feature portion of the difficult sample may be determined based on the job role information of the logged-in user and the current target behavior information sequence, and the label portion of the difficult sample may be determined based on the next viewing data of the logged-in user. In some examples, the next viewing data of the logged-in user may be the data actually viewed by the logged-in user after being recommended the recommended viewing data. In some examples, the next viewing data of the logged-in user may be the data that the logged-in user should view after being determined to be manually evaluated.
[0100] use Figure 6-Figure 7 The method for recommending data to be viewed disclosed in the disclosure obtains the work role information and current target behavior information sequence of the logged-in user and utilizes the corresponding labeled training sample set to provide a method for more accurately and efficiently determining the recommended viewing data using a simpler and faster KNN method or using a trained data to be viewed recommendation model.
[0101] Figure 8 FIG. 8 is a block diagram showing an example 800 of a training sample generation device for industrial scene data recommendation according to an embodiment of the present specification. The device embodiment can be used with Figure 2-Figure 4 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0102] like Figure 8 As shown, the training sample generating device 800 for industrial scene data recommendation may include an information acquiring unit 810 , an information extracting unit 820 , a feature extracting unit 830 , a label building unit 840 and a sample generating unit 850 .
[0103] The information acquisition unit 810 is configured to acquire the work role information and target behavior information sequence of the target user, wherein the target behavior information in the target behavior information sequence includes the recorded operation information for the target operation behavior and the data viewing information for the target data viewing behavior, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes.
[0104] In some examples, the target operation behavior includes an identification acquisition behavior and / or a state switching behavior for the industrial equipment, and the data associated with the industrial equipment includes at least one of the following: a three-dimensional model of the industrial equipment, an image related to the industrial equipment, a video related to the industrial equipment, and a document manual related to the industrial equipment. The data associated with the industrial process includes at least one of the following: an image related to the industrial process, a video related to the industrial process, and a document manual related to the industrial process.
[0105] In some examples, the information acquisition unit 810 is further configured to: acquire additional state information corresponding to the target behavior information in the subsequence.
[0106] The information extraction unit 820 is configured to extract a subsequence consisting of a plurality of sequentially arranged target behavior information from the target behavior information sequence.
[0107] The feature extraction unit 830 is configured to extract features from the work role information and the subsequence to generate corresponding sample features.
[0108] In some examples, the feature extraction unit 830 is further configured to: perform feature extraction on the work role information, subsequence, and corresponding additional status information to generate corresponding sample features.
[0109] The label construction unit 840 is configured to construct a corresponding sample label based on the data targeted by the next target behavior information of the subsequence.
[0110] In some examples, the label construction unit 840 is further configured to: determine the association relationship between the industrial equipment and / or industrial process involved in the data targeted by the next target behavior information of the subsequence and the industrial equipment and / or industrial process involved in the data targeted by the target behavior information in the subsequence; and construct the sample label based on the data targeted by the next target behavior information and the determined association relationship.
[0111] The sample generating unit 850 is configured to obtain a labeled training sample using the sample feature and the corresponding sample label as a feature part and a label part respectively.
[0112] Fig. 9 A block diagram of an example of a training device 900 for a to-be-viewed data recommendation model according to an embodiment of the present specification is shown. The device embodiment can be used with Figure 5 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0113] like Fig. 9As shown, the training device 900 for the to-be-viewed data recommendation model may include a sample acquisition unit 910 and a model training unit 920 .
[0114] The sample acquisition unit 910 is configured to acquire labeled training samples.
[0115] The model training unit 920 is configured to use the feature part of the labeled training sample as the input of the data recommendation model to be viewed, and use the corresponding label part of the labeled training sample as the expected output, so as to train and obtain the data recommendation model to be viewed.
[0116] Fig.10 FIG. 1 is a block diagram showing an example of a device 1000 for recommending data to be viewed according to an embodiment of the present specification. Figure 6-Figure 7 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0117] like Fig.10 As shown, the apparatus 1000 for recommending data to be viewed may include a sample set acquiring unit 1010 , a to-be-predicted information acquiring unit 1020 , a recommended data determining unit 1030 , and a data presenting unit 1040 .
[0118] The sample set acquisition unit 1010 is configured to acquire a labeled training sample set, wherein the feature portion of the labeled training sample is determined based on the work role information and the target behavior information sequence, and the label portion in the labeled training sample is determined based on the data targeted by the next target behavior information of the target behavior information sequence.
[0119] The predicted information acquisition unit 1020 is configured to acquire the work role information of the logged-in user and the current target behavior information sequence, wherein the target behavior information in the current target behavior information sequence includes the operation information for the target operation behavior and the data viewing information for the target data viewing behavior recorded up to the present, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes.
[0120] The recommended data determination unit 1030 is configured to determine the recommended viewing data corresponding to the work role information and the current target behavior information sequence of the logged-in user according to the acquired labeled training sample set.
[0121] In some examples, the recommended data determination unit 1030 is further configured to: convert the acquired work role information and current target behavior information sequence of the logged-in user into corresponding user current features according to the determination method of the feature part of the labeled training sample; and determine the recommended viewing data from the data indicated by the label part in the labeled training sample set using the K nearest neighbor algorithm.
[0122] In some examples, the recommended data determination unit 1030 is further configured to: input the acquired work role information and current target behavior information sequence of the logged-in user into a to-be-viewed data recommendation model to obtain the recommended viewing data, and the to-be-viewed data recommendation model is trained using the labeled training sample set.
[0123] The data presenting unit 1040 is configured to present the recommended viewing data to the logged-in user.
[0124] In some examples, the device 1000 for recommending data to be viewed may also include: a difficult sample generation unit 1050, which is configured to generate difficult samples based on the acquired work role information and current target behavior information sequence of the logged-in user in response to detecting negative feedback from the logged-in user regarding the recommended viewing data, so as to further train the data to be viewed recommendation model.
[0125] It should be noted that Figure 8-Figure 10 The operations of the various units in the training sample generating device for industrial scene data recommendation, the training device for the to-be-viewed data recommendation model, and the device for recommending to-be-viewed data can refer to the above Figure 2-Figure 7 Description of the corresponding steps in .
[0126] Reference above Figures 1 to 10 , describes the embodiments of a training sample generation method for industrial scene data recommendation, a training method for a data recommendation model to be viewed, and a method and device for recommending data to be viewed according to the embodiments of this specification.
[0127] The training sample generation device for industrial scene data recommendation, the training device for the data recommendation model to be viewed, and the device for recommending data to be viewed in the embodiments of this specification can be implemented in hardware, or in software, or in a combination of hardware and software. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device in which it is located reading the corresponding computer program instructions in the memory into the memory and running them. In the embodiments of this specification, the training sample generation device for industrial scene data recommendation, the training device for the data recommendation model to be viewed, and the device for recommending data to be viewed can be implemented, for example, using electronic devices.
[0128] Fig.11 A schematic diagram showing an example of an electronic device 1100 according to an embodiment of the present specification.
[0129] like Fig.11 As shown, the electronic device 1100 may include at least one processor 1110, a memory (e.g., a non-volatile memory) 1120, a memory 1130, and a communication interface 1140, and the at least one processor 1110, the memory 1120, the memory 1130, and the communication interface 1140 are connected together via a bus 1150. At least one processor 1110 executes at least one computer-readable instruction stored or encoded in the memory (i.e., the above-mentioned element implemented in the form of software).
[0130] In one embodiment, a computer executable instruction is stored in a memory, which when executed causes at least one processor 1110 to: obtain work role information and a target behavior information sequence of a target user, wherein the target behavior information in the target behavior information sequence includes recorded operation information for the target operation behavior and data viewing information for the target data viewing behavior, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; extract a subsequence consisting of a plurality of target behavior information arranged in sequence from the target behavior information sequence; perform feature extraction on the work role information and the subsequence to generate corresponding sample features; construct a corresponding sample label based on the data targeted by the next target behavior information of the subsequence; and obtain a labeled training sample based on the work role information and the target behavior information sequence obtained with the sample features and the corresponding sample labels as the feature part and the label part respectively; or cause at least one processor 1110 to: obtain a labeled training sample obtained by the aforementioned training sample generation method; and The feature part in the training sample is used as the input of the data recommendation model to be viewed, and the corresponding label part in the labeled training sample is used as the expected output, so as to train the data recommendation model to be viewed; or at least one processor 1110 is enabled to: obtain a labeled training sample set, wherein the feature part of the labeled training sample is determined based on the work role information and the target behavior information sequence, and the label part in the labeled training sample is determined based on the data targeted by the next target behavior information in the target behavior information sequence; obtain the work role information and the current target behavior information sequence of the logged-in user, wherein the target behavior information in the current target behavior information sequence includes the operation information for the target operation behavior and the data viewing information for the target data viewing behavior recorded up to the present, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; determine the recommended viewing data corresponding to the work role information and the current target behavior information sequence of the logged-in user according to the obtained labeled training sample set; and present the recommended viewing data to the logged-in user.
[0131] It should be understood that the computer executable instructions stored in the memory, when executed, cause at least one processor 1110 to perform the above combined operations in various embodiments of the present specification. Figure 1-Figure 7 Describes the various operations and functions.
[0132] According to one embodiment, a program product such as a computer-readable medium is provided. The computer-readable medium may have instructions (i.e., the above-mentioned elements implemented in the form of software), which, when executed by a computer, causes the computer to perform the above-mentioned combination of various embodiments of this specification. Figure 1-Figure 7 Describes the various operations and functions.
[0133] Specifically, a system or device equipped with a readable storage medium can be provided, on which software program codes that implement the functions of any of the above-mentioned embodiments are stored, and a computer or processor of the system or device can read and execute instructions stored in the readable storage medium.
[0134] In this case, the program code itself read from the machine-readable medium can realize the function of any one of the above-mentioned embodiments, and thus the machine-readable code and the machine-readable storage medium storing the machine-readable code constitute a part of the present invention.
[0135] The computer program code required for the operation of each part of this specification can be written in any one or more programming languages, including object-oriented programming languages, such as Java, Scala, Smalltalk, Eiffel, JADE, Emerald, C++, C#, VB, NET and Python, conventional procedural programming languages such as C language, Visual Basic 2003, Perl, COBOL 2002, PHP and ABAP, dynamic programming languages such as Python, Ruby and Groovy, or other programming languages. The program code can be run on the user's computer, or run on the user's computer as an independent software package, or run partly on the user's computer and another part on the remote computer, or all on the remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any network form, such as a local area network (LAN) or a wide area network (WAN), or connected to an external computer (e.g., via the Internet), or in a cloud computing environment, or used as a service, such as software as a service (SaaS).
[0136] Examples of readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD-RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code may be downloaded from a server computer or a cloud via a communication network.
[0137] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0138] Not all steps and units in the above-mentioned processes and system structure diagrams are necessary, and some steps or units can be ignored according to actual needs. The execution order of each step is not fixed and can be determined according to needs. The device structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0139] The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not imply "preferred" or "advantageous" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described techniques. However, the techniques may be implemented without these specific details. In some instances, in order to avoid obscuring the concepts of the described embodiments, well-known structures and devices are shown in block diagram form.
[0140] The optional implementation modes of the embodiments of the present specification are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present specification are not limited to the specific details in the above implementation modes. Within the technical concept of the embodiments of the present specification, various simple modifications can be made to the technical solutions of the embodiments of the present specification, and these simple modifications all belong to the protection scope of the embodiments of the present specification.
[0141] The above description of the contents of this specification is provided to enable any person of ordinary skill in the art to implement or use the contents of this specification. Various modifications to the contents of this specification will be apparent to those of ordinary skill in the art, and the general principles defined herein may be applied to other variations without departing from the scope of protection of the contents of this specification. Therefore, the contents of this specification are not limited to the examples and designs described herein, but are consistent with the widest range of principles and novel features disclosed herein.
Claims
1. A training sample generation method for industrial scene data recommendation, comprising: Acquire work role information and a target behavior information sequence of a target user, wherein the target behavior information in the target behavior information sequence includes recorded operation information for target operation behavior and data viewing information for target data viewing behavior, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; Extracting a subsequence consisting of a plurality of target behavior information arranged in sequence from the target behavior information sequence; Performing feature extraction on the work role information and the subsequence to generate corresponding sample features; Constructing a corresponding sample label based on the data targeted by the next target behavior information of the subsequence; and The sample features and the corresponding sample labels are used as the feature part and the label part respectively to obtain labeled training samples.
2. The training sample generation method according to claim 1, wherein: The target operation behavior includes an identification acquisition behavior and / or a state switching behavior for the industrial equipment, and the data associated with the industrial equipment includes at least one of the following: a three-dimensional model of the industrial equipment, an image related to the industrial equipment, a video related to the industrial equipment, and a document manual related to the industrial equipment. The data associated with the industrial process includes at least one of the following: an image related to the industrial process, a video related to the industrial process, and a document manual related to the industrial process.
3. The training sample generation method according to claim 1, wherein: The constructing of a corresponding sample label based on the data targeted by the next target behavior information of the subsequence includes: Determining an association relationship between the industrial equipment and / or industrial process involved in the data targeted by the next target behavior information of the subsequence and the industrial equipment and / or industrial process involved in the data targeted by the target behavior information in the subsequence; and The sample label is constructed based on the data targeted by the next target behavior information and the determined association relationship.
4. The training sample generation method according to claim 1, wherein: Before extracting features from the work role information and the subsequence to generate corresponding sample features, the training sample generation method further includes: Acquire additional state information corresponding to the target behavior information in the subsequence, The extracting features from the work role information and the subsequence to generate corresponding sample features includes: Feature extraction is performed on the work role information, the subsequence and the corresponding additional status information to generate corresponding sample features.
5. A method for training a recommendation model for data to be viewed, comprising: Obtaining a labeled training sample obtained by the training sample generation method as described in any one of claims 1 to 4; as well as The feature part of the labeled training sample is used as the input of the data recommendation model to be viewed, and the corresponding label part of the labeled training sample is used as the expected output, so as to train and obtain the data recommendation model to be viewed.
6. A method for recommending data to be viewed, comprising: Obtain a labeled training sample set, wherein a feature portion of the labeled training sample is determined based on the work role information and the target behavior information sequence, and a label portion of the labeled training sample is determined based on data targeted by the next target behavior information of the target behavior information sequence; Acquire the work role information and current target behavior information sequence of the logged-in user, wherein the target behavior information in the current target behavior information sequence includes operation information for target operation behavior and data viewing information for target data viewing behavior recorded up to the present, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; Determining, based on the acquired labeled training sample set, recommended viewing data corresponding to the job role information and current target behavior information sequence of the logged-in user; and The recommended viewing data is presented to the logged in user.
7. The method of claim 6, wherein: Determining the recommended viewing data corresponding to the job role information and current target behavior information sequence of the logged-in user according to the obtained labeled training sample set includes: According to the determination method of the feature part of the labeled training sample, converting the acquired job role information and current target behavior information sequence of the logged-in user into the corresponding current features of the user; and The recommended viewing data is determined from the data indicated by the label part in the labeled training sample set based on a K-nearest neighbor algorithm.
8. The method of claim 6, wherein: Determining the recommended viewing data corresponding to the job role information and current target behavior information sequence of the logged-in user according to the obtained labeled training sample set includes: The acquired work role information and current target behavior information sequence of the logged-in user are input into a to-be-viewed data recommendation model to obtain the recommended viewing data, and the to-be-viewed data recommendation model is trained using the labeled training sample set.
9. The method of claim 8, wherein: The method further comprises: In response to detecting negative feedback from the logged-in user regarding the recommended viewing data, a difficult sample is generated based on the acquired job role information and current target behavior information sequence of the logged-in user to further train the to-be-viewed data recommendation model.
10. A training sample generation device for industrial scene data recommendation, comprising: an information acquisition unit configured to acquire work role information and a target behavior information sequence of a target user, wherein the target behavior information in the target behavior information sequence includes recorded operation information for target operation behavior and data viewing information for target data viewing behavior, and the data targeted by the target data viewing behavior includes data associated with industrial equipment and / or industrial processes; and an information extraction unit, configured to extract a subsequence consisting of a plurality of target behavior information arranged in sequence from the target behavior information sequence; A feature extraction unit is configured to extract features from the work role information and the subsequence to generate corresponding sample features; A label construction unit, configured to construct a corresponding sample label based on the data targeted by the next target behavior information of the subsequence; The sample generating unit is configured to obtain a labeled training sample using the sample feature and the corresponding sample label as a feature part and a label part respectively.
11. A training device for a recommendation model of data to be viewed, comprising: A sample acquisition unit, configured to acquire a labeled training sample obtained by the training sample generation method according to any one of claims 1 to 4; as well as The model training unit is configured to use the feature part of the labeled training sample as the input of the data recommendation model to be viewed, and use the corresponding label part of the labeled training sample as the expected output, so as to train and obtain the data recommendation model to be viewed.
12. A device for recommending data to be viewed, comprising: A sample set acquisition unit is configured to acquire a labeled training sample set, wherein a feature portion of the labeled training sample is determined based on the work role information and the target behavior information sequence, and a label portion in the labeled training sample is determined based on data targeted by the next target behavior information of the target behavior information sequence; The information acquisition unit to be predicted is configured to acquire the work role information of the logged-in user and the current target behavior information sequence, wherein the target behavior information in the current target behavior information sequence includes the operation information for the target operation behavior and the data viewing information for the target data viewing behavior recorded up to the present, and the data for which the target data viewing behavior is targeted includes data associated with industrial equipment and / or industrial processes; a recommended data determination unit configured to determine, based on the acquired labeled training sample set, recommended viewing data corresponding to the job role information and current target behavior information sequence of the logged-in user; and The data presenting unit is configured to present the recommended viewing data to the logged-in user.
13. An electronic device, comprising: At least one processor, a memory coupled to the at least one processor, and a computer program stored on the memory, wherein the at least one processor executes the computer program to implement the training sample generation method as described in any one of claims 1 to 4, or the training method as described in claim 5, or the method for recommending data to be viewed as described in any one of claims 6 to 9.
14. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the computer program implements the training sample generation method as described in any one of claims 1 to 4, or implements the training method as described in claim 5, or implements the method for recommending data to be viewed as described in any one of claims 6 to 9.
Citation Information
Patent Citations
Information recommendation method and device, electronic device and computer readable storage medium
CN110674181A
Remote monitoring method and device based on power construction operation and computer equipment
CN111178246A
Feature extraction method and device based on attention mechanism and electronic equipment
CN111476258A
Information recommendation method, device and equipment and storage medium
CN111797318A
Object recommendation model training method and device
CN112669096A
