Smart Contract Generation Assisted by AI-Based Word Segmentation

In the last decade, blockchain smart contracts emerged as an automated, decentralized, traceable, and immutable medium of value exchange. Nevertheless, existing blockchain smart contracts are not compatible with legal contracts. The automatic execution of a legal contract written in natural language...

Full description

Bibliographic Details
Published in:Applied Sciences
Main Authors: Yu Tong, Weiming Tan, Jingzhi Guo, Bingqing Shen, Peng Qin, Shuaihe Zhuo
Format: Article
Language:English
Published: MDPI AG 2022-05-01
Subjects:
Online Access:https://www.mdpi.com/2076-3417/12/9/4773
_version_ 1850575564646121472
author Yu Tong
Weiming Tan
Jingzhi Guo
Bingqing Shen
Peng Qin
Shuaihe Zhuo
author_facet Yu Tong
Weiming Tan
Jingzhi Guo
Bingqing Shen
Peng Qin
Shuaihe Zhuo
author_sort Yu Tong
collection DOAJ
container_title Applied Sciences
description In the last decade, blockchain smart contracts emerged as an automated, decentralized, traceable, and immutable medium of value exchange. Nevertheless, existing blockchain smart contracts are not compatible with legal contracts. The automatic execution of a legal contract written in natural language is an open research question that can extend the blockchain ecosystem and inspire next-era business paradigms. In this paper, we propose an AI-assisted Smart Contract Generation (AIASCG) framework that allows contracting parties in heterogeneous contexts and different languages to collaboratively negotiate and draft the contract clauses. AIASCG provides a universal representation of contracts through the machine natural language (MNL) as the common understanding of the contract obligations. We compare the design of AIASCG with existing smart contract generation approaches to present its novelty. The main contribution of AIASCG is to address the issue in our previous proposed smart contract generation framework. For sentences written in natural language, existing framework requires editors to manually split sentences into words with semantic meaning. We propose an AI-based automatic word segmentation technique called Separation Inference (SpIn) to fulfill automatic split of the sentence. SpIn serves as the core component in AIASCG that accurately recommends the intermediate MNL outputs from a natural language sentence, tremendously reducing the manual effort in contract generation. SpIn is evaluated from a robustness and human satisfaction point of view to demonstrate its effectiveness. In the robustness evaluation, SpIn achieves state-of-the-art F1 scores and Recall of Out-of-Vocabulary (R_OOV) words on multiple word segmentation tasks. In addition, in the human evaluation, participants believe that 88.67% of sentences can be saved 80–100% of the time through automatic word segmentation.
format Article
id doaj-art-e1cd1ef2e8ac4e058a6eaac68a7eba37
institution Directory of Open Access Journals
issn 2076-3417
language English
publishDate 2022-05-01
publisher MDPI AG
record_format Article
spelling doaj-art-e1cd1ef2e8ac4e058a6eaac68a7eba372025-08-19T22:36:12ZengMDPI AGApplied Sciences2076-34172022-05-01129477310.3390/app12094773Smart Contract Generation Assisted by AI-Based Word SegmentationYu Tong0Weiming Tan1Jingzhi Guo2Bingqing Shen3Peng Qin4Shuaihe Zhuo5Department of Computer and Information Science, Faculty of Science and Technology, University of Macau, Macau 999078, ChinaDepartment of Computer and Information Science, Faculty of Science and Technology, University of Macau, Macau 999078, ChinaDepartment of Computer and Information Science, Faculty of Science and Technology, University of Macau, Macau 999078, ChinaSchool of Software, Shanghai Jiao Tong University, Shanghai 200240, ChinaDepartment of Computer and Information Science, Faculty of Science and Technology, University of Macau, Macau 999078, ChinaSchool of Business, Macau University of Science and Technology, Macau 999078, ChinaIn the last decade, blockchain smart contracts emerged as an automated, decentralized, traceable, and immutable medium of value exchange. Nevertheless, existing blockchain smart contracts are not compatible with legal contracts. The automatic execution of a legal contract written in natural language is an open research question that can extend the blockchain ecosystem and inspire next-era business paradigms. In this paper, we propose an AI-assisted Smart Contract Generation (AIASCG) framework that allows contracting parties in heterogeneous contexts and different languages to collaboratively negotiate and draft the contract clauses. AIASCG provides a universal representation of contracts through the machine natural language (MNL) as the common understanding of the contract obligations. We compare the design of AIASCG with existing smart contract generation approaches to present its novelty. The main contribution of AIASCG is to address the issue in our previous proposed smart contract generation framework. For sentences written in natural language, existing framework requires editors to manually split sentences into words with semantic meaning. We propose an AI-based automatic word segmentation technique called Separation Inference (SpIn) to fulfill automatic split of the sentence. SpIn serves as the core component in AIASCG that accurately recommends the intermediate MNL outputs from a natural language sentence, tremendously reducing the manual effort in contract generation. SpIn is evaluated from a robustness and human satisfaction point of view to demonstrate its effectiveness. In the robustness evaluation, SpIn achieves state-of-the-art F1 scores and Recall of Out-of-Vocabulary (R_OOV) words on multiple word segmentation tasks. In addition, in the human evaluation, participants believe that 88.67% of sentences can be saved 80–100% of the time through automatic word segmentation.https://www.mdpi.com/2076-3417/12/9/4773smart contractcollaborative draftingsemantic understandingautomatic word segmentation
spellingShingle Yu Tong
Weiming Tan
Jingzhi Guo
Bingqing Shen
Peng Qin
Shuaihe Zhuo
Smart Contract Generation Assisted by AI-Based Word Segmentation
smart contract
collaborative drafting
semantic understanding
automatic word segmentation
title Smart Contract Generation Assisted by AI-Based Word Segmentation
title_full Smart Contract Generation Assisted by AI-Based Word Segmentation
title_fullStr Smart Contract Generation Assisted by AI-Based Word Segmentation
title_full_unstemmed Smart Contract Generation Assisted by AI-Based Word Segmentation
title_short Smart Contract Generation Assisted by AI-Based Word Segmentation
title_sort smart contract generation assisted by ai based word segmentation
topic smart contract
collaborative drafting
semantic understanding
automatic word segmentation
url https://www.mdpi.com/2076-3417/12/9/4773
work_keys_str_mv AT yutong smartcontractgenerationassistedbyaibasedwordsegmentation
AT weimingtan smartcontractgenerationassistedbyaibasedwordsegmentation
AT jingzhiguo smartcontractgenerationassistedbyaibasedwordsegmentation
AT bingqingshen smartcontractgenerationassistedbyaibasedwordsegmentation
AT pengqin smartcontractgenerationassistedbyaibasedwordsegmentation
AT shuaihezhuo smartcontractgenerationassistedbyaibasedwordsegmentation