Close this search box.

We are creating some awesome events for you. Kindly bear with us.

HKU Law and Technology Centre launches HKU AI Lawyer

Image Credits: HKU, Press Release

Recent advances in artificial intelligence (AI) and machine learning have great potentials to bring revolutionary changes to legal practice. AI can be used to draw insights from past judicial decisions to predict future outcomes. In the criminal justice system, one essential aspect is sentencing.

Much attention has been placed on how AI informs decisions about sentencing and how to use AI to assist people to obtain and make use of sentencing information. The HKU’s research team led by Professor Ben Kao of the Department of Computer Science and Professor Anne Cheung of the Faculty of Law has developed a Stage-1 model of HKU AI Lawyer – an AI-assisted sentencing predictor for the offence of trafficking in dangerous drugs in Hong Kong.

The sentencing predictor is capable of handling 8 types of commonly used dangerous drugs. Users need to only provide relevant information by responding to four simple questions, and the predictor will generate an estimated term of imprisonment with an explanation of the effect of individual selected features on the overall predicted sentence.

Another useful feature of the predictor is that it will at the same time show the links to court decisions that are relevant to the given facts.

A workshop was held on 18 May 2021 to introduce the HKU AI Lawyer and demonstrate its use. Mr Wilson Chan, Deputy Director of the Hong Kong Federation of Youth Groups, also shared how his organization benefits from the sentencing predictor.

The sentencing predictor is a pragmatic tool for professionals including lawyers, social workers and teachers to access relevant sentencing information of drug trafficking much quicker, thereby reducing their research time and cost. It also serves to inform the public of the likely legal consequences of committing drug trafficking offences.

The predictor is based on an innovative combination of legal domain knowledge and AI technologies. To make sentence predictions, the machine is trained to master two kinds of knowledge. The first kind includes the legal principles, sentencing guidelines, logical steps, and the salient factors that judges generally follow in determining a sentence.

For example, based on the types and weights of the drugs involved in a case, a judge would first determine a starting point of the sentence. The sentence is then adjusted based on relevant aggravating and mitigating factors. The machine was taught domain knowledge by legal experts.

The second kind of knowledge is statistical rules derived from historical judgments. Computer science experts use machine learning and natural language processing techniques to train the machine so that it possesses the intelligence to read and comprehend previous court judgments.

With references to more than 3,000 court judgments, the machine remembers and understands the relevant sentencing logic of the historical cases. This allows the machine to derive statistical rules on the quantitative elements when given a new case for which prediction is to be made, for example, given an aggravating factor, such as cross-border trafficking, the number of months of additional imprisonment that would likely be imposed.

In the next phase, subject to the availability of resources, the research team will apply AI technologies in other legal domains, including developing a personal injuries compensation predictor.

About HKU Law and Technology Centre

The Law and Technology Centre was established in 2001 by the Faculty of Law and the Department of Computer Science at the University of Hong Kong. The Centre provides public services in the interdisciplinary area of information technology and law and advances research into the relationship between information technology and law.

Through knowledge exchange and public engagement, it aims to translate its research output and legal knowledge into actions that exert positive impacts on industry, government and the public.


Qlik’s vision is a data-literate world, where everyone can use data and analytics to improve decision-making and solve their most challenging problems. A private company, Qlik offers real-time data integration and analytics solutions, powered by Qlik Cloud, to close the gaps between data, insights and action. By transforming data into Active Intelligence, businesses can drive better decisions, improve revenue and profitability, and optimize customer relationships. Qlik serves more than 38,000 active customers in over 100 countries.


As a Titanium Black Partner of Dell Technologies, CTC Global Singapore boasts unparalleled access to resources.

Established in 1972, we bring 52 years of experience to the table, solidifying our position as a leading IT solutions provider in Singapore. With over 300 qualified IT professionals, we are dedicated to delivering integrated solutions that empower your organization in key areas such as Automation & AI, Cyber Security, App Modernization & Data Analytics, Enterprise Cloud Infrastructure, Workplace Modernization and Professional Services.

Renowned for our consulting expertise and delivering expert IT solutions, CTC Global Singapore has become the preferred IT outsourcing partner for businesses across Singapore.


Planview has one mission: to build the future of connected work. Our solutions enable organizations to connect the business from ideas to impact, empowering companies to accelerate the achievement of what matters most. Planview’s full spectrum of Portfolio Management and Work Management solutions creates an organizational focus on the strategic outcomes that matter and empowers teams to deliver their best work, no matter how they work. The comprehensive Planview platform and enterprise success model enables customers to deliver innovative, competitive products, services, and customer experiences. Headquartered in Austin, Texas, with locations around the world, Planview has more than 1,300 employees supporting 4,500 customers and 2.6 million users worldwide. For more information, visit


SIRIM is a premier industrial research and technology organisation in Malaysia, wholly-owned by the Minister​ of Finance Incorporated. With over forty years of experience and expertise, SIRIM is mandated as the machinery for research and technology development, and the national champion of quality. SIRIM has always played a major role in the development of the country’s private sector. By tapping into our expertise and knowledge base, we focus on developing new technologies and improvements in the manufacturing, technology and services sectors. We nurture Small Medium Enterprises (SME) growth with solutions for technology penetration and upgrading, making it an ideal technology partner for SMEs.


HashiCorp provides infrastructure automation software for multi-cloud environments, enabling enterprises to unlock a common cloud operating model to provision, secure, connect, and run any application on any infrastructure. HashiCorp tools allow organizations to deliver applications faster by helping enterprises transition from manual processes and ITIL practices to self-service automation and DevOps practices. 


IBM is a leading global hybrid cloud and AI, and consulting services provider, helping clients in more than 175 countries capitalize on insights from their data, streamline business processes, reduce costs and gain the competitive edge in their industries. Nearly 3,800 government and corporate entities in critical infrastructure areas such as financial services, telecommunications and healthcare rely on IBM’s hybrid cloud platform and Red Hat OpenShift to affect their digital transformations quickly, efficiently, and securely. IBM’s breakthrough innovations in AI, quantum computing, industry-specific cloud solutions and business services deliver open and flexible options to our clients. All of this is backed by IBM’s legendary commitment to trust, transparency, responsibility, inclusivity, and service. For more information, visit