KR102641628B1 - Method and system for providing service using segmented deep learning model - Google Patents

Method and system for providing service using segmented deep learning model Download PDF

Info

Publication number
KR102641628B1
KR102641628B1 KR1020220097963A KR20220097963A KR102641628B1 KR 102641628 B1 KR102641628 B1 KR 102641628B1 KR 1020220097963 A KR1020220097963 A KR 1020220097963A KR 20220097963 A KR20220097963 A KR 20220097963A KR 102641628 B1 KR102641628 B1 KR 102641628B1
Authority
KR
South Korea
Prior art keywords
model
nodes
deep learning
node
learning model
Prior art date
Application number
KR1020220097963A
Other languages
Korean (ko)
Other versions
KR20240020025A (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 KR1020220097963A priority Critical patent/KR102641628B1/en
Publication of KR20240020025A publication Critical patent/KR20240020025A/en
Application granted granted Critical
Publication of KR102641628B1 publication Critical patent/KR102641628B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Abstract

분할된 딥러닝 모델을 이용한 서비스 제공 방법 및 시스템이 개시된다. 일실시예에 따른 서비스 제공 방법은 기 생성된 딥러닝 모델이 분할되어 생성된 헤드(head) 모델 및 바디(body) 모델 중 상기 헤드 모델을 포함하는 제1 모듈로부터 입력 이미지에 대한 상기 헤드 모델의 제1 출력값을 포함하는 서비스 요청을 수신하는 단계, 상기 수신된 서비스 요청에 포함된 상기 제1 출력값을 제2 모듈이 포함하는 상기 바디 모델에 입력하여 제2 출력값을 획득하는 단계 및 상기 제2 출력값에 기반하여 상기 제1 모듈로 서비스를 제공하는 단계를 포함할 수 있다. A service provision method and system using a segmented deep learning model are disclosed. A service provision method according to an embodiment is a head model for an input image from a first module including the head model among a head model and a body model generated by dividing a pre-generated deep learning model. Receiving a service request including a first output value, inputting the first output value included in the received service request into the body model included in a second module to obtain a second output value, and obtaining the second output value It may include providing a service to the first module based on .

Description

분할된 딥러닝 모델을 이용한 서비스 제공 방법 및 시스템{METHOD AND SYSTEM FOR PROVIDING SERVICE USING SEGMENTED DEEP LEARNING MODEL}Service provision method and system using segmented deep learning model {METHOD AND SYSTEM FOR PROVIDING SERVICE USING SEGMENTED DEEP LEARNING MODEL}

아래의 설명은 분할된 딥러닝 모델을 이용한 서비스 제공 방법 및 시스템에 관한 것이다.The explanation below relates to a service provision method and system using a segmented deep learning model.

SaaS(Software as a Service)는 소프트웨어의 여러 기능 중에서 사용자가 필요로 하는 서비스만 네트워크를 통해 이용 가능하도록 한 소프트웨어이다. 이러한 SaaS 형의 딥러닝 모델 서비스는 얼굴 인식 기능이나, 이미지 분류 기능 등과 같이 딥러닝 모델을 이용한 다양한 기능들을 네트워크를 통해 제공할 수 있다. 사용자는 서비스의 딥러닝 모델 API(Application Programming Interface)를 통해 원하는 기능을 호출하여 이용할 수 있다.SaaS (Software as a Service) is software that allows only the services that users need among the various functions of the software to be available through a network. This SaaS-type deep learning model service can provide various functions using deep learning models, such as face recognition functions and image classification functions, through the network. Users can call and use the desired function through the service's deep learning model API (Application Programming Interface).

그러나, SaaS 형의 딥러닝 모델 서비스는 공개 네트워크(public network)를 통한 이미지의 전송이 필수적이라는 문제점이 있다. 사람의 얼굴과 같은 민감한 정보가 외부 망을 통해 전달되는 것에 대한 규제가 강화되고 있으며, 사용자에 따라 서비스의 사용은 원하지만 클라이언트 단말에서 서버로 이미지가 수집되는 것 자체를 원하지 않는 경우도 많이 존재한다.However, SaaS-type deep learning model services have the problem that image transmission through a public network is essential. Regulations on the transmission of sensitive information, such as a person's face, through external networks are being strengthened, and there are many cases where some users want to use the service but do not want images to be collected from the client terminal to the server. .

[선행문헌번호][Prior document number]

한국공개특허 제10-2021-0082630호Korean Patent Publication No. 10-2021-0082630

기 생성된 딥러닝 모델을 헤드(head) 모델과 바디(body) 모델로 분할하여 헤드 모델을 포함하는 클라이언트 단말에서 헤드 모델을 통해 1차적으로 처리된 데이터를 공개 네트워크를 통해 바디 모델을 포함하는 서버로 전송하고, 서버가 바디 모델을 통해 1차적으로 처리된 데이터를 2차적으로 처리하도록 함으로써, 이미지를 직접 공개 네트워크를 통해 전송하지 않고도 SaaS 형의 딥러닝 모델 서비스를 제공할 수 있는 서비스 제공 방법 및 시스템을 제공한다.The previously created deep learning model is divided into a head model and a body model, and the data primarily processed through the head model is transferred from the client terminal containing the head model to the server containing the body model through a public network. A method of providing a service that can provide a SaaS-type deep learning model service without transmitting the image directly through a public network by transmitting it to and having the server secondarily process the data that was primarily processed through the body model; and Provides a system.

기 생성된 딥러닝 모델을 적절히 헤드 모델과 바디 모델로 분할하기 위한 기술을 제공한다.It provides technology to properly divide a previously created deep learning model into a head model and a body model.

고객의 레거시 시스템과 같은 하나의 시스템 내에서 헤드 모델을 포함하는 제1 모듈과 바디 모델을 포함하는 제2 모듈을 이용하여 고객의 시스템과 서비스 제공자의 모듈간 데이터 보호 이슈를 커버할 수 있는 서비스 제공 방법 및 시스템을 제공한다.Provides a service that covers data protection issues between the customer's system and the service provider's modules by using a first module containing a head model and a second module containing a body model within one system, such as the customer's legacy system. Provides methods and systems.

적어도 하나의 프로세서를 포함하는 컴퓨터 시스템의 서비스 제공 방법에 있어서, 상기 적어도 하나의 프로세서에 의해, 기 생성된 딥러닝 모델이 분할되어 생성된 헤드(head) 모델 및 바디(body) 모델 중 상기 헤드 모델을 포함하는 제1 모듈로부터 입력 이미지에 대한 상기 헤드 모델의 제1 출력값을 포함하는 서비스 요청을 수신하는 단계; 상기 적어도 하나의 프로세서에 의해, 상기 수신된 서비스 요청에 포함된 상기 제1 출력값을 제2 모듈이 포함하는 상기 바디 모델에 입력하여 제2 출력값을 획득하는 단계; 및 상기 적어도 하나의 프로세서에 의해, 상기 제2 출력값에 기반하여 상기 클라이언트 단말로 서비스를 제공하는 단계를 포함하는 서비스 제공 방법을 제공한다. In the service provision method of a computer system including at least one processor, the head model among a head model and a body model generated by dividing a previously generated deep learning model by the at least one processor Receiving a service request including a first output value of the head model for an input image from a first module including; obtaining a second output value by inputting, by the at least one processor, the first output value included in the received service request into the body model included in a second module; and providing a service to the client terminal based on the second output value by the at least one processor.

일측에 따르면, 상기 제1 모듈 및 상기 제2 모듈은 상기 컴퓨터 시스템에 포함되는 것을 특징으로 할 수 있다.According to one side, the first module and the second module may be included in the computer system.

다른 측면에 따르면, 상기 제2 모듈은 상기 컴퓨터 시스템에 포함되고, 상기 제1 모듈은 상기 컴퓨터 시스템과 상이한 별도의 컴퓨터 장치에 포함되어 상기 컴퓨터 시스템과 상기 별도의 컴퓨터 장치간의 네트워크 통신을 통해 상기 제2 모듈과 연동되는 것을 특징으로 할 수 있다.According to another aspect, the second module is included in the computer system, and the first module is included in a separate computer device different from the computer system, and the second module is included in the computer device through network communication between the computer system and the separate computer device. It may be characterized as being linked to 2 modules.

또 다른 측면에 따르면, 상기 딥러닝 모델은 상기 딥러닝 모델이 포함하는 노드들 각각이 처리하는 누적 파라미터의 수 및 상기 헤드 모델에서 상기 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여 선정된 노드를 기준으로 상기 헤드 모델 및 상기 바디 모델로 분할되는 것을 특징으로 할 수 있다.According to another aspect, the deep learning model is selected based on at least one of the number of cumulative parameters processed by each of the nodes included in the deep learning model and the amount of data that must be transferred from the head model to the body model. It may be divided into the head model and the body model based on the node.

다른 측면에 따르면, 상기 서비스 제공 방법은 상기 적어도 하나의 프로세서에 의해, 상기 딥러닝 모델을 상기 헤드 모델 및 상기 바디 모델로 분할하는 단계; 및 상기 적어도 하나의 프로세서에 의해, 상기 헤드 모델을 배포하는 단계를 더 포함할 수 있다.According to another aspect, the service providing method includes dividing the deep learning model into the head model and the body model by the at least one processor; and distributing the head model by the at least one processor.

또 다른 측면에 따르면, 상기 분할하는 단계는, 상기 딥러닝 모델이 포함하는 노드들 각각의 가중치 값에 기초하여 상기 노드들 중에서 선정된 후보 노드들을 포함하는 후보군을 선정하는 단계; 상기 딥러닝 모델이 포함하는 노드들 각각이 처리하는 누적 파라미터의 수 및 상기 헤드 모델에서 상기 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여, 상기 노드들 중 분할의 기준이 되는 노드를 선정하는 단계; 및 상기 선정된 노드를 기준으로 상기 딥러닝 모델을 상기 헤드 모델 및 상기 바디 모델로 분할하는 단계를 포함하는 것을 특징으로 할 수 있다.According to another aspect, the dividing step includes selecting a candidate group including candidate nodes selected from among the nodes based on the weight value of each node included in the deep learning model; Based on at least one of the number of cumulative parameters processed by each of the nodes included in the deep learning model and the amount of data that must be transferred from the head model to the body model, a node that is a basis for division among the nodes is selected. selection step; and dividing the deep learning model into the head model and the body model based on the selected node.

또 다른 측면에 따르면, 상기 후보군을 선정하는 단계는, 상기 딥러닝 모델이 포함하는 노드들 각각에 대해, 노드가 부모 노드인 경우에 동일한 제1 가중치 값을 설정하고, 노드가 자식 노드인 경우에 제2 가중치 값을 설정하는 단계; 및 최상위 부모 노드와 리프(leaf) 노드를 제외한 노드들 중 제1 가중치 값이 설정된 노드들의 집합을 상기 후보군으로 선정하는 단계를 포함하고, 상기 제2 가중치 값은 상기 제1 가중치 값을 부모 노드가 포함하는 자식 노드의 수로 나눈 값을 포함하는 것을 특징으로 할 수 있다.According to another aspect, the step of selecting the candidate group includes setting the same first weight value for each of the nodes included in the deep learning model when the node is a parent node, and setting the same first weight value when the node is a child node. setting a second weight value; And a step of selecting a set of nodes for which a first weight value is set among nodes excluding the highest parent node and a leaf node as the candidate group, wherein the second weight value is set to the first weight value by the parent node. It may be characterized as including a value divided by the number of child nodes it contains.

또 다른 측면에 따르면, 상기 서비스 제공 방법은 상기 적어도 하나의 프로세서에 의해, 상기 제1 모듈이 포함하는 상기 헤드 모델과 상기 제2 모듈이 포함하는 상기 바디 모델간의 인터페이스를 연결하는 단계를 더 포함하고, 상기 서비스 요청은 상기 연결된 인터페이스에 기반하여 발생되는 것을 특징으로 할 수 있다.According to another aspect, the service providing method further includes connecting an interface between the head model included in the first module and the body model included in the second module by the at least one processor, , the service request may be generated based on the connected interface.

또 다른 측면에 따르면, 상기 서비스의 제공과 관련하여 상기 제1 모듈의 사용자에게 부가되는 비용이 상기 헤드 모델의 용량에 영향을 받는 것을 특징으로 할 수 있다.According to another aspect, the cost added to the user of the first module in relation to the provision of the service may be affected by the capacity of the head model.

또 다른 측면에 따르면, 상기 헤드 모델의 용량을 고려하여 상기 딥러닝 모델이 상기 헤드 모델 및 상기 바디 모델로 분할되는 것을 특징으로 할 수 있다.According to another aspect, the deep learning model may be divided into the head model and the body model in consideration of the capacity of the head model.

컴퓨터 시스템과 결합되어 상기 방법을 컴퓨터 시스템에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램을 제공한다.A computer program stored on a computer-readable recording medium is provided in conjunction with a computer system to execute the method on the computer system.

상기 방법을 컴퓨터 장치에 실행시키기 위한 컴퓨터 프로그램이 기록되어 있는 컴퓨터 판독 가능한 기록매체를 제공한다.Provided is a computer-readable recording medium on which a computer program for executing the above method on a computer device is recorded.

컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서를 포함하고, 상기 적어도 하나의 프로세서에 의해, 기 생성된 딥러닝 모델이 분할되어 생성된 헤드(head) 모델 및 바디(body) 모델 중 상기 헤드 모델을 포함하는 제1 모듈로부터 입력 이미지에 대한 상기 헤드 모델의 제1 출력값을 포함하는 서비스 요청을 수신하고, 상기 수신된 서비스 요청에 포함된 상기 제1 출력값을 제2 모듈이 포함하는 상기 바디 모델에 입력하여 제2 출력값을 획득하고, 상기 제2 출력값에 기반하여 상기 제1 모듈로 서비스를 제공하는 것을 특징으로 하는 컴퓨터 장치를 제공한다.At least one processor implemented to execute computer-readable instructions, wherein the head model and the body model are generated by dividing a previously generated deep learning model by the at least one processor. The body receives a service request including a first output value of the head model for an input image from a first module including a head model, and the second module includes the first output value included in the received service request. A computer device is provided, characterized in that it obtains a second output value by inputting it into a model, and provides a service to the first module based on the second output value.

기 생성된 딥러닝 모델을 헤드(head) 모델과 바디(body) 모델로 분할하여 헤드 모델을 포함하는 클라이언트 단말에서 헤드 모델을 통해 1차적으로 처리된 데이터를 공개 네트워크를 통해 바디 모델을 포함하는 서버로 전송하고, 서버가 바디 모델을 통해 1차적으로 처리된 데이터를 2차적으로 처리하도록 함으로써, 이미지를 직접 공개 네트워크를 통해 전송하지 않고도 SaaS 형의 딥러닝 모델 서비스를 제공할 수 있다.The previously created deep learning model is divided into a head model and a body model, and the data primarily processed through the head model is transferred from the client terminal containing the head model to the server containing the body model through a public network. By transmitting it to and having the server secondarily process the data that was primarily processed through the body model, it is possible to provide a SaaS-type deep learning model service without transmitting the image directly through a public network.

기 생성된 딥러닝 모델을 적절히 헤드 모델과 바디 모델로 분할하기 위한 기술을 제공할 수 있다. It is possible to provide technology for appropriately dividing a previously created deep learning model into a head model and a body model.

고객의 레거시 시스템과 같은 하나의 시스템 내에서 헤드 모델을 포함하는 제1 모듈과 바디 모델을 포함하는 제2 모듈을 이용하여 고객의 시스템과 서비스 제공자의 모듈간 데이터 보호 이슈를 커버할 수 있다.Within one system, such as a customer's legacy system, a first module including a head model and a second module including a body model can be used to cover data protection issues between the customer's system and the service provider's modules.

도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 컴퓨터 장치의 예를 도시한 블록도이다.
도 3은 본 발명의 일실시예에 따른 서비스 제공 시스템의 개괄적인 모습의 예를 도시한 도면이다.
도 4는 본 발명의 일실시예에 따른 서비스 제공 방법의 예를 도시한 흐름도이다.
도 5는 본 발명의 일실시예에 따른 딥러닝 모델 분할 방법의 예를 도시한 흐름도이다.
도 6은 본 발명의 일실시예에 있어서, 딥러닝 모델을 분할하는 예를 도시한 도면이다.
도 7은 본 발명의 일실시예에 따른 딥러닝 모델 분할 방법의 예를 도시한 흐름도이다.
도 8은 본 발명의 일실시예에 있어서, 딥러닝 모델을 분할하는 과정의 예를 도시한 도면이다.
1 is a diagram illustrating an example of a network environment according to an embodiment of the present invention.
Figure 2 is a block diagram showing an example of a computer device according to an embodiment of the present invention.
Figure 3 is a diagram showing an example of a general view of a service provision system according to an embodiment of the present invention.
Figure 4 is a flowchart showing an example of a service provision method according to an embodiment of the present invention.
Figure 5 is a flowchart showing an example of a deep learning model segmentation method according to an embodiment of the present invention.
Figure 6 is a diagram showing an example of dividing a deep learning model in one embodiment of the present invention.
Figure 7 is a flowchart showing an example of a deep learning model segmentation method according to an embodiment of the present invention.
Figure 8 is a diagram illustrating an example of a process for dividing a deep learning model in one embodiment of the present invention.

이하, 실시예를 첨부한 도면을 참조하여 상세히 설명한다.Hereinafter, embodiments will be described in detail with reference to the accompanying drawings.

본 발명의 실시예들에 따른 서비스 제공 시스템은 적어도 하나의 컴퓨터 장치에 의해 구현될 수 있으며, 본 발명의 실시예들에 따른 서비스 제공 방법은 서비스 제공 시스템에 포함되는 적어도 하나의 컴퓨터 장치를 통해 수행될 수 있다. 컴퓨터 장치에는 본 발명의 일실시예에 따른 컴퓨터 프로그램이 설치 및 구동될 수 있고, 컴퓨터 장치는 구동된 컴퓨터 프로그램의 제어에 따라 본 발명의 실시예들에 따른 서비스 제공 방법을 수행할 수 있다. 상술한 컴퓨터 프로그램은 컴퓨터 장치와 결합되어 서비스 제공 방법을 컴퓨터에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장될 수 있다.The service provision system according to embodiments of the present invention may be implemented by at least one computer device, and the service provision method according to embodiments of the present invention is performed through at least one computer device included in the service provision system. It can be. The computer program according to an embodiment of the present invention may be installed and driven in the computer device, and the computer device may perform the service providing method according to the embodiment of the present invention under the control of the driven computer program. The above-described computer program can be combined with a computer device and stored in a computer-readable recording medium to enable the computer to execute the service provision method.

도 1은 본 발명의 일실시예에 따른 네트워크 환경의 예를 도시한 도면이다. 도 1의 네트워크 환경은 복수의 전자 기기들(110, 120, 130, 140), 복수의 서버들(150, 160) 및 네트워크(170)를 포함하는 예를 나타내고 있다. 이러한 도 1은 발명의 설명을 위한 일례로 전자 기기의 수나 서버의 수가 도 1과 같이 한정되는 것은 아니다. 또한, 도 1의 네트워크 환경은 본 실시예들에 적용 가능한 환경들 중 하나의 예를 설명하는 것일 뿐, 본 실시예들에 적용 가능한 환경이 도 1의 네트워크 환경으로 한정되는 것은 아니다.1 is a diagram illustrating an example of a network environment according to an embodiment of the present invention. The network environment in FIG. 1 shows an example including a plurality of electronic devices 110, 120, 130, and 140, a plurality of servers 150 and 160, and a network 170. Figure 1 is an example for explaining the invention, and the number of electronic devices or servers is not limited as in Figure 1. In addition, the network environment in FIG. 1 only explains one example of environments applicable to the present embodiments, and the environment applicable to the present embodiments is not limited to the network environment in FIG. 1.

복수의 전자 기기들(110, 120, 130, 140)은 컴퓨터 장치로 구현되는 고정형 단말이거나 이동형 단말일 수 있다. 복수의 전자 기기들(110, 120, 130, 140)의 예를 들면, 스마트폰(smart phone), 휴대폰, 네비게이션, 컴퓨터, 노트북, 디지털방송용 단말, PDA(Personal Digital Assistants), PMP(Portable Multimedia Player), 태블릿 PC 등이 있다. 일례로 도 1에서는 전자 기기(110)의 예로 스마트폰의 형상을 나타내고 있으나, 본 발명의 실시예들에서 전자 기기(110)는 실질적으로 무선 또는 유선 통신 방식을 이용하여 네트워크(170)를 통해 다른 전자 기기들(120, 130, 140) 및/또는 서버(150, 160)와 통신할 수 있는 다양한 물리적인 컴퓨터 장치들 중 하나를 의미할 수 있다.The plurality of electronic devices 110, 120, 130, and 140 may be fixed terminals or mobile terminals implemented as computer devices. Examples of the plurality of electronic devices 110, 120, 130, and 140 include smart phones, mobile phones, navigation devices, computers, laptops, digital broadcasting terminals, PDAs (Personal Digital Assistants), and PMPs (Portable Multimedia Players). ), tablet PC, etc. For example, in FIG. 1, the shape of a smartphone is shown as an example of the electronic device 110. However, in embodiments of the present invention, the electronic device 110 actually communicates with other devices through the network 170 using a wireless or wired communication method. It may refer to one of various physical computer devices capable of communicating with electronic devices 120, 130, 140 and/or servers 150, 160.

통신 방식은 제한되지 않으며, 네트워크(170)가 포함할 수 있는 통신망(일례로, 이동통신망, 유선 인터넷, 무선 인터넷, 방송망)을 활용하는 통신 방식뿐만 아니라 기기들간의 근거리 무선 통신 역시 포함될 수 있다. 예를 들어, 네트워크(170)는, PAN(personal area network), LAN(local area network), CAN(campus area network), MAN(metropolitan area network), WAN(wide area network), BBN(broadband network), 인터넷 등의 네트워크 중 하나 이상의 임의의 네트워크를 포함할 수 있다. 또한, 네트워크(170)는 버스 네트워크, 스타 네트워크, 링 네트워크, 메쉬 네트워크, 스타-버스 네트워크, 트리 또는 계층적(hierarchical) 네트워크 등을 포함하는 네트워크 토폴로지 중 임의의 하나 이상을 포함할 수 있으나, 이에 제한되지 않는다.The communication method is not limited, and may include not only a communication method utilizing a communication network that the network 170 may include (for example, a mobile communication network, wired Internet, wireless Internet, and a broadcast network), but also short-range wireless communication between devices. For example, the network 170 may include a personal area network (PAN), a local area network (LAN), a campus area network (CAN), a metropolitan area network (MAN), a wide area network (WAN), and a broadband network (BBN). , may include one or more arbitrary networks such as the Internet. Additionally, the network 170 may include any one or more of network topologies including a bus network, star network, ring network, mesh network, star-bus network, tree or hierarchical network, etc. Not limited.

서버(150, 160) 각각은 복수의 전자 기기들(110, 120, 130, 140)과 네트워크(170)를 통해 통신하여 명령, 코드, 파일, 컨텐츠, 서비스 등을 제공하는 컴퓨터 장치 또는 복수의 컴퓨터 장치들로 구현될 수 있다. 예를 들어, 서버(150)는 네트워크(170)를 통해 접속한 복수의 전자 기기들(110, 120, 130, 140)로 서비스(일례로, 클라우드 서비스, 게임 서비스, 컨텐츠 제공 서비스, 그룹 통화 서비스(또는 음성 컨퍼런스 서비스), 메시징 서비스, 메일 서비스, 소셜 네트워크 서비스, 지도 서비스, 번역 서비스, 금융 서비스, 결제 서비스, 검색 서비스 등)를 제공하는 시스템일 수 있다.Each of the servers 150 and 160 is a computer device or a plurality of computers that communicate with a plurality of electronic devices 110, 120, 130, 140 and a network 170 to provide commands, codes, files, content, services, etc. It can be implemented with devices. For example, the server 150 provides services (e.g., cloud service, game service, content provision service, group call service) to a plurality of electronic devices 110, 120, 130, and 140 connected through the network 170. (or voice conference service), messaging service, mail service, social network service, map service, translation service, financial service, payment service, search service, etc.).

도 2는 본 발명의 일실시예에 따른 컴퓨터 장치의 예를 도시한 블록도이다. 앞서 설명한 복수의 전자 기기들(110, 120, 130, 140) 각각이나 서버들(150, 160) 각각은 도 2를 통해 도시된 컴퓨터 장치(200)에 의해 구현될 수 있다.Figure 2 is a block diagram showing an example of a computer device according to an embodiment of the present invention. Each of the plurality of electronic devices 110, 120, 130, and 140 described above or each of the servers 150 and 160 may be implemented by the computer device 200 shown in FIG. 2.

이러한 컴퓨터 장치(200)는 도 2에 도시된 바와 같이, 메모리(210), 프로세서(220), 통신 인터페이스(230) 그리고 입출력 인터페이스(240)를 포함할 수 있다. 메모리(210)는 컴퓨터에서 판독 가능한 기록매체로서, RAM(random access memory), ROM(read only memory) 및 디스크 드라이브와 같은 비소멸성 대용량 기록장치(permanent mass storage device)를 포함할 수 있다. 여기서 ROM과 디스크 드라이브와 같은 비소멸성 대용량 기록장치는 메모리(210)와는 구분되는 별도의 영구 저장 장치로서 컴퓨터 장치(200)에 포함될 수도 있다. 또한, 메모리(210)에는 운영체제와 적어도 하나의 프로그램 코드가 저장될 수 있다. 이러한 소프트웨어 구성요소들은 메모리(210)와는 별도의 컴퓨터에서 판독 가능한 기록매체로부터 메모리(210)로 로딩될 수 있다. 이러한 별도의 컴퓨터에서 판독 가능한 기록매체는 플로피 드라이브, 디스크, 테이프, DVD/CD-ROM 드라이브, 메모리 카드 등의 컴퓨터에서 판독 가능한 기록매체를 포함할 수 있다. 다른 실시예에서 소프트웨어 구성요소들은 컴퓨터에서 판독 가능한 기록매체가 아닌 통신 인터페이스(230)를 통해 메모리(210)에 로딩될 수도 있다. 예를 들어, 소프트웨어 구성요소들은 네트워크(170)를 통해 수신되는 파일들에 의해 설치되는 컴퓨터 프로그램에 기반하여 컴퓨터 장치(200)의 메모리(210)에 로딩될 수 있다.As shown in FIG. 2, this computer device 200 may include a memory 210, a processor 220, a communication interface 230, and an input/output interface 240. The memory 210 is a computer-readable recording medium and may include a non-permanent mass storage device such as random access memory (RAM), read only memory (ROM), and a disk drive. Here, non-perishable large-capacity recording devices such as ROM and disk drives may be included in the computer device 200 as a separate permanent storage device that is distinct from the memory 210. Additionally, an operating system and at least one program code may be stored in the memory 210. These software components may be loaded into the memory 210 from a computer-readable recording medium separate from the memory 210. Such separate computer-readable recording media may include computer-readable recording media such as floppy drives, disks, tapes, DVD/CD-ROM drives, and memory cards. In another embodiment, software components may be loaded into the memory 210 through the communication interface 230 rather than a computer-readable recording medium. For example, software components may be loaded into memory 210 of computer device 200 based on computer programs installed by files received over network 170.

프로세서(220)는 기본적인 산술, 로직 및 입출력 연산을 수행함으로써, 컴퓨터 프로그램의 명령을 처리하도록 구성될 수 있다. 명령은 메모리(210) 또는 통신 인터페이스(230)에 의해 프로세서(220)로 제공될 수 있다. 예를 들어 프로세서(220)는 메모리(210)와 같은 기록 장치에 저장된 프로그램 코드에 따라 수신되는 명령을 실행하도록 구성될 수 있다.The processor 220 may be configured to process instructions of a computer program by performing basic arithmetic, logic, and input/output operations. Commands may be provided to the processor 220 by the memory 210 or the communication interface 230. For example, processor 220 may be configured to execute received instructions according to program code stored in a recording device such as memory 210.

통신 인터페이스(230)은 네트워크(170)를 통해 컴퓨터 장치(200)가 다른 장치(일례로, 앞서 설명한 저장 장치들)와 서로 통신하기 위한 기능을 제공할 수 있다. 일례로, 컴퓨터 장치(200)의 프로세서(220)가 메모리(210)와 같은 기록 장치에 저장된 프로그램 코드에 따라 생성한 요청이나 명령, 데이터, 파일 등이 통신 인터페이스(230)의 제어에 따라 네트워크(170)를 통해 다른 장치들로 전달될 수 있다. 역으로, 다른 장치로부터의 신호나 명령, 데이터, 파일 등이 네트워크(170)를 거쳐 컴퓨터 장치(200)의 통신 인터페이스(230)를 통해 컴퓨터 장치(200)로 수신될 수 있다. 통신 인터페이스(230)를 통해 수신된 신호나 명령, 데이터 등은 프로세서(220)나 메모리(210)로 전달될 수 있고, 파일 등은 컴퓨터 장치(200)가 더 포함할 수 있는 저장 매체(상술한 영구 저장 장치)로 저장될 수 있다.The communication interface 230 may provide a function for the computer device 200 to communicate with other devices (eg, the storage devices described above) through the network 170. For example, a request, command, data, file, etc. generated by the processor 220 of the computer device 200 according to a program code stored in a recording device such as memory 210 is transmitted to the network ( 170) and can be transmitted to other devices. Conversely, signals, commands, data, files, etc. from other devices may be received by the computer device 200 through the communication interface 230 of the computer device 200 via the network 170. Signals, commands, data, etc. received through the communication interface 230 may be transmitted to the processor 220 or memory 210, and files, etc. may be stored in a storage medium (as described above) that the computer device 200 may further include. It can be stored as a permanent storage device).

입출력 인터페이스(240)는 입출력 장치(250)와의 인터페이스를 위한 수단일 수 있다. 예를 들어, 입력 장치는 마이크, 키보드 또는 마우스 등의 장치를, 그리고 출력 장치는 디스플레이, 스피커와 같은 장치를 포함할 수 있다. 다른 예로 입출력 인터페이스(240)는 터치스크린과 같이 입력과 출력을 위한 기능이 하나로 통합된 장치와의 인터페이스를 위한 수단일 수도 있다. 입출력 장치(250)는 컴퓨터 장치(200)와 하나의 장치로 구성될 수도 있다.The input/output interface 240 may be a means for interfacing with the input/output device 250. For example, input devices may include devices such as a microphone, keyboard, or mouse, and output devices may include devices such as displays and speakers. As another example, the input/output interface 240 may be a means for interfacing with a device that integrates input and output functions, such as a touch screen. The input/output device 250 may be configured as a single device with the computer device 200.

또한, 다른 실시예들에서 컴퓨터 장치(200)는 도 2의 구성요소들보다 더 적은 혹은 더 많은 구성요소들을 포함할 수도 있다. 그러나, 대부분의 종래기술적 구성요소들을 명확하게 도시할 필요성은 없다. 예를 들어, 컴퓨터 장치(200)는 상술한 입출력 장치(250) 중 적어도 일부를 포함하도록 구현되거나 또는 트랜시버(transceiver), 데이터베이스 등과 같은 다른 구성요소들을 더 포함할 수도 있다.Additionally, in other embodiments, computer device 200 may include fewer or more components than those of FIG. 2 . However, there is no need to clearly show most prior art components. For example, the computer device 200 may be implemented to include at least some of the input/output devices 250 described above, or may further include other components such as a transceiver, a database, etc.

도 3은 본 발명의 일실시예에 따른 서비스 제공 시스템의 개괄적인 모습의 예를 도시한 도면이다. 도 3의 실시예에 따른 서비스 제공 시스템(Service providing system, 300)은 클라이언트 단말(Client terminal, 310)과 서버(Server, 320)를 포함할 수 있다. 여기서, 클라이언트 단말(310)과 서버(320)는 각각 적어도 하나의 컴퓨터 장치(200)에 의해 구현될 수 있다. 클라이언트 단말(310)은 엣지(edge) 단말로 표현될 수도 있다.Figure 3 is a diagram showing an example of a general view of a service provision system according to an embodiment of the present invention. The service providing system 300 according to the embodiment of FIG. 3 may include a client terminal 310 and a server 320. Here, the client terminal 310 and the server 320 may each be implemented by at least one computer device 200. The client terminal 310 may also be expressed as an edge terminal.

우선, 기 생성된 딥러닝 모델이 헤드 모델(Head model, 311)과 바디 모델(Body model, 321)로 분할될 수 있다. 여기서 기 생성된 딥러닝 모델은 학습이 완료된 딥러닝 모델을 의미할 수 있다. 딥러닝 모델의 종류나 학습은 서비스 제공자가 서버(320)를 통해 제공하고자 하는 서비스에 따라 달라질 수 있다. 딥러닝 모델 자체에 대한 기술이나 딥러닝 모델을 학습하는 방법에 대해서는 이미 잘 알려진 기술들을 통해 쉽게 이해할 수 있을 것이다. 헤드 모델(311)은 딥러닝 모델의 헤드 부분을, 바디 모델(321)은 딥러닝 모델의 바디 부분을 각각 구성할 수 있다.First, the previously created deep learning model can be divided into a head model (311) and a body model (321). Here, the previously created deep learning model may mean a deep learning model that has completed learning. The type or learning of the deep learning model may vary depending on the service the service provider wishes to provide through the server 320. You will be able to easily understand the deep learning model itself and how to learn the deep learning model through already well-known technologies. The head model 311 may constitute the head portion of the deep learning model, and the body model 321 may constitute the body portion of the deep learning model.

이러한 딥러닝 모델의 분할은 서버(320)에 의해 수행될 수도 있으나, 서버(320)와는 별도의 다른 컴퓨터 장치에 의해 수행될 수도 있다. 분할된 헤드 모델(311)은 클라이언트 단말(310)로 배포될 수 있으며, 바디 모델(321)은 서버(320)에 배치될 수 있다. 헤드 모델(311)의 배포 역시 서버(320)에 의해 수행될 수도 있으나, 서버(320)와는 별도의 다른 컴퓨터 장치에 의해 수행될 수도 있다. 예를 들어, 서버(320)에서 딥러닝 모델을 분할하여 헤드 모델(311)과 바디 모델(321)을 생성한 경우, 서버(320)는 헤드 모델(311)을 클라이언트 단말(310)로 배포할 수 있다. 만약, 별도의 다른 컴퓨터 장치에서 딥러닝 모델을 분할하여 헤드 모델(311)과 바디 모델(321)을 생성한 경우, 다른 컴퓨터 장치는 헤드 모델(311)을 클라이언트 단말(310)로, 바디 모델(321)을 서버(320)로 각각 배포할 수 있다. 이러한 다른 컴퓨터 장치는 서버(320)와 함께 클라우드 네트워크를 형성하는 다른 노드의 형태로 구현될 수 있으나 이에 한정되는 것은 아니다. 딥러닝 모델을 헤드 모델(311)과 바디 모델(321)로 분할하는 방법에 대해서는 이후 더욱 자세히 설명한다.Segmentation of this deep learning model may be performed by the server 320, but may also be performed by a computer device separate from the server 320. The divided head model 311 may be distributed to the client terminal 310, and the body model 321 may be placed on the server 320. Distribution of the head model 311 may also be performed by the server 320, but may also be performed by a computer device separate from the server 320. For example, when the head model 311 and the body model 321 are created by dividing the deep learning model in the server 320, the server 320 distributes the head model 311 to the client terminal 310. You can. If the head model 311 and the body model 321 are created by dividing the deep learning model in another computer device, the other computer device uses the head model 311 as the client terminal 310 and the body model ( 321) can be distributed to each server 320. These other computer devices may be implemented in the form of other nodes forming a cloud network together with the server 320, but are not limited thereto. The method of dividing the deep learning model into the head model 311 and the body model 321 will be described in more detail later.

한편, 본 발명의 실시예들에 따른 서비스 제공 시스템(Service providing system, 300)은 딥러닝 모델을 이용하여 이미지를 처리하는 서비스(또는 기능)를 SaaS(Software as a Service) 형태로 제공할 수 있다. 도 3의 실시예에서는 이미지에서 얼굴을 인식하는 서비스를 제공하는 예를 나타내고 있다. 이를 위해, 클라이언트 단말(310)은 원본 이미지(330)에서 얼굴 영역(340)을 탐지하는 얼굴 탐지부(Face detector, 312)를 더 포함할 수 있다.Meanwhile, the service providing system 300 according to embodiments of the present invention can provide a service (or function) for processing images using a deep learning model in the form of SaaS (Software as a Service). . The embodiment of Figure 3 shows an example of providing a service for recognizing faces in images. To this end, the client terminal 310 may further include a face detector 312 that detects the face area 340 in the original image 330.

이때, 클라이언트 단말(310)은 탐지된 얼굴 영역(340)의 이미지를 바로 서버(320)로 전송하는 것이 아니라, 클라이언트 단말(310)이 포함하는 헤드 모델(311)을 통해 처리된 중간 연산값(intermediate operation value)을 생성하여 서버(320)로 전송할 수 있다. 이때, 중간 연산값은 헤드 모델(311)의 제1 출력값일 수 있다. 클라이언트 단말(310)은 이러한 중간 연산값을 포함하는 서비스 요청을 네트워크(일례로, 네트워크(170))를 통해 서버(320)로 전달할 수 있다. 이때, 서버(320)는 서비스 요청을 수신하고, 수신된 서비스 요청에 포함된 중간 연산값을 서버(320)가 포함하는 바디 모델(321)에 입력하여 바디 모델(321)의 제2 출력값인 최종 출력값을 획득할 수 있다. 이후, 서버(320)는 최종 출력값에 기반하여 클라이언트 단말(310)로 서비스 요청에 해당하는 서비스를 제공할 수 있다. 도 3의 실시예에서는 탐지된 얼굴 영역(340)에 따른 얼굴 인식 서비스가 클라이언트 단말(310)로 제공될 수 있다.At this time, the client terminal 310 does not directly transmit the image of the detected face area 340 to the server 320, but an intermediate calculation value processed through the head model 311 included in the client terminal 310 ( An intermediate operation value can be created and transmitted to the server 320. At this time, the intermediate calculation value may be the first output value of the head model 311. The client terminal 310 may transmit a service request including this intermediate calculation value to the server 320 through a network (eg, network 170). At this time, the server 320 receives the service request, inputs the intermediate operation value included in the received service request into the body model 321 included in the server 320, and enters the final output value, which is the second output value of the body model 321. The output value can be obtained. Thereafter, the server 320 may provide a service corresponding to the service request to the client terminal 310 based on the final output value. In the embodiment of FIG. 3, a face recognition service according to the detected face area 340 may be provided to the client terminal 310.

이때, 헤드 모델(311)과 바디 모델(321)은 기 생성된 딥러닝 모델을 분할한 것이다. 이 경우, 얼굴 영역(340)의 이미지를 헤드 모델(311)에 입력하여 얻어지는 제1 출력값(중간 연산값)을 바디 모델(321)에 입력함으로써 얻어지는 제2 출력값으로서의 최종 출력값은 얼굴 영역(340)의 이미지를 딥러닝 모델에 입력하여 얻어지는 제3 출력값과 동일할 수 있다. 반면, 클라이언트 단말(310)에서 서버(320)로 전송되는 중간 연산값은 뒤섞인 데이터 값(350)으로 중간 연산값으로부터는 얼굴 영역(340)의 이미지를 얻기가 매우 어렵다. 따라서, 서비스 제공 시스템(300)은 이미지를 공개 네트워크를 통해 전송하지 않고도 딥러닝 모델을 이용한 이미지 처리 서비스를 SaaS 형태로 제공할 수 있게 된다.At this time, the head model 311 and the body model 321 are divided from a previously created deep learning model. In this case, the final output value as the second output value obtained by inputting the first output value (intermediate operation value) obtained by inputting the image of the face area 340 into the head model 311 and inputting the image of the face area 340 into the body model 321 is the face area 340. It may be the same as the third output value obtained by inputting the image of to the deep learning model. On the other hand, the intermediate calculation value transmitted from the client terminal 310 to the server 320 is a mixed data value 350, and it is very difficult to obtain an image of the face area 340 from the intermediate calculation value. Accordingly, the service providing system 300 can provide an image processing service using a deep learning model in SaaS form without transmitting the image through a public network.

이처럼, 본 발명의 실시예들에 따르면, SaaS 형의 딥러닝 모델 서비스를 제공함에 있어서, 사용자들이 서비스 제공자에게 민감한 데이터를 노출하지 않고도 서비스를 제공받을 수 있어 민감 정보 공유에 대한 문제를 해결할 수 있다.As such, according to embodiments of the present invention, in providing a SaaS-type deep learning model service, users can receive the service without exposing sensitive data to the service provider, thereby solving the problem of sharing sensitive information. .

또한, 본 발명의 실시예들을 통해 클라이언트 단말(310)과 서버(320)간의 자원 이용량을 조절할 수 있다. 예를 들어, 딥러닝 모델을 분할하여 생성되는 헤드 모델(311)과 바디 모델(321)의 용량을 조절함으로써, 클라이언트 단말(310)과 서버(320) 각각에서 요구되는 자원 이용량이 조절될 수 있다. 이에 따라 서비스 제공자는 헤드 모델(311)의 용량에 기반하여 서비스의 제공과 관련하여 클라이언트 단말(310)의 사용자에게 부가되는 비용을 조절할 수 있다. 다시 말해, 딥러닝 모델을 분할하는 주체는 헤드 모델(311)의 용량을 고려하여 딥러닝 모델을 헤드 모델(311) 및 바디 모델(321)로 분할할 수 있으며, 서비스 제공자는 이러한 용량을 고려하여 서비스의 제공과 관련하여 클라이언트 단말(310)의 사용자에게 부가되는 비용을 조절할 수 있다.Additionally, the amount of resource usage between the client terminal 310 and the server 320 can be adjusted through embodiments of the present invention. For example, by adjusting the capacity of the head model 311 and body model 321 created by dividing the deep learning model, the amount of resource usage required by each of the client terminal 310 and the server 320 can be adjusted. . Accordingly, the service provider can adjust the cost added to the user of the client terminal 310 in relation to the provision of the service based on the capacity of the head model 311. In other words, the entity dividing the deep learning model can divide the deep learning model into the head model 311 and the body model 321 by considering the capacity of the head model 311, and the service provider can divide the deep learning model into the head model 311 and the body model 321 by taking this capacity into consideration. Costs added to the user of the client terminal 310 in relation to the provision of the service can be adjusted.

한편, 도 3의 실시예에서는 헤드 모델(311)은 클라이언트 단말(310)에 바디 모델(321)은 서버(320)에 각각 설치되어 클라이언트 단말(310)과 서버(320)간의 네트워크 통신을 이용하여 헤드 모델(311)과 바디 모델(321)이 연동되는 예를 설명하였다. 그러나, 실시예에 따라 헤드 모델(311)과 바디 모델(321)은 하나의 물리적인 전자 장치에 설치될 수도 있다. 예를 들어, 고객의 레거시 시스템과 같은 하나의 시스템 내에서 헤드 모델(311)을 포함하는 제1 모듈과 바디 모델(321)을 포함하는 제2 모듈이 각각 존재할 수 있다. 이 경우, 고객의 시스템의 모듈과 서비스 제공자의 모듈간의 데이터 보호 이슈를 커버할 수 있게 된다.Meanwhile, in the embodiment of FIG. 3, the head model 311 is installed on the client terminal 310 and the body model 321 is installed on the server 320, using network communication between the client terminal 310 and the server 320. An example in which the head model 311 and the body model 321 are linked has been described. However, depending on the embodiment, the head model 311 and the body model 321 may be installed in one physical electronic device. For example, within one system, such as a customer's legacy system, a first module including a head model 311 and a second module including a body model 321 may exist. In this case, it is possible to cover data protection issues between the customer's system module and the service provider's module.

도 4는 본 발명의 일실시예에 따른 서비스 제공 방법의 예를 도시한 흐름도이다. 본 실시예에 따른 서비스 제공 방법은 앞서 설명한 서버(320)를 구현하는 컴퓨터 장치(200)에 의해 수행될 수 있다. 이때, 컴퓨터 장치(200)의 프로세서(220)는 메모리(210)가 포함하는 운영체제의 코드나 적어도 하나의 컴퓨터 프로그램의 코드에 따른 제어 명령(instruction)을 실행하도록 구현될 수 있다. 여기서, 프로세서(220)는 컴퓨터 장치(200)에 저장된 코드가 제공하는 제어 명령에 따라 컴퓨터 장치(200)가 도 4의 방법이 포함하는 단계들(410 내지 440)을 수행하도록 컴퓨터 장치(200)를 제어할 수 있다.Figure 4 is a flowchart showing an example of a service provision method according to an embodiment of the present invention. The service provision method according to this embodiment may be performed by the computer device 200 implementing the server 320 described above. At this time, the processor 220 of the computer device 200 may be implemented to execute control instructions according to the code of an operating system included in the memory 210 or the code of at least one computer program. Here, the processor 220 causes the computer device 200 to perform steps 410 to 440 included in the method of FIG. 4 according to control instructions provided by code stored in the computer device 200. can be controlled.

단계(410)에서 컴퓨터 장치(200)는 클라이언트 단말이 포함하는 헤드 모델과 컴퓨터 장치(200)가 포함하는 바디 모델간의 인터페이스를 연결할 수 있다. 여기서 클라이언트 단말은 앞서 도 3을 통해 설명한 클라이언트 단말(310)에 대응할 수 있다. 앞서 설명한 바와 같이, 기 생성된 딥러닝 모델이 분할됨에 따라 헤드 모델 및 바디 모델이 생성될 수 있으며, 헤드 모델은 클라이언트 단말로 배포될 수 있고, 바디 모델은 서버(320)를 구현하는 컴퓨터 장치(200)에 배치될 수 있다. 이때, 컴퓨터 장치(200)는 이러한 헤드 모델과 바디 모델간의 인터페이스를 연결할 수 있다. 인터페이스의 연결은 실질적으로 클라이언트 단말이 헤드 모델의 제1 출력값을 전달하는 경우, 컴퓨터 장치(200)가 전달된 제1 출력값을 헤드 모델에 대응하는 바디 모델의 입력으로 활용하도록 하기 위한 연결을 의미할 수 있다.In step 410, the computer device 200 may connect an interface between the head model included in the client terminal and the body model included in the computer device 200. Here, the client terminal may correspond to the client terminal 310 described above with reference to FIG. 3. As described above, a head model and a body model can be created as the previously created deep learning model is divided, the head model can be distributed to a client terminal, and the body model is a computer device ( 200). At this time, the computer device 200 may connect the interface between the head model and the body model. The connection of the interface actually means a connection so that when the client terminal transmits the first output value of the head model, the computer device 200 uses the transmitted first output value as an input of the body model corresponding to the head model. You can.

단계(420)에서 컴퓨터 장치(200)는 클라이언트 단말로부터 입력 이미지에 대한 헤드 모델의 제1 출력값을 포함하는 서비스 요청을 네트워크를 통해 수신할 수 있다. 이때, 클라이언트 단말은 단계(410)에서 연결된 인터페이스에 기반하여 서비스 요청을 발생시킬 수 있다. 보다 구체적으로 클라이언트 단말은 딥러닝 모델 서비스의 API 호출을 통해 서비스 요청을 발생시킬 수 있으며, 이러한 API 호출은 단계(410)에서 연결된 인터페이스에 기반할 수 있다. 한편, 입력 이미지는 딥러닝 모델 관점의 입력 이미지를 의미할 수 있다. 도 3의 실시예를 예로 들면, 원본 이미지(330)에서 탐지되어 헤드 모델로 입력되는 얼굴 영역(340)의 이미지가 단계(420)에서 설명하는 입력 이미지일 수 있다. 이미지 분류 서비스를 위해 원본 이미지(330)가 그대로 헤드 모델로 입력되는 경우를 고려하면, 원본 이미지(330)가 그대로 입력 이미지로서 사용될 수도 있다.In step 420, the computer device 200 may receive a service request including the first output value of the head model for the input image from the client terminal through the network. At this time, the client terminal may generate a service request based on the connected interface in step 410. More specifically, the client terminal may generate a service request through an API call of the deep learning model service, and this API call may be based on the interface connected in step 410. Meanwhile, the input image may refer to an input image from the perspective of a deep learning model. Taking the embodiment of FIG. 3 as an example, the image of the face area 340 detected in the original image 330 and input as the head model may be the input image described in step 420. Considering the case where the original image 330 is input as a head model for the image classification service, the original image 330 may be used as the input image as is.

단계(430)에서 컴퓨터 장치(200)는 수신된 서비스 요청에 포함된 제1 출력값을 바디 모델에 입력하여 제2 출력값을 획득할 수 있다. 이때, 이미 설명한 바와 같이 제2 출력값은 입력 이미지를 분할하기 전의 딥러닝 모델에 입력한 경우의 출력값과 동일할 수 있다. 다시 말해, 서버(320)를 구현하는 컴퓨터 장치(200)는 클라이언트 단말로부터 입력 이미지를 직접 수신하지 않고도 입력 이미지에 대한 딥러닝 모델의 출력값을 얻을 수 있게 된다.In step 430, the computer device 200 may obtain a second output value by inputting the first output value included in the received service request into the body model. At this time, as already described, the second output value may be the same as the output value when input to the deep learning model before segmenting the input image. In other words, the computer device 200 implementing the server 320 can obtain the output value of the deep learning model for the input image without directly receiving the input image from the client terminal.

단계(440)에서 컴퓨터 장치(200)는 제2 출력값에 기반하여 클라이언트 단말로 서비스를 제공할 수 있다. 서비스의 예시는 앞서 설명한 바와 같이 얼굴 인식 서비스, 이미지 분류 서비스 등을 들 수 있으나, 이에 한정되는 것은 아니다. 예를 들어, 이미지를 딥러닝 모델을 통해 처리하여 이루어지는 모든 종류의 서비스들에 본 발명의 실시예들에 따른 서비스 제공 방법이 적용될 수 있음을 쉽게 이해할 수 있을 것이다.In step 440, the computer device 200 may provide a service to the client terminal based on the second output value. Examples of services include, but are not limited to, facial recognition services and image classification services, as described above. For example, it will be easy to understand that the service provision method according to embodiments of the present invention can be applied to all types of services provided by processing images through a deep learning model.

도 5는 본 발명의 일실시예에 따른 딥러닝 모델 분할 방법의 예를 도시한 흐름도이다. 이미 설명한 바와 같이 딥러닝 모델의 분할은 서버(320)에 의해 수행될 수도 있고, 별도의 컴퓨터 장치에 의해 수행될 수도 있다. 도 5의 실시예에서는 서버(320)를 구현하는 컴퓨터 장치(200)에 의해 수행되는 예를 설명한다. 도 5의 딥러닝 모델 분할 방법이 포함하는 단계들(510 및 520)은 도 4의 단계(410) 이전에 수행될 수 있다.Figure 5 is a flowchart showing an example of a deep learning model segmentation method according to an embodiment of the present invention. As already described, segmentation of the deep learning model may be performed by the server 320 or may be performed by a separate computer device. The embodiment of FIG. 5 describes an example performed by the computer device 200 implementing the server 320. Steps 510 and 520 included in the deep learning model segmentation method of FIG. 5 may be performed before step 410 of FIG. 4.

단계(510)에서 컴퓨터 장치(200)는 딥러닝 모델을 헤드 모델 및 바디 모델로 분할할 수 있다. 이를 위해, 단계(510)는 단계(511) 및 단계(512)를 포함할 수 있다.In step 510, the computer device 200 may divide the deep learning model into a head model and a body model. To this end, step 510 may include steps 511 and 512.

단계(511)에서 컴퓨터 장치(200)는 딥러닝 모델이 포함하는 노드들 각각이 처리하는 누적 파라미터의 수 및 헤드 모델에서 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여, 노드들 중 분할의 기준이 되는 노드를 선정할 수 있다. 딥러닝 모델의 레이어의 연산(operation)들은 이미 기술되어 있으며, 가중치들은 매트릭스로 포함되어 있다. 이때, 매트릭스와 매트릭스간의 연산들간에 끊어지는 구간들이 존재하며, 이러한 구간의 노드가 누적 파라미터의 수 및/또는 데이터의 양에 따라 선정될 수 있다.In step 511, the computer device 200 selects one of the nodes based on at least one of the number of cumulative parameters processed by each of the nodes included in the deep learning model and the amount of data that must be transferred from the head model to the body model. You can select a node that becomes the basis for division. The operations of the layers of the deep learning model are already described, and the weights are included in the matrix. At this time, there are sections where there is a break between matrices and operations between the matrices, and nodes in these sections may be selected according to the number of accumulated parameters and/or the amount of data.

예를 들어, 딥러닝 모델의 각 노드에서는 누적 파라미터의 수에 기초하여 연산량이 결정되며, 딥러닝 모델은 그래프 파일이 인퍼런스 엔진에 올라갔을 때, 하나씩 순차적으로 연산을 처리하여 결과를 내보내는 방식을 이용하기 때문에, 누적 파라미터의 수에 따라 연산 시간이 얼마나 걸릴 것인지, 자원을 얼마나 사용할 것인가 등이 결정될 수 있으며, 컴퓨터 장치(200)는 이러한 연산 시간, 자원 이용량 등에 기반하여 헤드 모델과 바디 모델을 나누기 위한 적정 구간을 결정할 수 있다. 예를 들어, 컴퓨터 장치(200)는 딥러닝 모델의 분할을 위해 정의된 연산 시간 및/또는 자원 이용량을 미리 입력받을 수 있다. 이 경우, 컴퓨터 장치(200)는 미리 입력된 연산 시간 및/또는 자원 이용량을 만족시키는 누적 파라미터의 수를 갖는 노드를 딥러닝 모델을 헤드 모델과 바디 모델로 분할하기 위한 기준 노드로서 선정할 수 있다. 이러한 누적 파라미터의 수뿐만 아니라, 앞서 설명한 헤드에서 바디로 보내야 할 데이터의 양이 헤드 모델과 바디 모델을 나누기 위한 적정 구간을 결정하는데 이용될 수 있다. 예를 들어, 컴퓨터 장치(200)는 특정 데이터의 양(일례로, 기설정된 범위에 포함되는 데이터의 양)을 네트워크를 통해 전송하게 하는 만드는 특정 노드의 구간을 딥러닝 모델의 분할을 위한 구간으로 결정할 수도 있다. 실시예에 따라 레이어의 복잡도가 딥러닝 모델을 헤드 모델과 바디 모델로 분할하는데 이용될 수도 있다. 예를 들어, 컴퓨터 장치(200)는 각 노드가 포함하는 레이어들의 수에 기반하여 각 노드별로 레이어의 복잡도를 계산할 수 있으며, 이러한 레이어의 복잡도가 낮은 노드를 기준으로 딥러닝 모델을 헤드 모델과 바디 모델로 분할할 수 있다.For example, at each node of a deep learning model, the amount of calculation is determined based on the number of accumulated parameters, and when a graph file is uploaded to the inference engine, the deep learning model processes calculations sequentially one by one and outputs the results. Since using, how long the calculation time will take and how many resources will be used can be determined depending on the number of accumulated parameters, and the computer device 200 can use the head model and body model based on the calculation time, resource usage, etc. An appropriate section for dividing can be determined. For example, the computer device 200 may receive in advance the calculation time and/or resource usage defined for segmentation of the deep learning model. In this case, the computer device 200 may select a node with a cumulative number of parameters that satisfies the pre-entered calculation time and/or resource usage as a reference node for dividing the deep learning model into a head model and a body model. there is. In addition to the number of these accumulated parameters, the amount of data to be sent from the head to the body described above can be used to determine an appropriate section for dividing the head model and the body model. For example, the computer device 200 uses a section of a specific node that transmits a specific amount of data (for example, the amount of data included in a preset range) through the network as a section for dividing the deep learning model. You can decide. Depending on the embodiment, the complexity of the layer may be used to split the deep learning model into a head model and a body model. For example, the computer device 200 may calculate the complexity of a layer for each node based on the number of layers included in each node, and based on nodes with low complexity of these layers, the deep learning model may be used to create a head model and a body. It can be divided into models.

단계(512)에서 컴퓨터 장치(200)는 선정된 노드를 기준으로 딥러닝 모델을 헤드 모델 및 바디 모델로 분할할 수 있다. 이때, 선정된 노드는 헤드 모델 및 바디 모델 중 어느 하나에 포함될 수 있다.In step 512, the computer device 200 may divide the deep learning model into a head model and a body model based on the selected node. At this time, the selected node may be included in either the head model or the body model.

단계(520)에서 컴퓨터 장치(200)는 헤드 모델을 배포할 수 있다. 일례로, 컴퓨터 장치(200)는 클라이언트 장치로 헤드 모델을 배포할 수 있으나, 다수의 클라이언트 장치들이 존재하는 실시예도 고려될 수 있다. 이 경우, 컴퓨터 장치(200)는 다수의 클라이언트 장치들 각각으로 헤드 모델을 배포할 수 있다. 한편, 별도의 다른 컴퓨터 장치가 딥러닝 모델을 헤드 모델과 바디 모델로 분할하는 경우, 다른 컴퓨터 장치는 헤드 모델을 클라이언트 장치로, 바디 모델을 서버(320)로 각각 배포할 수 있다.At step 520, computer device 200 may distribute the head model. In one example, computer device 200 may distribute the head model to client devices, but embodiments in which multiple client devices are present may also be considered. In this case, the computer device 200 may distribute the head model to each of a plurality of client devices. Meanwhile, when another computer device divides the deep learning model into a head model and a body model, the other computer device can distribute the head model to the client device and the body model to the server 320, respectively.

이처럼, 딥러닝 모델은 딥러닝 모델이 포함하는 노드들 각각이 처리하는 누적 파라미터의 수 및 헤드 모델에서 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여 선정된 노드를 기준으로 헤드 모델 및 바디 모델로 분할될 수 있다. 이때, 헤드 모델의 용량은 서비스의 제공과 관련하여 클라이언트 단말의 사용자에게 부가되는 비용에 영향을 미칠 수 있다. 예를 들어, 헤드 모델의 용량이 커질수록 클라이언트 단말에서의 자원 이용량이 늘어날 수 있다. 역으로 서버(320)의 자원 이용량은 감소할 수 있다. 따라서, 서비스 제공자는 이러한 헤드 모델의 용량에 따라 서비스의 제공과 관련하여 클라이언트 단말의 사용자에게 부가되는 비용을 조절할 수 있으며, 필요 시 이러한 헤드 모델의 용량을 고려하여 딥러닝 모델을 헤드 모델과 바디 모델로 분할할 수 있다. 보다 구체적인 예로, 딥러닝 모델이 포함하는 노드들 각각이 처리하는 누적 파라미터의 수 및 헤드 모델에서 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여 분할의 기준이 되는 다수의 후보 노드들을 선정한 후, 헤드 모델의 용량에 따라 최종적으로 선정되는 노드를 기준으로 딥러닝 모델을 분할할 수도 있다.In this way, the deep learning model is based on the head model and It can be divided into body models. At this time, the capacity of the head model may affect the cost added to the user of the client terminal in relation to the provision of the service. For example, as the capacity of the head model increases, resource usage at the client terminal may increase. Conversely, the resource usage of the server 320 may decrease. Therefore, the service provider can adjust the cost added to the user of the client terminal in relation to the provision of services according to the capacity of the head model, and when necessary, consider the capacity of the head model and use the deep learning model as the head model and body model. It can be divided into As a more specific example, a number of candidate nodes that serve as the basis for division are selected based on at least one of the number of cumulative parameters processed by each of the nodes included in the deep learning model and the amount of data that must be transferred from the head model to the body model. Afterwards, the deep learning model can be divided based on the node that is finally selected according to the capacity of the head model.

도 6은 본 발명의 일실시예에 있어서, 딥러닝 모델을 분할하는 예를 도시한 도면이다. 도 6은 딥러닝 모델을 개괄적으로 나타내고 있으며, 이러한 딥러닝 모델을 헤드 모델(610)과 바디 모델(620)로 분할한 예를 나타내고 있다. 이때, 도 6의 실시예에서는 "Add" 노드가 분할의 기준으로서 선정된 예를 나타내고 있다. 도 6의 실시예에서 헤드 모델(610)의 출력은 "Add" 노드의 출력이며, 출력값을 통해 딥러닝 모델로의 입력 이미지를 도출하는 것은 매우 어려운 문제가 된다. 따라서 공개 네트워크를 통해 헤드 모델(610)의 출력값이 노출되더라도 입력 이미지와 같은 민감한 정보가 노출되는 것을 방지할 수 있다.Figure 6 is a diagram showing an example of dividing a deep learning model in one embodiment of the present invention. Figure 6 generally shows a deep learning model and shows an example of dividing this deep learning model into a head model 610 and a body model 620. At this time, the embodiment of FIG. 6 shows an example in which the “Add” node is selected as the basis for division. In the embodiment of Figure 6, the output of the head model 610 is the output of the "Add" node, and deriving an input image to the deep learning model through the output value becomes a very difficult problem. Therefore, even if the output value of the head model 610 is exposed through a public network, sensitive information such as the input image can be prevented from being exposed.

한편, 이상의 실시예들을 통해 어느 노드를 기준으로 딥러닝 모델을 분할하는가에 따라 헤드 모델의 출력값이 하나 이상이 될 수도 있음을 이해할 수 있을 것이다. 또한, 헤드 모델과 바디 모델간의 인터페이스를 연결하는 것이 헤드 모델의 출력과 바디 모델의 입력을 연결하는 것을 포함함에 대해서도 쉽게 이해할 수 있을 것이다.Meanwhile, through the above embodiments, it can be understood that the output value of the head model may be more than one depending on which node the deep learning model is divided based on. Additionally, it will be easy to understand that connecting the interface between the head model and the body model includes connecting the output of the head model and the input of the body model.

도 7은 본 발명의 일실시예에 따른 딥러닝 모델 분할 방법의 예를 도시한 흐름도이다. 본 실시예에 따른 딥러닝 모델 분할 방법은 컴퓨터 장치(200)에 의해 수행될 수 있다. 이때, 본 실시예의 컴퓨터 장치(200)는 앞서 설명한 서버(320)를 구현하는 컴퓨터 장치(200)와 동일한 물리적인 전자 장치일 수도 있으나, 실시예에 따라 서버(320)를 구현하는 컴퓨터 장치(200)와는 상이한 물리적인 전자 장치일 수도 있다. 예를 들어, 본 실시예에 따른 컴퓨터 장치(200)에 의해 딥러닝 모델이 헤드 모델과 바디 모델로 분할될 수 있으며, 헤드 모델이 클라이언트 단말(310)로, 바디 모델이 서버(320)로 각각 배포될 수 있다. 만약, 본 실시예에 따른 컴퓨터 장치(200)가 서버(320)를 구현하는 컴퓨터 장치(200)와 동일한 물리적인 전자 장치라면, 헤드 모델이 클라이언트 단말(310)로 배포될 수 있고, 바디 모델은 컴퓨터 장치(200)에 설치될 수 있다.Figure 7 is a flowchart showing an example of a deep learning model segmentation method according to an embodiment of the present invention. The deep learning model segmentation method according to this embodiment can be performed by the computer device 200. At this time, the computer device 200 of this embodiment may be the same physical electronic device as the computer device 200 that implements the server 320 described above, but according to the embodiment, the computer device 200 that implements the server 320 ) may be a different physical electronic device. For example, the deep learning model may be divided into a head model and a body model by the computer device 200 according to this embodiment, with the head model being divided into the client terminal 310 and the body model being divided into the server 320. It can be distributed. If the computer device 200 according to this embodiment is the same physical electronic device as the computer device 200 implementing the server 320, the head model may be distributed to the client terminal 310, and the body model may be distributed to the client terminal 310. It may be installed on the computer device 200.

이때, 본 실시예에 따른 컴퓨터 장치(200)의 프로세서(220)는 메모리(210)가 포함하는 운영체제의 코드나 적어도 하나의 컴퓨터 프로그램의 코드에 따른 제어 명령을 실행하도록 구현될 수 있다. 여기서, 프로세서(220)는 컴퓨터 장치(200)에 저장된 코드가 제공하는 제어 명령에 따라 컴퓨터 장치(200)가 도 7의 방법이 포함하는 단계들(710 내지 730)을 수행하도록 컴퓨터 장치(200)를 제어할 수 있다.At this time, the processor 220 of the computer device 200 according to this embodiment may be implemented to execute control instructions according to the code of an operating system included in the memory 210 or the code of at least one computer program. Here, the processor 220 causes the computer device 200 to perform steps 710 to 730 included in the method of FIG. 7 according to control instructions provided by code stored in the computer device 200. can be controlled.

단계(710)에서 컴퓨터 장치(200)는 기 생성된 딥러닝 모델의 노드들 중 분할 포인트의 후보군에 포함될 노드들을 선정할 수 있다. 이때, 딥러닝 모델의 노드들은 부모(parent) 노드 또는 자식(child) 노드로 구분될 수 있다. 이 경우, 부모 노드의 가중치 값은 1로 시작하며, 자식 노드의 가중치 값은 모든 부모 노드의 가중치를 해당 부모 노드의 자식의 수로 나눈 값으로 결정될 수 있다. 예를 들어, 하나의 부모 노드가 두 개의 자식 노드를 갖는 경우, 부모 노드의 가중치 값이 1일 때, 두 개의 자식 노드 각각의 가중치 값은 0.5가 될 수 있다. 이러한 각 노드의 가중치 값은 컴퓨터 장치(200)에 의해 결정될 수 있다. 한편, 후보군의 노드들은 딥러닝 모델을 분할하기 위한 분할 포인트로서 이용되는 것이기 때문에 딥러닝 모델을 분할하는 기준이 될 수 없는 최상위 부모 노드와 리프(leaf) 노드는 후보군 선정에서 제외될 수 있다. 다시 말해, 가중치 값이 1이면서 최상위 부모 노드와 리프 노드를 제외한 나머지 노드들이 후보군에 선정될 수 있다.In step 710, the computer device 200 may select nodes to be included in the candidate group for the split point among the nodes of the previously created deep learning model. At this time, the nodes of the deep learning model can be divided into parent nodes or child nodes. In this case, the weight value of the parent node starts with 1, and the weight value of the child node can be determined by dividing the weight of all parent nodes by the number of children of the parent node. For example, when one parent node has two child nodes, when the weight value of the parent node is 1, the weight value of each of the two child nodes may be 0.5. The weight value of each node may be determined by the computer device 200. Meanwhile, since the nodes in the candidate group are used as dividing points for dividing the deep learning model, the highest parent node and leaf node that cannot be used as a standard for dividing the deep learning model may be excluded from the selection of the candidate group. In other words, with a weight value of 1, nodes other than the top parent node and leaf node can be selected as a candidate group.

단계(720)에서 컴퓨터 장치(200)는 후보군에 포함된 노드들 각각의 누적 파라미터의 수 및 형태(shape) 값 중 적어도 하나에 기반하여 후보군에 포함된 노드들 중 분할 포인트로서의 노드를 선정할 수 있다. 누적 파라미터의 수는 각 노드의 연산량과 연관된 누적된 파라미터의 수를 의미할 수 있으며, 형태 값은 노드 분할에 따른 데이터 전송량과 연관될 수 있다. 예를 들어, 헤드 노드에서 바디 노드로 전송될 데이터의 전송량이 형태 값에 따라 결정될 수 있다. 만약 도 6에 나타난 노드의 출력 크기{1 × 32 × 32 × 32}에 따른 형태 값은 32,768(1 × 32 × 32 × 32)이 될 수 있다.In step 720, the computer device 200 may select a node as a split point among the nodes included in the candidate group based on at least one of the number and shape value of the cumulative parameters of each of the nodes included in the candidate group. there is. The number of accumulated parameters may refer to the number of accumulated parameters associated with the computational amount of each node, and the type value may be related to the data transmission amount according to node division. For example, the amount of data to be transmitted from the head node to the body node may be determined according to the type value. If the output size of the node shown in Figure 6 {1 × 32 × 32 × 32}, the shape value can be 32,768 (1 × 32 × 32 × 32).

단계(730)에서 컴퓨터 장치(200)는 선정된 분할 포인트로서의 노드를 기준으로 딥러닝 모델을 헤드 모델 및 바디 모델로 분할할 수 있다. 이미 설명한 바와 같이 헤드 모델과 바디 모델은 각기 다른 물리적인 전자 장치에 설치되어 입력 이미지의 민감한 정보가 노출되지 않도록 딥러닝 모델을 통한 서비스를 제공하는데 사용될 수 있다.In step 730, the computer device 200 may divide the deep learning model into a head model and a body model based on the node as the selected division point. As already explained, the head model and body model can be installed in different physical electronic devices and used to provide services through deep learning models so that sensitive information in the input image is not exposed.

도 8은 본 발명의 일실시예에 있어서, 딥러닝 모델을 분할하는 과정의 예를 도시한 도면이다. 도 8은 딥러닝 모델이 포함하는 노드들을 타원으로 간략히 표현하고 있다. 이때, 타원 안의 숫자는 해당 노드들의 가중치로서 이미 설명한 바와 같이 부모 노드의 가중치를 1로, 자식 노드의 가중치는 해당 자식 노드의 부모 노드가 갖는 자식의 수로 부모 노드의 가중치를 나눈 값이 될 수 있다. 이때, 후보군에 포함될 노드는 가중치 값이 1이면서 최상위 부모 노드와 리프 노드를 제외한 노드가 될 수 있다. 도 8의 예시에서는 해당 조건을 만족하는 후보 노드 1과 후보 노드 2를 나타내고 있다. 이때, 후보 노드 1과 후보 노드 2 중 딥러닝 모델의 분할 포인트로서의 노드는 누적된 파라미터의 수와 형태 값 중 적어도 하나에 의해 결정될 수 있다. 이미 설명한 바와 같이 누적된 파라미터는 노드의 연산량과 연관되며, 형태 값은 노드 분할에 따른 데이터 전송량과 연관될 수 있다. 따라서 어떠한 후보 노드를 기준으로 딥러닝 모델을 분할하는가에 따라 헤드 노드의 연산량이나 헤드 노드에서 바디 노드로의 데이터 전송량 등이 결정될 수 있다.Figure 8 is a diagram illustrating an example of a process for dividing a deep learning model in one embodiment of the present invention. Figure 8 briefly represents the nodes included in the deep learning model as ovals. At this time, the numbers in the oval are the weights of the corresponding nodes. As already explained, the weight of the parent node can be 1, and the weight of the child node can be the weight of the parent node divided by the number of children of the parent node of the child node. . At this time, the nodes to be included in the candidate group may have a weight value of 1 and may be nodes excluding the highest parent node and leaf node. The example in Figure 8 shows candidate node 1 and candidate node 2 that satisfy the corresponding conditions. At this time, the node that serves as the division point of the deep learning model among candidate node 1 and candidate node 2 may be determined by at least one of the number and shape value of the accumulated parameters. As already explained, the accumulated parameters are related to the amount of computation of the node, and the type value may be related to the amount of data transmission according to node division. Therefore, depending on which candidate node the deep learning model is divided into, the amount of computation of the head node or the amount of data transmission from the head node to the body node can be determined.

이와 같이, 본 발명의 실시예들에 따르면, 기 생성된 딥러닝 모델을 헤드(head) 모델과 바디(body) 모델로 분할하여 헤드 모델을 포함하는 클라이언트 단말에서 헤드 모델을 통해 1차적으로 처리된 데이터를 공개 네트워크를 통해 바디 모델을 포함하는 서버로 전송하고, 서버가 바디 모델을 통해 1차적으로 처리된 데이터를 2차적으로 처리하도록 함으로써, 이미지를 직접 공개 네트워크를 통해 전송하지 않고도 SaaS 형의 딥러닝 모델 서비스를 제공할 수 있다. 또한, 기 생성된 딥러닝 모델을 적절히 헤드 모델과 바디 모델로 분할하기 위한 기술을 제공할 수 있다. 또한, 고객의 레거시 시스템과 같은 하나의 시스템 내에서 헤드 모델을 포함하는 제1 모듈과 바디 모델을 포함하는 제2 모듈을 이용하여 고객의 시스템과 서비스 제공자의 모듈간 데이터 보호 이슈를 커버할 수 있다.As such, according to embodiments of the present invention, the previously generated deep learning model is divided into a head model and a body model and is primarily processed through the head model in a client terminal including the head model. By transmitting data to a server containing a body model through a public network and having the server secondarily process the data that was primarily processed through the body model, SaaS-type deep image processing is possible without directly transmitting the image through a public network. A learning model service can be provided. Additionally, it is possible to provide technology for appropriately dividing a previously created deep learning model into a head model and a body model. In addition, data protection issues between the customer's system and the service provider's module can be covered by using a first module including a head model and a second module including a body model within one system, such as the customer's legacy system. .

이상에서 설명된 장치는 하드웨어 구성요소, 또는 하드웨어 구성요소 및 소프트웨어 구성요소의 조합으로 구현될 수 있다. 예를 들어, 실시예들에서 설명된 장치 및 구성요소는, 프로세서, 콘트롤러, ALU(arithmetic logic unit), 디지털 신호 프로세서(digital signal processor), 마이크로컴퓨터, FPGA(field programmable gate array), PLU(programmable logic unit), 마이크로프로세서, 또는 명령(instruction)을 실행하고 응답할 수 있는 다른 어떠한 장치와 같이, 하나 이상의 범용 컴퓨터 또는 특수 목적 컴퓨터를 이용하여 구현될 수 있다. 처리 장치는 운영 체제(OS) 및 상기 운영 체제 상에서 수행되는 하나 이상의 소프트웨어 어플리케이션을 수행할 수 있다. 또한, 처리 장치는 소프트웨어의 실행에 응답하여, 데이터를 접근, 저장, 조작, 처리 및 생성할 수도 있다. 이해의 편의를 위하여, 처리 장치는 하나가 사용되는 것으로 설명된 경우도 있지만, 해당 기술분야에서 통상의 지식을 가진 자는, 처리 장치가 복수 개의 처리 요소(processing element) 및/또는 복수 유형의 처리 요소를 포함할 수 있음을 알 수 있다. 예를 들어, 처리 장치는 복수 개의 프로세서 또는 하나의 프로세서 및 하나의 콘트롤러를 포함할 수 있다. 또한, 병렬 프로세서(parallel processor)와 같은, 다른 처리 구성(processing configuration)도 가능하다.The device described above may be implemented with hardware components or a combination of hardware components and software components. For example, the devices and components described in the embodiments include a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), and a programmable logic unit (PLU). It may be implemented using one or more general-purpose or special-purpose computers, such as a logic unit, microprocessor, or any other device capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications running on the operating system. Additionally, a processing device may access, store, manipulate, process, and generate data in response to the execution of software. For ease of understanding, a single processing device may be described as being used; however, those skilled in the art will understand that a processing device includes multiple processing elements and/or multiple types of processing elements. It can be seen that it may include. For example, a processing device may include a plurality of processors or one processor and one controller. Additionally, other processing configurations, such as parallel processors, are possible.

소프트웨어는 컴퓨터 프로그램(computer program), 코드(code), 명령(instruction), 또는 이들 중 하나 이상의 조합을 포함할 수 있으며, 원하는 대로 동작하도록 처리 장치를 구성하거나 독립적으로 또는 결합적으로(collectively) 처리 장치를 명령할 수 있다. 소프트웨어 및/또는 데이터는, 처리 장치에 의하여 해석되거나 처리 장치에 명령 또는 데이터를 제공하기 위하여, 어떤 유형의 기계, 구성요소(component), 물리적 장치, 컴퓨터 저장 매체 또는 장치에 구체화(embody)될 수 있다. 소프트웨어는 네트워크로 연결된 컴퓨터 시스템 상에 분산되어서, 분산된 방법으로 저장되거나 실행될 수도 있다. 소프트웨어 및 데이터는 하나 이상의 컴퓨터 판독 가능 기록 매체에 저장될 수 있다.Software may include a computer program, code, instructions, or a combination of one or more of these, which may configure a processing unit to operate as desired, or may be processed independently or collectively. You can command the device. The software and/or data may be embodied in any type of machine, component, physical device, computer storage medium or device for the purpose of being interpreted by or providing instructions or data to the processing device. there is. Software may be distributed over networked computer systems and stored or executed in a distributed manner. Software and data may be stored on one or more computer-readable recording media.

실시예에 따른 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 이때, 매체는 컴퓨터로 실행 가능한 프로그램을 계속 저장하거나, 실행 또는 다운로드를 위해 임시 저장하는 것일 수도 있다. 또한, 매체는 단일 또는 수 개의 하드웨어가 결합된 형태의 다양한 기록수단 또는 저장수단일 수 있는데, 어떤 컴퓨터 시스템에 직접 접속되는 매체에 한정되지 않고, 네트워크 상에 분산 존재하는 것일 수도 있다. 매체의 예시로는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM 및 DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical medium), 및 ROM, RAM, 플래시 메모리 등을 포함하여 프로그램 명령어가 저장되도록 구성된 것이 있을 수 있다. 또한, 다른 매체의 예시로, 어플리케이션을 유통하는 앱 스토어나 기타 다양한 소프트웨어를 공급 내지 유통하는 사이트, 서버 등에서 관리하는 기록매체 내지 저장매체도 들 수 있다.The method according to the embodiment may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer-readable medium. At this time, the medium may continuously store a computer-executable program, or temporarily store it for execution or download. In addition, the medium may be a variety of recording or storage means in the form of a single or several pieces of hardware combined. It is not limited to a medium directly connected to a computer system and may be distributed over a network. Examples of media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, And there may be something configured to store program instructions, including ROM, RAM, flash memory, etc. Additionally, examples of other media include recording or storage media managed by app stores that distribute applications, sites or servers that supply or distribute various other software, etc.

이상과 같이 실시예들이 비록 한정된 실시예와 도면에 의해 설명되었으나, 해당 기술분야에서 통상의 지식을 가진 자라면 상기의 기재로부터 다양한 수정 및 변형이 가능하다. 예를 들어, 설명된 기술들이 설명된 방법과 다른 순서로 수행되거나, 및/또는 설명된 시스템, 구조, 장치, 회로 등의 구성요소들이 설명된 방법과 다른 형태로 결합 또는 조합되거나, 다른 구성요소 또는 균등물에 의하여 대치되거나 치환되더라도 적절한 결과가 달성될 수 있다.As described above, although the embodiments have been described with limited examples and drawings, various modifications and variations can be made by those skilled in the art from the above description. For example, the described techniques are performed in a different order than the described method, and/or components of the described system, structure, device, circuit, etc. are combined or combined in a different form than the described method, or other components are used. Alternatively, appropriate results may be achieved even if substituted or substituted by an equivalent.

그러므로, 다른 구현들, 다른 실시예들 및 특허청구범위와 균등한 것들도 후술하는 특허청구범위의 범위에 속한다.Therefore, other implementations, other embodiments, and equivalents of the claims also fall within the scope of the claims described below.

Claims (12)

적어도 하나의 프로세서를 포함하는 컴퓨터 시스템의 서비스 제공 방법에 있어서,
상기 적어도 하나의 프로세서에 의해, 학습이 완료된 딥러닝 모델의 분할을 통해 생성된 헤드(head) 모델 및 바디(body) 모델 중, 상기 헤드 모델을 포함하는 제1 모듈로부터 상기 딥러닝 모델을 이용한 이미지 처리 서비스의 요청을 수신하되, 상기 요청은 입력 이미지에 대한 상기 헤드 모델의 제1 출력값을 포함하는, 단계;
상기 적어도 하나의 프로세서에 의해, 상기 수신된 이미지 처리 서비스의 요청에 포함된 상기 제1 출력값을 제2 모듈이 포함하는 상기 바디 모델에 입력하여 제2 출력값을 획득하는 단계; 및
상기 적어도 하나의 프로세서에 의해, 상기 제2 출력값에 기반하여 상기 이미지 처리 서비스를 상기 제1 모듈로 제공하는 단계
를 포함하고,
상기 헤드 모델 및 상기 바디 모델은, 상기 딥러닝 모델이 포함하는 노드들 중에서 선정된 제1 노드를 기준으로 상기 딥러닝 모델을 분할하여 생성되고,
상기 제1 노드는, 상기 노드들 각각의 가중치 값에 기초하여 상기 노드들 중에서 선정된 후보 노드들 중에서 다시 선정되고,
상기 노드들 각각의 가중치 값은 상기 노드들 각각의 부모 노드 여부 및 상기 노드들 각각의 부모 노드가 포함하는 자식 노드의 수에 따라 결정되는 것
을 특징으로 하는 서비스 제공 방법.
In a service provision method of a computer system including at least one processor,
An image using the deep learning model from the first module including the head model among the head model and body model generated by the at least one processor through division of the learned deep learning model. Receiving a request for processing service, wherein the request includes a first output value of the head model for an input image;
obtaining a second output value by inputting, by the at least one processor, the first output value included in the received image processing service request into the body model included in a second module; and
Providing the image processing service to the first module based on the second output value, by the at least one processor
Including,
The head model and the body model are generated by dividing the deep learning model based on a first node selected from among the nodes included in the deep learning model,
The first node is selected again from candidate nodes selected from among the nodes based on the weight values of each of the nodes,
The weight value of each of the nodes is determined depending on whether each of the nodes is a parent node and the number of child nodes included in the parent node of each of the nodes.
A service provision method characterized by .
제1항에 있어서,
상기 제1 모듈 및 상기 제2 모듈은 상기 컴퓨터 시스템에 포함되는 것을 특징으로 하는 서비스 제공 방법.
According to paragraph 1,
A service provision method, characterized in that the first module and the second module are included in the computer system.
제1항에 있어서,
상기 제2 모듈은 상기 컴퓨터 시스템에 포함되고,
상기 제1 모듈은 상기 컴퓨터 시스템과 상이한 별도의 컴퓨터 장치에 포함되어 상기 컴퓨터 시스템과 상기 별도의 컴퓨터 장치간의 네트워크 통신을 통해 상기 제2 모듈과 연동되는 것을 특징으로 하는 서비스 제공 방법.
According to paragraph 1,
the second module is included in the computer system,
A method of providing a service, wherein the first module is included in a separate computer device that is different from the computer system and is linked to the second module through network communication between the computer system and the separate computer device.
제1항에 있어서,
상기 제1 노드는, 상기 노드들 각각이 처리하는 누적 파라미터의 수 및 상기 헤드 모델에서 상기 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여, 상기 후보 노드들 중에서 선정되는 것을 특징으로 하는 서비스 제공 방법.
According to paragraph 1,
The first node is selected from among the candidate nodes based on at least one of the number of cumulative parameters processed by each of the nodes and the amount of data to be transferred from the head model to the body model. How we provide services.
제1항에 있어서,
상기 적어도 하나의 프로세서에 의해, 상기 딥러닝 모델을 상기 헤드 모델 및 상기 바디 모델로 분할하는 단계; 및
상기 적어도 하나의 프로세서에 의해, 상기 헤드 모델을 배포하는 단계
를 더 포함하는 서비스 제공 방법.
According to paragraph 1,
Splitting the deep learning model into the head model and the body model by the at least one processor; and
distributing, by the at least one processor, the head model
A service provision method further comprising:
제5항에 있어서,
상기 분할하는 단계는,
상기 후보 노드들을 포함하는 후보군을 선정하는 단계;
상기 노드들 각각이 처리하는 누적 파라미터의 수 및 상기 헤드 모델에서 상기 바디 모델로 전달해야 하는 데이터의 양 중 적어도 하나에 기반하여, 상기 후보군에서 분할의 기준이 되는 상기 제1 노드를 선정하는 단계; 및
상기 선정된 제1 노드를 기준으로 상기 딥러닝 모델을 상기 헤드 모델 및 상기 바디 모델로 분할하는 단계
를 포함하는 것을 특징으로 하는 서비스 제공 방법.
According to clause 5,
The dividing step is,
selecting a candidate group including the candidate nodes;
selecting the first node as a basis for division in the candidate group based on at least one of the number of cumulative parameters processed by each of the nodes and the amount of data to be transferred from the head model to the body model; and
Splitting the deep learning model into the head model and the body model based on the selected first node.
A service provision method comprising:
제6항에 있어서,
상기 후보군을 선정하는 단계는,
상기 딥러닝 모델이 포함하는 노드들 각각에 대해, 노드가 부모 노드인 경우에 동일한 제1 가중치 값을 설정하고, 노드가 자식 노드인 경우에 제2 가중치 값을 설정하는 단계; 및
최상위 부모 노드와 리프(leaf) 노드를 제외한 노드들 중 제1 가중치 값이 설정된 노드들의 집합을 상기 후보군으로 선정하는 단계
를 포함하고,
상기 제2 가중치 값은 상기 제1 가중치 값을 부모 노드가 포함하는 자식 노드의 수로 나눈 값을 포함하는 것
을 특징으로 하는 서비스 제공 방법.
According to clause 6,
The step of selecting the candidate group is,
For each of the nodes included in the deep learning model, setting the same first weight value when the node is a parent node and setting a second weight value when the node is a child node; and
Selecting a set of nodes for which a first weight value is set among nodes excluding the highest parent node and leaf node as the candidate group.
Including,
The second weight value includes the first weight value divided by the number of child nodes included in the parent node.
A service provision method characterized by .
제1항에 있어서,
상기 적어도 하나의 프로세서에 의해, 상기 제1 모듈이 포함하는 상기 헤드 모델과 상기 제2 모듈이 포함하는 상기 바디 모델간의 인터페이스를 연결하는 단계
를 더 포함하고,
상기 이미지 처리 서비스의 요청은 상기 연결된 인터페이스를 통해 발생하는 것
을 특징으로 하는 서비스 제공 방법.
According to paragraph 1,
Connecting an interface between the head model included in the first module and the body model included in the second module, by the at least one processor.
It further includes,
The request for the image processing service occurs through the connected interface.
A service provision method characterized by .
제1항에 있어서,
상기 이미지 처리 서비스의 제공과 관련하여 상기 제1 모듈의 사용자에게 부가되는 비용이 상기 헤드 모델의 용량에 영향을 받는 것을 특징으로 하는 서비스 제공 방법.
According to paragraph 1,
A service provision method, wherein the cost added to the user of the first module in relation to the provision of the image processing service is affected by the capacity of the head model.
제9항에 있어서,
상기 헤드 모델의 용량을 고려하여 상기 딥러닝 모델이 상기 헤드 모델 및 상기 바디 모델로 분할되는 것을 특징으로 하는 서비스 제공 방법.
According to clause 9,
A service provision method characterized in that the deep learning model is divided into the head model and the body model in consideration of the capacity of the head model.
컴퓨터 시스템과 결합되어 제1항 내지 제10항 중 어느 한 항의 방법을 컴퓨터 시스템에 실행시키기 위해 컴퓨터 판독 가능한 기록매체에 저장된 컴퓨터 프로그램.A computer program stored in a computer-readable recording medium in combination with a computer system to execute the method of any one of claims 1 to 10 on the computer system. 컴퓨터에서 판독 가능한 명령을 실행하도록 구현되는 적어도 하나의 프로세서
를 포함하고,
상기 적어도 하나의 프로세서에 의해,
학습이 완료된 딥러닝 모델의 분할을 통해 생성된 헤드(head) 모델 및 바디(body) 모델 중 상기 헤드 모델을 포함하는 제1 모듈로부터, 상기 딥러닝 모델을 이용한 이미지 처리 서비스의 요청을 수신하되, 상기 요청은 입력 이미지에 대한 상기 헤드 모델의 제1 출력값을 포함하고,
상기 수신된 이미지 처리 서비스의 요청에 포함된 상기 제1 출력값을 제2 모듈이 포함하는 상기 바디 모델에 입력하여 제2 출력값을 획득하고,
상기 제2 출력값에 기반하여 상기 이미지 처리 서비스를 상기 제1 모듈로 제공하고,
상기 헤드 모델 및 상기 바디 모델은, 상기 딥러닝 모델이 포함하는 노드들 중에서 선정된 제1 노드를 기준으로 상기 딥러닝 모델을 분할하여 생성되고,
상기 제1 노드는, 상기 노드들 각각의 가중치 값에 기초하여 상기 노드들 중에서 선정된 후보 노드들 중에서 다시 선정되고,
상기 노드들 각각의 가중치 값은 상기 노드들 각각의 부모 노드 여부 및 상기 노드들 각각의 부모 노드가 포함하는 자식 노드의 수에 따라 결정되는 것
을 특징으로 하는 컴퓨터 장치.
At least one processor implemented to execute computer readable instructions
Including,
By the at least one processor,
Receiving a request for an image processing service using the deep learning model from the first module including the head model among the head model and body model created through division of the deep learning model for which learning has been completed, The request includes a first output value of the head model for the input image,
Obtaining a second output value by inputting the first output value included in the received image processing service request into the body model included in a second module,
Providing the image processing service to the first module based on the second output value,
The head model and the body model are generated by dividing the deep learning model based on a first node selected from among the nodes included in the deep learning model,
The first node is selected again from candidate nodes selected from among the nodes based on the weight values of each of the nodes,
The weight value of each of the nodes is determined depending on whether each of the nodes is a parent node and the number of child nodes included in the parent node of each of the nodes.
A computer device characterized by a.
KR1020220097963A 2022-08-05 2022-08-05 Method and system for providing service using segmented deep learning model KR102641628B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020220097963A KR102641628B1 (en) 2022-08-05 2022-08-05 Method and system for providing service using segmented deep learning model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020220097963A KR102641628B1 (en) 2022-08-05 2022-08-05 Method and system for providing service using segmented deep learning model

Publications (2)

Publication Number Publication Date
KR20240020025A KR20240020025A (en) 2024-02-14
KR102641628B1 true KR102641628B1 (en) 2024-02-29

Family

ID=89896707

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020220097963A KR102641628B1 (en) 2022-08-05 2022-08-05 Method and system for providing service using segmented deep learning model

Country Status (1)

Country Link
KR (1) KR102641628B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022515711A (en) 2018-12-31 2022-02-22 インテル・コーポレーション Security system using artificial intelligence

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102386497B1 (en) * 2019-12-26 2022-04-14 주식회사 엠티이지 Apparatus and method for detecting personal identification information for surgical video de-identification
KR102613367B1 (en) * 2020-12-29 2023-12-13 국민대학교산학협력단 Method and apparatus for automatically reducing model weight for deep learning model serving optimization, and a method for providing cloud inference services usin the same
KR20220098949A (en) * 2021-01-05 2022-07-12 한국과학기술원 System and method for distributed training of deep learning model

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022515711A (en) 2018-12-31 2022-02-22 インテル・コーポレーション Security system using artificial intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Praneeth Vepakomma et. al., "Split learning for health: Distributed deep learning without sharing raw patient data," arXiv:1812.00564v1, (2018.12.03.) 1부.*

Also Published As

Publication number Publication date
KR20240020025A (en) 2024-02-14

Similar Documents

Publication Publication Date Title
US20210194888A1 (en) Restricted access to sensitive content
JP2023520420A (en) A batching technique for handling imbalanced training data for chatbots
CN107766940A (en) Method and apparatus for generation model
US10891950B2 (en) Graph based prediction for next action in conversation flow
EP3350692A1 (en) Visual content development
WO2023284511A1 (en) Privacy protection-based graphical model training method and apparatus, and device
US20130291121A1 (en) Cloud Abstraction
KR20210018384A (en) Method and system of real-time graph-based embedding for personalized content recommendation
US11120212B2 (en) Creating and modifying applications from a mobile device
KR102214422B1 (en) Method and system of real-time graph-based embedding for personalized content recommendation
US11561804B1 (en) Virtual assistant transfer protocol
JP6629935B2 (en) Deep learning learning method and system for categorizing documents
US20210064982A1 (en) Cross-domain homophily quanitifcation for transfer learning
US9703616B2 (en) Executing a command on an optimal smart device
KR102641628B1 (en) Method and system for providing service using segmented deep learning model
US20190005213A1 (en) Automated authentication and access
US20220272136A1 (en) Context based content positioning in content delivery networks
US20210342310A1 (en) Cognitive Method to Perceive Storages for Hybrid Cloud Management
CN113822429A (en) Interpretation method, device and equipment for recommendation system and readable storage medium
JP2017220236A (en) Client alteration determination system and method
KR102113663B1 (en) Hierarchical classification-based incremental class learning method and computing device for digital storytelling
JP2019220152A (en) Image filtering methods, electronic devices, and recording media
US20230244475A1 (en) Automatic extract, transform and load accelerator for data platform in distributed computing environment
KR20200024433A (en) Method and system for utilizing thin sub networks for anytime prediction
US20230168923A1 (en) Annotation of a Machine Learning Pipeline with Operational Semantics