1. Introduction
The OpenAI has developed ChatGPT, a state of art language method that can generate human-like text. It depends on the Generative Pre-training Transformer (GPT) structure, which can be a type of neural network (NNs), devised for generating natural language text [1]. It can be trained on large datasets of human-generated texts and can produce human-like responses to an extensive range of natural language inputs. It answers the query, language translation, language translation, technical writing, text summarization, and customer care services [2]. Nowadays, it is trending because of high-quality text generation, versatility and customizable, easy use, development in Natural Language Processing (NLP), and higher demand for conversational AI. ChatGPT utilizes ML to produce natural language [3]. It is pretrained initially on large dataset of human-generated texts, like websites, books, and articles. The method learns to generate and understand natural language texts by examining these datasets. After, the method is fine-tuned on particular domains or tasks by training it on small datasets that are related to that domain or task [4]. Once fine-tuned, it could accept natural language inputs, like a prompt or a question, and produce a fluent and coherent response. The input was sent through the feed-forward neural network of the model, which has many layers of artificial neurons. The method generates output texts by sampling from a probability distribution of the next word in the series, given by the earlier words [5]. The last layer of the network termed the decoder made the output. ChatGPT enhances adherence to treatment regimens and presents accessible and practical care, improves the care presented by human health care providers, and enhances the results of patients [6]. A transformer method would identify features in the training dataset and implement that inference knowledge. Transformer methods can hallucinate forecasts in clinical summaries as they were rewarded by generating predictions and finding patterns depending on them [7]. Patients who live in rural or underserved areas have struggles in meeting a qualified diabetes educator or other healthcare experts. Those patients can utilize ChatGPT to get knowledge and help from dependable sources, while they could not visit medical centres physically. Patients can suffer from confusion and anxiety as they change to their new diabetic analysis [8]. Few patients can identify ChatGPT as an approachable and handy technique to get data and support while finding out how to control their diseases. For some persons to adequately control their diabetes, intensive or recurrent assistance is required. Such patients can access extra assistance and data using
ChatGPT that aids them in better controlling their conditions. It lowers the necessity of human care, answers patient questions, and enhances happiness. ChatGPT can make interesting and appropriate content through NLP, based on the user and input preferences [9]. It promotes interaction between patients, healthcare professionals, and insurance providers. ChatGPT help provide quick access to relevant healthcare data to suitable parties. Artificial intelligence (AI) is the multidisciplinary method of linguistics and computer science that aims to construct machines likely to execute tasks that need human intelligence [10]. Such tasks contain the ability to understand, learn, rationalize, and adapt extracted methods along with the reactivity to complicated human features namely creativity, emotion, etc.
This article presents an automated healthcare data classification-using barnacles mating optimizer with a pyramid neural network (AHDC-BMOPNN) technique. The presented AHDC-BMOPNN technique examines the healthcare data effectually using an ML model with a feature selection process. Primarily, the AHDC-BMOPNN technique exploits min-max data normalization for scaling the input dataset. In addition, the butterfly optimization algorithm-based feature selection (BOA-FS) method is deployed for the selection of optimal feature subset. In this work, the PNN model was utilized for the classification of medical data. At last, the BMO-based hyperparameter tuning process takes place to improve the overall classification accuracy of the PNN method. The empirical findings of the AHDC-BMOPNN system was validated on ChatGPT generated dataset.
2. Literature Review
Mageshkumar and Lakshmanan [11] establishes an Intelligent DD with Deep TL Aided Classification Model for Cloud-based Healthcare System (IDDTLC-CHS) approach. The neighbourhood correlation sequence (NCS) technique was utilized For DD that creates optimal code words and compresses by Deflate method. The SGO technique was executed to optimum change of parameters contained in the BiGRU approach. Hoang et al. [12] examine an innovative approach exploiting a novel segmentation approach and wide-ShuffleNet for the classifier of skin tumor. Primary, the research workers compute the entropy-based weighting and first-order cumulative moment (EW-FCM) of skin tumor images. Afterwards, the authors input the segmentation results as innovative DL infrastructure wide-ShuffleNet and define the skin cancer types.
Li et al. [13] presented a robust and accurate system to analyze HD and this method depends on ML techniques. This method was introduced by using the ANN, SVM, KNN, LR, DT, and NB classification techniques but standard feature selection (FS) approaches are leveraged like Relief, Minimal redundancy maximal relevance, least absolute shrinkage selective operator, and local learning to eradicate unwanted and essential features. The authors presented a conditional mutual FS approach to resolve the FS problem. In [14], the authors examine the possibility of utilizing the CNN-based classification method as a sample of DL approaches in this design.
Sahoo et al. [15] presented a precise categorization of daily human actions from gyroscope sensor data and accelerometers after transforming them into spectrogram imageries. The feature extraction was followed by using pre-trained weights of 2 efficient and popular TL-CNN methods. Eventually, a wrapper-related FS approach was used to choose the best feature subsets that reduced the training period and enhances the final classification performances. Mir and Dhage [16] intend at constructing a classifier method utilizing WEKA tools for forecasting diabetes disease using RF, NB, Simple CART, and SVM algorithms. The research hopes to suggest the optimal method depends on effective performance outcomes for forecasting diabetes diseases.
Stephen et al. [17] develop a CNN method for the detection and classification the presence of pneumonia in the sequence of chest X-ray image (CXR) instances. Unlike other techniques that depend on TL or handcrafted approaches to attain notable classification performances, the authors built a CNN method for extracting features from specified CXR and categorizing it to determine if an individual was diseased with pneumonia. In [18], develops a smart healthcare mechanism for predicting HD employing cooperative DL and feature fusion algorithms. The feature fusion approach combines the attributes abstracted from sensor datasets and electronic clinical reports for generating useful healthcare data. Then, the data gain method eradicates unwanted and essential features and chooses the noteworthy ones that decline the computational burden and enhance the model accuracy.
3. The Proposed Model
In this work, we design the AHDC-BMOPNN technique for healthcare data analysis on ChatGPT-generated data. The projected AHDC-BMOPNN technique examines the ChatGPT-generated healthcare data effectually using an ML model with a feature selection process. It encompasses a set of sub-processes like min-max scaling, BOAFS-based feature subset selection, PNN classification, and BMO-based hyperparameter tuning. Fig. 1 demonstrates the overall flow of the AHDC-BMOPNN method.
3.1. Data Creation
In this work, the ChatGPT is used to generate a set of medical records for the diabetes disease classification process. The dataset is generated using the following query: Create a csv format dataset with 500 rows for diabetes disease with two classes. Factors involving the dataset are age, gender, BMI, blood_pressure, glucose_level, insulin_level, and class.
3.2. Min-max Normalization
The min‐max normalization technique is used for the data feature normalization, causing biases in their values [19]. Also, it is applied for the scaling values of normalized attributes within [01]; for achieving uniformity in data features. Eq. (1) normalizes the values of data feature in a specific interval.
3.3. Feature Selection Process
The BOA-FS technique is applied for the optimal selection of feature subset. BOA is a metaheuristic optimization algorithm motivated by the food-searching behaviour of butterflies (BF) [20]. In general, the BF finds the food utilizing the sense receptor that can be employed for smelling the fragrance of flowers and food. In BOA, it can be considered that the BFs themselves that is similar to FF generate the fragrance. Therefore, the BFs can sense 2 fragrances, one from the flower or food and the other from the neighbouring BF. This helps to frame the social learning system viz., the BFs walking towards the fittest BF that produces a strong odour smell. Afterwards, once a BF is incapable of detecting the odour from others, it randomly strides and these movements are named a local search. The fragrance level (𝑝𝑓𝑖) in BOA generated by the 𝑖𝑡ℎ BFs are shown as follows:
In Eq. (2), 𝑐 refers to the sensory system, 𝐼 indicate the stimulus concentration, and 𝑎 denotes the power exponent that relies on modality. The 𝑐 is set to 0.01 and the power exponent is diverse between 0.1 and 0.3 as = 0.1 + 0.2 ( 𝑟
𝑇), where 𝑇 denotes the maximal iteration amount and 𝑟 shows the existing iteration. In the optimizer process, the location vector was upgraded as follows:
In Eq. (3), 𝑥𝑖𝑓 and 𝑥𝑖𝑓+1 vector characterizes the solution vector of 𝑖𝑓ℎ BFs at 𝑟 and 𝑟+ 1 iterations correspondingly. 𝐹𝑖 shows the fragrance which is utilized by 𝑖𝑓ℎ BF for upgrading the position at a specific iteration. In the global search phase, the movement of 𝑖𝑡ℎ BF nearby the fittest BF is shown below:
In Eq. (4), 𝐹𝑖 𝑡 shows the solution vector for 𝑖𝑡ℎ BFs at 𝑡 iteration number, 𝑔∗ shows the fittest BF (optimum solution) amongst the solution at iteration 𝑡 (existing iteration) and 𝑟 implies the uniformly distributed random integer. The local arbitrary search phase of 𝑖𝑡ℎ BF is modelled by Eq. (5):
𝑡+1 shows the amount of movement by 𝑖𝑓ℎ BF for updating the location, the 𝑥𝑖
In Eq. (5), the 𝑥𝑗 𝑡 represent the 𝑗𝑡ℎ and k𝑡ℎ BFs correspondingly at iteration numbers 𝑟, and 𝑟 denotes the uniformly distributed random integer. Fig. 2 displays the steps included in BOA.
The BOA-FS technique can be accomplished by the transfer operator that transforms continuous fragrance value within [0,1]. The sigmoid transfer function has been widely applied for mapping purposes, as follows:
Where 𝐹𝑖 k(𝑡) denotes the continuous value of fragrances of 𝑖𝑡ℎ BF at 𝑡 iteration from the k𝑡ℎ dimensional.
To obtain the final binarization objective, the thresholding method was utilized over 𝑆‐shaped curved attained in Eq. (6). Therefore, the thresholding was expressed as follows:
Where the 𝑥𝑖 k(𝑡) indicates the fragrance of 𝑖𝑡ℎ BF at 𝑟 iteration in k𝑡ℎ dimensional. The feature set provided by the BOA-FS is termed 𝑃1.
k(𝑡+ 1) denotes the location of 𝑖𝑡ℎ BF at (𝑡+ 1) iteration in k𝑡ℎ dimensional and 𝐹𝑖
3.4. Healthcare Data Analysis using PNN
In this work, the PNN model is used for the disease detection process. The architecture of PNN model comprises exposed and concealed layers [21]. The exposed layer comprises the input and output layers. The concept behindhand this encoded-decoded model is to transform low into higher dimension space via encoded for increasing the amount of degrees of freedom and facilitating the control of non-linear input-output relationship related to the PMSM structure. Then, using the decoder, the data was submitted to low-dimensional space. This procedure is considered as dimensional evolutions among input as well as output parameters.
The study implemented PNN has multi-level feature and context pyramid networks, where all the layers are characterized as weight 𝑊 multiplied with the 𝑥 vector having neurons, along with the 𝑏 deviation. Then, assume a standard grid of 𝑁 components, where the parameter value 𝑖 said for 𝑦𝑖∈[0,1], and the aim is to enhance the parameters 𝑦𝑗∈[0,1] for obtaining the optimum structure.
The activation function was added to all the layers of the PNN for realizing the mapping of PNN mechanism in the parameters to the main function, and to efficiently model the highly nonlinear and simple linear mapping problems:
Where 𝑋= {𝑥1, 𝑥2, … , 𝑥𝑁} ∈𝑅𝑁, the function 𝜎 ensures the magnetic potential and the function 𝑏(𝑥) ensures that the PNN satisfies the volume constraints of the optimizer problems.
The study intends to adopt a DNN with layer 𝐿+ 1, and the amount of neurons in all the layers (𝑛0, 𝑛1, … , 𝑛𝐿) and 𝜇: 𝑅→𝑅. The pre‐activation function 𝑎̃l ∈𝑅𝑛𝑙 and the activation function 𝑎𝑙∈𝑅𝑛𝑙 are recursively defined on each 𝑙𝑡ℎ layer, as follows:
Where super parameter 𝛼, 𝛽∈[0,1] indicates the contribution of weighted and biased items, correspondingly. Uniform distributed normal random variable (0,1), parameter 𝜃= (𝜃𝑝)𝑝 of the weighted matrix 𝑊𝑙 and the deviation vector 𝑏𝑙. The outcome of the network was 𝑓𝜃(𝑥) = 𝑎̃l(𝑥). To make sure that the difference of neurons at all the layers is equivalent to 1 while initializing, we set 𝛼 and 𝛽 to fulfil 𝛼2 + 𝛽2 = 1 and 𝐸𝑋∼𝑁(0,1)[𝜇(𝑋)2] = 1.
The loss function is described as follows:
Meanwhile, a primary value in the optimizer technique was generally specified, however, the NN was randomly initialized, and the primary density field in the DL-based optimizer technique was non‐constant and random. To evaluate (𝜃) for preventing these problems, rather than utilizing the initial density field:
3.5. Parameter Tuning using BMO Technique
Finally, the BMO technique chooses the parameters of the PNN model [22]. The process of BMO was discussed below:
(a) Initializing:
Assume the barnacles (initial individual) for the solution as a matrix:
In Eq. (14), 𝑁 defines the count of decision variables which are subjected to the lower and upper boundaries, and 𝑛 refers to the number of barnacles (population) as follows:
Where 𝑙𝑏 and 𝑢𝑏 indicate the lower and upper bounds of the 𝑖𝑡ℎ variables. It is sorted as an initial iteration solution after evaluating the objective function for all the barnacles.
(b) Selection procedure
Based on the length of their penises, 𝑝1the selection of barnacles for mating was made. This selection was stimulated by the subsequent consideration:
The choice is an arbitrary procedure restricted to the penis length of the barnacles. All the barnacles might contribute or receive their sperm from other individuals. But every barnacle was fertilized by a single barnacle. If at a definite point, then a similar barnacle was chosen (self‐mating), it is not to be assumed in the method and the procedure was continual without the newest offspring generation. If the selection procedure, it is exceeding the 𝑝𝑙 value, then the sperm cast will have occurred.
The abovementioned consideration indicates that the BMO involves exploration and exploitation.
The offspring can be maintained by the sperm cast procedure as follows:
In Eq. (18), 𝑏𝐷 and 𝑏𝑀 describes mated parents. Eqs. (17) & (18) show that the selection was randomly made.
(c) Reproduction
The BMO technique emphases on the inheritance features or genotype frequencies of the parents in offspring generation dependent upon HardyWeinberg principles since there is no mathematical process proposed for the reproduction of barnacles. By using the following equation, the new offspring can be accomplished:
𝑁 define the variable of Mum and Dad of barnacles, correspondingly. 𝑝 is a uniform distribution random number within [0,1], 𝑞= (1 −𝑝).
In Eq. (19), 𝑋𝑏𝑀
The sperm cast occurs once the selection of barnacle that mated surpasses the 𝑝𝑙 values that is initially set:
In Eq. (20), 𝑟𝑎𝑛𝑑 shows the arbitrarily created number in zero and one. The newest offspring for the exploration technique was created by the Mum barnacle.
The offspring are evaluated and united with the parents to manage the solution matrix expansion in the size of populations. Next, the sorting procedure is implemented for selecting the best solution that fits the population size and the worse outcomes were removed.
Fitness choice is a primary features of the BMO system. The encoded solution can be exploited to assess the goodness of solution candidate. At present, the accuracy values are the major criteria employed to design FF.
Here 𝑇𝑃 and 𝐹𝑃 are the true and false positive values.
4. Results and Discussion
The experimental validation of the AHDC-BMOPNN approach is tested on the ChatGPT-generated diabetes dataset. The dataset is generated using the following features: Features: age, gender, BMI, blood_pressure, glucose_level, insulin_level, and class. Among the available features, the presented model has chosen 4 features. The dataset contains 500 samples with two classes as determined in Table 1. A few sample instances are given in the following:
35, Female,26.8,70,100,125,0
52,Male,31.2,90,160,215,1
48,Male,23.5,80,120,100,0
53,Female,25.1,75,145,180,1
30,Male,26.6,70,110,120,0
41,Female,27.3,72,130,150,1
Fig. 3 shows the performance of the AHDC-BMOPNN method under test dataset. Fig. 3a depicts the confusion matrix presented by the AHDC-BMOPNN approach on 80% of TRP. The figure denoted that the AHDCBMOPNN algorithm has detected 168 instances of Non-Diabetic and 195 instances of Diabetic. Likewise, Fig. 3b depicts the confusion matrix presented by the AHDC-BMOPNN method on 20% of TSP. The outcome represented that the AHDC-BMOPNN approach has identified 44 instances of Non-Diabetic and 47 instances of Diabetic. In addition, Fig. 3c demonstrates the PR curve of the AHDC-BMOPNN method. The figures reported that the AHDC-BMOPNN approach has gained high performance of PR on different class labels. Eventually, Fig. 3d displays the ROC examination of the AHDC-BMOPNN model. The figure depicted that the AHDC-BMOPNN technique has productive outcomes with greater values of ROC on different classes.
The overall diabetic disease detection outcomes of the AHDC-BMOPNN method are depicted in Table 2 and Fig. 4. The figure implies that the AHDC-BMOPNN methodology effectually recognized the diabetic and non-diabetic classes. For example, on 80% of TRP, the AHDC-BMOPNN algorithm gains average 𝑎𝑐𝑐𝑢𝑦, 𝑝𝑟𝑒𝑐𝑛, 𝑠𝑒𝑛𝑠𝑦, 𝑠𝑝𝑒𝑐𝑦, and MCC of 90.79%, 91.60%, 90.79%, 90.79%, and 82.38% correspondingly. Conversely, on 20% of TSP, the AHDC-BMOPNN method offers average 𝑎𝑐𝑐𝑢𝑦, 𝑝𝑟𝑒𝑐𝑛, 𝑠𝑒𝑛𝑠𝑦, 𝑠𝑝𝑒𝑐𝑦, and MCC of 90.98%, 91.03%, 90.98%, 90.98%, and 82% correspondingly.
Fig. 5 examines the 𝑎𝑐𝑐𝑢𝑦 of the AHDC-BMOPNN technique in the training and validation on the test database. The result exhibits that the AHDC-BMOPNN approach obtains greater 𝑎𝑐𝑐𝑢𝑦 values over higher epochs. In addition, the greater validation 𝑎𝑐𝑐𝑢𝑦 over training 𝑎𝑐𝑐𝑢𝑦 shows that the AHDC-BMOPNN method learns productively on the test database.
The loss analysis of the AHDC-BMOPNN method in the training and validation is shown on the test database in Fig. 6. The figure specifies that the AHDC-BMOPNN algorithm reach adjacent values of training and validation loss. The AHDC-BMOPNN method learns productively on a test database.
The outperforming outcomes of the AHDC-BMOPNN technique can be assured by a comparative analysis with recent models in Table 3 and Fig. 7. The experimental values stated that the AHDC-BMOPNN method obtains superior outcomes under various measures. Based on 𝑎𝑐𝑐𝑢𝑦, the AHDC-BMOPNN technique provides increasing 𝑎𝑐𝑐𝑢𝑦 of 90.98% while the CNN, XGBoost, ELM, LSTM, NB, and K-means models reached decreasing 𝑎𝑐𝑐𝑢𝑦 of 84.14%, 79.14%, 80.12%, 81.33%, 79.89%, and 80.61% correspondingly. Meanwhile, based on 𝑝𝑟𝑒𝑐𝑛, the AHDC-BMOPNN method offers enhanced 𝑝𝑟𝑒𝑐𝑛 of 91.03% while the CNN, XGBoost, ELM, LSTM, NB, and K-means models gained decreased 𝑝𝑟𝑒𝑐𝑛 of 82.36%, 79.14%, 83.14%, 80.26%, 81.27%, and 81.32% respectively. Simultaneously, based on 𝑠𝑒𝑛𝑠𝑦, the AHDC-BMOPNN algorithm reaches 𝑠𝑒𝑛𝑠𝑦 of 90.98% while the CNN, XGBoost, ELM, LSTM, NB, and K-means models provides reduced 𝑠𝑒𝑛𝑠𝑦 of 81.35%, 84.24%, 83.65%, 80.65%, 79.88%, and 84.29% correspondingly. Finally, based on 𝑠𝑝𝑒𝑐𝑦, the AHDC-BMOPNN method resulted in 𝑠𝑝𝑒𝑐𝑦 of 90.98% while the CNN, XGBoost, ELM, LSTM, NB, and K-means approaches reached decreasing 𝑠𝑝𝑒𝑐𝑦 of 80.16%, 84.90%, 81.96%, 82.07%, 81.18%, and 83.15% respectively. These outcomes stated the supremacy of the AHDC-BMOPNN method over other approaches.
5. Conclusion
In this article, we design the AHDC-BMOPNN technique for healthcare data analysis on ChatGPT-generated data. The projected AHDC-BMOPNN technique examines the ChatGPT-generated healthcare data effectually using an ML model with a feature selection process. It encompasses a set of sub-processes such as min-max scaling, BOA-FS-based feature subset selection, PNN classification, and BMO-based hyperparameter tuning. In this study, the AHDC-BMOPNN technique uses the BOA-FS technique for selecting an optimum subset of features. For medical data classification, the PNN model was used in this work. At last, the BMO-based hyperparameter tuning process takes place to improve the overall classification accuracy of the PNN approach. The experimental values of the AHDC-BMOPNN method was validated on ChatGPT generated database. The simulation result analysis indicate that the AHDC-BMOPNN algorithm and the diverse healthcare text data generated by ChatGPT enhance the ability to extract valuable insights and organize medical information effectively.