COVID-19 advising application development for Apple devices (iOS)

One of humanity’s most devastating health crises was COVID-19. Billions of people suffered during this pandemic. In comparison with previous global pandemics that have been faced by the world before, societies were more accurate with the technical support system during this natural disaster. The intersection of data from healthcare units and the analysis of this data into various sophisticated systems were critical factors. Different healthcare units have taken special consideration to advance technical inputs to fight against such situations. The field of natural language processing (NLP) has dramatically supported this. Despite the primitive methods for monitoring the bio-metric factors of a person, the use of cognitive science has emerged as one of the most critical features during this pandemic era. One of the essential features is the potential to understand the data based on various texts and user inputs. The deployment of various NLP systems is one of the most challenging factors in handling the bulk amount of data flowing from multiple sources. This study focused on developing a powerful application to advise patients suffering from ailments related to COVID-19. The use of NLP refers to facilitating a user to identify the present critical situation and make necessary decisions while getting infected. This article also summarises the challenges associated with NLP and its usage for future NLP-based applications focusing on healthcare units. There are a couple of applications that reside for android-based systems as well as web-based chat-bot systems. In terms of security and safety, application development for iOS is more advanced. This study also explains the block meant of an application for advising COVID-19 infection. A natural language processing powered application for an iOS operating system is indeed one of its kind, which will help people who need to advise proper guidance. The article also portrays NLP-based application development for healthcare problems associated with personal reporting systems.


INTRODUCTION
The global pandemic outbreak emphasized the need for developing healthcare systems with the help of technology that can be helpful for humanity. The pressure on the public and healthcare system during the worldwide pandemic was very high (Legido-Quigley et al., 2020). Because of this, the healthcare units were about to collapse to provide better services to all the patients. Humanity suffered greatly due to the unavailability of medical resources and proper guidance during the global pandemic. The large scale of data remains to be available and analyzed during this period. Various innovative technologies exist. However, the use of technology was not in existence. The power of artificial intelligence (AI) came into the picture for the larger-scale data collected by the patients. The author expected the improvement of the public health system to occur with the help of these technologies driven by AI (DeSalvo et al., 2017). A subset of artificial intelligence technology is natural language processing. It resembles the analysis of large-scale datasets comprising texts collected from various channels. The electronic records from multiple hospitals, healthcare workers, small-scale dispensaries, medical literature, and social media sites. The information flowing from these locations is critical in discovering various factors related to COVID-19 patients (John, 2020). The global pandemic levers a lot of Information about various people's health conditions (Venkatakrishnan et al., 2021).
Analyzing these conditions is a must to handle the global vaccination process and develop proper drugs. One of the critical use cases of NLP is to identify a person's symptoms and handle the situation accordingly. Khan & Albatein (2021) presented one of the fascinating models in which the authors constructed a WhatsApp advising bot. The application was able to take user responses with the help of NLP. Yet another compelling use case of NLP in healthcare applications relates to the sentiment analysis of the user. If a person faces health issues, his responses and replies relate to the psychological and sentimental state of mind. The analysis of these states is one of the influential factors that can lead to various suggested behaviors during the COVID-19 pandemic and such situations that might arrive soon. The application of NLP is a real-time analysis that the application can do to potential data flowing from various places. Once the data is connected, it can be analyzed to identify the associated problems and the probable solutions the author can create for this information (Yan et al., 2021). There are several data sources that the application can use for the identification of Information. Data flowed from these places across the pipelines and was analyzed with the power of natural language processing as shown in Fig. 1 below.
Many researchers and technocrats across the cross-domain of artificial intelligence and natural language processing addressed various topics. Some studies also present reviews related to using NLP (Guo et al., 2021;Chen & Liao, 2011;Hallak et al., 2020;Chatterjee et al., 2021). The AI-based methods empower various technical solutions for healthcare units.
The analysis of the data collected by the COVID-19 pandemic inputs from various sources, as shown in Fig. 1 above, is done with the help of NLP. Critical information from social media focusing on the sentiment analysis of human behavior reveals that an infected person needs an immediate response from healthcare facilities (Nham & Hong, 2022). Several deep learning applications were created and developed in the recent past (Shorten & Furht, 2021;Lalmuanawma & Lalrinfela, 2020;Islam et al., 2021;De Felice & Polimeni, 2020;Inés et al., 2021). The pre-trained NLP model discussed by various authors in several studies is of great importance. This study focused primarily on developing a COVID-19 advising application for iOS devices. Leswing (2020) reflects the fact that various applications have been rejected due to inconsistent behavior. Figure 2 above shows some of the use cases that NLP uses to collect data from various resources. The data for the healthcare units is usually collected from the health records of the hospitals. There are several Internet of Things (IoT) based devices also which stream the biometric data for the patients across various cognitive cloud services. The research based data from various nations are collected for medical situations and development of vaccines/medicines relative to an ailment via dashboards. It is also possible to collect data from various experimental research that is conducted by several medical and healthcare units.
The application is unique in the functionalities as specified in the abstract. Several applications are available across the App-store which focus on the COVID-19 support system. However there is a difference between the applications that are available and the proposed app. Several applications like Tawakkalna (Saudi Arabia) (https: //ta.sdaia.gov.sa/en/index), WHO COVID-19 dashboard (https://covid19.who.int/), West Hills College district COVID-19 dashboard (https://westhillscollege.com/covid19/), etc. provides several features. But the unique feature proposed in this application are personal assistance for a patient. The app presented in the study uses ML and NLP to suggest users about their ailments. However this is found missing in all other similar applications hosted on the App-Store. However, the research focus in this article makes use of NLP to advise a user at a time when implicit help is required. Section 2 discussed various methods by which data from several healthcare units can be accessed. Section 3 describes the development of a model used by the machine learning packages offered by various agencies in the development. Section 4 describes the results and the use of NLP to handle and study the behavior of humans during ill conditions of health. The prediction systems consider various inputs, but the advising Application developed for iOS-based devices in this study focuses on the initial level of advising for a patient. This research focuses on the urgent situation in which a person suffering from an infection expects primary first aid and medicinal guidance. 1. Motivation: the mitigation for this research came from the fact that there are no applications for COVID-19 advice in the Apple Store. The authoring authorities have restricted several applications due to the occurrences of viruses or malicious codes in the application. The restriction is emphasized on the applications leading to the availability of real-time advisory/suggestive apps. The use of NLP in applications is increasing in all sectors. The development of applications empowered with artificial intelligence and NLP technology makes it possible for the healthcare unit to analyze a person's health conditions. This study can use the collection of data in the form of electronic health records (EHR) and patient biometric information to treat health conditions (Topol, 2019). The main motivation is to empower the use of NLP and produce an application that can be used as an advisory companion for a person suffering from an infection. 2. Significance: the application supported in this research is accurate and of immense importance for the healthcare unit and the medical facilities across various countries.
In the beginning stage of the application development, emphasis is given to developing the app for Saudi Arabia. However, the higher versions of the application are soon expected to be submitted over the global continents. The application eligibility to handle a patient's health condition is one of the critical factors that lead to the significant achievement of the research (Locke et al., 2021). 3. Contribution: the key contributions that are expected to come out of this research are as below: • Designing an application for advising for COVID-19 infected patients.
• Use of NLP to identify a patient's condition and provide suggestive advice.
• Collecting data sets from different persons related to their health conditions.
• Analysis of the data collected from these patients to help the production of vaccination and other medical diagnostics.
• Effectively use technology for handling critical conditions for patients undergoing an infection.

NLP FOR ELECTRONIC HEALTH RECORDS
Scientists worldwide have found that to treat the diagnosis of a virus infection, and the prime requirement is the collection of Information related to the symptoms of various patients suffering from the infection. The adoption of health records produces a large volume of data for clinical research (Neuraz et al., 2020). A considerable amount of information is enough for analysis by the human investigator. However, the bulk amount of data from various healthcare and scientific research units is different from human intervention (Hall, Chang & Jayne, 2022). The role of NLP applications in such situations is very prompt and extensive. The collection of information from clinical data sources with the help of various sophisticated mechanisms is straightforward these days (Ohno-Machado, 2011).
The medical literature and social media posts can be recognized and analyzed for further investigation across multiple pandemic states. Machine learning has also emerged as one of the most powerful technologies for handling data and analyzing Information for various healthcare units. The biometric factors of people suffering from an ailment can be collected in real-time and monitored very closely. Almalki et al. (2022) proposed a unique model that empowered edge computing in Association with blockchain networks to handle huge amounts of data. The cloud application provided the backbone of the company's computational unit, and system passed on the Information to the decentralized peer to peer (P2P) network.
Using the clinical data collected with the help of NLP-based models can be done with various tools. There is an opportunity to develop such models during this global pandemic era (Ching et al., 2017). The main applicability of the data collected from multiple clinical sources relates to sentiment analysis and clinical diagnostics for any patient. For any disease domain, using NLP-based models can be of immense help. The diagnostics become fairly simple and effective after using cognitive services from various organizations. The expected knowledge from these ML models empowers the developers to create powerful applications to structure the learning. Self-reported Information from multiple patients and individuals in various formats such as audio, video, texts, tweets, blogs, etc. Barr, Ryan & Jacobson (2021) is critical to analyze the situation and probable symptoms of the disease. The phenotypes that are created after analysis of the Information submitted by the patient in the form of text can be used by various NLP models to handle the situation (Barr, Ryan & Jacobson, 2021). The collection of information is pretty simple with the help of technology. The analysis becomes eligible with the help of the NLP tools (Schöning et al., 2021). Various NLP models categorize the information into several levels of security Table 1. Below represents several NLP models that are used for handling the data from the records to predict the health status of a patient.
Depending upon the level of security as per the input given by the patient, the diagnostic can be done relatively simply. The NLP model is constructed for collecting data for COVID-19 symptoms, identifying the severity, and testing the diagnosis made by the healthcare professional (Wang et al., 2021). The data sets of these ML models can be further recycled to develop more sophisticated NLP systems. A combination of the two technologies empowers the prediction of the ailment a patient can be suffering from probably (Lybarger et al., 2021). The summary of the information available from various healthcare facilities related to the entire diagnosis of a patient ailment can also be treated as one of the most important inputs towards any NLP model (Prada Muñoz & Sutta Serrano, 2021). A further improvement in the diagnostic procedure for such ailments with similar symptoms can be repeated depending upon the medical practitioner's guidance. Identifying any infection can have further clinical trials or expensive laboratory-related surveillance methods.
It can bypass directly providing proper treatment and starting the healing procedure without delays. With the various improvement in the technology and NLP techniques, the real-time self-reporting fall various symptoms of COVID-19, along with the extraction of accurate information results, can be concluded (Chapman et al., 2020). The prediction power of the application can be improved and modified related to the inputs collected from various individual users or healthcare facilities (Chapman et al., 2020). The information collected from these facilities can be further investigated and analyzed at various research labs to manufacturing proper vaccination or drugs that can reduce the disease severity. Several issues are also considered in the information received from various health sources, including mental health hazards (Fernandes et al., 2021). The privacy concern for individual information is of the utmost priority. However, Alangari et al. (2022) suggested a secure method for maintaining privacy with the help of blockchain networks. The data can be submitted to more secure channels to avoid any privacy hindrance to an individual patient. Several other models to maintain a patient's privacy and handle the notes related to the diagnosis by a medical practitioner make use of NLP technology as well.

DEVELOPMENT OF THE NLP MODEL FOR THE IOS APPLICATION
The application development suggested in this research focuses entirely on the use of technologies and frameworks suggested by iOS development. The development has been completely done with the help of NLP techniques originating from the natural language Toolkit of Apple. In this research, the Application is created with the help of the Core ML 3 framework. Several exciting techniques for language processing can be done with the help of the framework. Furthermore, various predefined ML models are supported by this framework to make the development procedure very easy and effective as shown in Fig. 3.

Requirements for the development
1. XCode: the development environment for designing IOS applications is Xcode. It is not an integrated development environment in which predefined libraries for development are available. For developing the application in this study, Xcode version 14.2 is used. 2. Tokenization: the application works in two stages in which the user input is taken, and they are tokenized with the help of the machine learning (ML) libraries for NLP. The tokenization procedure breaks the peace of text into meaningful information or raw units. These units are broken depending on the sentence length submitted by the user. Then, the tokenized import is split into various fragments and stored as an array. 3. NLTokenizer: the natural language library provided by the Core ML3 package for identifying the Information submitted by the user in the form of text language is called NLTokenizer. The raw sentences are passed to this class, where it is further processed and split into various tokens. Then, these tokens are analyzed for the user answers and based on the inputs, and the Information is segregated. 4. Lemmatization: it is a procedure in which the raw input given by the user is trained and passed through various input parameters and processed for normalization. The normalization takes place to make meaningful words out of the different formats given as input by the user. The user may probably make smaller smelling mistakes or tense problems that the system can resolve in this stage. In developing the application for this research, we use the NLTagger class to identify the English word's lemma. All the named entities are recognized, and the speech is tagged for further analysis by the application. 5. Localization: the language localization for the application is also possible with the help of the NLP package available in the core ML3 libraries. But at this point, we focus mainly on the English version of the application irrespective of the geographical localization. The application is expected to replicate various demography depending upon the popularity and usage across the countries. The use of NLLanguageRecognizer from the language Toolkit will be motivated for that cause.
The suggested model in this study works in several stages, as shown in the Fig. 4. First, the user gives the initial inputs. These inputs are based on various questions the application will ask the user. These questions will have a workflow dependent upon the ML model used in this application development. Once the application service takes all the inputs from the user, the user will send them to the ML language analysis framework. This framework is available along with the Core ML3 framework given by the eye development environment. The libraries and functions used for this development comprised two major stages. Tokenization and lemmatization take place at this level, and the final information, broken up into different fragments, is sent to the analysis engine. Depending upon the answers given by the user, the analysis engine decides the similarity of the disease a patient is suffering from. In the case of this application, the questions asked at the initial user input level of the application tend to identify the condition of a user while he is undergoing an infection. The use of Apple iOS ensures the security of the application from any unauthorized access or bugs. The design of the iOS is also effective to handle the code and avoid operating system issues.
The fragmented questions in this study undergo a flow analysis based on the answers suggested by the user. Once the analysis is completed, the prediction for the possible problem that the patient is facing is given. The application assures that the inputs given by the user are natural language. They are processed and based on his answers, and the prediction is made. The analysis engine is programmed in a way where the user answers are considered. These results are analyzed and finally reported back to the user. Based on the proper definitions and symptoms published by the World Health Organisation, the analysis engine protects the nature of similarity and its possible remedy.
The analysis engine is the core of the application and its acceptability which is capable of identifying the user results and categorizing the severity of the infection. Depending upon the user inputs, the entities are recognized by the analysis engine as per the answers. These entities decide the severity of the infection. Yet another important feature that the Application produces is a patient's sentiment analysis. The prediction of positive, negative, or neutral sentiments is made with the help of the same natural language processing.
The above equation supports the understanding of the Sentiment Analysis Score based on which a user sentiment can be studied for the prediction of the critical nature of the problem he is facing. The critical situation will have more value of the negative sentiment score and the non critical nature will be represented by a more positive value of the score. However, the neutral value of the score will result in a midway situation for the prediction.
The algorithm depicted in Fig. 5 performs the sentiment analysis for the user input given at any stage in the Application. A positive value of the sentiment score states that the user is hopeful about his condition and requires minor attention towards his medical treatment. In this case, the probability of getting recovered and rescued will be the highest. A neutral value for the sentiment analysis results in the user's inability to express the complete symptoms and requires quick attention from the medical healthcare units. Further, a negative value of the sentiment analysis score assures that the user is not in a proper situation and urgent medical attention is required. The answers given by the user are predicted for his current situation related to this infection. The value of the sentiment score is significant to protect the nature of the issue that the person is facing. However, the NLP analysis, with the help of the ML model, makes it possible for medical healthcare professionals to manage the inputs the user gives for his diagnosis. The symptoms and the Information shared by the user will be classified with the help of the ML model, making use of the core ML3 framework used for iOS development. This Information is helpful for further analysis that the application can do at various diagnostic laboratories and research centers. Figures 6 and 7 represents the basic screens of the application developed as a part of this project. The application runs on any iOS devices running with the latest operating system. The application is developed with Swift programming language. The natural language processing framework by Apple Development is used in the application development stages.

DISCUSSION
During the global COVID-19 pandemic, governments worldwide led various impositions to control the spread of the infection. Problems associated with personal freedom, movement restrictions, the spread of fake information, and various other uncertainties and irregularities were observed during this time. The information was restricted to a demonstrator group of people only. It has been reported by Pfefferbaum & North (2020)   remaining society. The application can do medical health surveillance with the help of such applications that focus on the identification of the sentimental value of a human.
The second important feature that the above application integrates is understanding the behavior of a patient's health. To avoid the spread of infection, the model can identify the behavior of a human being based on his inputs and location. The application renders the location to prohibit the further spread of infection from one place to another. The responses given to the user in the application are forwarded to the machine learning algorithm to predict the nature of the illness and calculate the sentiment score. The value of the sentiment score decides the prediction capability and priority of medical attention. A negative value of the sentiment score provides a strong reason to monitor the patient. The real-time answers from a patient provide quick, actionable insight. The availability of open-access publications and scientific findings makes it possible to derive a conclusion with the help of the analysis engine.

CONCLUSION
The use of natural language processing is increasing in various sectors of the computational systems. The language understanding is done with the help of inputs from various data sources. For the patients who are having health issues (related to COVID-19) this article produces a complete description of developing an application. The application runs in two phases in which the first phase takes input from the patient who is using the application. The patient can interact with the application in real world language and the replies for the patient queries are given. The application uses the power of natural language processing to respond back to the patient. The second phase of the application checks the patient sentiment score to find out his mental status during the use of the application. The results of the sentiment score are used to predict the emergency circumstances of the patient health. Based on the above observations the application advises the user to take necessary steps for the better health. The application designed for this study ensure the use of the Core ML3 libraries by Apple resources which empowers the application for the real time language processing. The application is developed to ensure that an advising application is available to help the iOS users for the advising during health conditions, particularly COVID-19. As for the future work, the application can be generalized to various ailments existing across the medicinal healthcare facilities.