TWI759861B - Contract risk evaluation system and contract risk evaluation method - Google Patents

Contract risk evaluation system and contract risk evaluation method Download PDF

Info

Publication number
TWI759861B
TWI759861B TW109131684A TW109131684A TWI759861B TW I759861 B TWI759861 B TW I759861B TW 109131684 A TW109131684 A TW 109131684A TW 109131684 A TW109131684 A TW 109131684A TW I759861 B TWI759861 B TW I759861B
Authority
TW
Taiwan
Prior art keywords
contract
draft
template
risk
rgb value
Prior art date
Application number
TW109131684A
Other languages
Chinese (zh)
Other versions
TW202101277A (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 TW109131684A priority Critical patent/TWI759861B/en
Publication of TW202101277A publication Critical patent/TW202101277A/en
Application granted granted Critical
Publication of TWI759861B publication Critical patent/TWI759861B/en

Links

Images

Landscapes

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

Abstract

A contract risk evaluation system comprises a template server, an input interface, and a risk control host. The template server stores a plurality of contract templates having different objects respectively. Each of the contract templates contains a plurality of types of agreed items, each of the agreed items has multiple keywords. Different types of agreed items correspond to different weights respectively. The input interface receives a contract draft and provide a user to select the object of the contract draft. The risk control host stores a machine learning model, and the machine learning model obtains the contract template whose object is the same as the object of the contract draft from the template server. The machine learning model compares the contract draft with the contract template to calculate the percentage of keywords of each of the agreed items which do not appear in the contract draft. The machine learning model calculates a sum of products of these percentages and the weights corresponding to the agreed items, and the sum of products is defined as the risk level of the contract draft.

Description

契約風險評估系統及契約風險評估方法Contract risk assessment system and contract risk assessment method

本發明係關於一種風險評估系統,特別是一種契約風險評估系統。The present invention relates to a risk assessment system, especially a contract risk assessment system.

現代商業社會蓬勃的發展以及交易合作的頻繁,隨時都可能出現法律上的糾紛,也因此使得契約變得不可或缺。但如何制訂一份有效的契約、以及簽訂契約時該注意的事項等,釐清這些問題早已為現代執業者所必須面臨之課題。契約也是最有利的證據,除了能保護及伸張自身的權利,也能利於合作關係的發展,將突如其來的意外傷害降至最低。With the vigorous development of modern commercial society and the frequent trading and cooperation, legal disputes may arise at any time, which makes contracts indispensable. However, how to formulate an effective contract and the matters that should be paid attention to when signing the contract, etc., clarifying these issues has long been a subject that modern practitioners must face. The contract is also the most favorable evidence. In addition to protecting and extending one's own rights, it is also conducive to the development of the cooperative relationship and minimizes unexpected and accidental damage.

目前公司在評估契約的風險程度時,通常仰賴公司之法務專員或是委託外部事務所的律師。然而,當外部之律師同時處理多個委託案,所以能花在評估契約風險的時間相對變少,使評估契約時容易犯錯。此外,人工審閱契約的時間冗長且需花費資金成本。At present, when evaluating the risk level of a contract, companies usually rely on the company's legal specialist or an attorney from an external firm. However, when external lawyers handle multiple client cases at the same time, the time that can be spent on evaluating contract risks is relatively less, making it easy to make mistakes when evaluating contracts. In addition, manual review of contracts is lengthy and costly.

有鑑於此,在實務上確實需要一種改良的契約風險評估系統,至少可解決以上缺失In view of this, there is indeed a need for an improved contract risk assessment system in practice, which can at least address the above deficiencies

本發明在於提供一種契約風險評估系統及契約風險評估方法,可降低契約審閱的時間以及降低花費之成本。The present invention is to provide a contract risk assessment system and a contract risk assessment method, which can reduce the time and cost of contract review.

依據本發明一實施例所揭露的契約風險評估系統,包括範本伺服器、輸入介面以及風險控管主機。範本伺服器儲存不同契約標的之契約範本,每一契約範本包含有多種類的約定事項,每一種約定事項具有多個關鍵字,而不同種類的約定事項對應不同的權重。輸入介面通訊連接於範本伺服器,該輸入介面接收草擬契約且確認草擬契約之契約標的。風險控管主機通訊連接於輸入介面與範本伺服器,風險控管主機儲存有關鍵字搜尋引擎以及機器學習模型,關鍵字搜尋引擎比對草擬契約以及與草擬契約具有相同契約標的之契約範本以計算出每一約定事項的缺漏百分比,機器學習模型計算每一約定事項的缺漏百分比與每一約定事項的權重的乘積以及該些乘積之合,其中該缺漏百分比為每一約定事項的關鍵字未出現於草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比,而該些乘積之合為該草擬契約之風險程度。風險控管主機包含一處理器及一外部記憶體,該處理器電性連接於該外部記憶體,該處理器還具有一內部記憶體,該內部記憶體用於儲存該關鍵字搜尋引擎以及該類神經網路,該外部記憶體用於儲存該草擬契約,該處理器驅使該關鍵字搜尋引擎比對該草擬契約文字檔與該契約範本,該處理器驅使該類神經網路計算該風險程度,而該缺漏百分比為每一約定事項的關鍵字未出現於該草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比。A contract risk assessment system disclosed according to an embodiment of the present invention includes a template server, an input interface, and a risk control host. The template server stores contract templates of different contract objects, each contract template includes multiple types of contract items, each type of contract item has multiple keywords, and different types of contract items correspond to different weights. The input interface is communicatively connected to the template server, and the input interface receives the draft contract and confirms the contract subject of the draft contract. The risk management host communicates with the input interface and the template server. The risk management host stores a keyword search engine and a machine learning model. The keyword search engine compares the draft contract and the contract template with the same contract object as the draft contract to calculate The machine learning model calculates the product of the missing percentage of each engagement and the weight of each engagement and the sum of these products, where the missing percentage is that the keyword of each engagement does not appear The percentage of the number of draft contracts relative to the total number of keywords for each contract, and the sum of these products is the risk level of the draft contract. The risk control host includes a processor and an external memory, the processor is electrically connected to the external memory, the processor also has an internal memory, and the internal memory is used to store the keyword search engine and the external memory. a neural network, the external memory is used to store the draft contract, the processor drives the keyword search engine to compare the draft contract text file with the contract template, the processor drives the neural network to calculate the risk level , and the missing percentage is the percentage of the number of keywords for each engagement that do not appear in the draft contract relative to the number of total keywords for each engagement.

依據本發明一實施例所揭露的一種契約風險評估方法,包括: 以輸入介面接收草擬契約;以輸入介面接收草擬契約;以輸入介面確認草擬契約之契約標的;以風險控管主機執行關鍵字搜尋引擎及機器學習模型;以關鍵字搜尋引擎從範本伺服器取得與該草擬契約相同契約標的之契約範本,契約範本包含有不同種類之約定事項,契約範本的約定事項包含簽約雙方權利、簽約雙方責任、違約條件、終止條件、簽約雙方聲明及保證、及保密義務,每一約定事項具有多個關鍵字,而不同約定事項對應不同的權重;以關鍵字搜尋引擎比對草擬契約與該契約範本以計算出每一約定事項的缺漏百分比;以機器學習模型計算每一約定事項的缺漏百分比與每一約定事項的權重的乘積;以及以機器學習模型計算該些乘積之合,其中缺漏百分比為每一約定事項的關鍵字未出現於草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比,而該些乘積之合為該草擬契約之風險程度A contract risk assessment method disclosed according to an embodiment of the present invention includes: Use the input interface to receive the draft contract; use the input interface to receive the draft contract; use the input interface to confirm the contract subject of the draft contract; use the risk control host to execute the keyword search engine and machine learning model; use the keyword search engine to obtain and The draft contract is a contract template with the same contract object. The contract template contains different types of agreed items. The contractual items in the contract template include the rights of both parties, the responsibilities of both parties, breach of contract conditions, termination conditions, declarations and warranties of both parties, and confidentiality obligations. Each agreement has multiple keywords, and different agreements correspond to different weights; use a keyword search engine to compare the draft contract with the contract template to calculate the percentage of omissions for each agreement; use a machine learning model to calculate each the product of the missing percentage of engagements and the weight of each engagement; and computing the sum of those products with a machine learning model, where the missing percentage is the number of each engagement keyword not appearing in the draft contract relative to each engagement The percentage of the number of total keywords of the matter, and the sum of these products is the risk level of the draft contract

根據上述架構,本發明所揭露的契約風險評估系統及契約風險評估方法,透過關鍵字搜尋計算出每一約定事項的缺漏百分比以及透過機器學習模型計算缺漏百分比與其對應的權重的乘積,藉以推測草擬契約的風險程度以供公司參考。不但省去了人工審約以及人工自行查詢法規資料庫的時間,也節省了資金成本。在法務人員業務較為繁忙的期間,也可輔助法務人員評估契約之風險,以避免公司因為契約的缺陷造成損失。According to the above structure, the contract risk assessment system and contract risk assessment method disclosed in the present invention calculates the percentage of omissions of each contract through keyword search, and calculates the product of the percentage of omissions and their corresponding weights through a machine learning model, so as to speculate and draft The risk level of the contract is for the company's reference. It not only saves the time of manual contract review and manual query of the regulatory database, but also saves capital costs. During the busy period of the legal staff's business, it can also assist the legal staff to assess the risk of the contract, so as to avoid the loss of the company due to the defects of the contract.

以上之關於本揭露內容之說明及以下之實施方式之說明係用以示範與解釋本發明之精神與原理,並且提供本發明之專利申請範圍更進一步之解釋。The above description of the present disclosure and the following description of the embodiments are used to demonstrate and explain the spirit and principle of the present invention, and provide further explanation of the scope of the patent application of the present invention.

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。以下之實施例係進一步詳細說明本發明之觀點,但非以任何觀點限制本發明之範疇。The detailed features and advantages of the present invention are described in detail below in the embodiments, and the content is sufficient to enable any person skilled in the relevant art to understand the technical content of the present invention and implement it accordingly, and according to the content disclosed in this specification, the scope of the patent application and the drawings , any person skilled in the related art can easily understand the related objects and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention in any viewpoint.

圖1係為根據本發明第一實施例所繪示之契約風險評估系統的功能方塊圖。如圖1所示,契約風險評估系統100包括一範本伺服器10、一輸入介面12以及一風險控管主機14。範本伺服器10儲存不同契約標的之契約範本,而該些契約範本的格式為文字檔。舉例來說,契約標的可包含活期存款附屬金融卡、金融機構保管箱出租、證券商交割專戶留存客戶款項、電子支付機構業務及廣告代理,但不以此為限。每一契約範本包含有多種類的約定事項,舉例來說,約定事項可包含簽約雙方之權利、簽約雙方之義務、違約條件、終止條件、簽約雙方聲明及保證、及保密義務,但不以此為限。不同種類的約定事項對應不同的權重,且每一種約定事項具有多個關鍵字,該些權重及關鍵字的資料儲存於範本伺服器10。FIG. 1 is a functional block diagram of a contract risk assessment system according to a first embodiment of the present invention. As shown in FIG. 1 , the contract risk assessment system 100 includes a template server 10 , an input interface 12 and a risk control host 14 . The template server 10 stores contract templates of different contract objects, and the format of the contract templates is a text file. For example, the subject matter of the contract may include, but not limited to, financial cards attached to demand deposits, rental of safe deposit boxes in financial institutions, customer funds retained in special delivery accounts of securities firms, business of electronic payment institutions, and advertising agencies. Each contract template contains various types of covenants. For example, covenants may include the rights of both parties, obligations of both parties, conditions of breach, termination conditions, representations and warranties of both parties, and confidentiality obligations, but not in this regard. limited. Different types of commitments correspond to different weights, and each type of commitment has a plurality of keywords, and the data of the weights and keywords are stored in the template server 10 .

輸入介面12透過有線或無線網路與範本伺服器10通訊連接,使用者能夠以可連接網路之電子裝置S(個人電腦、行動通訊裝置或平板電腦)與輸入介面12通訊連接並將草擬契約上傳至輸入介面12,而上傳的草擬契約的格式為文字檔。輸入介面12具有契約標的選單以供使用者選擇與草擬契約之契約標的相同的契約標的,當使用者選好契約標的後,輸入介面12產生一確認訊號。The input interface 12 is communicated with the template server 10 through a wired or wireless network, and the user can use an electronic device S (personal computer, mobile communication device or tablet computer) that can be connected to the network to communicate with the input interface 12 and draw up a contract Uploaded to the input interface 12, and the format of the uploaded draft contract is a text file. The input interface 12 has a contract target menu for the user to select the same contract target as the contract target of the draft contract. After the user selects the contract target, the input interface 12 generates a confirmation signal.

風險控管主機14包含一處理器142及一外部記憶體144,處理器142電性連接於外部記憶體144且處理器142透過有線或無線網路與輸入介面12與範本伺服器10通訊連接。外部記憶體144用於儲存草擬契約。處理器142還具有一內部記憶體146,內部記憶體146用於儲存關鍵字搜尋引擎16及機器學習模型18,而機器學習模型18包含類神經網路、身心語言程式學(Neuro-Linguistic Programming)、模糊邏輯模型、隱馬爾可夫模型、決策樹、貝氏演算法、條件隨機域或支持向量機。處理器142接收確認訊號以得知草擬契約所屬的契約標的,處理器142執行關鍵字搜尋引擎16以驅使關鍵字搜尋引擎16依據確認訊號從範本伺服器10取得與草擬契約具有相同契約標的之契約範本、契約範本的每一約定事項之權重、以及每一約定事項之關鍵字的資料,權重越大的約定事項表示對於契約的風險程度具有較高的影響力。處理器142執行關鍵字搜尋引擎16以驅使關鍵字搜尋引擎16比對草擬契約與契約範本的兩個文字檔以計算出每一約定事項的缺漏百分比,而缺漏百分比為契約範本的每一約定事項的關鍵字未出現於草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比。處理器142執行機器學習模型18以驅使機器學習模型18計算每一約定事項的缺漏百分比與每一約定事項的權重的乘積以及計算該些乘積之合,而該些乘積之合為草擬契約之風險程度。舉例來說,如下表1所列,契約範本具有約定事項A~F,草擬契約具有約定事項A~F,約定事項A~F分別為簽約雙方之權利、簽約雙方之義務、違約條件、終止條件、簽約雙方聲明及保證、及保密義務。   約定事項A 約定事項B 約定事項C 約定事項D 約定事項E 約定事項F 權重 25% 25% 15% 10% 10% 15% 關鍵字總數 4 4 4 4 4 4 草擬契約所缺漏的關鍵字數量 2 2 2 2 2 2 (表1) 草擬契約的每一約定事項A~F相對於契約範本的每一約定事項A~F,均缺少2個關鍵字,所以每一約定事項A~F的缺漏百分比均為50%,乘積合的計算式為25%*50%+25%*50%+15%*50%+10%*50%+10%*50%+15%*50%,乘積合的值越大表示草擬契約的風險程度越高。The risk management host 14 includes a processor 142 and an external memory 144. The processor 142 is electrically connected to the external memory 144, and the processor 142 is connected to the template server 10 through a wired or wireless network and the input interface 12 in communication. External memory 144 is used to store draft contracts. The processor 142 also has an internal memory 146, and the internal memory 146 is used to store the keyword search engine 16 and the machine learning model 18, and the machine learning model 18 includes a neural network-like, psycholinguistic programming (Neuro-Linguistic Programming) , Fuzzy Logic Models, Hidden Markov Models, Decision Trees, Bayesian Algorithms, Conditional Random Fields or Support Vector Machines. The processor 142 receives the confirmation signal to know the contract subject to which the draft contract belongs, and the processor 142 executes the keyword search engine 16 to drive the keyword search engine 16 to obtain the contract with the same contract subject as the draft contract from the template server 10 according to the confirmation signal The weight of each contractual item in the template, the contract template, and the information of the key word of each contractual matter, the contractual matter with a higher weight indicates a higher influence on the risk degree of the contract. The processor 142 executes the keyword search engine 16 to drive the keyword search engine 16 to compare the two text files of the draft contract and the contract template to calculate the missing percentage for each contractual item, and the missing percentage is each contractual term of the contract template The percentage of the number of keywords not appearing in the draft contract relative to the number of total keywords per contract. The processor 142 executes the machine learning model 18 to drive the machine learning model 18 to calculate the product of the missing percentage of each engagement and the weight of each engagement and to calculate the sum of the products, the sum of which is the risk of drafting the contract degree. For example, as listed in Table 1 below, the contract template has stipulations A to F, the draft contract has stipulations A to F, and the stipulations A to F are the rights of the contracting parties, the obligations of the contracting parties, the breach conditions, and the termination conditions. , the parties' declarations and warranties, and confidentiality obligations. Agreement A Covenant B contract C contract D Agreement E Covenant F Weights 25% 25% 15% 10% 10% 15% Total number of keywords 4 4 4 4 4 4 Number of keywords missing from draft contracts 2 2 2 2 2 2 (Table 1) Each of the contract items A~F of the draft contract lacks 2 keywords relative to each of the contract items A~F of the contract template, so the percentage of missing items A to F of each contract is 50%. The calculation formula of the product sum is 25%*50%+25%*50%+15%*50%+10%*50%+10%*50%+15%*50%. The higher the risk level of the contract.

再者,為了資訊安全的考量,還可設定使用者登入輸入介面12後,還必須輸入個人密碼才可將草擬契約上傳至輸入介面12,藉此控管上傳至輸入介面12的資料。Furthermore, for the consideration of information security, after logging in the input interface 12 , the user must also input a personal password before uploading the draft contract to the input interface 12 , thereby controlling the data uploaded to the input interface 12 .

圖2係為根據本發明第二實施例所繪示之契約風險評估系統的功能方塊圖。如圖2所示,第二實施例之契約風險評估系統200相較於第一實施例的契約風險評估系統100更包括一圖像辨識主機20。圖像辨識主機20經由無線或有線網路與輸入介面12以及該風險控管主機14之處理器142。由於草擬契約有可能為影像圖檔,影像圖檔上的文字並非純文字,不能直接編輯與複製的,必須辨識影像圖檔上的文字得到文字檔。首先,使用者提供草擬契約的影像圖檔至輸入介面12,接著輸入介面12將影像圖檔傳送至圖像辨識主機20。圖像辨識主機20包含顏色選擇介面201,擷取電路202、像素轉換電路203、背景去除電路204及文字辨識電路205。使用者藉由顏色選擇介面201點選影像圖檔之文字之第一RGB值,文字例如是紅色,文字的第一RGB值則為(255,0,0),根據文字之第一RGB值截取出文字的範圍。使用者點選完第一RGB值後,由擷取電路202讀取影像圖檔中的每一點像素的RGB值,當讀取影像圖檔中的像素RGB值是等於第一RGB值時,擷取電路202會將包含有符合第一RGB值的區域形成第一區塊。然後,像素轉換電路203將第一區塊中非第一RGB值的像素轉換為第二RGB值,第二RGB值與第一RGB值不同。像素轉換完成的第一區塊包含了第一RGB值與第二RGB值,接下來背景去除電路204會將第一區塊中等於第二RGB值的所有像素去除,留下第一RGB值的像素形成第二區塊,第二區塊只包含第一RGB值的像素。接著,文字辨識電路205辨識第二區塊中之文字,透過字體修整、分割單字、單字細線化、或萃取特徵點辨識第二區塊中的文字,辨識後輸出辨識結果,得到辨識後之文字檔。圖像辨識主機20透過前述圖像辨識演算法將影像圖檔之草擬檔案轉變為文字檔之草擬契約後,圖像辨識主機20的文字辨識電路205將文字檔之草擬契約傳送至風險控管主機14之處理器142。FIG. 2 is a functional block diagram of a contract risk assessment system according to a second embodiment of the present invention. As shown in FIG. 2 , the contract risk assessment system 200 of the second embodiment further includes an image recognition host 20 compared to the contract risk assessment system 100 of the first embodiment. The image recognition host 20 communicates with the input interface 12 and the processor 142 of the risk management host 14 via a wireless or wired network. Since the draft contract may be an image file, the text on the image file is not pure text and cannot be edited and copied directly. The text on the image file must be recognized to obtain the text file. First, the user provides the image file of the draft contract to the input interface 12 , and then the input interface 12 transmits the image file to the image recognition host 20 . The image recognition host 20 includes a color selection interface 201 , a capture circuit 202 , a pixel conversion circuit 203 , a background removal circuit 204 and a character recognition circuit 205 . The user clicks the first RGB value of the text of the image file through the color selection interface 201, the text is red, for example, the first RGB value of the text is (255, 0, 0), which is intercepted according to the first RGB value of the text out the range of text. After the user clicks the first RGB value, the capture circuit 202 reads the RGB value of each pixel in the image file. When the RGB value of the pixel in the read image file is equal to the first RGB value, capture The fetching circuit 202 forms the first block including the area that matches the first RGB value. Then, the pixel conversion circuit 203 converts the pixels in the first block that are not of the first RGB value into a second RGB value, and the second RGB value is different from the first RGB value. The first block after the pixel conversion is completed includes the first RGB value and the second RGB value. Next, the background removal circuit 204 will remove all pixels in the first block that are equal to the second RGB value, leaving the first RGB value. The pixels form a second block, and the second block contains only pixels of the first RGB value. Next, the text recognition circuit 205 recognizes the text in the second block, and recognizes the text in the second block through font trimming, segmentation of single characters, thinning of single characters, or extraction of feature points, and outputs the recognition result after recognition to obtain the recognized text. files. After the image recognition host 20 converts the draft file of the image file into the draft contract of the text file through the aforementioned image recognition algorithm, the text recognition circuit 205 of the image recognition host 20 transmits the draft contract of the text file to the risk control host 14. Processor 142.

圖3係為根據本發明第三施例所繪示之契約風險評估系統的功能方塊圖。如圖3所示,第三實施例之契約風險評估系統300相較於第一實施例的契約風險評估系統100更包括圖像辨識主機20及法規伺服器30,法規伺服器30儲存有最新的金融法規,例如電子票證發行管理條例、金融控股公司法、銀行法,範本伺服器10與輸入介面12透過有線或無線網路與法規伺服器30通訊連接,藉此讓使用者於一預定週期依據金融法規對契約範本進行修正,以避免契約範本與現行法規抵觸而導致無效。FIG. 3 is a functional block diagram of a contract risk assessment system according to a third embodiment of the present invention. As shown in FIG. 3 , compared with the contract risk assessment system 100 of the first embodiment, the contract risk assessment system 300 of the third embodiment further includes an image recognition host 20 and a law server 30 , and the law server 30 stores the latest For financial regulations, such as the Electronic Ticket Issuance Regulations, the Financial Holding Company Act, and the Banking Act, the template server 10 and the input interface 12 communicate with the regulation server 30 through a wired or wireless network, thereby allowing the user to perform a Financial regulations amend the contract model to avoid invalidity due to conflict between the contract model and existing regulations.

圖4係為根據本發明第一實施例所繪示之契約風險評估方法的流程圖。如圖4所示,在步驟S401中,以輸入介面12接收使用者上傳的草擬契約,而上傳之草擬契約屬於文字檔。在步驟S402中,輸入介面12具有契約標的選單以供使用者選擇與草擬契約之契約標的相同的契約標的,以輸入介面12確認草擬契約之契約標的且產生確認訊號。在步驟S403中,以風險控管主機14之處理器142執行關鍵字搜尋引擎16與機器學習模型18。在步驟S404中,以關鍵字搜尋引擎16從範本伺服器10取得與草擬契約之契約標的相同之契約範本。契約範本包含有不同種類之約定事項,契約範本的每一約定事項具有多個關鍵字,而不同約定事項對應不同的權重。在步驟S405中,以關鍵字搜尋引擎16比對使用者上傳之草擬契約與從範本伺服器10取得契約範本以計算出每一約定事項的缺漏百分比,缺漏百分比越大表示該約定事項的內容的風險程度越大。在步驟S406中,以機器學習模型18計算每一約定事項的缺漏百分比與每一約定事項的權重的乘積。在步驟S407中,以機器學習模型18計算該些約定事項所對應的乘積之合,其中缺漏百分比為契約範本的每一約定事項的關鍵字未出現於草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比,而該些乘積之合為草擬契約之風險程度,乘積之合越大表示草擬契約的風險程度越高。FIG. 4 is a flowchart of a contract risk assessment method according to the first embodiment of the present invention. As shown in FIG. 4 , in step S401 , a draft contract uploaded by the user is received through the input interface 12 , and the uploaded draft contract is a text file. In step S402, the input interface 12 has a contract subject menu for the user to select the same contract subject as the draft contract subject, so that the input interface 12 confirms the draft contract subject and generates a confirmation signal. In step S403, the processor 142 of the risk control host 14 executes the keyword search engine 16 and the machine learning model 18. In step S404, the keyword search engine 16 obtains from the template server 10 a contract template that is the same as the contract subject of the draft contract. The contract template contains different types of covenants, each covenant in the contract template has multiple keywords, and different covenants correspond to different weights. In step S405, the keyword search engine 16 compares the draft contract uploaded by the user with the contract template obtained from the template server 10 to calculate the missing percentage of each contractual item. The greater the degree of risk. In step S406, the machine learning model 18 is used to calculate the product of the missing percentage of each engagement and the weight of each engagement. In step S407, the machine learning model 18 is used to calculate the sum of the products corresponding to the agreements, wherein the percentage of missing is that the keywords of each agreement in the contract template do not appear in the number of draft contracts relative to the number of each agreement. The percentage of the total number of keywords, and the sum of these products is the risk level of contract drafting. The larger the sum of the products, the higher the risk level of contract drafting.

圖5係為根據本發明第二實施例所繪示之契約風險評估方法的流程圖。如圖5所示,由於草擬契約的格式未必是文字檔,而有可能是圖像檔,當草擬契約為圖像檔時,由於草擬契約與契約範本的檔案格式不相同,所以關鍵字搜尋引擎16無法進行草擬契約與契約範本之關鍵字比對程序。有鑑於此,第二實施例的契約風險評估方法與第一實施例的契約風險評估方法之差異在於更包括步驟S502:以輸入介面12確認草擬契約之契約標的之前,先以圖像辨識主機20將圖像檔之草擬契約轉換為文字檔的草擬契約,且傳送文字檔的草擬契約至風險控管主機14之外部記憶體144。至於步驟S501、S503~S508分別相同於步驟S401~S407。如此一來,不論草擬契約為圖像檔或文字檔,都可透過第二實施例之契約風險評估方法進行風險程度之評估。FIG. 5 is a flowchart of a contract risk assessment method according to a second embodiment of the present invention. As shown in Figure 5, since the format of the draft contract is not necessarily a text file, but may be an image file, when the draft contract is an image file, since the file format of the draft contract and the contract template are different, the keyword search engine 16 The keyword comparison procedure between the draft contract and the contract template cannot be performed. In view of this, the difference between the contract risk assessment method of the second embodiment and the contract risk assessment method of the first embodiment is that it further includes step S502 : before confirming the contract subject of the draft contract with the input interface 12 , first identify the host 20 with an image The draft contract of the image file is converted into the draft contract of the text file, and the draft contract of the text file is transmitted to the external memory 144 of the risk management host 14 . Steps S501 and S503 to S508 are the same as steps S401 to S407, respectively. In this way, regardless of whether the draft contract is an image file or a text file, the risk level can be evaluated by the contract risk evaluation method of the second embodiment.

在其他實施例中,當機器學習模型18計算出的風險程度大於風險上限時,則機器學習模型18更進一步發送簡訊至使用者的行動裝置,以提醒使用者草擬契約不符合標準而必須重新制訂。In other embodiments, when the risk level calculated by the machine learning model 18 is greater than the risk upper limit, the machine learning model 18 further sends a text message to the user's mobile device to remind the user that the draft contract does not meet the standard and must be re-formulated .

契約風險評估系統在實際操作下,機器學習模型18必須不斷地更新,才能提高預測風險程度之準確度。因此,本發明的契約風險評估方法,還可包括在每一次以機器學習模型18計算出一份草擬契約的風險程度之後,以機器學習模型18依據計算出的風險程度與專家人工審閱草擬契約所評估的參考風險程度的誤差對機器學習模型18進行除錯修正,藉此縮小機器審閱與人工審閱之差異性。舉例來說,使用之機器學習模型18為類神經網路,契約範本的每一約定事項的關鍵字未出現於草擬契約的百分比以及草擬契約的每一約定事項的權重作為類神經網路之輸入,草擬契約之風險程度作為類神經網路之輸出,依據類神經網路之輸出與專家人工審閱之參考風險程度之誤差對類神經網路之權重進行修正。當類神經網路之權重針對多筆不同的草擬契約進行修正後,類神經網路在接收到即時的草擬契約的關鍵字缺漏百分比以及草擬契約的約定事項之權重的資料時,可準確預測草擬契約的風險程度。In the actual operation of the contract risk assessment system, the machine learning model 18 must be continuously updated in order to improve the accuracy of predicting the degree of risk. Therefore, the contract risk assessment method of the present invention may further include that after each time the risk level of a draft contract is calculated by the machine learning model 18, using the machine learning model 18 to manually review the draft contract according to the calculated risk level and experts. Errors in the estimated reference risk level are debugged and corrected for the machine learning model 18, thereby reducing the difference between machine review and manual review. For example, the machine learning model 18 used is a neural network, the percentage of the keywords of each covenant of the contract template that does not appear in the draft contract and the weight of each covenant of the draft contract as the input of the neural network , the risk level of the draft contract is taken as the output of the neural network, and the weight of the neural network is modified according to the error between the output of the neural network and the reference risk level reviewed by experts manually. When the weights of the neural network are modified for different draft contracts, the neural network can accurately predict the draft when receiving the real-time data of the keyword missing percentage of the draft contracts and the weights of the covenants of the draft contracts. The risk level of the contract.

綜合以上所述,本發明所揭露的契約風險評估系統及契約風險評估方法,透過關鍵字搜尋計算出每一約定事項的關鍵字未出現於草擬契約的百分比以及透過機器學習模型計算每一約定事項的關鍵字的缺漏百分比與每一約定事項的權重的乘積,藉以推測草擬契約的風險程度以供公司參考。不但省去了人工審約以及人工自行查詢法規資料庫的時間,也節省了資金成本。在法務人員業務較為繁忙的期間,也可輔助法務人員評估契約之風險,以避免公司因為契約的缺陷造成損失。Based on the above, the contract risk assessment system and contract risk assessment method disclosed in the present invention calculates the percentage of each contractual item that does not appear in the draft contract through keyword searching and calculates each contractual item through a machine learning model The product of the missing percentage of the keywords and the weight of each contract item is used to estimate the risk level of the draft contract for the company's reference. It not only saves the time of manual contract review and manual query of the regulatory database, but also saves capital costs. During the busy period of the legal staff's business, it can also assist the legal staff to assess the risk of the contract, so as to avoid the loss of the company due to the defects of the contract.

雖然本發明以前述之實施例揭露如上,然其並非用以限定本發明。在不脫離本發明之精神和範圍內,所為之更動與潤飾,均屬本發明之專利保護範圍。關於本發明所界定之保護範圍請參考所附之申請專利範圍。Although the present invention is disclosed in the foregoing embodiments, it is not intended to limit the present invention. Changes and modifications made without departing from the spirit and scope of the present invention belong to the scope of patent protection of the present invention. For the protection scope defined by the present invention, please refer to the attached patent application scope.

100、200、300:契約風險評估系統 10:範本伺服器 12:輸入介面 14:風險控管主機 142:處理器 144:外部記憶體 146:內部記憶體 16:關鍵字搜尋引擎 18:機器學習模型 20:圖像辨識主機 201:顏色選擇介面 202:擷取電路 203:像素轉換電路 204:背景去除電路 205:文字辨識電路 30:法規伺服器 S:電子裝置100, 200, 300: Contract Risk Assessment System 10: Template server 12: Input interface 14: Risk Control Host 142: Processor 144: External memory 146: Internal memory 16: Keyword Search Engines 18: Machine Learning Models 20: Image recognition host 201: Color selection interface 202: Capture circuit 203: Pixel conversion circuit 204: Background removal circuit 205: Text recognition circuit 30: Regulatory Server S: electronic device

圖1係為根據本發明第一實施例所繪示之契約風險評估系統的功能方塊圖。 圖2係為根據本發明第二實施例所繪示之契約風險評估系統的功能方塊圖。 圖3係為根據本發明第三實施例所繪示之契約風險評估系統的功能方塊圖。 圖4係為根據本發明第一實施例所繪示之契約風險評估方法的流程圖。 圖5係為根據本發明第二實施例所繪示之契約風險評估方法的流程圖。FIG. 1 is a functional block diagram of a contract risk assessment system according to a first embodiment of the present invention. FIG. 2 is a functional block diagram of a contract risk assessment system according to a second embodiment of the present invention. 3 is a functional block diagram of a contract risk assessment system according to a third embodiment of the present invention. FIG. 4 is a flowchart of a contract risk assessment method according to the first embodiment of the present invention. FIG. 5 is a flowchart of a contract risk assessment method according to a second embodiment of the present invention.

100:契約風險評估系統 100: Contract Risk Assessment System

10:範本伺服器 10: Template server

12:輸入介面 12: Input interface

14:風險控管主機 14: Risk Control Host

142:處理器 142: Processor

144:外部記憶體 144: External memory

146:內部記憶體 146: Internal memory

16:關鍵字搜尋引擎 16: Keyword Search Engines

18:機器學習模型 18: Machine Learning Models

S:電子裝置 S: electronic device

Claims (5)

一種契約風險評估系統,包括:一範本伺服器,儲存不同契約標的之契約範本,每一契約範本包含有多種類的約定事項,每一種約定事項具有多個關鍵字,而不同種類的約定事項對應不同的權重;一輸入介面,通訊連接於該範本伺服器,該輸入介面接收一草擬契約圖像檔且確認該草擬契約圖像檔之契約標的; 一圖像辨識主機,包含:一顏色選擇介面,用於點選該草擬契約圖像檔之文字部份之一第一RGB值且根據該第一RGB值截取出該文字部份的範圍;一擷取電路,用於讀取該草擬契約圖像檔上的每一像素的RGB值以形成一第一區塊,其中該第一區塊中包含有符合該第一RGB值的一區域;一像素轉換電路,用於將該第一區塊中不符合該第一RGB值的像素轉換為一第二RGB值;一背景去除電路,用於去除該第一區塊中符合該第二RGB值的所有像素以形成一第二區塊;及一文字辨識電路,用於透過字體修整、分割單字、單字細線化、或萃取特徵點去辨識該第二區塊中的文字部份以產生一草擬契約文字檔;以及一風險控管主機,通訊連接於該輸入介面、該範本伺服器以及該文字辨識電路,該風險控管主機儲存有一關鍵字搜尋引擎以及一機器學習模型,而該機器學習模型為一類神經網路,該關鍵字搜尋引擎比對該草擬契約以及與該草擬契約具有相同契約標的之契約範本以計算出每一約定事項的缺漏百分比,該類神經網路用於依據該些約定事項的缺漏百分比與該些約定事項的權重計算該草擬契約文字檔的一風險程度以及依據該風險程度與一參考風險程度之誤差對該類神經網路之多個權重進行修正;其中該風險控管主機包含一處理器及一外部記憶體,該處理器電性連接於該外部記憶體,該處理器還具有一內部記憶體,該內部記憶體用於儲存該關鍵字搜尋引擎以及該類神經網路,該外部記憶體用於儲存該草擬契約,該處理器驅使該關鍵字搜尋引擎比對該草擬契約文字檔與該契約範本,該處理器驅使該類神經網路計算該風險程度,而該缺漏百分比為每一約定事項的關鍵字未出現於該草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比。A contract risk assessment system, including: a template server, storing contract templates of different contract objects, each contract template contains multiple types of contract items, each type of contract item has multiple keywords, and different types of contract items correspond to different weights; an input interface, communicatively connected to the template server, the input interface receives a draft contract image file and confirms the contract object of the draft contract image file; an image recognition host, comprising: a color selection interface , for selecting a first RGB value of the text portion of the draft contract image file and extracting the range of the text portion according to the first RGB value; a capture circuit for reading the draft contract image the RGB value of each pixel on the image file to form a first block, wherein the first block includes an area conforming to the first RGB value; a pixel conversion circuit is used for the first block Converting pixels not conforming to the first RGB value into a second RGB value; a background removal circuit for removing all pixels in the first block that conform to the second RGB value to form a second block; and a character recognition circuit for recognizing the character part in the second block through font trimming, dividing single characters, thinning single characters, or extracting feature points to generate a draft contract text file; and a risk control host, communication connection In the input interface, the template server and the text recognition circuit, the risk management host stores a keyword search engine and a machine learning model, and the machine learning model is a type of neural network, and the keyword search engine compares The draft contract and the contract template with the same contract object as the draft contract are used to calculate the missing percentage of each contract. The neural network is used to calculate the missing percentage of the contract and the weight of the contract. drafting a risk level of the contract text file and correcting a plurality of weights of the neural network according to the error between the risk level and a reference risk level; wherein the risk control host includes a processor and an external memory, the The processor is electrically connected to the external memory, the processor also has an internal memory, the internal memory is used for storing the keyword search engine and the neural network, and the external memory is used for storing the draft contract , the processor drives the keyword search engine to compare the draft contract text file with the contract template, the processor drives the neural network to calculate the risk level, and the missing percentage is that the keyword for each contract does not appear The percentage of the number of draft contracts relative to the number of total keywords for each contract. 如請求項1所述之契約風險評估系統,其中該契約範本的該些約定事項包含簽約雙方權利、簽約雙方責任、違約條件、終止條件、簽約雙方聲明及保證、及保密義務。The contract risk assessment system according to claim 1, wherein the agreed items of the contract template include the rights of both parties, the responsibilities of both parties, breach conditions, termination conditions, declarations and warranties of both parties, and confidentiality obligations. 如請求項1所述之契約風險評估系統,其中該契約風險評估系統更包括一法規伺服器,該法規伺服器儲存有現行法規,該範本伺服器通訊連接該法規伺服器。The contract risk assessment system according to claim 1, wherein the contract risk assessment system further comprises a regulation server, the regulation server stores current regulations, and the template server is connected to the regulation server in communication. 一種契約風險評估方法,包括:     以一輸入介面接收一草擬契約圖像檔;     以該輸入介面確認該草擬契約圖像檔的契約標的;     以一顏色選擇介面點選該草擬契約圖像檔之文字部份之一第一RGB值;以該顏色選擇介面根據該第一RGB值截取出該文字部份的範圍;以一擷取電路讀取該草擬契約圖像檔上的每一像素的RGB值以形成一第一區塊,其中該第一區塊中包含有符合該第一RGB值的一區域;以一像素轉換電路將該第一區塊中不符合該第一RGB值的像素轉換為一第二RGB值;以一去除電路用於去除該第一區塊中符合該第二RGB值的所有像素以形成一第二區塊;以一文字辨識電路透過字體修整、分割單字、單字細線化、或萃取特徵點去辨識該第二區塊中的文字部份以產生一草擬契約文字檔;以該文字辨識電路傳送該草擬契約文字檔至一風險控管主機;     以該風險控管主機執行一關鍵字搜尋引擎以及一機器學習模型,其中該機器學習模型為一類神經網路;     以該關鍵字搜尋引擎從一範本伺服器取得與該草擬契約文字檔相同契約標的之契約範本,該契約範本包含有不同種類之約定事項,該契約範本的該些約定事項包含簽約雙方權利、簽約雙方責任、違約條件、終止條件、簽約雙方聲明及保證、及保密義務,每一約定事項具有多個關鍵字,而不同約定事項對應不同的權重;     以該關鍵字搜尋引擎比對該草擬契約文字檔與該契約範本以計算出每一約定事項的缺漏百分比;      以該類神經網路依據該些約定事項的缺漏百分比以及該些約定事項的權重計算該草擬契約文字檔的一風險程度;以及     以該類神經網路依據該風險程度與一參考風險程度之間的誤差對該類神經網路之多個權重進行修正。A contract risk assessment method, comprising: receiving a draft contract image file through an input interface; confirming the contract subject of the draft contract image file through the input interface; clicking the text of the draft contract image file through a color selection interface a first RGB value of a part; use the color selection interface to extract the range of the text part according to the first RGB value; use a capture circuit to read the RGB value of each pixel on the draft contract image file to form a first block, wherein the first block includes an area that conforms to the first RGB value; a pixel conversion circuit is used to convert the pixels in the first block that do not conform to the first RGB value into a second RGB value; a removing circuit is used to remove all pixels in the first block that conform to the second RGB value to form a second block; a character recognition circuit is used to trim, segment, and thin a single character through fonts , or extracting feature points to identify the text part in the second block to generate a draft contract text file; use the text recognition circuit to send the draft contract text file to a risk management host; execute with the risk management host a keyword search engine and a machine learning model, wherein the machine learning model is a type of neural network; using the keyword search engine to obtain a contract template with the same contract subject as the draft contract text file from a template server, the contract template There are different types of covenants. These covenants in this contract template include the rights of both parties, responsibilities of both parties, conditions of breach of contract, termination conditions, declarations and warranties of both parties, and confidentiality obligations. Each covenant has multiple keywords. , and different agreements correspond to different weights; Use the keyword search engine to compare the draft contract text file with the contract template to calculate the missing percentage of each contract; The percentage of gaps and the weights of the engagements to calculate a risk level of the draft contract document; and a plurality of weights to the neural network based on the error between the risk level and a reference risk level with the neural network Make corrections. 如請求項4所述之契約風險評估方法,其中該缺漏百分比為每一約定事項的關鍵字未出現於該草擬契約的數量相對於每一約定事項的全部關鍵字的數量的百分比,而該些約定事項的缺漏百分比分別與該些約定事項的權重之多個乘積之一總合為該草擬契約之風險程度。The contract risk assessment method as claimed in claim 4, wherein the missing percentage is the percentage of the number of keywords of each contract that do not appear in the draft contract relative to the number of all keywords of each contract, and the The sum of the percentages of omissions of the covenants and one of the products of the weights of the covenants is the risk level of the draft contract.
TW109131684A 2019-02-22 2019-02-22 Contract risk evaluation system and contract risk evaluation method TWI759861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109131684A TWI759861B (en) 2019-02-22 2019-02-22 Contract risk evaluation system and contract risk evaluation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109131684A TWI759861B (en) 2019-02-22 2019-02-22 Contract risk evaluation system and contract risk evaluation method

Publications (2)

Publication Number Publication Date
TW202101277A TW202101277A (en) 2021-01-01
TWI759861B true TWI759861B (en) 2022-04-01

Family

ID=75234691

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109131684A TWI759861B (en) 2019-02-22 2019-02-22 Contract risk evaluation system and contract risk evaluation method

Country Status (1)

Country Link
TW (1) TWI759861B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844337A (en) * 2016-12-30 2017-06-13 全民互联科技(天津)有限公司 A kind of contract lacks clause automatic scanning method and system
TWM558431U (en) * 2017-10-31 2018-04-11 國泰人壽保險股份有限公司 System for assessing contract quality
CN108399482A (en) * 2018-01-17 2018-08-14 阿里巴巴集团控股有限公司 Appraisal procedure, device and the electronic equipment of contract
WO2018170321A1 (en) * 2017-03-15 2018-09-20 Exari Group, Inc. Machine evaluation of contract terms
CN108830443A (en) * 2018-04-19 2018-11-16 出门问问信息科技有限公司 A kind of contract review method and device
CN109344382A (en) * 2018-10-23 2019-02-15 出门问问信息科技有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of audit contract

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844337A (en) * 2016-12-30 2017-06-13 全民互联科技(天津)有限公司 A kind of contract lacks clause automatic scanning method and system
WO2018170321A1 (en) * 2017-03-15 2018-09-20 Exari Group, Inc. Machine evaluation of contract terms
TWM558431U (en) * 2017-10-31 2018-04-11 國泰人壽保險股份有限公司 System for assessing contract quality
CN108399482A (en) * 2018-01-17 2018-08-14 阿里巴巴集团控股有限公司 Appraisal procedure, device and the electronic equipment of contract
CN108830443A (en) * 2018-04-19 2018-11-16 出门问问信息科技有限公司 A kind of contract review method and device
CN109344382A (en) * 2018-10-23 2019-02-15 出门问问信息科技有限公司 Method, apparatus, electronic equipment and the computer readable storage medium of audit contract

Also Published As

Publication number Publication date
TW202101277A (en) 2021-01-01

Similar Documents

Publication Publication Date Title
US8879846B2 (en) Systems, methods and computer program products for processing financial documents
US9342741B2 (en) Systems, methods and computer program products for determining document validity
CN110705952A (en) Contract auditing method and device
CN106504079A (en) A kind of composite type financial management method and its management platform
JP2019086984A (en) Computer and document identification method
CN115017272B (en) Intelligent verification method and device based on registration data
CN111126370A (en) OCR recognition result-based longest common substring automatic error correction method and system
JP2019191665A (en) Financial statements reading device, financial statements reading method and program
TWI759861B (en) Contract risk evaluation system and contract risk evaluation method
CN111242779B (en) Financial data characteristic selection and prediction method, device, equipment and storage medium
TWI708203B (en) Contract risk evaluation system and contract risk evaluation method
TWM579338U (en) Contract risk evaluation system
US11966970B2 (en) Method and system for performing income analysis from source documents
WO2022029874A1 (en) Data processing device, data processing method, and data processing program
JP2021093222A (en) Accounting processor, accounting processing system, method for accounting processing, and program
CN113837170A (en) Automatic auditing processing method, device and equipment for vehicle insurance claim settlement application
CN113435986A (en) Financial data management method
CN117015807A (en) Image analysis based document processing for inference of key-value pairs in non-fixed digital documents
TW202040482A (en) Maintenance request system, maintenance management system and methods
CN112001819A (en) Small-sized portable mistake and disorder prevention international trade contract scanning device and method
CN116664066B (en) Method and system for managing enterprise planning income and actual income
US12014576B2 (en) Systems and methods for capturing electronic signatures
US10664811B2 (en) Automated check encoding error resolution
JP6858420B1 (en) Accounting equipment, accounting systems, accounting methods and programs
US20230081511A1 (en) Systems and methods for improved payroll administration in a freelance workforce