Abstract

Background. β-thalassemia is an inherited blood disorder that affects the production of hemoglobin molecules owing to the reduction or absence of beta chains. Transfusion therapy has had a key role in extending the lifespan of β-thalassemia patients. This life-saving therapy is linked to numerous assessments and complications that now comprise most thalassemia management considerations. Consequently, many patients do not receive adequate information about the required assessments, as indicated by evidence-based medical guidelines. Patients with β-thalassemia may benefit from chatbots that follow up on their condition and that provide the required assessment information. Self-management will hopefully have a positive impact on health outcomes. Objectives. This study aims to develop a chatbot that can assist in the management of β-thalassemia by providing the assessment information required to monitor patients’ statuses. Methods. The chatbot operated as a messaging system. A question/answer system was created based on knowledge pertaining to β-thalassemia assembled from experts, medical guidelines, and articles. Recommendations regarding the patient’s follow-up assessment are made based on the answers. Results. A prototype was implemented to demonstrate how the chatbots could dynamically and flexibly provide the assessment information required to follow up on and monitor patients. A small sample of adults with β-thalassemia used the chatbot to examine the system’s usability and perceived utility. A system usability scale and utility scale were implemented to complete a post-test survey. The chatbots were considered by 34 patients, of whom the majority (72%) found them easy to use, while more than 90% of patients considered their use beneficial. Most of the participants agreed that the chatbots could improve their knowledge about their β-thalassemia assessments. Conclusion. Our findings suggest that chatbots can be beneficial to the development of recommended tests and management related to the assessment of β-thalassemia.

1. Introduction

β-thalassemia is one of the two most common inherited blood disorders that affect the production of hemoglobin molecules. Hemoglobin molecules are composed of two beta chains and two alpha chains; the reduced synthesis (β+) or absence (βo) of the chain β-globin in the HbA molecule is characterized by β-thalassemia [1]. Recent statistics reveal that 7% of the world’s population has been diagnosed with hemoglobin disorders, and more than 50,000 children die from thalassemia major every year [2]. Hemoglobin disorders are worldwide compared with other monogenic disorders [3].

Transfusion therapy has had a key role in extending the lifespan of a patient with β-thalassemia. This life-saving therapy is linked to numerous assessments and complications, which now comprise most thalassemia management considerations. Consequently, many patients do not receive adequate information about the required assessments, as outlined by evidence-based guidelines. Moreover, healthcare systems that are efficient must have accessibility and availability [4]. Thus, a patient with β-thalassemia may benefit from chatbots that follow up on their condition and provide the requisite assessment information. A chatbot is a software system with an interactive interface that can be utilized by patients or physicians to provide personalized, real-time feedback and to complete various tasks with the aim of obtaining knowledge [5]. Chatbots function as virtual conversational agents that imitate human interactions and could provide direct and cost-effective medical advice to patients to increase their knowledge about the required assessments and tests that will hopefully have a positive impact on their health outcomes.

Rule-based systems have been involved in decision support, management, and accurate diagnosis of β-thalassemia. Hasseini Eshphala et al. [6] reported the use of an artificial neutral network, which is a computational model that uses complex calculation to diagnose patients with β-thalassemia and iron deficiency anemia. Banjar et al. [7] also designed a web-based expert system to manage β-thalassemia, focusing on treatment recommendations. Their approach has gained attention [810], and experiments have been performed on not only β-thalassemia but also other disorders and diseases using rule-based expert systems that have yielded positive results. As a web-based expert system [7], chatbots offer distinct advantages when responding to well-defined questions, thus providing a convenient and reliable approach to implementing question/answer systems in knowledge-focused fields, such as the medical field. Xiangmin et al. [4] aimed to create a chatbot that would allow patients of any disease to self-diagnose. The authors applied a data-driven method to investigate the system log of DoctorBot collected between September 2018 and March 2019 to better understand how self-diagnosis chatbots are employed in the real world. During six months, 16,519 users initiated 47,684 consultation sessions. A session identification (ID), the user’s general information, consultation details, and a diagnostic report automatically generated by the chatbot once the consultation was concluded, and user input were included in each consultation session’s log. All these studies have involved rule-based expert systems in diagnosing or managing disorders and diseases. One study utilized a web-based expert system to manage β-thalassemia [7], a second study employed an artificial neutral network to diagnose patients with β-thalassemia [6], and another study used a chatbot to diagnose users with various diseases and disorders [4]. None of the above studies used chatbots to assist with the care of β-thalassemia patients by providing the assessment information needed to keep track of their progress, which is the aim of this research. This study aims to develop a chatbot that can assist in the self-management of β-thalassemia by providing personalized, real-time feedback and in various tasks aimed at obtaining the assessment information required to monitor patients’ statuses.

2. Methods

2.1. Framework Overview of Expert System Using Chatbot

The rule-based expert system, as shown in Figure 1, includes a β-thalassemia knowledge base, inference engine, knowledge engineer, and user interface. The knowledge base comprises three subphases: knowledge acquisition, knowledge representation, and knowledge verification. The inference engine simulated the interaction between the patients and the proposed chatbot and applied information about the management of β-thalassemia to identify the matching answers from inputs and collected knowledge in the knowledge base. A knowledge engineer is both an expert in knowledge engineering and a scientist who builds advanced logic on computer systems to simulate high-level, human cognitive decisions and tasks. The user interface was deployed to establish questions and present feedback. The framework used the waterfall model, whereby all requirements are collected in a knowledge base; the system design is represented in the form of questions and answers; and the implementation of the prototype is completed and sent to users for evaluation.

2.2. Rule-Based Chatbot

A chatbot is a computer program that is designed to communicate or converse with human users via the internet. Although most chatbots currently conduct simple dialogs, in which a customer asks one or more questions, certain domains require a more sustained dialog. The expertise contained in the knowledge base was utilized to address the problem of self-management in β-thalassemia and to generate recommendations on the required assessments and tests. The chatbot types are natural language processing (NLP)-based and rule-based. Typically, chatbots are rule-based, limited software systems with categories that automate human interactions [11]. Chatbots are easy to build and track in a certain predefined stream. Pre-set rules are established for communication. To receive an answer, the user input must conform to the predefined rules. Therefore, the rule-based chatbot is selected in this research. The rules are divided into two parts: If parts and Then parts. The If part is constructed in the questions and the user answers, while the Then part is automatically constructed as a recommendation from the collected knowledge.

2.2.1. Knowledge acquisition

Knowledge about β-thalassemia management was gathered from documented and undocumented sources: human experts, books, and guidelines. First, a hematologist from King Abdulaziz University Hospital was interviewed about the general procedures performed to diagnose and treat β-thalassemia patients. Second, several medical books [12, 13] were selected to collect general information about the disease. Last, two guidelines were applied to gather information about the assessments and to monitor the patients: the clinical care of patients with thalassemia in Canada [14] and the management of transfusion-dependent thalassemia [15]. The knowledge gathered includes symptoms of β-thalassemia, categories of β-thalassemia, evaluation and required assessment, and abnormal test results, such as iron overload, low mean corpuscular volume (MCV), low mean corpuscular hemoglobin (MCH), and low hemoglobin (Hb) levels compared with normal test results.

2.2.2. Knowledge Representation

The visual modeling approach is intended to enable the user to visualize and manipulate real-world issues using graphs. After the necessary information about β-thalassemia had been gathered, it was represented in the semantic network representation [16]. The figures present the knowledge represented as semantic network graphs using visual modeling techniques. These graphs are the final source of information needed to operate the question/answer system in the chatbot.

2.2.3. Knowledge Verification

Two human experts examined the knowledge base and provided feedback. In response, some knowledge concerning β-thalassemia was corrected and developed in the correct form.

2.3. Development of the Chatbot

The collected knowledge was converted to a question/answer format to construct the chatbot. The chatbot-based expert system was built using Landbot [17], which uses approximately 50 products and services in technology, including the G2 Stack, HTML5, Google Analytics, and jQuery. Landbot uses website navigation tools with a familiar rich-text interface. First, possible questions and answers are listed in the knowledge base, as described in Table 1. The user should select from the dropdown list to answer a question. A feedback message occurs if the user writes his/her answer in the textbox. Second, the chatbot’s semantic network is constructed in the Landbot workspace. Third, the knowledge engineer selected a suitable tool from the list to build the conversation: send a message, ask questions, follow operations, integration, power-ups, and bricks. Most of the chatbot questions were created using the “ask question” tool. Several components, including names, date, text, and buttons, are used. Last, the chatbot is published, and the initial draft can be customized using settings to provide greater flexibility in the interface design.

The chatbot was operated and targeted toward patients to manage their test results and to remind them of their β-thalassemia follow-up assessment in the form of messages. The chatbot provided questions with answer choices to be used by the patients. After the patients choose an answer, the chatbot comments based on their answer and continues the conversation.

2.4. Testing

Testing is a process used to evaluate the chatbot’s functionality, with the intention of minimizing the risk that a problem will arise during its operation. Testing is also performed to determine whether the system meets the specified requirements. First, the chatbot should be easy to use, accessible, and understandable. Second, unambiguous instructions should be provided. Last, the chatbot should be designed to be compatible with any platform.

There are two major software-testing techniques: a static testing and dynamic testing [18]. Each of these methods is appropriate for detecting a certain form of error on the chatbot. First, a static testing is a technique that is used to check defects in software application without executing the code. Static testing is conducted to prevent mistakes at an early stage of development when they are easier to detect and correct. We performed a walkthrough for static testing. Second, dynamic testing is a form of software testing that takes place in an environment where the code is performed. This method of testing is used to verify the software’s functional behavior and to ensure that it satisfies the user’s needs and specifications. The validation process of software verification is known as dynamic checking. To check compliance with the user’s needs and specifications, we created several questions in Arabic language, which are translated to into English, evaluate the chatbot with real patients. The patients will be asked to complete certain tasks and identify any problems or confusion they experience. During a typical evaluation, participants try to complete typical tasks while observers watch, listen, and take notes. The aim is to detect any usability issues and to assess participant satisfaction with the chatbot. A Google form was chosen to implement a survey distributed among β-thalassemia patients. The questions seek feedback on the patients’ use of the chatbot as follows: (i)Did you know about check-up times before you used the chatbot or did you learn about them from the chatbot?(ii)Did you know the required blood tests assessment time before you used the chatbot, or did you learn about it from the chatbot?(iii)Did you know the normal range of blood test results before you used the chatbot, or did you learn it from the chatbot?(iv)Is this chatbot easy to use?(v)Does the chatbot make β-thalassemia easier to manage?(vi)Do you think managing β-thalassemia will be more efficient with this chatbot?(vii)Do you think easy access to chatbots will save you time and money compared with visiting health care providers?(viii)Do you prefer to visit health care providers from time to time to obtain information about the required tests during appointments or do you prefer using a chatbot at home to access this information?

3. Results

3.1. Testing results

Table 2 includes a live chat scenario to test the functional requirement of the chatbot.

To test user satisfaction with the user’s needs and specifications, survey responses were received from 34 patients, of whom 72.7% agreed that the chatbot was user-friendly. This result indicates that most patients experienced no difficulty in communicating with the chatbot. Moreover, 82.4% of the patients agreed that the ease of use and accessibility of the chatbot could save them the time and money that they usually spend on hospital visits, 90.9% of the patients agreed that the chatbot made managing β-thalassemia easier, and 82.4% of the patients believed that the chatbot would enable more efficient management of β-thalassemia. All the above statements support this study’s hypothesis: the chatbot is user-friendly, accessible, and affordable and makes managing β-thalassemia easier and more efficient. Furthermore, 26.5% of the patients reported having learned the timetable for their follow-up assessments from the chatbot, 20.6% of the patients reported having learned the timetable for their blood tests, and 24.2% of the patients learned their normal blood test results from the chatbot. Although these percentages are low, the network representations and tables of follow-up assessments and blood tests benefited several patients and may support them in the long term. Additionally, 32.4% of the patients prefer to access the chatbot at home rather than attending hospital appointments. Hospital visits can be uncomfortable for certain patients, and such patients may prefer accessing chatbots in their own homes.

3.2. Knowledge Base Representation

β-thalassemia patients required several follow-up tests in monthly, three-monthly, biannual, and annual assessments. These assessments were represented in the semantic network representations, as shown in Figures 26, and were integrated in the chatbot to display personal feedback. The flowchart will be displayed based on a patient’s query. For example, consider that the patient’s answer in the chatbot indicates that he/she did not complete the Ferritin test. The chatbot will recommend performing the Ferritin test and display the flowchart that summarizes the Ferritin assessment due in months.

3.3. Prototype Implementation

The chatbot-based expert system helps β-thalassemia patients understand what medical tests are necessary without face-to-face contact. The chatbot may be accessed via the following link: https://chats.landbot.io/v3/H-947072-772QZJR6XMJAGCJW/index.html. The link is to a site that shows a chatbot-based expert system for β-thalassemia that will answer patients’ questions, perform personal assessment, and provide appropriate recommendations regarding the required tests. This information is provided in accordance with the guidelines used to construct the knowledge base. Figure 7 shows a screenshot of the conversation between the chatbot and the user.

4. Discussion

The chatbot-based expert system for β-thalassemia management supports the perspective on health quality that aims to address patient safety and efficacy and to promote patient confidentiality and timeliness of care [19]. The chatbot recommends precise timing for required tests and assessments, which can assist in improving health outcomes and reduce the number of patient visits with health care providers for examination. The chatbots’ efficacy was evaluated in accordance with medical practice guidelines. Patients may disclose more information to chatbots than to health care providers. The chatbots save time for both patients and health care providers by answering the most frequently asked questions. Patients can receive personalized recommendations without needing to visit their health care providers. Thus, a rule-based chatbot can help β-thalassemia patients better manage their own health by accessing appropriate information about the required tests and assessments. Although chatbots cannot effectively provide care according to the full extent of patients’ needs, they can at least provide detailed clarification regarding patient assessments and recommend the required tests. This work can be integrated with the work published by Banjar et al. [7] to support β-thalassemia patients. The goal of this work was to develop a web-based expert system for β-thalassemia management that will provide treatment recommendations and support patients’ long-term care.

5. Conclusion

In this study, a chatbot-based expert system was implemented to help β-thalassemia patients self-manage their health. The subphases involved in building a knowledge base comprise knowledge acquisition, knowledge representation, and verification. The chatbot design and medical knowledge were employed to implement the chatbot. The usability test highlighted the ease and benefits of using the chatbot. Most participants agreed that the chatbot could support them by providing the necessary information about their assessments and tests. We anticipate that chatbot technology has considerable potential to have a greater role in the medical field in the future. Our chatbot-based expert system will be expanded in a subsequent study to cover all medical complications associated with thalassemia, such as iron overload and splenomegaly, to provide the services that patients require.

Data Availability

The data that support the findings of this study are available on request from the corresponding author. The data are not publicly available due to privacy or ethical restrictions.

Conflicts of Interest

The authors declare no conflict of interest.

Acknowledgments

This research was supported by the King Abdulaziz and His Companions Foundation for Giftedness and Creativity (Mawhiba). The first author also thanks the research supervisors who provided insight and expertise that greatly advanced the research, although they may not agree with all of the interpretations of this paper.