DOI QR코드

DOI QR Code

A Scalability Study with Nginx for Drools-Based Oriental Medical Expert System

Drools 기반 한방전문가 시스템의 Nginx를 이용한 확장성 연구

  • 장원용 (국민대학교 컴퓨터공학부) ;
  • 김태우 (국민대학교 컴퓨터공학부) ;
  • 차은채 (국민대학교 컴퓨터공학부) ;
  • 최은미 (국민대학교 소프트웨어학부)
  • Received : 2018.07.09
  • Accepted : 2018.08.23
  • Published : 2018.12.31

Abstract

This paper studies about the Oriental Medical Expert System, based on Open Source Drools for rule engine processing, which contains scalability, availability, and modifiability. The system is developed with the Spring MVC framework and Ajax for stable services of the Web-based Medical Expert System. The diagnosis and treatment process of this Medical Expert system provides a service that provides the general users to accesses the web with a series of questionnaires. In order to compensate for the asynchronous communication between clients and services, and also for the complicated JDBC weaknesses, we applied the data handling in JSON to reduce the servers' loads, and also the Mybatis framework to improve the performance of the RDBMS, respectively. In addition, as the number of users increases to cope with the maximum available services of the web-based system, the load balancing structure using Nginx has been developed to solve the server traffic problems and the service availability has been increased. The experimental results show the stable services by approving the scalability test.

본 논문은 웹 기반의 한방 전문가 시스템(Oriental Medical Expert System)에 대한 룰 기반 진단 프로세스를 제공하는 확장성, 가용성, 변경 가능성을 가진 시스템으로, 오픈 소스 Drools 기반으로 Spring MVC 프레임워크와 Ajax를 이용하여 구현하였다. 본 한방 전문가 시스템의 처리 프로세스는 일반 사용자가 웹으로 접근하여 설문을 작성한 후 기본적인 진단 및 평가를 제공하여 주는 서비스를 제공한다. 한방 전문가 시스템의 효율적인 운영을 위하여 클라이언트와 서버 간에 비동기적 통신으로 JSON 데이터를 주고받아 서버의 부담을 감소하였으며, 데이터베이스 접근은 기존의 복잡한 JDBC 단점을 보완하고자 Mybatis 프레임워크를 적용하여 RDBMS의 성능을 향상시켰다. 또한, 웹 기반의 장점을 최대한 활용하여 사용자 수가 늘어남에 따라 서버 트래픽 문제를 해결하기 위하여 Nginx를 이용한 로드밸런싱 구조를 구축하여 서비스의 가용성을 확대하였다. 연구 결과로 확장성 테스트를 통하여 서비스의 안정화에 대한 검증을 나타내었다.

Keywords

JBCRJM_2018_v7n12_497_f0001.png 이미지

Fig. 1. The Structure of Oriental Medical Expert System

JBCRJM_2018_v7n12_497_f0002.png 이미지

Fig. 2. The Distributed Server Architecture of Oriental Medical Expert System

JBCRJM_2018_v7n12_497_f0003.png 이미지

Fig. 3. The Object Serialization Source Code for Session Storage

JBCRJM_2018_v7n12_497_f0004.png 이미지

Fig. 4. An Automatic Login with Cookies and Session

JBCRJM_2018_v7n12_497_f0005.png 이미지

Fig. 5. The Internal Structure of Spring MVC

JBCRJM_2018_v7n12_497_f0006.png 이미지

Fig. 6. A Screen Snapshot of Sasang Constitution Diagnosis Questionnaires

JBCRJM_2018_v7n12_497_f0007.png 이미지

Fig. 7. A Oriental Medical Expert System Rule

JBCRJM_2018_v7n12_497_f0008.png 이미지

Fig. 8. The Oriental Medical Expert System Diagnosis UI

JBCRJM_2018_v7n12_497_f0009.png 이미지

Fig. 9. The Oriental Medical Expert System Result Screen

JBCRJM_2018_v7n12_497_f0010.png 이미지

Fig. 10. The Comparison of Scalability on One Server and Two Servers Distributed with Load Balancing

JBCRJM_2018_v7n12_497_f0011.png 이미지

Fig. 11. The Performance Comparison of Processing and Waiting Time Scalability

References

  1. Jong-won Heo, "Problems and Improvement Direction of Expert System Construction," Proceedings of the Korea Inteligent Information System Society Conference, pp.81-101, 1993.
  2. Il-Dae You, Sang-Ho Ha, In-Gook Chun, and Sang-Heum Park, "A Web Based Medical Expert System for Gastroenterology," Proceedings of the Korea Information Processing Society Conference, Vol.8, No.2, pp.575-578, 2001.
  3. Jin Sang Kim and Yang-Gyu, Shin, "A Study on Reasoning for Medical Expert Systems," Journal of the Korean Data & Information Science Society, Vol.10, No.2, pp.359-367, 1999.
  4. Kang Yoon Lee and Junhewk Kim, "Artificial Intelligence Technology Trends and IBM Watson References in the Medical Field," Korean Medical Education Review, Vol.18, No.2, pp.51-57, 2016. https://doi.org/10.17496/KMER.2016.18.2.51
  5. Sang Kyun Kim, Hyun Chul Jang, Jin Hyun Kim, Young Taek Oh, Chul Kim, Sang Jun Yea, and Mi Young Son, "Traditional Korean Medicine Diagnosis System Based on Basic Ontology," Korea Institute of Oriental Medicine, Journal of Physiology & Pathology in Korean Medicine, Vol.24, No.6. 2010.
  6. JBoss Developer [Internet], (2018, August 10), http://www.jboss.org/
  7. Jongmoon Park, Hyeong-Bae An, and Myung-Joon Lee, "A Toolkit for Generating Context-Aware Applications with JCAF and Drools," Korean Computer Congress 2012, Vol.39, No.1, pp.254-256, 2012.
  8. MyBatis 3 Introduction[Internet]. (2018, August 10). http://www.mybatis.org/mybatis-3/
  9. Basic HTTP server features[Internet]. (2018, August 10). https://nginx.org/en/
  10. Wonyong Jang, Yuna Choi, Seongsoo Yang, and Eunmi Choi, "Studying on a Medical Expert System Architecture and Process based on Drools," Proceedings of the Korea Information Processing Society Conference, Vol.24 No.2, 2017.
  11. Won-Boo Lee, "A Study of Comprehension and Usage of Expert Systems in Korean Industry," Journal of the Industrial Technology Research Institute, Vol.10, No.11, pp.91-101, 1997.
  12. Yeounoh Chung, Sungwoo Lee, and Jee-Hyong Lee, "Personalized Expert-Based Recommendation," Journal of Korean Institute of Intelligent Systems, Vol.23, No.11, pp.7-11, 2013.
  13. Yang Jongmo, "Prospect of the Legal Expert System," The Institute for Legal Studies, Inha University, Vol.19, No.2, pp.213-242, 2016.
  14. Seung-Jo Han, "Analysis of Relative Combat Power with Expert System," Journal of Digital Convergence, Vol.14, No. 6, pp.143-150, 2016. https://doi.org/10.14400/JDC.2016.14.6.143
  15. Jan Ruzicka, "Integrating DROOLS and R software for intelligent map system," Geoinformatics FCE CTU, Vol.7, pp.85-92, 2012. https://doi.org/10.14311/gi.7.7
  16. Seung Hoon Choi, "Development of Web-based Diagnosis Expert System of Traditional Oriental Medicine," Korean J. Oriental Physiology & Pathology, Vol.16, , No.3, pp.528-531, 2002.
  17. Wonyong Jang, Yuna Choi, Seongsoo Yang, and Eunmi Choi, "User Interface Design and Development based on Drools and JavaFX for a Medical Expert System," Proceedings of the Korea Information Processing Society Conference, Vol.24 No.2, pp.831-834, 2017.
  18. Young-Won Kim, Dong-Yoon Shin, Jeong-Ho Kim, Dae- Sung Choi, Mi-Kyung Lim, Kyung-Lo Lee, and Jeong-Mo Song, "A Development of the Two Step Questionnaire for the Sasang Constitution Diagnosis (TS-QSCD)," Journal of Sasang Constitutional Medicine, Vol.18, No.1, pp.75-90, 2006.
  19. Baek Seung-min, "(A) Study on Expert System," Master Thesis, Graduate School of Education Ewha Womans University, 1991.
  20. Pyoung-Woo Park, Min-Koo Kim, Hong-Seok Lim, Duk-Yong Yoon, and Seok-Won Lee, "A Comparative Study of Machine Learning Algorithms for Diagnosis of Ischemic Heart Disease," Journal of KIISE, Vol.45, No.04, pp.376-389, 2018. https://doi.org/10.5626/JOK.2018.45.4.376
  21. Hyuk Su Oh, "Development of the Expert System for Guiding Japanese Style Food Menu," Culinary Science and Hospitality Research, Vol.2, pp.149-167, 1996.
  22. Geun-Sik Jo, and Jong-Yoon Yang, "Ramp Activity Expert System for Scheduling and Co-ordination," Journal Of Advanced Navigation Technology, Vol.2, No.1, pp.61-67, 1998.
  23. Wonyong Jang, TaeWoo Kim, JunYeong Ryu, EunChae Cha, and Eunmi Choi, "Medical Expert System Development based on Drools, Ajax and Nginx," The 2018 Spring Conference of the KIPS, Vol.25, No.1, pp.433-436, 2018.
  24. Bassem S. Abu-Nasser, "Medical Expert Systems Survey," ssoar-ijeais, International Journal of Engineering and Information Systems, Vol.1, Issue 7, pp.218-224, Sept. 2017,