TWI810560B - Artificial intelligence model service method and server based on cloud microservice - Google Patents

Artificial intelligence model service method and server based on cloud microservice Download PDF

Info

Publication number
TWI810560B
TWI810560B TW110116700A TW110116700A TWI810560B TW I810560 B TWI810560 B TW I810560B TW 110116700 A TW110116700 A TW 110116700A TW 110116700 A TW110116700 A TW 110116700A TW I810560 B TWI810560 B TW I810560B
Authority
TW
Taiwan
Prior art keywords
artificial intelligence
analysis result
intelligence model
server
resource allocation
Prior art date
Application number
TW110116700A
Other languages
Chinese (zh)
Other versions
TW202244755A (en
Inventor
王俊權
宋政隆
王信富
吳瑞琳
王麗芳
彭士爵
Original Assignee
中國信託商業銀行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中國信託商業銀行股份有限公司 filed Critical 中國信託商業銀行股份有限公司
Priority to TW110116700A priority Critical patent/TWI810560B/en
Publication of TW202244755A publication Critical patent/TW202244755A/en
Application granted granted Critical
Publication of TWI810560B publication Critical patent/TWI810560B/en

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

一種人工智慧模型服務伺服器,在一處理單元經由一通訊單元接收到一來自一使用端的專案請求資料後,該處理單元執行一儲存於一儲存單元的資訊轉換應用程式群組解析該專案請求資料並產生一特定格式的解析結果,並執行一儲存於該儲存單元的安全管理應用程式群組判定該解析結果是否合法,當該處理單元判定出該解析結果合法時,根據該解析結果,利用一對應該解析結果的目標人工智慧模型容器,產生一服務結果,當判定出該解析結果不合法時,該處理單元執行該安全管理應用程式群組產生並經由該通訊單元傳送一驗證失敗訊息至該使用端。 An artificial intelligence model service server, after a processing unit receives a project request data from a client via a communication unit, the processing unit executes an information conversion application group stored in a storage unit to analyze the project request data And generate an analysis result in a specific format, and execute a security management application group stored in the storage unit to determine whether the analysis result is legal. When the processing unit determines that the analysis result is legal, according to the analysis result, use a Generate a service result corresponding to the target artificial intelligence model container of the analysis result, and when it is determined that the analysis result is illegal, the processing unit executes the security management application program group to generate and send a verification failure message to the use end.

Description

基於雲端微服務的人工智慧模型服務方法及伺服器 Artificial intelligence model service method and server based on cloud microservice

本發明是有關於一種人工智慧模型服務方法,特別是指一種基於雲端微服務的人工智慧模型服務方法及伺服器。 The present invention relates to an artificial intelligence model service method, in particular to an artificial intelligence model service method and server based on cloud microservices.

近年來人工智慧(artificial intelligence,AI)已成為最熱門的技術之一,其可應用在多種領域,例如醫療、交通、金融等領域。 In recent years, artificial intelligence (AI) has become one of the hottest technologies, and it can be applied in various fields, such as medical care, transportation, finance and other fields.

現有的自建AI模型落地案所使用的架構主要是將整個自建AI服務封裝成專門為單一專案的AI模型容器,並將AI模型容器部署在單台虛擬機器(Virtual Machine,VM)上。 The architecture used in the existing self-built AI model implementation projects is mainly to package the entire self-built AI service into an AI model container dedicated to a single project, and deploy the AI model container on a single virtual machine (Virtual Machine, VM).

然而,將整個服務封裝成容器部署在單台虛擬機器的架構,不同的落地專案間無法共享資源,所有專案的AI模型容器皆是各自進行資訊轉換及授權管理,故在每次進行專案時,需要額外的人力與時間成本,重複地取得固有系統的支援以利完成專案端對端(End to End)的串接,不具高重用性(High Reusability)。 However, the entire service is packaged into a container and deployed on a single virtual machine. Different landing projects cannot share resources. The AI model containers of all projects carry out information conversion and authorization management separately. Therefore, each time a project is carried out, Additional manpower and time costs are required, and the support of the inherent system is obtained repeatedly to complete the end-to-end (End to End) connection of the project, which does not have high reusability (High Reusability).

因此,本發明的目的,即在提供一種具有高重用性的人工智慧模型服務方法。 Therefore, the object of the present invention is to provide an artificial intelligence model service method with high reusability.

於是,本發明人工智慧模型服務方法,由一伺服器來實施,該伺服器儲存一資訊轉換應用程式群組、一安全管理應用程式群組,及多個人工智慧模型容器,該伺服器經由一通訊網路連接一使用端,該人工智慧模型服務方法包含一步驟(A)、一步驟(B)、一步驟(C),及一步驟(D)。 Therefore, the artificial intelligence model service method of the present invention is implemented by a server, which stores an information conversion application program group, a security management application program group, and a plurality of artificial intelligence model containers, and the server passes a The communication network is connected to a user end, and the artificial intelligence model service method includes a step (A), a step (B), a step (C), and a step (D).

在該步驟(A)中,在該伺服器接收到一來自該使用端的專案請求資料後,該伺服器執行該資訊轉換應用程式群組解析該專案請求資料並產生一特定格式的解析結果。 In the step (A), after the server receives a project request data from the client, the server executes the information conversion application program group to parse the project request data and generate a parsing result in a specific format.

在該步驟(B)中,該伺服器執行該安全管理應用程式群組判定該解析結果是否合法。 In the step (B), the server executes the security management application group to determine whether the analysis result is legal.

在該步驟(C)中,當該伺服器判定出該解析結果合法時,該伺服器根據該解析結果,利用該等人工智慧模型容器中之一對應該解析結果的目標人工智慧模型容器,產生一服務結果。 In the step (C), when the server determines that the analysis result is legal, the server uses one of the artificial intelligence model containers corresponding to the target artificial intelligence model container of the analysis result according to the analysis result to generate 1. Service Results.

在該步驟(D)中,當該伺服器判定出該解析結果不合法時,該伺服器執行該安全管理應用程式群組產生並經由該通訊網路傳送一驗證失敗訊息至該使用端。 In the step (D), when the server determines that the analysis result is invalid, the server executes the security management application group to generate and send a verification failure message to the client via the communication network.

本發明的另一目的,即在提供一種具有高重用性的人工 智慧模型服務伺服器。 Another object of the present invention is to provide a highly reusable artificial Smart model service server.

於是,本發明人工智慧模型服務伺服器包含一通訊單元、一儲存單元,及一處理單元。 Therefore, the artificial intelligence model service server of the present invention includes a communication unit, a storage unit, and a processing unit.

該通訊單元連接一通訊網路,並經由該通訊網路連接一使用端。 The communication unit is connected to a communication network, and connected to a user end through the communication network.

該儲存單元儲存一資訊轉換應用程式群組、一安全管理應用程式群組,及多個人工智慧模型容器。 The storage unit stores an information conversion application program group, a security management application program group, and multiple artificial intelligence model containers.

該處理單元電連接該通訊單元及該儲存單元。 The processing unit is electrically connected to the communication unit and the storage unit.

其中,在該處理單元經由該通訊單元接收到一來自該使用端的專案請求資料後,該處理單元執行該資訊轉換應用程式群組解析該專案請求資料並產生一特定格式的解析結果,並執行該安全管理應用程式群組判定該解析結果是否合法,當該處理單元判定出該解析結果合法時,該處理單元根據該解析結果,利用該等人工智慧模型容器中之一對應該解析結果的目標人工智慧模型容器,產生一服務結果,當該處理單元判定出該解析結果不合法時,該處理單元執行該安全管理應用程式群組產生並經由該通訊單元傳送一驗證失敗訊息至該使用端。 Wherein, after the processing unit receives a project request data from the client via the communication unit, the processing unit executes the information conversion application program group to analyze the project request data and generate a parsing result in a specific format, and executes the The security management application group determines whether the analysis result is legal. When the processing unit determines that the analysis result is legal, the processing unit uses one of the artificial intelligence model containers corresponding to the target artificial intelligence of the analysis result according to the analysis result. The smart model container generates a service result. When the processing unit determines that the analysis result is invalid, the processing unit executes the security management application program group to generate and send a verification failure message to the client via the communication unit.

本發明之功效在於:藉由該處理單元執行該資訊轉換應用程式群組解析該專案請求資料產生統一特定格式的該解析結果,以使人工智慧模型容器無需重複處理不同系統間複雜的資訊轉 換,且藉由執行該安全管理應用程式群組判定該解析結果是否合法,以使人工智慧模型容器無需自行管理授權資訊,具有高重用性。 The effect of the present invention is: the processing unit executes the information conversion application program group to analyze the project request data to generate the analysis result in a unified and specific format, so that the artificial intelligence model container does not need to repeatedly process complex information conversion between different systems And by executing the security management application program group to determine whether the analysis result is legal, so that the artificial intelligence model container does not need to manage authorization information by itself, which has high reusability.

11:人工智慧模型服務伺服器 11: Artificial intelligence model service server

111:通訊單元 111: Communication unit

112:儲存單元 112: storage unit

113:處理單元 113: Processing unit

12:使用端 12: Use end

13:資料庫 13: Database

100:通訊網路 100: Communication network

21~25:步驟 21~25: Steps

211、212:子步驟 211, 212: sub-steps

231~234:子步驟 231~234: sub-steps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,說明本發明人工智慧模型服務伺服器的一實施例;圖2是一流程圖,說明本發明人工智慧模型服務方法的一實施例;圖3是一流程圖,輔助說明圖2步驟21的子步驟;及圖4是一流程圖,輔助說明圖2步驟23的子步驟。 Other features and effects of the present invention will be clearly presented in the implementation manner with reference to the drawings, wherein: FIG. 1 is a block diagram illustrating an embodiment of the artificial intelligence model service server of the present invention; FIG. 2 is a process flow Figure 3 illustrates an embodiment of the artificial intelligence model service method of the present invention; FIG. 3 is a flow chart to assist in explaining the sub-steps of step 21 in FIG. 2; and FIG. 4 is a flow chart to assist in explaining the sub-steps in step 23 in FIG. 2.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description, similar elements are denoted by the same numerals.

參閱圖1,本發明基於雲端微服務的人工智慧模型服務伺服器11的一實施例,包含一通訊單元111、一儲存單元112,及一電連接該通訊單元111及該儲存單元112的處理單元113。 Referring to Fig. 1, an embodiment of the artificial intelligence model service server 11 based on cloud microservices of the present invention includes a communication unit 111, a storage unit 112, and a processing unit electrically connected to the communication unit 111 and the storage unit 112 113.

該通訊單元111通訊經由一通訊網路100連接一使用端 12及多個資料庫13,該等資料庫13例如是使用資料庫管理系統(Database Management System,DBMS)、安全檔案傳輸協定(Secure File Transfer Protocol,SFTP)、網路附加儲存(Network Attached Storage,NAS)等技術所建立。 The communication unit 111 communicates with a client via a communication network 100 12 and a plurality of databases 13, these databases 13 are, for example, using a database management system (Database Management System, DBMS), a secure file transfer protocol (Secure File Transfer Protocol, SFTP), a network attached storage (Network Attached Storage, NAS) and other technologies established.

該儲存單元112儲存一資訊轉換應用程式群組、一安全管理應用程式群組、一資源分配應用程式群組、多個人工智慧模型容器,及多筆分別相關於該等資料庫13的授權資訊。該資訊轉換應用程式群組包括多個資訊轉換應用程式,該安全管理應用程式群組包括多個安全管理應用程式,該資源分配應用程式群組包括多個資源分配應用程式,該等資源分配應用程式分別對應該等授權資訊。 The storage unit 112 stores an information conversion application program group, a security management application program group, a resource allocation application program group, a plurality of artificial intelligence model containers, and a plurality of pieces of authorization information respectively related to the databases 13 . The information conversion application group includes a plurality of information conversion applications, the security management application group includes a plurality of security management applications, the resource allocation application group includes a plurality of resource allocation applications, and the resource allocation applications The programs correspond to the authorization information respectively.

值得注意的是,該等人工智慧模型容器例如為提取文件詞幹,取得文本可能含義組合之相關於自然語言處理(Natural Language Processing,NLP)的人工智慧模型容器,或辨識人臉影像,取得人臉獨特的特徵值之相關於電腦視覺(Computer Vision,CV)的人工智慧模型容器,該等授權資訊係該處理單元113執行該安全管理應用程式群組以Base64編碼,並將編碼後的該等授權資訊以單次寫入底層Kubernetes環境的記憶體的方式儲存,但不以此為限。 It is worth noting that these artificial intelligence model containers are for example related to natural language processing (Natural Language Processing, NLP) for extracting document stems and obtaining combinations of possible meanings of texts, or for recognizing facial images and obtaining human The unique feature value of the face is related to the artificial intelligence model container of Computer Vision (CV), the authorization information is encoded by Base64 when the processing unit 113 executes the security management application group, and the encoded information The authorization information is stored in a single write to the memory of the underlying Kubernetes environment, but is not limited thereto.

要特別注意的是,每一資源分配應用程式各自獨立,所進行的資源分配的對象不同,例如資料庫管理系統相關的資源分配 應用程式只會針對資料庫管理系統的資料庫之授權進行驗證,安全檔案傳輸協定相關的資源分配應用程式只針對安全檔案傳輸協定的資料庫之授權進行驗證。 It should be noted that each resource allocation application is independent, and the objects of resource allocation are different, such as the resource allocation related to the database management system The application program will only verify the authorization of the database of the database management system, and the resource allocation application related to the secure file transfer protocol will only verify the authorization of the database of the secure file transfer protocol.

參閱圖1、2,本發明基於雲端微服務的人工智慧模型服務方法的一實施例是由圖1所示的本發明基於雲端微服務的人工智慧模型服務伺服器11的該實施例來實現。以下詳述該基於雲端微服務的人工智慧模型服務方法的該實施例的各個步驟。 Referring to FIGS. 1 and 2 , an embodiment of the cloud microservice-based artificial intelligence model service method of the present invention is realized by the cloud microservice-based artificial intelligence model service server 11 of the present invention shown in FIG. 1 . The steps of this embodiment of the cloud microservice-based artificial intelligence model service method are described in detail below.

在步驟21中,在該處理單元113經由該通訊單元111接收到一來自該使用端12的專案請求資料後,該處理單元113執行該資訊轉換應用程式群組解析該專案請求資料並產生一特定格式的解析結果,該解析結果包括一具有一金鑰、一有效時間區間的授權碼,及一對應該等人工智慧模型容器之其中一者的模型代碼。 In step 21, after the processing unit 113 receives a project request data from the client 12 via the communication unit 111, the processing unit 113 executes the information conversion application program group to analyze the project request data and generate a specific A parsing result in a format, the parsing result includes an authorization code having a key, a valid time interval, and a model code corresponding to one of the artificial intelligence model containers.

搭配參閱圖3,步驟21包括子步驟211、212,以下說明步驟21包括的子步驟。 Referring to FIG. 3 , step 21 includes sub-steps 211 and 212 , and the sub-steps included in step 21 are described below.

在子步驟211中,在該處理單元113經由該通訊單元111接收到該專案請求資料後,該處理單元113執行該資訊轉換應用程式群組對該專案請求資料進行常規正則文本解析(Regular Expression Text Parser),以產生一轉換前解析結果。 In sub-step 211, after the processing unit 113 receives the project request data via the communication unit 111, the processing unit 113 executes the information conversion application program group to perform regular regular text analysis (Regular Expression Text) on the project request data Parser) to generate a pre-conversion parsing result.

在子步驟212中,該處理單元113執行該資訊轉換應用程式群組將該轉換前解析結果轉換成該解析結果。 In sub-step 212, the processing unit 113 executes the information conversion application program group to convert the pre-conversion analysis result into the analysis result.

值得注意的是,在本實施例中,該處理單元113執行該資訊轉換應用程式群組將該轉換前解析結果轉換成JSON(JavaScript Object Notation)的格式,且該解析結果係包括一具有該模型代碼的統一資源標誌符(Uniform Resource Identifier,URI),但不以此為限。 It is worth noting that, in this embodiment, the processing unit 113 executes the information conversion application program group to convert the pre-conversion parsing result into JSON (JavaScript Object Notation) format, and the parsing result includes a model with the A uniform resource identifier (Uniform Resource Identifier, URI) of the code, but not limited thereto.

要再注意的是,在子步驟211中,該資訊轉換應用程式群組根據該專案請求資料不同有不同的解析方式,舉例來說,若該專案請求資料包括有一網路路徑,例如為http://aigo.ctbcbank.com/api/hrface/punch,表示進入點直接是RESTful API(即api-gateway),其中<aigo.ctbcbank.com>表示RESTFul進入點,<hrface>表示專案名稱,<punch>表示所進行的服務,經過常規正則文本解析後,該資訊轉換應用程式群組會將這個專案的需求,轉給專案指定要使用的模型,產生一統一資源標誌符,例如http://feature.hrface.svc.cluster.local:18890,該統一資源標誌符為Kubernetes的原生描述方式,其中<feature>即該模型代碼。 It should be noted that, in sub-step 211, the information conversion application group has different analysis methods according to the project request data. For example, if the project request data includes a network path, such as http: //aigo.ctbcbank.com/api/hrface/punch, indicating that the entry point is directly RESTful API (that is, api-gateway), where <aigo.ctbcbank.com> represents the RESTFul entry point, <hrface> represents the project name, <punch > Indicates the service performed. After regular regular text analysis, the information transformation application group will transfer the requirements of this project to the specified model to be used by the project, and generate a uniform resource identifier, such as http://feature .hrface.svc.cluster.local: 18890 , the uniform resource identifier is the native description method of Kubernetes, where <feature> is the model code.

若該專案請求資料包括有一具有多個協定網址的電文,如下所示:

Figure 110116700-A0305-02-0008-1
Figure 110116700-A0305-02-0009-2
Figure 110116700-A0305-02-0010-3
表示進入點為企業服務匯流排(Enterprise Service Bus,ESB)通道,其中<AiQnaInq>表示專案名稱,<01>表示所進行的服務,經過常規正則文本解析後,該資訊轉換應用程式群組會將這個專案的需求,轉給專案指定要使用的模型,產生該統一資源標誌符。 If the project request data includes a message with multiple agreement URLs, as follows:
Figure 110116700-A0305-02-0008-1
Figure 110116700-A0305-02-0009-2
Figure 110116700-A0305-02-0010-3
Indicates that the entry point is the enterprise service bus (Enterprise Service Bus, ESB) channel, where <AiQnaInq> indicates the project name, and <01> indicates the service performed. After regular regular text analysis, the information conversion application group will convert The requirements of this project are transferred to the project to specify the model to be used, and the uniform resource identifier is generated.

若該專案請求資料包括有一包括一獨立的空間放置路徑,例如/in-nfs/hrface/employeeData,表示進入點是檔案或目錄更動,其中hrface為專案名稱,employeeData為服務名稱,該資訊轉換應用程式群組直接觸發專案的商業邏輯產生該統一資源標誌符。 If the project request data includes an independent space placement path, such as /in-nfs/hrface/employeeData, it means that the entry point is a file or directory change, where hrface is the project name, employeeData is the service name, and the information conversion application The group directly triggers the project's business logic to generate the URI.

在步驟22中,該處理單元113執行該安全管理應用程式群組判定該解析結果是否合法。當判定出該解析結果合法時,流程進行步驟23;而當判定出該解析結果不合法時,流程進行步驟25。 In step 22, the processing unit 113 executes the security management application program group to determine whether the analysis result is legal. When it is determined that the analysis result is legal, the process proceeds to step 23; and when it is determined that the analysis result is illegal, the process proceeds to step 25.

值得注意的是,在本實施例中,該授權碼是由長度大於128小於等於256的隨機字串組成,該處理單元113執行該安全管理應用程式群組判定該授權碼的該金鑰是否合法且該授權碼是否在 該有效時間區間內,以判定該解析結果是否合法,當該授權碼的該金鑰合法且該授權碼在該有效時間區間內,該處理單元113判定該解析結果合法;而當該授權碼的該金鑰不合法或該授權碼不在該有效時間區間內,則該處理單元113判定該解析結果不合法,但不以此為限。 It should be noted that, in this embodiment, the authorization code is composed of random character strings whose length is greater than 128 and less than or equal to 256, and the processing unit 113 executes the security management application group to determine whether the key of the authorization code is legitimate and the authorization code is in the within the valid time interval to determine whether the analysis result is legal, when the key of the authorization code is legal and the authorization code is within the valid time interval, the processing unit 113 determines that the analysis result is legal; and when the authorization code is valid If the key is invalid or the authorization code is not within the valid time interval, the processing unit 113 determines that the parsing result is invalid, but not limited thereto.

要再注意的是,在本實施例中,該處理單元113利用JSON Web Token(JWT)演算法判定該授權碼的該金鑰是否合法,但不以此為限。 It should be noted that, in this embodiment, the processing unit 113 uses a JSON Web Token (JWT) algorithm to determine whether the key of the authorization code is legal, but not limited thereto.

在步驟23中,該處理單元113根據該解析結果,利用該等人工智慧模型容器中之一對應該解析結果之該模型代碼的目標人工智慧模型容器,產生一服務結果。值得注意的是,利用的人工智慧模型容器不同,所產生的服務結果不同,該服務結果例如為人臉、印鑑或洗錢防制(Anti-Money Laundering,AML)文件的辨識結果,但不以此為限。 In step 23, the processing unit 113 uses one of the artificial intelligence model containers corresponding to the target artificial intelligence model container of the model code of the analysis result to generate a service result according to the analysis result. It is worth noting that different artificial intelligence model containers are used to generate different service results. The service results are, for example, identification results of human faces, seals, or Anti-Money Laundering (AML) documents, but this does not mean that limit.

搭配參閱圖4,步驟23包括子步驟231~234,以下說明步驟23包括的子步驟。 With reference to FIG. 4 , step 23 includes sub-steps 231 to 234 , and the sub-steps included in step 23 are described below.

在子步驟231中,該處理單元113利用該目標人工智慧模型容器,根據該解析結果產生一對應該等資源分配應用程式中之一目標資源分配應用程式的資源分配請求。 In sub-step 231, the processing unit 113 utilizes the target artificial intelligence model container to generate a resource allocation request for a target resource allocation application among the corresponding resource allocation applications according to the parsing result.

在子步驟232中,該處理單元113執行該安全管理應用程 式群組從該等授權資訊中獲得一對應該目標資源分配應用程式及該目標人工智慧模型容器的目標授權資訊。 In sub-step 232, the processing unit 113 executes the security management application The formula group obtains target authorization information corresponding to the target resource allocation application program and the target artificial intelligence model container from the authorization information.

值得注意的是,在本實施例中,該安全管理應用程式群組,在被啟動時,自底層Kubernetes取得所有的授權資訊,當該目標資源分配應用程式來要求取得授權資訊時,透過雲原生的解碼方式,獲得該目標授權資訊,但不以此為限。 It is worth noting that, in this embodiment, the security management application group obtains all authorization information from the underlying Kubernetes when it is activated, and when the target resource allocation application requests authorization information, the cloud-native Decoding method to obtain the authorization information of the target, but not limited thereto.

在子步驟233中,該處理單元113執行該目標資源分配應用程式根據該目標授權資訊,取得該等資料庫13中之一對應該目標授權資訊的一目標資料庫的授權,並根據該資源分配請求從該目標資料庫存取一相關於該資源分配請求的分配資料。 In sub-step 233, the processing unit 113 executes the target resource allocation application program to obtain the authorization of a target database corresponding to the target authorization information from one of the databases 13 according to the target authorization information, and allocates resources according to the target authorization information. A request is made to retrieve an allocation data related to the resource allocation request from the target database.

在子步驟234中,該處理單元113利用該目標人工智慧模型容器根據該分配資料,產生該服務結果。 In sub-step 234, the processing unit 113 uses the target artificial intelligence model container to generate the service result according to the distribution data.

在步驟24中,該處理單元113執行該安全管理應用程式群組將該授權碼進行編碼後儲存至該儲存單元112。 In step 24 , the processing unit 113 executes the security management application group to encode the authorization code and store it in the storage unit 112 .

在步驟25中,該處理單元113執行該安全管理應用程式群組產生並經由該通訊單元111傳送一驗證失敗訊息至該使用端12。 In step 25 , the processing unit 113 executes the security management application group to generate and send a verification failure message to the client 12 via the communication unit 111 .

綜上所述,本發明基於雲端微服務的人工智慧模型服務方法及伺服器,藉由該處理單元113執行該資訊轉換應用程式群組解析該專案請求資料產生統一特定格式的該解析結果,以使人工智 慧模型容器無需重複處理不同系統間複雜的資訊轉換,且藉由執行該安全管理應用程式群組判定該解析結果是否合法,以使人工智慧模型容器無需自行管理授權資訊,具有高重用性,並藉由執行該目標資源分配應用程式根據該目標授權資訊取得該目標資料庫的授權,以分權式資源分配(Decentralized resource allocation)提供了高併發(High Concurrency)、高吞吐(High Capacity)的保證,此外,該資訊轉換應用程式群組、該安全管理應用程式群組,及該資源分配應用程式群組以微服務集群的方式存在,實現了微服務設計的水平與垂直擴展,使得人工智慧模型不再只是單點的服務,具有高可用性(High Availability),故確實能達成本發明的目的。 To sum up, the cloud microservice-based artificial intelligence model service method and server of the present invention use the processing unit 113 to execute the information conversion application group to analyze the project request data to generate the analysis result in a unified and specific format, so as to artificial intelligence The intelligent model container does not need to repeatedly process complex information conversion between different systems, and judges whether the analysis result is legal by executing the security management application group, so that the artificial intelligence model container does not need to manage authorization information by itself, which has high reusability and By executing the target resource allocation application program to obtain the authorization of the target database according to the target authorization information, the decentralized resource allocation (Decentralized resource allocation) provides high concurrency (High Concurrency) and high throughput (High Capacity) guarantees , In addition, the information conversion application group, the security management application group, and the resource allocation application group exist in the form of microservice clusters, which realize the horizontal and vertical expansion of microservice design, making the artificial intelligence model It is no longer just a single-point service, but has high availability (High Availability), so it can really achieve the purpose of the present invention.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 But the above-mentioned ones are only embodiments of the present invention, and should not limit the scope of the present invention. All simple equivalent changes and modifications made according to the patent scope of the present invention and the content of the patent specification are still within the scope of the present invention. Within the scope covered by the patent of the present invention.

11:人工智慧模型服務伺服器 11: Artificial intelligence model service server

111:通訊單元 111: Communication unit

112:儲存單元 112: storage unit

113:處理單元 113: Processing unit

12:使用端 12: Use end

13:資料庫 13: Database

100:通訊網路 100: Communication network

Claims (8)

一種人工智慧模型服務方法,由一伺服器來實施,該伺服器儲存一資訊轉換應用程式群組、一安全管理應用程式群組、多個人工智慧模型容器、一資源分配應用程式群組,及多筆分別相關於該等資料庫的授權資訊,該伺服器經由一通訊網路連接一使用端及多個資料庫,該資源分配應用程式群組包括多個資源分配應用程式,該等資源分配應用程式分別對應該等授權資訊,該人工智慧模型服務方法包含以下步驟:(A)在該伺服器接收到一來自該使用端的專案請求資料後,該伺服器執行該資訊轉換應用程式群組解析該專案請求資料並產生一特定格式的解析結果,該解析結果包括一對應該等人工智慧模型容器之其中一者的模型代碼;(B)該伺服器執行該安全管理應用程式群組判定該解析結果是否合法;及(C)當該伺服器判定出該解析結果合法時,該伺服器根據該解析結果,利用該等人工智慧模型容器中之一對應該解析結果之該模型代碼的目標人工智慧模型容器,產生一服務結果,步驟(C)包括以下子步驟:(C-1)當該伺服器判定出該解析結果合法時,該伺服器利用該目標人工智慧模型容器,根據該解析結果產生一對應該等資源分配應用程式中之一目標資源分配應用程式的資源分配請求,(C-2)該伺服器執行該安全管理應用程式群組從 該等授權資訊中獲得一對應該目標資源分配應用程式及該目標人工智慧模型容器的目標授權資訊,(C-3)該伺服器執行該目標資源分配應用程式根據該目標授權資訊,取得該等資料庫中之一對應該目標授權資訊的一目標資料庫的授權,並根據該資源分配請求從該目標資料庫存取一相關於該資源分配請求的分配資料,及(C-4)該伺服器利用該目標人工智慧模型容器根據該分配資料,產生該服務結果;及(D)當該伺服器判定出該解析結果不合法時,該伺服器執行該安全管理應用程式群組產生並經由該通訊網路傳送一驗證失敗訊息至該使用端。 An artificial intelligence model service method, implemented by a server, the server stores an information conversion application program group, a security management application program group, multiple artificial intelligence model containers, a resource allocation application program group, and A plurality of pieces of authorization information respectively related to the databases, the server is connected to a client and multiple databases through a communication network, the resource allocation application program group includes multiple resource allocation application programs, and the resource allocation application programs The programs respectively correspond to the authorization information. The artificial intelligence model service method includes the following steps: (A) After the server receives a project request data from the client, the server executes the information conversion application program group to analyze the The project requests data and generates an analysis result in a specific format, and the analysis result includes a model code of one of the artificial intelligence model containers; (B) the server executes the security management application group to determine the analysis result whether it is legal; and (C) when the server determines that the analysis result is legal, the server uses one of the artificial intelligence model containers corresponding to the target artificial intelligence model of the model code of the analysis result according to the analysis result The container generates a service result, and the step (C) includes the following sub-steps: (C-1) When the server determines that the analysis result is legal, the server uses the target artificial intelligence model container to generate a service result according to the analysis result. In response to a resource allocation request from a target resource allocation application among the resource allocation applications, (C-2) the server executes the security management application group from Among the authorization information, a pair of target authorization information of the target resource allocation application and the target artificial intelligence model container is obtained, and (C-3) the server executes the target resource allocation application to obtain the target authorization information. an authorization of one of the databases to a target database of the target authorization information, and accessing an allocation data associated with the resource allocation request from the target database in accordance with the resource allocation request, and (C-4) the server Use the target artificial intelligence model container to generate the service result according to the distribution data; and (D) when the server determines that the analysis result is illegal, the server executes the security management application group to generate and pass through the communication network and send an authentication failure message to the client. 如請求項1所述的人工智慧模型服務方法,其中,步驟(A)包括以下子步驟:(A-1)在該伺服器接收到該專案請求資料後,該伺服器執行該資訊轉換應用程式群組對該專案請求資料進行常規正則文本解析,以產生一轉換前解析結果;及(A-2)該伺服器執行該資訊轉換應用程式群組將該轉換前解析結果轉換成該解析結果。 The artificial intelligence model service method as described in claim 1, wherein step (A) includes the following sub-steps: (A-1) after the server receives the project request data, the server executes the information conversion application program The group performs regular regular text analysis on the item request data to generate a pre-conversion analysis result; and (A-2) the server executes the information transformation application group and converts the pre-conversion analysis result into the analysis result. 如請求項1所述的人工智慧模型服務方法,其中,在步驟(A)中,該解析結果包括一具有一金鑰及一有效時間區間的授權碼,在步驟(B)中,該伺服器執行該安全管理應用程式群組判定該授權碼的該金鑰是否合法且該授權碼是否在該有效時間區間內,以判定該解析結果是否合法,當 該授權碼的該金鑰合法且該授權碼在該有效時間區間內,該伺服器判定該解析結果合法。 The artificial intelligence model service method as described in claim item 1, wherein, in step (A), the analysis result includes an authorization code with a key and a valid time interval, and in step (B), the server Execute the security management application group to determine whether the key of the authorization code is legal and whether the authorization code is within the valid time interval, so as to determine whether the analysis result is legal, when If the key of the authorization code is legal and the authorization code is within the valid time interval, the server determines that the parsing result is legal. 如請求項3所述的人工智慧模型服務方法,步驟(C)後還包含以下步驟:(E)該伺服器執行該安全管理應用程式群組將該授權碼進行編碼後儲存。 The artificial intelligence model service method described in claim 3 further includes the following steps after step (C): (E) the server executes the security management application program group to encode the authorization code and store it. 一種人工智慧模型服務伺服器,包含:一通訊單元,連接一通訊網路,並經由該通訊網路連接一使用端及多個資料庫;一儲存單元,儲存一資訊轉換應用程式群組、一安全管理應用程式群組、多個人工智慧模型容器、一資源分配應用程式群組,及多筆分別相關於該等資料庫的授權資訊,該資源分配應用程式群組包括多個資源分配應用程式,該等資源分配應用程式分別對應該等授權資訊;一處理單元,電連接該通訊單元及該儲存單元;其中,在該處理單元經由該通訊單元接收到一來自該使用端的專案請求資料後,該處理單元執行該資訊轉換應用程式群組解析該專案請求資料並產生一特定格式的解析結果,該解析結果包括一對應該等人工智慧模型容器之其中一者的模型代碼,並執行該安全管理應用程式群組判定該解析結果是否合法,當該處理單元判定出該解析結果合法時,該處理單元根據該解析結果,利用該等人工智慧模型容器中之一對應該解析結果之該模型代碼的目標人工智慧模型容器,產生一服務結果,當該處理單元判定出該解 析結果合法時,該處理單元利用該目標人工智慧模型容器,根據該解析結果產生一對應該等資源分配應用程式中之一目標資源分配應用程式的資源分配請求,該處理單元執行該安全管理應用程式群組從該等授權資訊中獲得一對應該目標資源分配應用程式及該目標人工智慧模型容器的目標授權資訊,且執行該目標資源分配應用程式根據該目標授權資訊,取得該等資料庫中之一對應該目標授權資訊的一目標資料庫的授權,並根據該資源分配請求從該目標資料庫存取一相關於該資源分配請求的分配資料,再利用該目標人工智慧模型容器根據該分配資料,產生該服務結果,當該處理單元判定出該解析結果不合法時,該處理單元執行該安全管理應用程式群組產生並經由該通訊單元傳送一驗證失敗訊息至該使用端。 An artificial intelligence model service server, comprising: a communication unit, connected to a communication network, and connected to a client and multiple databases through the communication network; a storage unit, storing an information conversion application program group, and a security management An application program group, a plurality of artificial intelligence model containers, a resource allocation application program group, and multiple pieces of authorization information respectively related to the databases, the resource allocation application program group includes multiple resource allocation application programs, the and other resource allocation applications respectively corresponding to the authorization information; a processing unit electrically connected to the communication unit and the storage unit; wherein, after the processing unit receives a project request data from the client through the communication unit, the processing The unit executes the information conversion application program group to parse the project request data and generate an analysis result in a specific format, the analysis result includes a model code corresponding to one of the artificial intelligence model containers, and executes the security management application program The group judges whether the analysis result is legal, and when the processing unit determines that the analysis result is legal, the processing unit uses one of the artificial intelligence model containers corresponding to the target artificial intelligence model code of the analysis result according to the analysis result. The smart model container generates a service result, when the processing unit determines that the solution When the analysis result is valid, the processing unit uses the target artificial intelligence model container to generate a resource allocation request for one of the resource allocation application programs according to the analysis result, and the processing unit executes the security management application The program group obtains the target authorization information of the target resource allocation application and the target artificial intelligence model container from the authorization information, and executes the target resource allocation application to obtain the target authorization information in the database An authorization of a target database corresponding to the target authorization information, and according to the resource allocation request, accessing an allocation data related to the resource allocation request from the target database, and then using the target artificial intelligence model container according to the allocation data , generating the service result, when the processing unit determines that the parsing result is invalid, the processing unit executes the security management application program group to generate and send a verification failure message to the client via the communication unit. 如請求項5所述的人工智慧模型服務伺服器,其中,在該處理單元經由該通訊單元接收到該專案請求資料後,該處理單元執行該資訊轉換應用程式群組對該專案請求資料進行常規正則文本解析,以產生一轉換前解析結果,該處理單元再執行該資訊轉換應用程式群組將該轉換前解析結果轉換成該解析結果。 The artificial intelligence model service server as described in claim item 5, wherein, after the processing unit receives the project request data through the communication unit, the processing unit executes the information conversion application program group to perform routine processing on the project request data The regular text is parsed to generate a pre-conversion parsing result, and the processing unit executes the information conversion application program group to convert the pre-conversion parsing result into the parsing result. 如請求項5所述的人工智慧模型服務伺服器,其中,該解析結果包括一具有一金鑰及一有效時間區間的授權碼,該處理單元執行該安全管理應用程式群組判定該授權碼的該金鑰是否合法且該授權碼是否在該有效時間區間內,以判定該解析結果是否合法,當該授權碼的該金鑰合法且該 授權碼在該有效時間區間內,該處理單元判定該解析結果合法。 The artificial intelligence model service server as described in claim item 5, wherein the analysis result includes an authorization code with a key and a valid time interval, and the processing unit executes the security management application group to determine the authorization code Whether the key is legal and whether the authorization code is within the valid time interval is used to determine whether the analysis result is legal. When the key of the authorization code is legal and the If the authorization code is within the valid time interval, the processing unit determines that the parsing result is legal. 如請求項7所述的人工智慧模型服務伺服器,其中,該處理單元執行該安全管理應用程式群組將該授權碼進行編碼後儲存至該儲存單元。 The artificial intelligence model service server according to claim 7, wherein the processing unit executes the security management application program group to encode the authorization code and store it in the storage unit.
TW110116700A 2021-05-10 2021-05-10 Artificial intelligence model service method and server based on cloud microservice TWI810560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110116700A TWI810560B (en) 2021-05-10 2021-05-10 Artificial intelligence model service method and server based on cloud microservice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110116700A TWI810560B (en) 2021-05-10 2021-05-10 Artificial intelligence model service method and server based on cloud microservice

Publications (2)

Publication Number Publication Date
TW202244755A TW202244755A (en) 2022-11-16
TWI810560B true TWI810560B (en) 2023-08-01

Family

ID=85793027

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110116700A TWI810560B (en) 2021-05-10 2021-05-10 Artificial intelligence model service method and server based on cloud microservice

Country Status (1)

Country Link
TW (1) TWI810560B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI468959B (en) * 2010-11-03 2015-01-11 Hon Hai Prec Ind Co Ltd System and Method for Managing Use Information of a Measuring Equipment
CN109347814A (en) * 2018-10-05 2019-02-15 李斌 A kind of container cloud security means of defence and system based on Kubernetes building
CN109857475A (en) * 2018-12-27 2019-06-07 深圳云天励飞技术有限公司 A kind of method and device of frame management
CN111133409A (en) * 2017-10-19 2020-05-08 净睿存储股份有限公司 Ensuring reproducibility in artificial intelligence infrastructure
US20200175387A1 (en) * 2018-11-30 2020-06-04 International Business Machines Corporation Hierarchical dynamic deployment of ai model
CN111427677A (en) * 2020-03-20 2020-07-17 网易(杭州)网络有限公司 Artificial intelligence product generation method and device and server
CN112764875A (en) * 2020-12-31 2021-05-07 中国科学院软件研究所 Intelligent calculation-oriented lightweight portal container microservice system and method
TWM618904U (en) * 2021-05-10 2021-11-01 中國信託商業銀行股份有限公司 Artificial intelligence model service server based on cloud microservices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI468959B (en) * 2010-11-03 2015-01-11 Hon Hai Prec Ind Co Ltd System and Method for Managing Use Information of a Measuring Equipment
CN111133409A (en) * 2017-10-19 2020-05-08 净睿存储股份有限公司 Ensuring reproducibility in artificial intelligence infrastructure
CN109347814A (en) * 2018-10-05 2019-02-15 李斌 A kind of container cloud security means of defence and system based on Kubernetes building
US20200175387A1 (en) * 2018-11-30 2020-06-04 International Business Machines Corporation Hierarchical dynamic deployment of ai model
CN109857475A (en) * 2018-12-27 2019-06-07 深圳云天励飞技术有限公司 A kind of method and device of frame management
CN111427677A (en) * 2020-03-20 2020-07-17 网易(杭州)网络有限公司 Artificial intelligence product generation method and device and server
CN112764875A (en) * 2020-12-31 2021-05-07 中国科学院软件研究所 Intelligent calculation-oriented lightweight portal container microservice system and method
TWM618904U (en) * 2021-05-10 2021-11-01 中國信託商業銀行股份有限公司 Artificial intelligence model service server based on cloud microservices

Also Published As

Publication number Publication date
TW202244755A (en) 2022-11-16

Similar Documents

Publication Publication Date Title
CN108306877B (en) NODE JS-based user identity information verification method and device and storage medium
CN109034809B (en) Block chain generation method and device, block chain node and storage medium
CN110602052B (en) Micro-service processing method and server
Biswas et al. Interoperability and synchronization management of blockchain-based decentralized e-health systems
Das et al. Big data analytics: A framework for unstructured data analysis
CN102651775B (en) Based on method, the equipment and system of many tenants shared object management of cloud computing
CN106375323A (en) Method for carrying out kerberos identity authentication in multi-tenant mode
TWI678909B (en) Safety authentication method, device and system
US20150095657A1 (en) Processing Extensible Markup Language Security Messages Using Delta Parsing Technology
CN112070608B (en) Information processing method, device, medium and electronic equipment
CN103684754B (en) A kind of WPA shared key based on GPU cluster cracks system
CN110162559B (en) Block chain processing method based on universal JSON synchronous and asynchronous data API (application program interface) interface call
CN111931220B (en) Consensus processing method, device, medium and electronic equipment for block chain network
CN115208665B (en) Germplasm resource data safe sharing method and system based on blockchain
CN111865895A (en) Data secret transmission method and system based on cloud platform
CN106874315A (en) For providing the method and apparatus to the access of content resource
US20230259938A1 (en) Blockchain-based data processing method and apparatus, device, readable storage medium and computer program product
CN111881337B (en) Data acquisition method and system based on Scapy framework and storage medium
CN112118133A (en) Method for facilitating quick upgrading of Ether intelligent contracts based on custom structure data
Wang et al. Ess: An efficient storage scheme for improving the scalability of bitcoin network
CN107451459A (en) The method and apparatus verified using picture validation code
TWI810560B (en) Artificial intelligence model service method and server based on cloud microservice
TWM618904U (en) Artificial intelligence model service server based on cloud microservices
CN112287393A (en) Credible identity authentication method and device based on Internet of things and block chain
CN105721560B (en) Unified member&#39;s central user login password safe storage system and method