Git Product home page Git Product logo

nslab-cuk / literalkg Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 60.72 MB

LiteralKG is a novel Attributed Knowledge Graph Embedding Model developed by NS Lab @ CUK based on pure PyTorch backend.

Home Page: https://nslab-cuk.github.io/2023/08/30/LiteralKG/

License: MIT License

Python 99.99% Batchfile 0.01%
knowledge-graph-embedding diagnostics disease-prediction graph-neural-networks knowledge-graph medical-knowledge-graph companion-animals

literalkg's Introduction

LiteralKG

LiteralKG, a novel Knowledge Graph Embedding Model, specialises in fusing different types of Literal information and entity relations into unified representations, which benefit companion animal disease prediction. LiteralKG is developed by NS Lab, CUK based on pure PyTorch backend.

Python pytorch

1. Overview

Over the past few years, Knowledge Graph (KG) embedding has been used to benefit the diagnosis of animal diseases by analyzing electronic medical records (EMRs), such as notes and veterinary records. However, learning representations to capture entities and relations with literal information in KGs is challenging as the KGs show heterogeneous properties and various types of literal information. Meanwhile, the existing methods mainly aim to preserve graph structures surrounding target nodes without considering different types of literals, which could also carry significant information. We propose LiteralKG, a knowledge graph embedding model for the efficient diagnosis of animal diseases, which could learn various types of literal information and graph structure and fuse them into unified representations. We construct a knowledge graph that is built from EMRs along with literal information collected from various animal hospitals. We then fuse different types of entities and node feature information into unified vector representations through gate networks. Finally, we propose a self-supervised learning task to learn graph structure in pretext tasks and then towards various downstream tasks. Experimental results on link prediction tasks demonstrate that our model outperforms the baselines that consist of state-of-the-art models.


LiteralKG Architecture
The overall architecture of LiteralKG.

2. Reproducibility

Setup environment for running:

  • Running: python -m venv LiteralKG

Connect to the environment:

  • On window OS run: env.bat
  • On linux OS or MAC OS run: source image/bin/activate

Install pip packages:

pip install -r requirements.txt

To build model:

  • Running python main.py

There are large attribute features (.pickle files) that can be downloaded at here

3. Reference

๐Ÿ“ƒ Paper

  • DOI
  • arXiv

๐Ÿ“ Blog on Network Science Lab

  • Web

4. Citing LiteralKG

Please cite our paper if you find Literal useful in your work:

@Article{Hoang2023,
  author  = {Van Thuy Hoang and Thanh Sang Nguyen and Sangmyeong Lee and Jooho Lee and Luong Vuong Nguyen and O-Joun Lee},
  title   = {Companion Animal Disease Diagnostics Based on Literal-Aware Medical Knowledge Graph Representation Learning},
  journal = {IEEE Access},
  year    = {2023},
  volume  = {11},
  pages   = {114238--114249},
  month   = oct,
  issn    = {2169-3536},
  doi     = {10.1109/ACCESS.2023.3324046},
}

5. Contributors




literalkg's People

Contributors

hoangvanthuy90 avatar nguyenthanhsang99 avatar nslab-cuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

o-jounlee

literalkg's Issues

Where is the index.py?

I followed the readme file and try to run your project, but there is no file named index.py.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.