Algorithm management method, device, electronic device and computer program product
By analyzing user needs and querying the algorithm warehouse, existing algorithm solutions can be directly reused, which solves the problem of high development costs of artificial intelligence algorithms and achieves intelligent management and efficiency improvement of algorithms.
Patent Information
- Application Number
- CN202410763921.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-13
AI Technical Summary
In the existing technology, artificial intelligence algorithms in various scenarios are scattered and independent of each other. As a result, when algorithm requirements arise in new scenarios, it is necessary to directly develop adapted algorithms, resulting in repeated development and increased development costs.
By receiving the user's algorithm requirements, it parses and identifies the key information of the algorithm that meets the requirements, queries the existing algorithm warehouse to see if the corresponding algorithm identifier exists, and if so, directly reuses the algorithm to avoid repeated development.
It realizes intelligent management of algorithms, avoids unnecessary duplication of development, reduces the cost of algorithm development, and improves development efficiency.
Smart Images

Figure CN118349270B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an algorithm management method, device, electronic device and computer program product. Background Art
[0002] With the widespread application of artificial intelligence, at present, at least one artificial intelligence algorithm (also known as artificial intelligence model, hereinafter referred to as algorithm) is often trained for the corresponding scenario according to actual business needs to solve the above business needs. For example: in a scenario applied to a certain area such as a park, if the business demand in this scenario is to monitor whether there are pedestrians illegally entering the limited range in the area, then the algorithm for human body detection (i.e. artificial intelligence algorithm, also known as artificial intelligence model) can be used to monitor whether there are pedestrians illegally entering the above limited range to solve the business needs in this scenario; for another example, in a scenario applied to a certain work area such as a factory, if the business demand in this scenario is to monitor whether the relevant personnel in the work area are wearing helmets, then the algorithm for head detection (i.e. artificial intelligence algorithm, also known as artificial intelligence model) and the algorithm for helmet detection (i.e. artificial intelligence algorithm, also known as artificial intelligence model) can be used to monitor whether the relevant personnel in the work area are wearing helmets to solve the business needs in this scenario; and so on.
[0003] At present, the artificial intelligence algorithms in various scenarios are scattered and independent of each other, so that when there is a new algorithm requirement in a certain scenario, the artificial intelligence algorithm that adapts to the algorithm requirement is not intelligently decided based on the existing artificial intelligence algorithms, but the artificial intelligence algorithm that adapts to the algorithm requirement is directly developed. This will lead to the development of many duplicate artificial intelligence algorithms and increase the cost of artificial intelligence algorithm development. Summary of the invention
[0004] The present application provides an algorithm management method, device, electronic device and computer program product, so as to realize the artificial intelligence algorithm required for algorithm demand decision-making through intelligent management of artificial intelligence algorithm, thereby avoiding the existing blind development of artificial intelligence algorithm adapted to the algorithm demand.
[0005] The present application provides an algorithm management method, the method comprising:
[0006] Receive algorithm requirements from users;
[0007] Parsing the algorithm requirement to identify at least one algorithm key information that meets the algorithm requirement;
[0008] For each of the algorithm key information, if an algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse, the algorithm corresponding to the algorithm identifier is determined as the target algorithm.
[0009] The present application provides an algorithm management device, which includes:
[0010] A receiving unit, used for receiving algorithm requirements from users;
[0011] an identification unit, configured to parse the algorithm requirement to identify at least one algorithm key information satisfying the algorithm requirement;
[0012] The processing unit is used for determining, for each of the algorithm key information, the algorithm corresponding to the algorithm identifier as the target algorithm if the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse.
[0013] An embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a machine-readable storage medium;
[0014] The machine-readable storage medium stores machine-executable instructions that can be executed by the processor;
[0015] The processor is used to execute machine executable instructions to implement the steps of the above disclosed method.
[0016] An embodiment of the present application provides a computer program product, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above-disclosed method are implemented.
[0017] It can be seen from the above technical solutions that in this application, by subdividing an algorithm requirement into the algorithm key information of at least one artificial intelligence algorithm that meets the algorithm requirement, and then for each algorithm key information, by analyzing the existing algorithm warehouse (which stores the algorithm identifiers of multiple existing artificial intelligence algorithms) to find the algorithm identifier corresponding to the algorithm key information, the algorithm corresponding to the algorithm identifier is directly reused as the target algorithm corresponding to the algorithm key information, without having to start adapting the target artificial intelligence algorithm based on the algorithm requirement. This enables the effective reuse of existing artificial intelligence algorithms, avoids unnecessary and repeated algorithm development, and reduces the cost of algorithm development. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0019] Figure 1 A flow chart of the method provided in the embodiment of the present application;
[0020] Figure 2 A flowchart for implementing step 102 provided in an embodiment of the present application;
[0021] Figure 3A flow chart for determining a model training strategy provided in an embodiment of the present application;
[0022] Figure 4 A schematic diagram of the algorithm usage strategy provided in the embodiment of the present application;
[0023] Figure 5 A structural diagram of a device provided in an embodiment of the present application;
[0024] Figure 6 A structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0026] See also Figure 1 , Figure 1 This is a flow chart of the method provided in the embodiment of the present application. The process can be applied to electronic devices such as terminals and servers, and is not specifically limited in this embodiment.
[0027] like Figure 1 As shown, the process may include the following steps:
[0028] Step 101: Receive algorithm requirements from users.
[0029] In the specific implementation, if there is currently a business application such as "Now there are many people fishing illegally near some rivers in our city, and we need to use algorithms to detect their illegal behavior", and the corresponding artificial intelligence algorithm has not yet been developed specifically for this business application, at this time, the corresponding algorithm requirements can be determined based on the above business application and sent to the above electronic device, ultimately realizing that the above electronic device receives the algorithm requirements from the user.
[0030] Still taking the above business application as "Now there are many people fishing illegally near some rivers in our city, and we need to detect their illegal behavior with algorithms" as an example, as an implementation example, the algorithm requirements here can be directly the above business application, or they can be requirements summarized from the above business application, such as algorithms for detecting illegal fishing.
[0031] It should be noted that the above algorithm requirements can be expressed through relatively colloquial languages such as voice or text descriptions.
[0032] Step 102: parse the algorithm requirement to identify at least one algorithm key information that meets the algorithm requirement.
[0033] In step 102, the algorithm requirements can be analyzed with the help of a trained language model (ie, a large model) to accurately identify at least one key algorithm information that meets the algorithm requirements. Figure 2 The process shown will not be described in detail here.
[0034] As an embodiment, any algorithm key information indicates the corresponding target algorithm. Optionally, any algorithm key information can be specifically the algorithm purpose of the corresponding target algorithm. For example, in a scene applied to a certain area such as a park, if the algorithm requirement in the scene is to monitor whether there are pedestrians illegally entering the limited range in the area, then based on step 102, one algorithm key information that meets the algorithm requirement can be identified as human body detection, and the target algorithm corresponding to the human body detection is used to monitor whether the objects entering the limited range in the area include pedestrians; for another example, in a scene applied to a certain work area such as a factory, if the algorithm requirement in the scene is to monitor whether the relevant personnel in the work area wear helmets, then based on step 102, two algorithm key information that meet the algorithm requirement can be identified, one of which is head detection, and the target algorithm corresponding to the head detection is used to monitor whether the relevant personnel in the work area wear hats; the other algorithm key information is helmet detection, and the target algorithm corresponding to the helmet detection is used to monitor whether the hat worn by the relevant personnel in the work area is a helmet under the premise of wearing a hat.
[0035] Step 103: for each algorithm key information, if the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse, the algorithm corresponding to the algorithm identifier is determined as the target algorithm.
[0036] In this embodiment, the algorithm warehouse stores the algorithm identifiers of multiple artificial intelligence algorithms that have been developed so far. Applied to this step 103, for each algorithm key information, it can be queried in the algorithm warehouse whether there is an algorithm identifier corresponding to the algorithm key information.
[0037] As an embodiment, there are many implementation methods for querying whether there is an algorithm identifier corresponding to the algorithm key information in the algorithm warehouse. For example, for each algorithm key information, the algorithm key information is used as a keyword or the keyword is extracted from the algorithm key information, and the algorithm identifiers recorded in the algorithm warehouse are searched to see whether there is an algorithm identifier matching the keyword. If found, it is determined that the algorithm identifier corresponding to the algorithm key information exists in the algorithm warehouse; if not found, then: when the semantics of the algorithm key information and the semantics of one of the algorithm identifiers recorded in the algorithm warehouse meet the set matching requirements, it is determined that the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse; and when the semantics of the algorithm key information and the semantics of each algorithm identifier recorded in the algorithm warehouse do not meet the set matching requirements, it is determined that the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse.
[0038] Here, the algorithm key information is "human body detection", and the corresponding keyword can be the algorithm key information, i.e., "human body detection", or a part of the algorithm key information, i.e., "human body" such as "human body". As an embodiment, the above-mentioned searching for an algorithm identifier matching the keyword among the algorithm identifiers recorded in the algorithm warehouse can be, for example: searching for an algorithm identifier containing the keyword among the algorithm identifiers recorded in the algorithm warehouse, and if so, determining that the algorithm identifier matches the keyword, otherwise, determining that the algorithm identifier does not match the keyword.
[0039] In addition, in this embodiment, whether the semantics of the above algorithm key information and the semantics of one of the algorithm identifiers recorded in the algorithm warehouse meet the set matching requirements can be judged by semantic similarity. Here, the semantic similarity method is, for example, common fuzzy matching, or deep learning word embedding matching can be used. Common fuzzy matching is relatively conventional and will not be described in detail. As for the word embedding matching here, it can be achieved with the help of the above-mentioned language model. For example, the algorithm key information and any algorithm identifier recorded in the algorithm warehouse are first input into the above-mentioned language model, so that the language model can determine the similarity between the semantics of the input algorithm key information and the semantics of the algorithm identifier (for example, first determine the fixed-length feature vector representation of the input algorithm key information and the fixed-length feature vector representation of the input algorithm identifier, and then calculate the cosine similarity between the two feature vector representations through the cosine similarity algorithm, which is the similarity between the semantics of the input algorithm key information and the semantics of the algorithm identifier); then, check whether the similarity between the semantics of the input algorithm key information and the semantics of the algorithm identifier is higher than the set threshold. If so, it is determined that the semantics of the input algorithm key information and the semantics of the algorithm identifier meet the set matching requirements. For example: according to the above method, it can be determined that the semantics of both "passerby" and "pedestrian" meet the set matching requirements.
[0040] Based on the above description, if the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse, then step 103 describes directly determining the algorithm corresponding to the algorithm identifier as the target algorithm, that is, directly reusing the developed algorithm instead of blindly redeveloping the target algorithm corresponding to the algorithm key information.
[0041] So far, completed Figure 1 Description of the process shown.
[0042] pass Figure 1 It can be seen from the process shown that this embodiment subdivides an algorithm requirement into the algorithm key information of at least one artificial intelligence algorithm that meets the algorithm requirement, and then for each algorithm key information, by analyzing the existing algorithm warehouse (which stores the algorithm identifiers of multiple existing artificial intelligence algorithms) to find the algorithm identifier corresponding to the algorithm key information, the algorithm corresponding to the algorithm identifier is directly reused as the target algorithm corresponding to the algorithm key information, without having to start adapting the target artificial intelligence algorithm based on the algorithm requirement. This enables the effective reuse of existing artificial intelligence algorithms, avoids unnecessary and repeated algorithm development, and reduces the cost of algorithm development.
[0043] Step 102 is described below:
[0044] See also Figure 2 , Figure 2 The step 102 provided in the embodiment of the present application is implemented as a flowchart. Figure 2 As shown, the process may include the following steps:
[0045] Step 201, calling the trained language model to execute step 202.
[0046] Step 202: Convert the algorithm requirements into natural language information through a trained language model, so as to identify at least one algorithm key information that meets the algorithm requirements based on the natural language information; the natural language information is represented by a natural language expression form, and the natural language expression form is a form supported by the language model.
[0047] As described above, the above business requirements can be vernacular input by users. For example, the algorithm requirement is "I want to monitor the illegal entry into the restricted area in the park, what should I do?"; another example: the algorithm requirement is: "I want to ensure that employees in the factory always wear safety helmets, what should I do?"; another example: the algorithm requirement is "Now there are many people fishing illegally along some rivers in my city, and I need to detect their illegal behavior with a model." And so on.
[0048] In this embodiment, the trained language model is called to convert the algorithm requirements into natural language information by the language model so as to identify at least one algorithm key information that meets the algorithm requirements based on the natural language information. For example, the algorithm requirement is: "There are many people fishing illegally near some rivers in my city now, and I need to detect their illegal behavior with a model", then there are two algorithm key information that meet the algorithm requirements identified by the above language model, one of which is fishing rod detection (its corresponding target algorithm is used to detect fishing rods), and the other is human body detection (its corresponding target algorithm is used to detect human bodies).
[0049] In this embodiment, the language model is trained by customized fine-tuning. For example, based on the constructed question-answering dataset, the initially selected appropriate pre-trained language model is trained. The question-answering dataset here is constructed by simulating user inquiry scenarios. For example, the sample data in the question-answering dataset is as follows:
[0050] For example, Example 1: {“Business requirement (expressed by question (abbreviated as Q)): I want to monitor the behavior of illegally entering the restricted area in the park. Now that I have a human detection algorithm, what should I do?”, “Model requirement (expressed by answer (abbreviated as A)): Human detection”}.
[0051] For example, Example 2: {“Business requirement (expressed by question (abbreviated as Q)): I want to ensure that employees in the factory always wear safety helmets. Now I don’t have any algorithm model, what should I do?”, “Model requirement (expressed by answer (abbreviated as A)): “Head detection”, “Safety helmet detection”}.
[0052] In this embodiment, the above natural language information is different from the above-mentioned relatively vernacular algorithm requirements, which can be represented by a natural language expression form (the natural language expression form is a form supported by the language model).
[0053] So far, completed Figure 2 The process shown.
[0054] pass Figure 2 The process shown achieves that by using a language model to parse the algorithm requirements, the algorithm key information of the target algorithm required to solve the algorithm requirements can be more accurately identified, so that a suitable target algorithm can be decided more quickly based on the algorithm key information.
[0055] The above step 103 is described in detail below:
[0056] The above step 103 describes the corresponding processing method when the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse.
[0057] As an embodiment, if for a certain algorithm key information, if the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse, then the precision value achieved by the trained multimodal intelligent algorithm when meeting the above algorithm requirements is greater than or equal to the set precision threshold, then the multimodal intelligent algorithm is determined as the target algorithm corresponding to the algorithm key information. Here, the multimodal intelligent algorithm meets the above algorithm requirements specifically as follows: the multimodal intelligent algorithm supports the execution of corresponding operations according to the algorithm key information, such as the algorithm key information is human body detection, and the multimodal intelligent algorithm supports human body detection operations (or can implement human body detection). Correspondingly, the precision value achieved by the multimodal intelligent algorithm when meeting the above algorithm requirements refers to: the precision value that can be achieved when the multimodal intelligent algorithm supports the execution of corresponding operations according to the algorithm key information. For example, if the algorithm key information is human body detection, the precision value when the multimodal intelligent algorithm performs human body detection.
[0058] In this embodiment, the multimodal intelligent algorithm (also called the all things detection algorithm) can be built-in with the accuracy achieved by the algorithm when meeting some algorithm requirements. Under this premise, this embodiment can query the accuracy achieved by the multimodal intelligent algorithm when meeting the algorithm requirements, and then determine whether the accuracy meets the set accuracy requirements required by the above algorithm requirements. If so, the multimodal intelligent algorithm can be directly reused at this time, that is, the multimodal intelligent algorithm is determined as the target algorithm corresponding to the key information of the algorithm.
[0059] As an embodiment, if for a certain algorithm key information, if the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse, the trained multimodal intelligent algorithm does not meet the algorithm requirements, or the trained multimodal intelligent algorithm does not meet the algorithm requirements but the achieved accuracy does not meet the set accuracy requirements, then the corresponding model training strategy is determined for the algorithm key information to instruct the target algorithm corresponding to the algorithm key information to be trained according to the model training strategy. Figure 3 An example is given to show how to determine the model training strategy.
[0060] See also Figure 3 , Figure 3 The model training strategy provided in the embodiment of the present application is determined as a flow chart. Figure 3 As shown, the process may include the following steps:
[0061] Step 301: Based on the above algorithm key information, determine the model category of the model to be used.
[0062] Here, the model category can be exhaustive, such as "detection", "classification", "mixed", etc. For example: when the key information of the above algorithm is "pedestrian detection", it can be naturally known that the model category can be "detection".
[0063] Step 302: Obtain a configured training strategy template that matches the model category.
[0064] In this embodiment, a corresponding training strategy template may be configured in advance for each model category. The training strategy template configured for each model category may be directly built into the software background.
[0065] Step 303, determining the model training strategy based on the training strategy template and the algorithm key information; or, determining the model training strategy based on the training strategy template, the algorithm key information, and externally input training guidance information.
[0066] For example, if the key information of the algorithm is "fishing rod detection", the template of the detection model is applied, the keyword "fishing rod" in the key information of the algorithm is embedded, and the model training strategy adapted to the key information of the algorithm is output.
[0067] In this embodiment, the model training strategy involves multiple aspects, including but not limited to optimization algorithm, learning rate adjustment, data preprocessing, model structure design, hyperparameter adjustment, etc. In this embodiment, the model training strategy includes at least one of the following as an example: the magnitude of the sample data set, the data enhancement method of the sample data, and the training strategy, such as the adjustment method of the hyperparameters such as the learning rate during the training process.
[0068] So far, completed Figure 3 The process shown.
[0069] pass Figure 3 The process shown implements the model training strategy of how to output the key information of the adaptation algorithm. Then, the target algorithm corresponding to the key information of the training algorithm can be developed based on the model training strategy.
[0070] It should be noted that, in this embodiment, for some algorithm requirements, if it is found that the number of algorithm key information that meets the algorithm requirement is greater than 1, then the algorithm requirement can be considered as a complex algorithm requirement.
[0071] When applied to complex algorithm requirements, one algorithm key information is used to indicate the corresponding target algorithm, and different algorithm key information indicates different target algorithms. Based on this, this embodiment also needs to further identify the cascade relationship between the target algorithms corresponding to each algorithm key information.
[0072] Still taking the above algorithm requirement of monitoring whether the relevant personnel in the working area wear safety helmets as an example, as described above, based on step 102, it can be identified that one of the two algorithm key information that meet the algorithm requirement is head detection, and the target algorithm corresponding to the head detection is used to monitor whether the relevant personnel in the working area wear hats; the other algorithm key information is safety helmet detection, and the target algorithm corresponding to the safety helmet detection is used to monitor whether the relevant personnel in the working area wear hats. Wherein, the target algorithms corresponding to these two algorithm key information respectively have a cascade relationship, that is: first, the target algorithm corresponding to the head detection detects that the head wears a hat, and then the target algorithm corresponding to the safety helmet detection further detects that the worn hat is a safety helmet, and then it can be determined that the relevant personnel in the working area wear safety helmets. Otherwise, even if the person is holding a safety helmet in his hand or wearing a non-safety helmet on his head, it can be determined that the relevant personnel in the working area do not wear safety helmets. Finally, the above algorithm requirement of monitoring whether the relevant personnel in the working area wear safety helmets is achieved.
[0073] As an embodiment, by means of the cascade relationship between the target algorithms corresponding to the algorithm key information as described above, the usage strategy of the target algorithm corresponding to each algorithm key information can be further output to realize the algorithm requirement based on the usage strategy.
[0074] For example, Figure 4 As shown in the usage strategy. Figure 4 As shown, when the algorithm requirement is fishing detection, the algorithm requirement is analyzed to identify the following two algorithm key information that meet the algorithm requirement: 1) fishing rod detection; 2) human body detection. There is a cascade relationship between the target algorithms corresponding to the two algorithm key information, namely the algorithm for fishing rod detection (referred to as the fishing rod detection algorithm) and the algorithm for human body detection (referred to as the human body detection algorithm). For example, first detect whether there is a fishing rod through the fishing rod detection algorithm, and then further detect whether there is a human body through the human body detection algorithm on the premise that the fishing rod is detected by the fishing rod detection algorithm. If a human body is detected, it is determined that there is a fishing event, which meets the above algorithm requirement. Under this premise, based on the cascade relationship between the target algorithms corresponding to the two algorithm key information, the usage strategies of the target algorithms corresponding to the two algorithm key information are output, as shown below. Figure 4 As shown, so that users can know how to use each target algorithm.
[0075] In addition, in the present embodiment, the above-mentioned determination of the multimodal intelligent algorithm as the target algorithm corresponding to the algorithm key information may further include: recording the algorithm information of the target algorithm corresponding to the algorithm key information in the algorithm warehouse according to the storage standard required by the above-mentioned algorithm warehouse. Here, the algorithm information includes at least algorithm link information and algorithm identification. The algorithm link information here can be used for the user to directly use the target algorithm when obtaining the algorithm link information, without having to create the target algorithm again. It can be seen that the target algorithm here can be the target algorithm corresponding to the above-mentioned algorithm key information hatched based on the multimodal intelligent algorithm. The algorithm link information here can be the link information of the multimodal intelligent algorithm.
[0076] Of course, in this embodiment, if a target algorithm corresponding to an algorithm key information is trained according to the above model training strategy, the algorithm information of the target algorithm corresponding to the algorithm key information can also be recorded in the algorithm warehouse according to the storage standard required by the above algorithm warehouse. Here, the algorithm information at least includes algorithm link information and algorithm identification. The algorithm link information can be the link information of the trained target algorithm.
[0077] Based on the above description, in this embodiment, after determining the target algorithm, step 103 further provides link information of the target algorithm to facilitate the user to use the target algorithm based on the link information without having to recreate and install the algorithm according to the algorithm installation process.
[0078] For example, the algorithm requirement is: "I want to monitor the behavior of illegally entering the restricted area in the park. Now I have a human detection algorithm, what should I do?" If the above step 102 analyzes that there is only one algorithm key information that meets the algorithm requirement, specifically human detection, and then based on step 103, it is found that there is an algorithm identifier corresponding to the algorithm key information in the algorithm warehouse (such as a human detection algorithm), then it is applied to this embodiment and the link information of the human detection algorithm can be directly output (which means reusing the existing human detection algorithm). Based on this, the user can directly locate and use the human detection algorithm based on the link information of the human detection algorithm, without having to re-search and install the human detection algorithm.
[0079] Optionally, if the above algorithm requirements cannot be met by the above target algorithm, an indication information may be further output; the indication information indicates the coordination mode of the target algorithm and the corresponding target strategy to complete the above algorithm requirements. The target strategy here may be a strategy pre-configured on the above electronic device, or a strategy configured on other devices or platforms, which is not specifically limited in this embodiment.
[0080] As an embodiment, the coordination method here at least includes: obtaining the algorithm result obtained by the above-mentioned target algorithm, and detecting whether the above-mentioned algorithm result meets the target strategy; wherein, whether the algorithm result meets the result of the target strategy indicates that the algorithm requirement is completed.
[0081] Let’s take the above algorithm requirement as an example: “I want to monitor the behavior of illegally entering the restricted area in the park. Now I already have a human detection algorithm, what should I do?” As described above, although the link information of the human detection algorithm is directly output (which means reusing the existing human detection algorithm). However, since the human detection algorithm only detects whether there is a person in an area, but it cannot determine whether the area is a restricted area, it needs to use the target strategy, namely the “detection area strategy” (which indicates the above restricted area, also called the detection area). When the human target returned by the human detection algorithm appears in the “detection area”, it is considered a violation, otherwise, it is considered not a violation. That is, the algorithm requirement is completed by cooperating with the target algorithm and the corresponding target strategy.
[0082] The method provided in the embodiment of the present application is described above. The device provided in the embodiment of the present application is described below:
[0083] See also Figure 5 , Figure 5 This is a diagram of the structure of the device provided in the embodiment of the present application. The device includes:
[0084] A receiving unit, used for receiving algorithm requirements from users;
[0085] an identification unit, configured to parse the algorithm requirement to identify at least one algorithm key information satisfying the algorithm requirement;
[0086] The processing unit is used for determining, for each of the algorithm key information, the algorithm corresponding to the algorithm identifier as the target algorithm if the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse.
[0087] Optionally, parsing the algorithm requirement to identify at least one algorithm key information that meets the algorithm requirement includes:
[0088] The algorithm requirements are converted into natural language information through a trained language model, so as to identify at least one algorithm key information that meets the algorithm requirements based on the natural language information; the natural language information is represented by a natural language expression form, and the natural language expression form is a form supported by the language model.
[0089] Optionally, the identifying at least one algorithm key information satisfying the algorithm requirement further comprises:
[0090] If the number of algorithm key information satisfying the algorithm requirement is greater than 1, the cascade relationship between the target algorithms corresponding to each algorithm key information is identified; wherein any algorithm key information is used to indicate the corresponding target algorithm, and different algorithm key information indicates different target algorithms.
[0091] Optionally, the processing unit further includes:
[0092] Output the usage strategy of the target algorithm corresponding to each algorithm key information, so as to realize the algorithm requirement based on the usage strategy.
[0093] Optionally, the processing unit further includes:
[0094] For any of the algorithm key information, if the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse, then when the accuracy value achieved by the trained multimodal intelligent algorithm when meeting the algorithm requirements is greater than or equal to the set accuracy threshold, the multimodal intelligent algorithm is determined as the target algorithm.
[0095] Optionally, after determining the target algorithm, the processing unit further includes:
[0096] providing link information of the target algorithm to use the target algorithm based on the link information; or,
[0097] The link information of the target algorithm is provided to use the target algorithm based on the link information, and indication information is output; the indication information indicates the coordination manner of the target algorithm with the corresponding target strategy to complete the algorithm requirement.
[0098] Optionally, the cooperation method at least includes:
[0099] Obtain an algorithm result obtained through the target algorithm, and detect whether the algorithm result meets the target strategy; wherein, whether the algorithm result meets the result of the target strategy indicates that the algorithm requirement is met.
[0100] Optionally, the processing unit further includes:
[0101] When the accuracy value achieved by the multimodal intelligent algorithm when meeting the algorithm requirements is less than the set accuracy threshold, a model training strategy is determined to indicate that the target algorithm is trained according to the model training strategy.
[0102] Optionally, the processing unit further includes:
[0103] For each of the algorithm key information, if the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse, a model training strategy is determined to instruct the target algorithm to be trained according to the model training strategy.
[0104] Optionally, determining the model training strategy includes:
[0105] Based on the algorithm key information, determine the model category of the model to be used;
[0106] Obtaining a configured training strategy template that matches the model category;
[0107] The model training strategy is determined based on the training strategy template and the algorithm key information; or, the model training strategy is determined based on the training strategy template, the algorithm key information, and externally input training guidance information.
[0108] So far, completed Figure 5 Structural description of the device shown.
[0109] The present application also provides Figure 5 The hardware structure of the device shown. Figure 6 , Figure 6 This is a structural diagram of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the hardware structure may include: a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the method disclosed in the above example of this application.
[0110] Based on the same application concept as the above method, an embodiment of the present application also provides a machine-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed by a processor, the method disclosed in the above example of the present application can be implemented.
[0111] Based on the same application concept as the above method, an embodiment of the present application further provides a computer program product, wherein the computer program product stores a computer program, and when the computer program is executed by a processor, the method disclosed in the above example of the present application is implemented.
[0112] Exemplarily, the above-mentioned machine-readable storage medium can be any electronic, magnetic, optical or other physical storage device, which can contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0113] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. An algorithm management method, It is characterized in that The method includes: Receive algorithm requirements from users; Parsing the algorithm requirement to identify at least one algorithm key information that meets the algorithm requirement; For each of the algorithm key information, if an algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse, the algorithm corresponding to the algorithm identifier is determined as the target algorithm; The identifying of at least one algorithm key information satisfying the algorithm requirement further includes: if the number of algorithm key information satisfying the algorithm requirement is greater than 1, further identifying the cascade relationship between the target algorithms corresponding to each algorithm key information, wherein any algorithm key information is used to indicate the corresponding target algorithm, and different algorithm key information indicates different target algorithms; and further based on the cascade relationship between the target algorithms corresponding to each algorithm key information, outputting the usage strategy of the target algorithm corresponding to each algorithm key information, so as to realize the algorithm requirement based on the usage strategy, wherein the usage strategy of each target algorithm is used to indicate how to use each target algorithm to complete the algorithm requirement.
2. The method according to claim 1, It is characterized in that The method further comprises: For any of the algorithm key information, if the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse, then when the accuracy value achieved by the trained multimodal intelligent algorithm when meeting the algorithm requirements is greater than or equal to the set accuracy threshold, the multimodal intelligent algorithm is determined as the target algorithm.
3. The method according to claim 1 or 2, It is characterized in that After determining the target algorithm, the method further comprises: providing link information of the target algorithm to use the target algorithm based on the link information; or, The link information of the target algorithm is provided to use the target algorithm based on the link information, and indication information is output; the indication information indicates the coordination manner of the target algorithm with the corresponding target strategy to complete the algorithm requirement.
4. The method according to claim 3, It is characterized in that The cooperation method at least includes: Obtain an algorithm result obtained through the target algorithm, and detect whether the algorithm result meets the target strategy; wherein, whether the algorithm result meets the result of the target strategy indicates that the algorithm requirement is met.
5. The method according to claim 3, It is characterized in that The method further comprises: When the accuracy value achieved by the multimodal intelligent algorithm when meeting the algorithm requirements is less than the set accuracy threshold, a model training strategy is determined to indicate that the target algorithm is trained according to the model training strategy.
6. The method according to claim 1, It is characterized in that The method further comprises: For each of the algorithm key information, if the algorithm identifier corresponding to the algorithm key information does not exist in the existing algorithm warehouse, a model training strategy is determined to instruct the target algorithm to be trained according to the model training strategy.
7. The method according to claim 5 or 6, It is characterized in that Determining the model training strategy includes: Based on the algorithm key information, determine the model category of the model to be used; Obtaining a configured training strategy template that matches the model category; The model training strategy is determined based on the training strategy template and the algorithm key information; or, the model training strategy is determined based on the training strategy template, the algorithm key information, and externally input training guidance information.
8. An algorithm management device, It is characterized in that The device includes: A receiving unit, used for receiving algorithm requirements from users; An identification unit is used to parse the algorithm requirement to identify at least one algorithm key information that meets the algorithm requirement; and, if the number of algorithm key information that meets the algorithm requirement is greater than 1, further identify and output the cascade relationship between the target algorithms corresponding to the algorithm key information, wherein any algorithm key information is used to indicate the corresponding target algorithm, and different algorithm key information indicates different target algorithms; and, further based on the cascade relationship between the target algorithms corresponding to the algorithm key information, output a usage strategy for the target algorithm corresponding to each algorithm key information, so as to realize the algorithm requirement based on the usage strategy, and the usage strategy of each target algorithm is used to indicate how to use each target algorithm to complete the algorithm requirement; The processing unit is used for determining, for each of the algorithm key information, the algorithm corresponding to the algorithm identifier as the target algorithm if the algorithm identifier corresponding to the algorithm key information exists in the existing algorithm warehouse.
9. An electronic device, It is characterized in that The electronic device includes: a processor and a machine-readable storage medium; The machine-readable storage medium stores machine-executable instructions that can be executed by the processor; The processor is used to execute machine executable instructions to implement the method steps of any one of claims 1-7.
10. A computer program product, It is characterized in that The computer program product stores a computer program, and when the computer program is executed by a processor, the method described in any one of claims 1 to 7 is implemented.
