AI workflow model transaction platform secrecy method and system

By implementing identification code generation, code conversion and terminal reporting modules on the server of the AI ​​workflow model trading platform, the problem that the existing platform does not support trial is solved, and the trial function of the AI ​​workflow model and the security protection of the core code is realized.

CN120074965AActive Publication Date: 2025-05-30CHENYU ZHIYUN (HANGZHOU) TECHNOLOGY CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202510549741.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-05-30
Estimated Expiration
2045-04-29

AI Technical Summary

Technical Problem

The existing AI workflow model trading platform does not support trial functions, resulting in increased difficulty and risk of AI workflow trading.

Method used

By implementing confidentiality methods on the server of the AI ​​workflow model trading platform, generating identification codes, and converting the codes interacting with the AI ​​server in the AI ​​workflow model into forwarding codes, adding end-to-end reporting modules, periodically generating reporting identification codes, verifying and forwarding instructions to upload codes and obtaining results, ensuring the security of the core code of the AI ​​workflow model.

Benefits of technology

The trial function of the AI ​​workflow model trading platform is realized, allowing users to experience the functions of the AI ​​workflow model without copying the code of the AI ​​workflow model, protecting the rights and interests of creators, and effectively protecting the core code security of the AI ​​workflow model through server forwarding and reverse dependency injection technologies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120074965A_ABST
    Figure CN120074965A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of information, in particular to an AI workflow model transaction platform secrecy method and system. The method comprises the following steps: receiving an AI workflow model trial loading request sent by a client, and generating an identification code; converting the interaction code into a code forwarded by the server; adding an end reporting module in the AI workflow model, and sending the AI workflow model code and the identification code to the client; when the end reporting module operates on a client, a reporting identification code is generated periodically according to the identification code and the current time and stored in a memory, and the reporting identification code is attached when the client executes the instruction uploading code; when the server verifies that the report identification code passes, the instruction uploading code is sent to the AI server; and after receiving data fed back by the AI server, storing the fed-back data to a storage address matched with the result acquisition code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Multiple embodiments of this specification relate to the field of information technology, and more particularly to a confidentiality method and system for an AI workflow model trading platform. Background Art

[0002] With the development of AI technology, the fields and ways of its application have been continuously enriched. The AI workflow model is one of the ways to apply AI technology. An AI workflow model refers to organizing a series of artificial intelligence algorithms, data processing steps, and business logics into an executable process to solve specific problems or complete specific tasks. Such a model usually includes multiple stages such as data preprocessing, feature engineering, model training, evaluation, and deployment. Each stage may involve different technology stacks and tool sets, and these stages can be linear or iterative, depending on the application requirements. Currently, there are platforms specifically for trading AI workflow models in the market. These platforms allow users to publish the workflow models they create for others to purchase or download and use. At the same time, users can also search for models suitable for their needs on the platform for secondary development or directly apply them to actual scenarios. In this way, not only the sharing of knowledge and technology is promoted, but also the threshold for small and medium-sized enterprises and individual developers to enter the AI field is greatly reduced. However, the current AI workflow trading platforms do not support the trial function, resulting in an increase in the difficulty and risk of AI workflow trading. Summary of the Invention

[0003] Multiple embodiments of this specification describe a confidentiality method and system for an AI workflow model trading platform.

[0004] In a first aspect, an embodiment of this specification provides a confidentiality method for an AI workflow model trading platform, which runs on the server where the platform is located. The server is connected to an AI server, and at least one AI service runs on the AI server. The method includes the following steps: Receiving an AI workflow model trial loading request sent by a client and generating an identification code for the client; Converting the interaction code between the AI workflow model and the AI server into a forwarding code forwarded by the server. The forwarding code includes an instruction upload code and a result acquisition code; Adding an end reporting module to the AI workflow model and sending the AI workflow model code and the identification code to the client; When the end reporting module runs on the client, periodically generating a reporting identification code according to the identification code and the current time and storing it in the memory. When the client executes the instruction upload code, the reporting identification code is attached; When the server receives the instruction to upload code, it verifies the reported identification code. When the verification passes, it sends the instruction to upload code to the AI server. After receiving the data fed back by the AI server, it stores the fed-back data at the storage address matching the result acquisition code.

[0005] In a second aspect, an embodiment of this specification provides an AI workflow model trading platform confidentiality system, including: A server and an AI server. The platform runs on the server, the server is connected to the AI server, and at least one AI service runs on the AI server. The server includes: A receiving module that receives an AI workflow model trial loading request sent by a client and generates an identification code for the client. A conversion module that converts the code for interacting with the AI server in the AI workflow model into a forwarding code forwarded by the server. The forwarding code includes an instruction to upload code and a result acquisition code. A sending module that adds an end reporting module to the AI workflow model and sends the AI workflow model code and the identification code to the client. When the end reporting module runs on the client, it periodically generates a reported identification code based on the identification code and the current time and stores it in the memory. When the client executes the instruction to upload code, it attaches the reported identification code. A verification module that, when receiving the instruction to upload code, verifies the reported identification code. When the verification passes, it sends the instruction to upload code to the AI server. A feedback module that, after receiving the data fed back by the AI server, stores the fed-back data at the storage address matching the result acquisition code.

[0006] In a third aspect, an embodiment of this specification provides an electronic device, including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory to execute the method described in any of the above aspects.

[0007] In a fourth aspect, an embodiment of this specification provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method described in any of the above aspects.

[0008] Fifth aspect, the embodiments of this specification provide a computer program product, including a computer program which, when executed by a processor, implements the method described in any of the above aspects.

[0009] The beneficial effects brought by the technical solutions provided in some embodiments of this specification at least include: In multiple embodiments of this specification, the confidentiality method for the AI workflow model trading platform provided can provide a trial function for the AI workflow model trading platform, enabling users to experience the functions of the AI workflow model, but not allowing them to copy the code of the AI workflow model, thus protecting the rights and interests of the creators; by modifying the code of the AI workflow model and forwarding through the server to implement the call of the AI service, it can effectively protect the security of the core code of the AI workflow model; with the help of reverse dependency injection technology to achieve the dynamic loading of the code, it can enable some code to be obtained by the client only during runtime, that is, it can ensure that the AI workflow model can normally implement functions during the trial and make the code of the AI workflow model more secure.

[0010] Other features and advantages of multiple embodiments of this specification will be further revealed in the following specific embodiments and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] To more clearly illustrate the technical solutions in the embodiments of this specification, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of this specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0012] Figure 1 Schematic diagram of the AI workflow model trading platform applied in the embodiments of this specification.

[0013] Figure 2 Schematic diagram of the AI workflow model trading details page applied in the embodiments of this specification.

[0014] Figure 3 Schematic diagram of the confidentiality of AI workflow model trading provided in the embodiments of this specification.

[0015] Figure 4 Schematic diagram of the process of the confidentiality method for AI workflow model trading provided in the embodiments of this specification.

[0016] Figure 5 Schematic diagram of the process of the method for sending the identification code to the client provided in the embodiments of this specification.

[0017] Figure 6 Schematic diagram of the process of the cache duration adjustment method provided in the embodiments of this specification.

[0018] Figure 7 Schematic diagram of the AI workflow model transaction confidentiality system provided by the embodiments of this specification.

[0019] Figure 8 Schematic diagram of the electronic device provided by the embodiments of this specification. Detailed implementation manners

[0020] The technical solutions of the embodiments of this specification will be explained and described below with reference to the accompanying drawings of the embodiments of this specification. However, the following embodiments are only the preferred embodiments of this specification, not all of them. Based on the embodiments in the implementation manners, other embodiments obtained by those skilled in the art without creative efforts all fall within the protection scope of this specification.

[0021] Terms such as "first", "second", "third", etc. in the description and claims of this specification and the above accompanying drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.

[0022] In the following description, terms such as "inside", "outside", "above", "below", "left", "right", etc. indicating orientation or positional relationship are only for the convenience of describing the embodiments and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of this specification.

[0023] The data involved in this application are all information and data authorized by users or fully authorized by all parties, and the collection of relevant data complies with the relevant laws, regulations and standards of relevant countries and regions.

[0024] Before introducing the technical solutions described in this specification, the application scenarios of the technical solutions and related technologies will be introduced.

[0025] With the rapid development of artificial intelligence technology, AI Workflow Models have become an indispensable part of modern data science and machine learning projects. AI Workflow Models organize and manage a series of complex tasks and steps in a systematic way. Simply put, an AI Workflow Model can be regarded as a workflow model that, based on the traditional automated processing process, uses AI to complete some steps. For example, in the traditional data processing process, data cleaning and preprocessing usually require a lot of manual operations, such as removing duplicate values, filling in missing data, standardizing numerical values, etc. By introducing AI technology, these steps can become more intelligent and efficient. Machine learning algorithms are used to identify and correct errors or inconsistencies in the data. For example, natural language processing (NLP) technology can be used to clean spelling mistakes or grammar problems in text data. Prediction models (such as the K-nearest neighbor algorithm, random forest, etc.) are used to predict and fill in missing values based on existing data, rather than simply filling them with the mean or median.

[0026] For another example, in a typical customer service automation system, the traditional workflow may include steps such as receiving customer requests, classifying problem types, and assigning them to the appropriate customer service staff for handling. After introducing AI, it can achieve the functions of automatic classification and intelligent response. Automatic classification uses natural language processing technology to automatically classify customer requests, identify problem types (such as technical support, bill inquiry, etc.), and forward the requests to the corresponding departments or system modules. Intelligent response is based on historical conversation records and a knowledge base of common questions, and uses chatbots to automatically generate response suggestions for customer service staff to refer to or directly send to customers.

[0027] In the e-commerce industry, image processing is an important link to enhance the user experience and increase the sales conversion rate. In order to show all angles of a product, a large number of photos usually need to be taken, which is a tedious task for photographers and post-production staff. The AI Workflow Model can generate 3D models of products through 3D scanning technology and rendering engines. Then, these models are used to automatically generate product images taken from different angles without actual shooting.

[0028] In short, the AI Workflow Model technology can not only significantly improve development efficiency, reduce error rates, but also enable non-professionals to participate in the creation process of AI solutions, effectively accelerating the application of AI technology. Currently, there are platforms on the market that specifically trade AI Workflow Models. As shown in the appendix Figure 1 These platforms allow users to publish the workflow models they create for others to purchase or download and use. The trading platform for AI Workflow Models generally includes a screening area 11 and a list area 12. Please refer to the appendix Figure 2, after clicking on an item in the list area 12, the details page of the AI workflow model will be expanded. The details page will display the name 13 of the AI workflow model, the function introduction, the configuration area 14, and the price, and provide a trial button 15 and a purchase button 16. When the user clicks the purchase button 16, the server 21 where the platform is located will provide the usage page of the AI workflow model, or the deployment code, or the APP installation file to the client 23. When the user clicks the trial button 15, the usage page will be displayed, but the code of the AI workflow model loaded on this usage page is processed and protected so that the code of the AI workflow model cannot be copied. That is, the function of the AI workflow model can only be realized on the usage page provided for the trial. This process makes use of the confidentiality method and system of the AI workflow model trading platform provided in this specification.

[0029] The method provided in this specification is applied to a system architecture as Figure 3 shown, Figure 3 which is a schematic diagram of the system architecture in the embodiment of this specification. As Figure 3 shown, the system architecture includes a server 21, an AI server 22, and a client 23, and the client 23 is provided with an interactive interface. Among them, the interactive interface can run on the device of the client 23 in the form of a browser, or can run on the client 23 in the form of an independent application (APP), etc. For the specific display form of the client 23, no limitation is made here.

[0030] In this specification, after the purchase button 16 is clicked, the code of the AI workflow model will be downloaded from the server 21 and will directly interact with the AI server 22 in the subsequent working process to complete the function of the AI workflow model. When the trial button 15 is clicked, the code of the AI workflow model will be processed by the server 21 and then provided to the client 23. When the client 23 runs the AI workflow model, it will indirectly interact with the AI server 22 with the server 21 as the medium. At this time, the client 23 will not directly interact with the AI server 22 at all.

[0031] The server 21 and the AI server 22 involved in this specification can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms. The client 23 can be a smart phone, a tablet computer, a laptop computer, a handheld computer, a personal computer, a smart speaker, a smart TV, a smart watch, a vehicle-mounted device, a wearable device, etc., but is not limited thereto. The client 23 and the server can be directly or indirectly connected through wired or wireless communication methods, and this specification does not limit this. The numbers of the server 21 and the client 23 are also not limited. Among them, the reply documents involved in this specification can be stored in a database (Database). Among them, the database can be regarded as an electronic filing cabinet in short - a place for storing electronic files, and users can perform operations such as adding, querying, updating, and deleting data in the files.

[0032] The so - called "database" is a collection of data stored together in a certain way, which can be shared by multiple users, has the smallest possible redundancy, and is independent of application programs. A Database Management System (DBMS) is a computer software system designed to manage a database, and generally has basic functions such as storage, interception, security guarantee, and backup. The database management system can be classified according to the database model it supports, such as relational, Extensible Markup Language (XML); or according to the type of computer it supports, such as server clusters, mobile phones; or according to the query language it uses, such as Structured Query Language (SQL), XQuery; or according to the performance impulse focus, such as maximum scale, highest running speed; or other classification methods. No matter which classification method is used, some DBMSs can cross categories. For example, they can support multiple query languages at the same time.

[0033] Please refer to the appendix Figure 4 , this specification first provides a confidentiality method for an AI workflow model trading platform, which runs on the server 21 where the platform is located. The server 21 is connected to the AI server 22, and at least one AI service runs on the AI server 22, including the steps: Step S101) Receive the AI workflow model trial loading request sent by the client 23 and generate an identification code for the client 23.

[0034] The method for generating a reported identification code based on the identification code and the current time includes: The initial value of the generated sequence number is 0, and every time a preset time duration passes, the sequence number is incremented by 1; Extract the hash values of the identification code and the sequence number as the reported identification code.

[0035] The preset time duration can be every minute, every 10 minutes, every hour, every day, etc. Exemplarily, taking every minute as the preset time duration, the sequence number is incremented by 1. The sequence number can be represented in hexadecimal (representation in other number systems does not affect the implementation). By combining the original identification code and the current sequence number, calculating their hash value can obtain the reported identification code. Exemplarily, the identification code is: ABC123, the initial value of the sequence number is 0, and the combination of the identification code and the sequence number is: ABC123_0. Using the SHA-256 algorithm to calculate the hash value of "ABC123_0", the obtained result is: 676E1BBDCAD44B87B6EB076FB5AEB88E5CDD4176852E5273F044AAC408F2E800, which is the reported identification code. After one minute, the sequence number is updated to 1, and using the SHA-256 algorithm to calculate the hash value of "ABC123_1", a new reported identification code is obtained. Thus, the reported identification code is updated every minute.

[0036] When the code of the AI workflow model is copied and executed, an operation of setting the initial value of the sequence number to 0 will be performed, which will cause the subsequent generated reported identification code to be different from that on the server 21.

[0037] Step S102) Convert the code for interacting with the AI server 22 in the AI workflow model into forwarding code forwarded by the server 21. The forwarding code includes instruction upload code and result acquisition code.

[0038] Exemplarily, the AI workflow model is used to process image classification tasks. The original client 23 code directly communicates with the AI server 2221. When the user clicks the trial button 15 to obtain the code of the AI workflow model, the code includes an intermediate layer that is responsible for receiving the client 23 request, forwarding it to the AI server 22, and returning the result to the client 23. The instruction upload code is responsible for receiving the client 23 request and forwarding it to the AI server 22, and the result acquisition code is responsible for obtaining the processing result from the AI server 22 and returning the result to the client 23.

[0039] Exemplarily, the client 23 code uses the send_request_to_forward_server function to be responsible for reading the image file and sending it to the forward server via an HTTP POST request. The URL of the forward server is http: / / localhost:5000 / classify, which is the address where the forward server listens.

[0040] In the server where the platform is located, a simple web service is created using the Flask framework, listening for POST requests on the / classify path. When a request from the client 23 is received, it checks whether an image file has been uploaded. The received image file is forwarded to the AI server 22 (http: / / ai-server:8000 / classify). The response from the AI server 22 is received and returned to the client 23.

[0041] Similarly, a web service is created on the AI server 22 using the Flask framework, listening for POST requests on the / classify path. It receives the image file and calls the simulated image classification model, and finally returns the classification result to the forward server.

[0042] In this way, even if the code of the AI workflow model is copied, without the forwarding by the server where the platform is located, it cannot interact with the AI server 22 and cannot complete the functions of the AI workflow model. Therefore, after the user clicks the trial button 15, by marking the client 23 with trial permission and only forwarding the client 23 with trial permission, it is possible to make the code of the copied AI workflow model unable to complete the corresponding functions when executed, thus protecting the code security of the AI workflow model.

[0043] Step S103) Add an end reporting module to the AI workflow model, and send the AI workflow model code and the identification code to the client 23.

[0044] The method of sending the AI workflow model code and the identification code to the client 23 includes: Before sending the AI workflow model code and the identification code to the client 23, the server adds a program injection module to the AI workflow model and sets an injection code for the program injection module. The program injection module includes several lines of code for injecting code. Exemplarily, dependency injection is used for code injection. Its general composition and process include: a basic application program, a dependency injection module, a custom processor, and modification of the basic application program. Among them, the basic application program defines a TaskProcessor class and its subclass ImageTaskProcessor for processing image data. Its main function uses the default ImageTaskProcessor to process image data and print the result.

[0045] The dependency injection module provides an Injector class for registering and obtaining different processor instances. It provides a register_processor method for registering processor classes. It provides a get_processor method for obtaining a processor instance according to the name.

[0046] The custom processor defines a new processor class CustomImageTaskProcessor, which implements different processing logics. The injector.register_processor method is used to register the custom processor into the dependency injection module.

[0047] In the modification of the basic application program, the main function needs to be modified so that it can select different processor instances according to the passed parameters. For example, if the 'custom' parameter is specified, the custom processor is used; otherwise, the default processor is used. Among them, the custom processor is the code to be injected.

[0048] Step S202) The server generates a setting statement for writing the identification code into the memory and associating the corresponding memory location with a preset variable, caches the setting statement after associating it with the injection code.

[0049] Step S203) When the program injection module is executed on the client 23, it connects to the port specified by the server and provides the injection code. The corresponding setting statement is retrieved through the injection code.

[0050] Step S204) The server sends the corresponding setting statement to the client 23 according to the injection code and clears the cached setting statement.

[0051] Step S205) The program injection module obtains the setting statement from the server, reads the setting statement into the memory for execution, and then deletes the setting statement.

[0052] In the custom processor, several statements are set to apply for a storage space in the memory and associate it with a variable name. Then, in this storage space, the identification codes directly attached in the code are written into the corresponding memory spaces. Among them, the several statements set are stored in a variable or an object. After execution, the relevant values of the variable or the object are overwritten, so that the set statements will disappear after execution. Exemplarily, the preset variable is Id_code_container. The variable Id_code_container is associated with a storage space in the memory. After the identification code is written into the memory, the code can call the variable Id_code_container to use the identification code. At this time, even if the code of the AI workflow model is copied, the set statements cannot be obtained, so that the correct identification code cannot be set, that is, the copied code cannot use the AI workflow model properly.

[0053] When the reporting module in step S104 runs on the client 23, it periodically generates a reporting identification code according to the identification code and the current time and stores it in the memory. When the client 23 executes the instruction upload code, the reporting identification code is attached.

[0054] When the server in step S105 receives the instruction upload code, it verifies the reporting identification code. When the verification passes, it sends the instruction upload code to the AI server 22.

[0055] Among them, the method for the server to verify the reporting identification code includes: Record the time when the AI workflow model code and the identification code are sent to the client 23; Calculate the restored value of the current sequence number value according to the current time and the preset duration; Extract the hash values of the identification code and the restored value of the sequence number value, and compare them with the reporting identification code. When the comparison is consistent, it is determined that the reporting identification code passes the verification.

[0056] By agreeing on the same hash function, the verification of the identification code and the sequence number value can be achieved. The server and the client 23 have the same identification code, and the server records the timestamp when the client 23 obtains the AI workflow model code. After the code of the AI workflow model is loaded, it will be automatically executed immediately, so that the server obtains the moment when the sequence number value on the client 23 is set to the initial value 0. Thus, in subsequent moments, the same sequence number value as that of the client 23 can be calculated by tracking the timestamp.

[0057] When the code of the AI workflow model is copied, the server will not know the time when the copied code is first executed, that is, it will not know the moment when the serial number value in the code is set to the initial value 0, so it is impossible to calculate the subsequent serial number values. Therefore, the server can verify the source of the code of the AI workflow model by verifying the reported identification code generated by means of the serial number value.

[0058] Step S106) After receiving the data fed back by the AI server 22, store the fed-back data at the storage address matching the result acquisition code. The result can be obtained by the result acquisition code reading the content from the corresponding storage address.

[0059] On the other hand, in another implementation, the server stores the identifier of each client 23 and records the interaction history with the client 23; After the server caches the setting statement for a preset cache duration, delete the setting statement.

[0060] When the server receives the instruction to upload the code, verify the reported identification code. If the verification fails, please refer to the appendix Figure 6 , and execute the following steps: Step S301) Obtain the client 23 identifier, and read the recorded interaction history according to the client 23 identifier.

[0061] Step S302) Obtain the function usage rate of the user for the functions of the AI workflow model, the time concentration of the user using the AI workflow model, the total number of AI workflow models used by the user, and the parameter repetition degree of the AI workflow model used by the user according to the interaction history.

[0062] Step S303) Obtain a trial score according to the function usage rate, time concentration, total number, and parameter repetition degree.

[0063] Step S304) When the trial score is greater than a preset threshold, reduce the cache duration corresponding to the setting statement.

[0064] The recorded interaction history can reflect the situation of the user corresponding to the client 23 using the AI workflow model. The function usage rate of the user for the functions of the AI workflow model represents the ratio of the number of functions used by the user to the total number of all functions. Exemplarily, the AI workflow model has four functions: intelligent image matting, multi-angle image generation, background replacement, and partial replacement. If the user uses intelligent image matting and multi-angle image generation, the function usage rate is 0.5. Generally speaking, the user's demand for the functions of the AI workflow model comes from their work content, and the demand of normal users basically does not cover all the functions of the AI workflow model. When the function usage rate is too high, the user may use the AI workflow model for unconventional purposes.

[0065] The time concentration of the user's use of the AI workflow model represents the ratio of the length of time when the user's use of the AI workflow model is relatively concentrated in a day to 24 hours. Generally, the time period when the user uses the AI workflow model is basically fixed, and the concentrated time will not last too long. When the user uses the AI workflow model intensively for a long time every day, it means that the user's use of the AI workflow model far exceeds their work requirements and may be an unconventional use. The total number of AI workflow models used by the user represents the total number of AI workflow models that the user has tried and purchased. When the user tries too many AI workflow models, the use may not be based on actual needs. The parameter repeatability of the user's use of the AI workflow model represents the ratio of the number of times the repeated parameters are provided to the total number of times all parameters are provided among all the parameters provided to all the AI workflow models when the user tries and uses the purchased AI workflow models. Exemplarily, when using multiple AI workflow models, providing the same picture indicates that the use of the AI workflow model is not based on actual needs. The trial score is equal to the weighted sum of the function usage rate, time concentration, total number, and parameter repeatability. When the trial score exceeds the preset threshold, it means that the probability that the user will copy the code of the tried AI workflow model is relatively high. At this time, the cache duration corresponding to the setting statement for this user should be reduced, so that the time for this user to obtain the setting statement is shortened, the time window for copying the code of the AI workflow model is shortened, and the difficulty increases.

[0066] On the other hand, in another embodiment, before sending the AI workflow model code and the identification code to the client 23, the server adds an encryption module and a decryption module to the AI workflow model; When the encryption module runs on the client 23, it encrypts some code segments of the AI workflow model at a preset period; After the decryption module writes the decryption key pre-stored in the file into the memory and associates it with a preset variable, it deletes the file where the decryption key is located; When the client 23 runs the encrypted code segment, the decryption module reads the decryption key from the memory and decrypts the code segment.

[0067] When the encryption module runs on the client 23, it will automatically encrypt some code segments of the workflow model at a preset time period (such as every ten minutes, several hours, or once a day). The method of regular encryption increases the difficulty for attackers to obtain and utilize these codes.

[0068] The decryption module reads the key required for decryption from a pre-stored file and writes this key into memory. At the same time, it associates it with a specific variable for code invocation. To further enhance security, after the key is loaded into memory, the original file storing the key is deleted, so that even if the storage space is accessed, the attacker cannot obtain the key. Thus, the encrypted code cannot be decrypted.

[0069] On the other hand, in another embodiment, before sending the AI workflow model code and the identification code to the client 23, the server adds a sequence module to the AI workflow model. The sequence module is provided with a statement array, and the statements of the code of the AI workflow model are stored in the statement array in a scrambled order. The sequence module is provided with a record file for recording the correct statement order in a sorting table; When the container module runs on the client 23, it reads the sorting table into memory and then deletes the record file; When the client 23 runs the AI workflow model, a copy statement array is newly created in the persistent storage space, and a copy sorting table is newly created in memory. According to the sorting table, statements are taken out from the statement array one by one; The taken-out statements are randomly stored in the positions in the copy statement array and recorded in the copy sorting table; After all statements are taken out and executed, the copy statement array and the copy sorting table are used to overwrite the statement array and the sorting table respectively.

[0070] When all the code is stored in the statement array according to the statements, that is, all the code is stored in a variable. When the code is copied, the value of the variable will not be directly copied. And the sorting of the code in the variable is incorrect, and the statements of the code need to rely on the sorting table stored in memory to be correctly executed. The sorting table exists in memory, so it will not be directly copied. Thus, the security of the code is guaranteed. That is, when the user uses the trial function, they cannot obtain the complete executable code of the AI workflow model.

[0071] On the other hand, this specification provides an AI workflow model trading platform confidentiality system, including: A server and an AI server 22. The platform runs on the server, the server is connected to the AI server 22, and at least one AI service runs on the AI server 22. Please refer to the appendix Figure 7 , the server includes: A receiving module 100, which receives the AI workflow model trial loading request sent by the client 23 and generates an identification code for the client 23; The conversion module 200 converts the interaction code with the AI server 22 in the AI workflow model into a forwarding code forwarded by the server. The forwarding code includes an instruction upload code and a result acquisition code. The sending module 300 adds an end reporting module to the AI workflow model and sends the AI workflow model code and the identification code to the client 23. When the end reporting module runs on the client 23, it periodically generates a reporting identification code according to the identification code and the current time and stores it in the memory. When the client 23 executes the instruction upload code, it attaches the reporting identification code. The verification module 400 verifies the reporting identification code when receiving the instruction upload code. When the verification passes, it sends the instruction upload code to the AI server 22. The feedback module 500 stores the feedback data received from the AI server 22 at a storage address matching the result acquisition code.

[0072] Please refer to Figure 8 the schematic structural diagram of an electronic device provided by the embodiment of the present specification shown.

[0073] As Figure 8 shown, the electronic device 1100 may include: at least one processor 1101, at least one network interface 1104, a user interface 1103, a memory 1105, and at least one communication bus 1102. Among them, the communication bus 1102 can be used to realize the connection and communication of the above-mentioned various components. Among them, the user interface 1103 may include buttons, and the optional user interface may further include a standard wired interface and a wireless interface. Among them, the network interface 1104 may but is not limited to include a Bluetooth module, an NFC module, a Wi-Fi module, etc. Among them, the processor 1101 may include one or more processing cores. The processor 1101 connects various parts within the entire electronic device 1100 through various interfaces and lines, and executes various functions of the routing device 1100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1105, and calling data stored in the memory 1105. Optionally, the processor 1101 may be implemented in at least one of the hardware forms of DSP, FPGA, and PLA. The processor 1101 may integrate a combination of one or more of a CPU, a GPU, and a modem. Among them, the CPU mainly processes the operating system, the user interface, and application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communication.

[0074] It can be understood that the above-mentioned modem may not be integrated into the processor 1101 and can be implemented separately by a single chip.

[0075] Among them, the memory 1105 may include RAM or ROM. Optionally, the memory 1105 includes a non-transitory computer-readable medium. The memory 1105 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1105 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing the operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area can store the data involved in the above-mentioned method embodiments. Optionally, the memory 1105 may also be at least one storage device located far from the aforementioned processor 1101. The memory 1105, as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs. The processor 1101 can be used to call the application programs stored in the memory 1105 and execute the methods in the above-mentioned multiple embodiments.

[0076] The embodiments of this specification also provide a computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When it runs on a computer or a processor, the computer or the processor is caused to execute multiple steps in the above-mentioned embodiments. If the constituent modules of the above-mentioned electronic device are implemented in the form of software function units and sold or used as independent products, they can be stored in the computer-readable storage medium.

[0077] The embodiments of this specification also provide a computer program product, including a computer program. When the computer program is executed by a processor, multiple steps in the above-mentioned embodiments are implemented.

[0078] Without conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0079] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes a plurality of computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this specification are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes a plurality of available media integrated. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a Digital Versatile Disc (DVD)), or a semiconductor medium (such as a Solid State Disk (SSD)), etc.

[0080] When implemented by hardware or firmware, the foregoing method flow is programmed into a hardware circuit to obtain a corresponding hardware circuit structure and implement the corresponding function. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit, and its logical function is determined by the user programming the device. The designer programs by himself to "integrate" a digital system on a PLD, without having to ask a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing. The original code before compilation also has to be written in a specific programming language, which is called a Hardware Description Language (HDL), and there is not only one kind of HDL, but many kinds. Those skilled in the art should also be clear that only by slightly logically programming the method flow with the above-mentioned several hardware description languages and programming it into an integrated circuit, it is easy to obtain a hardware circuit that implements the logical method flow.

[0081] The embodiments described above are merely described in the preferred embodiment mode of this specification, and do not limit the scope of this specification. Without departing from the design spirit of this specification, various deformations and improvements made by those of ordinary skill in the art to the technical solutions of this specification shall fall within the protection scope determined by the claims of this specification.

Claims

1. A confidentiality method for an AI workflow model trading platform, which runs on a server where the platform is located, the server is connected to an AI server, and at least one AI service runs on the AI ​​server, characterized in that: Includes steps: Receive the AI ​​workflow model trial loading request sent by the client and generate an identification code for the client; Converting the code for interacting with the AI ​​server in the AI ​​workflow model into a forwarding code forwarded by the server, wherein the forwarding code includes an instruction uploading code and a result obtaining code; Add a terminal reporting module in the AI ​​workflow model to send the AI ​​workflow model code and the identification code to the client; When the end reporting module runs on the client, it periodically generates a reporting identification code according to the identification code and the current time and stores it in the memory, and the client uploads the code with the reporting identification code when executing the instruction; When the server receives the instruction upload code, it verifies the reported identification code, and when the verification is successful, it sends the instruction upload code to the AI ​​server; After receiving the data fed back by the AI ​​server, the fed back data is stored in a storage address matching the result acquisition code.

2. The AI ​​workflow model trading platform confidentiality method according to claim 1, characterized in that: The method for generating a reporting identification code according to the identification code and the current time includes: The initial value of the generated sequence number is 0, and the sequence number value is incremented by 1 every time a preset time has passed; Extracting a hash value of the identification code and the sequence number value as the reported identification code; The method for the server to verify the reported identification code includes: Recording the time when the AI ​​workflow model code and the identification code are sent to the client; Calculate the restored value of the current sequence number value according to the current time and the preset duration; The hash values ​​of the identification code and the restored values ​​of the sequence number are extracted and compared with the reported identification code. When the comparison is consistent, it is determined that the reported identification code has been verified.

3. A confidentiality method for an AI workflow model trading platform according to claim 1 or 2, characterized in that: The method of sending the AI ​​workflow model code and the identification code to the client includes: Before sending the AI ​​workflow model code and the identification code to the client, the server adds a program injection module to the AI ​​workflow model and sets an injection code for the program injection module; The server generates a setting statement for writing the identification code into a memory and associating a corresponding memory location with a preset variable, and caches the setting statement after associating the injection code; When the program injection module is executed on the client, it connects to the port specified by the server and provides an injection code; The server sends the corresponding setting statement to the client according to the injection code, and clears the cached setting statement; The program injection module obtains the setting statement from the server, reads the setting statement into the memory for execution, and then deletes the setting statement.

4. The AI ​​workflow model trading platform confidentiality method according to claim 3, characterized in that: The server stores the identification of each client and records the interaction history with the client; After the server caches the setting statement for a preset cache time, the server deletes the setting statement; When the server receives the instruction to upload the code, it verifies the reported identification code. If the verification fails, the following steps are performed: Obtaining a client identifier, and reading a recorded interaction history according to the client identifier; Obtaining, according to the interaction history, a user's function utilization rate of the AI ​​workflow model function, a time concentration of the user using the AI ​​workflow model, a total number of AI workflow models used by the user, and a parameter repetition degree of the user using the AI ​​workflow model; A trial score is obtained based on the utilization rate of the functions, time concentration, total quantity and parameter repetition; When the trial score is greater than a preset threshold, the cache duration corresponding to the setting statement is reduced.

5. The AI ​​workflow model trading platform confidentiality method according to claim 1 or 2, characterized in that: Before sending the AI ​​workflow model code and the identification code to the client, the server adds an encryption module and a decryption module to the AI ​​workflow model; When the encryption module runs on the client, it encrypts part of the code segments of the AI ​​workflow model at a preset period; After the decryption module writes the decryption key pre-stored in the file into the memory and associates it with the preset variable, the file containing the decryption key is deleted; When the client runs the encrypted code segment, the decryption module reads the decryption key from the memory and decrypts the code segment.

6. The AI ​​workflow model trading platform confidentiality method according to claim 1 or 2, characterized in that: Before sending the AI ​​workflow model code and the identification code to the client, the server adds a sequence module to the AI ​​workflow model, wherein the sequence module is provided with a statement array, and the statements of the AI ​​workflow model code are stored in the statement array after being disrupted, and the sequence module is provided with a record file of a sorting table for recording the correct statement order; When the container module runs on the client, the sorting table is read into the memory and then the record file is deleted; When the client runs the AI ​​workflow model, a new copy statement array is created in the persistent storage space, and a new copy sorting table is created in the memory, and statements are taken out from the statement array one by one according to the sorting table; Randomly storing the retrieved statement into a position in the replica statement array, and recording it in the replica sorting table; After all statements are retrieved and executed, the copy statement array and the copy sorting table are used to overwrite the statement array and the sorting table respectively.

7. An AI workflow model trading platform confidentiality system, characterized in that: include: A server and an AI server, the platform runs on the server, the server is connected to the AI ​​server, and at least one AI service runs on the AI ​​server. The server comprises: The receiving module receives the AI ​​workflow model trial loading request sent by the client and generates an identification code for the client; A conversion module, which converts the code for interacting with the AI ​​server in the AI ​​workflow model into a forwarding code forwarded by the server, wherein the forwarding code includes an instruction uploading code and a result obtaining code; A sending module, which adds an end reporting module to the AI ​​workflow model, and sends the AI ​​workflow model code and the identification code to the client. When the end reporting module runs on the client, it periodically generates a reporting identification code according to the identification code and the current time and stores it in the memory. When the client executes the instruction to upload the code, the reporting identification code is attached; A verification module, upon receiving the instruction upload code, verifies the reported identification code, and upon passing the verification, sends the instruction upload code to the AI ​​server; The feedback module, after receiving the data fed back by the AI ​​server, stores the fed back data in a storage address matching the result acquisition code.

8. An electronic device, characterized in that: including a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 6.

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

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Experiential accounting method, proxy module, terminal and system

    CN101945366A

  • Hyper text transport protocol (HTTP) Cookie protection method based on preposed gateway

    CN102088465A

  • Mobile payment identity verification device with NFC interface

    CN104657855A

  • B / S-architecture-based client authorization method

    CN105740658A

  • Code protection method, device and system and readable storage medium

    CN110851800A