1. Introduction
Instant solution to all the problems is the MANTRA we are following now-a-days. Though we know all the future effects caused by the food habits and lifestyle we are following these days we are not ready to go by the paths of our ancestors. There are two reasons for our behavior, one we gradually forget the things we are following hierarchically and the other we are running out of time to undergo this process.
DOI: https://doi.org/10.54216/JCHCI.010103
Through this we are unaware of one thing that we are losing our cultural and medicinal values [7]. There are some people who want to try natural medicines but are ignorant about their preparation methods and some who wants to follow the medicines which have their compositions documented. This system tries to solve these two problems by recommending medicines [1] based on their problem search. It gives ratings to the recommendation and also tries to suggest medicine which cause no allergies in them by knowing the items which create allergies.
2. Literature survey
[1] Lanhua Zhang et al. focused the functions on storing the data of Chinese herbal medication by database and enquiring the data from the database so as to identify the Chinese herbal medicine by judgment. The method developed with Android platform and Java programming. The main advantage is that Chinese herbal medicine phone recognition system database which is appropriate and fast to categorize the Chinese herbal medicine and the disadvantage is that no recommendation is provided for severe cases.
[2] Dr. Vuda Sreenivasa Rao et al. developed to offer suggestions on exercises depending on Body Mass Index -BMI, Basal Metabolic Rate -BMR and the energy recycled in each action such as aerobic dancing, cycling, jogging and swimming. Also, this bid has been developed to provide personalized exercise suggestions for patients with fitness problems. Furthermore, it was designed to store the data in a database and to have the capability to produce reports to customers. The main advantage is that it capable to support diverse kinds of patients and exercises and the disadvantage is that it is based on exercises which are only able to maintain our body health conditions.
[3] Suraj Sing et al, have developed application which accepts the indications from the patients, practices the data, recognizes the particular illness hereafter provides suitable suppository using remedial expert system by pattern matching techniques. The information collected from the method is taken and valuated using expert system which computes the possibility of rigorousness of the disease. And also this system was used by the patient, the better will expert system in categorizing numerous patterns of illnesses which proliferation the accuracy of iCare. The main advantage is that it acts as simulated clinician for the patients and the disadvantage is medicines recommended are with future effects.
3. Proposed System
The proposed system is used to recommend the natural remedies for particular health issue mentioned by the user. It uses Google’s open-source UI software development toolkit Flutter. It has ratings for the remedies which helps the user to choose the correct solution for their problem and also it gets the ingredients which cause allergies with them.
Later it uses KMP algorithm which matches their allergic keywords with the data from database and then recommend the composition which cause no allergies with them. And the main objective is to document the composition of natural medicines for future use.
3.1. System Architecture
Firstly, user login into the mobile application in the case of existing user otherwise the user can sign up into the system using an email id as username and password. After user’s login is authenticated, a separate profile is created for the particular user in the database. Mainly user’s allergic conditions are displayed in the profile. Data is retrieved from the firebase with the help of user’s input data.
KMP algorithm[17] is applied to the input in order to eliminate the natural medicines that has the allergic substances of the user. If the data is present in the database, then the output is displayed to the user, else user can submit their queries as reviews and comments. Finally, the user is displayed with appropriate output showing alerts for the medicines that contain allergic substances.
3.2. Mobile Application
A portable application, utmost typically stated as an app, is a kind of application code planned to execute on a mobile scheme, such as a smartphone or tablet [7], PC, etc. Portable applications oftentimes aid to deliver users with alike facilities to those opened on PCs. In our portable application, we have a tendency toward use Dart programming language in Flutter [20].
3.2.1 Dart Programming Language
Dart is a client-improved software design language for apps. It's established by Google and is working to type of mobile, desktop, backend and web applications. Dart [21] is an OO, class defined, garbage-collected retaining using a C-style syntax that translate compiles optionally into JavaScript.
3.2.2 FLUTTER
Flutter is an open-source user interface software improvement situation created by Google. It is mostly used in improvement of cross platform applications for Android[20], iOS, Linux, Mac, Windows, Google Fuchsia, and the web application from a solitary codebase. The initial version of Flutter[21] was named as codename "Sky" and executed on the Android OS.
3.2.3. Database
The database we tend to use here is Firebase, a portable and web application progress platform established by Firebase, then proprietorship took by Google. Firebase is basically an actual period DB. The information looks as JSON files and documents real time changes to happen on the associated customer feature [4]. Firebase gives us features like analytics, databases, messaging and crash reporting so we can interchange rapidly replies to our users. Firebase is constructed on Google structure and enlarges mechanically, for smooth the major apps. Firebase products work extra exclusively but also stake data and perceptions, so they work on even improved together.
There are three databases included in the firebase. They are authentication database, user’s profile database and natural medicine database.In authentication database, user’s credentials such as username (i.e., email id) and password are validated in login page and new user is created in the signup page.
3.2.4. Algorithm
Algorithm that we need to use in this recommendation system should help in pattern matching to remove the medicine recommendations that have the particular user’s allergic substances. In this case, first we are trying with the Naïve pattern matching algorithm.
3.2.4.1 Naïve Pattern Matching Algorithm
Naïve pattern searching is the modest technique amongst supplementary pattern searching algorithms. It checks for all character of the foremost sequence to the pattern. This algorithm [18] is supportive for lesser texts. It does not essential any pre-dispensation phases. We can invention substring by inspection once for the string. It also does not conquer further space to achieve the operation.
The time complexity of Naïve Pattern Search method is O(k*l).
Disadvantages:
- Worst case time efficiency: O((l-k+1) k)
- Information from a shift is not used again
- Very incompetent method. Because this technique earnings only one location movement in each time.
3.2.4.2 KMP Algorithm
The KMP matching algorithm uses disintegrating property [12],[15] of the pattern and advances the worst-case complexity to O(l). The basic intent behindhand KMP’s algorithm [12] is each and every time perceive pattern is not identical, already know certain of the characters in the transcript of the following substring then take benefit of this information to avoid pattern identical that know will anyhow match. KMP algorithm is employed in this application [16][17].
define variables: an integer, j ← 0 (the position of the current character in A) an integer, k ← 0 (the position of the current character in B) an array of integers, T (the table, computed elsewhere) let nP ← 0
If k<l, then the running time efficiency is O(l)
In computer science, the Knuth–Morris–Pratt string-searching algorithm[14] enquiries for incidences of a "word" B within a foremost "text string" A by using the remark that when a mismatch happens, the word itself contains adequate information to regulate whether the next match could begin, thus bouncing re-examination of beforehand matched characters.
This algorithm is used to differentiate the natural medicines based on the symptoms given by the user by eliminating the allergic conditions of the user. ADVANTAGES The advantages of this application are listed as follows:
- User can give their suggestions in order to improve the application
- The mobile application can be updated timely
4. Result Analysis
In Naïve pattern matching algorithm, keyword searching efficiency decreases as the size of the content or data in which we need to find the matching pattern increases. And the time efficiency also poor for the worst case when compared to KMP algorithm. But in KMP algorithm the efficiency remains same from best case to worst case (i.e., large size of input data). So, we prefer KMP algorithm over Naïve pattern searching algorithm.
Worst case efficiency of KMP algorithm: O(k, l) Worst case efficiency of Naïve algorithm: O((l-k+1) k)
Where, k – Pattern Length l –String / Data Length
5. CONCLUSION
Thus, our mobile application recommends the natural medicine for various health issues by eliminating the substances that are allergic to the user. These procedures should be followed by the user to get the remedies for their health issues. Using the reviews and comments given by the user, we can overcome the problems that are faced by the user. The reviews and comments submitted by one user will be helpful to the other users. Future enhancements are fully based on the reviews and comments submitted by the user. This mobile application can be enhanced by adding more natural medicine details in the database. Ratings can be given to each and every medicine present in the database. Based on the ratings, the natural medicines can be displayed to the user from higher rated medicines to lower rated medicines. And also, to improve the security[23] of the mobile application. Thus, this mobile application is enhanced in the future.