Artificial Liver Classifier: A New Alternative to Conventional Machine Learning Models Mahmood A. Jumaah, Yossra H. Ali, Tarik A. Rashid Abstract Supervised machine learning classifiers sometimes face challenges related to the performance, accuracy, or overfitting. This paper introduces the Artificial Liver Classifier (ALC), a novel supervised learning model inspired by the human liver’s detoxification function. The ALC is characterized by its simplicity, speed, capability to reduce overfitting, and effectiveness in addressing multi-class classification problems through straightforward mathematical operations. To optimize the ALC’s parameters, an improved FOX optimization algorithm (IFOX) is employed during training. We evaluate the proposed ALC on five benchmark datasets: Iris Flower, Breast Cancer Wisconsin, Wine, Voice Gender, and MNIST. The results demonstrate competitive performance, with ALC achieving up to 100% accuracy on the Iris dataset–surpassing logistic regression, multilayer perceptron, and support vector machine–and 99.12% accuracy on the Breast Cancer dataset, outperforming XGBoost and logistic regression. Across all datasets, ALC consistently shows smaller generalization gaps and lower loss values compared to conventional classifiers. These findings highlight the potential of biologically inspired models to develop efficient machine learning classifiers and open new avenues for innovation in the field. A Preprint Keywords Artificial Liver Classifier \cdot ALC \cdot Artificial Intelligence \cdot Classification \cdot Intelligent Systems \cdot Machine Learning \cdot Optimization \cdot Robotics. 1 Introduction Artificial intelligence (AI) has many branches according to the tasks to be performed, with machine learning (ML) being one of the most well-known branches that has gained prominence alongside the development of computer science. It focuses on developing systems and algorithms that automatically learn from data without explicit programming [ 1 , 2 , 3 ] . However, two main types of ML are categorized according to the problem to be solved: supervised learning and unsupervised learning. Supervised learning relies on having pre-labeled input data (denoted X ) and the desired output (denoted y ). This type of learning aims to understand the hidden relationship between inputs and outputs to predict new outcomes based on unseen (new) input data [ 4 , 5 , 6 ] . On the other hand, unsupervised learning uses input data that is not pre-labeled (does not contain output y). Instead, an unsupervised learning model is applied to discover patterns and hidden relationships in the data autonomously based on the input data only [ 7 , 8 ] . Furthermore, there are other types of ML such as reinforcement learning (RL) , which interact directly with the problem’s environment to build policies that guide decision-making based on rewards and penalties obtained through trial and error [ 9 , 10 , 11 , 12 ] . In the early stages of AI , researchers focused on building systems (with minimal intelligence) capable of performing specific tasks using fixed rules (conditional and logical operations). As the field evolved, scientists realized that intelligent systems needed methods to learn from data, rather than relying on rigid rule-based methods with minimal capabilities [ 13 , 14 ] . As a result, supervised learning algorithms, specifically classifiers, emerged as tools for learning systems to make predictions or decisions based on the available experiences. However, one of the most preeminent algorithms in supervised learning is artificial neural network (ANN) , inspired by the fundamental concept of neurons in the human brain and how they are interconnected [ 15 , 16 ] . These networks are based on the concept of neurons, which are basic units in the brain that communicate with each other to perform processes such as thinking and learning [ 17 ] . The algorithm simulates the functions of brain cells by proposing multiple layers of artificial neurons (an input layer and an output layer). These neurons interact with each other using weights assigned to each connection, and the role of the algorithm is to optimize these weights to minimize the error resulting from interactions with the input data, thereby producing accurate outputs [ 18 ] . Moreover, an older algorithm inspired by mathematics is the logistic regression (LR) , which aims to find a perfect line that best fits the data points, minimizing the error between actual and predicted labels. These methods were used in statistical analyses before being adopted in ML [ 19 ] . The complexity of linear operations increased, leading to more sophisticated methods, such as support vector machine (SVM) , where the main idea is to create clear boundaries between different data classes by maximizing the margin between them [ 20 ] . Comprehensively, most of ML classifiers have drawn their inspirations from mathematical operations or nature (e.g., simulating the functioning of human brain cells) to create robust systems (classifiers) for solving complex problems. Current ML classifiers face multiple challenges related to performance, accuracy or loss, overfitting, and handling data with complex and nonlinear patterns [ 21 , 22 ] . In this context, this paper proposes a new classifier called artificial liver classifier (ALC) , inspired by the human liver’s biological functions. Specifically, it draws on the detoxification function, highlighting its ability to process toxins and convert them into removable forms. Additionally, improvements have been made to FOX optimization algorithm (FOX) , a state-of-the-art optimization algorithm, to enhance its performance and ensure compatibility with the proposed ALC . The research aims to bridge the gap in current ML ’s algorithms by combining the simplicity of mathematical design with solid performance by simulating the detoxification function in the human liver. Furthermore, the proposed classifier aims to improve classification performance by processing data dynamically, simulating the human liver’s adaptive ability, enabling its application in fields requiring high-precision solutions and flexibility in dealing with different data patterns. The main challenge lies in transforming the liver’s detoxification function into a simplified mathematical model that effectively incorporates properties such as repetition, interaction, and adaptation to the data [ 23 ] . By comparing the proposed classifier with established ML classifiers, the study expects to improve the performance of ML , including increased computation speed, better handling of overfitting problems, and avoidance of excessive computational complexity. Additionally, this paper introduces a new concept for drawing inspiration from biological systems, opening up extensive opportunities for researchers to develop mathematical models based on other biological functions of the liver, such as filtering blood or amino acid regulation [ 24 ] . Moreover, it represents a starting point for interdisciplinary applications combining biology, mathematics, and AI , enhancing our understanding of incorporating natural processes into ML techniques to create efficient, reliable, and intelligent systems. The proposed ALC has been evaluated using a variety of commonly used ML datasets, including Wine, Breast Cancer Wisconsin, Iris Flower, MNIST, and Voice Gender [ 25 ] , which are explained in detail in Section 4.1 . This diversity in the datasets ensures extensive coverage of different data types, including text, images, and audio, and enables handling binary and multi-class classification problems [ 26 , 27 , 28 ] . The purpose of using these datasets is to conduct comprehensive tests to assess the performance of the proposed ALC and compare it with the established classifiers. The originality and contributions that distinguish this research are as follows: 1. Introducing a new classifier inspired by the liver’s biological functions, specifically detoxification, highlighting new possibilities in designing effective classification algorithms based on biological behaviour. 2. Enhancing the FOX to improve its performance, address existing limitations, and ensure better compatibility with the proposed ALC . 3. Relying on simple mathematical models that simulate the liver’s biological interactions, ensuring a balance between design simplicity and high performance. 4. Opening new avenues for researchers to draw inspiration from human organ functions, such as the liver, and simulate them in computational ways to contribute innovative solutions for real-world challenges. 5. Testing the proposed ALC on diverse datasets demonstrates its effectiveness through experimental results and comparisons with established classifiers. This paper is structured as follows: Section 2 reviews the literature that has attempted to address classification issues across various data types. Section 3 provides an analytical overview of the human liver, focusing on detoxification function and the study’s motivation. Section 4 present the used materials and the proposed methodology, including the improvement of classifier design and FOX training algorithm. Sections 5 and 6 cover the presentation and analysis of results, including comparisons with previous works. Finally, the study concludes with findings, recommendations, limitations, and future research directions in Section 7 . 2 Related Works This section reviews the standard algorithms used in ML classification, with their practical applications across various datasets highlighted [ 29 ] . Additionally, recent studies in the field are discussed to identify existing challenges and to shed light on research gaps requiring further attention [ 30 ] . Accordingly, the extent to which the proposed classifier can offer practical solutions to these gaps and contribute to the future advancement of the field will be investigated. However, Xiao et al. utilized 12 standard ML classifiers on the MNIST dataset, demonstrating its suitability as a benchmark for evaluating the proposed ALC . Their results identified the Support Vector Classifier (SVC) with a polynomial kernel (C=100) as the best-performing model, achieving an accuracy of 0.978 [ 31 ] . This comparable result poses a challenge for the proposed ALC to surpass. Furthermore, the study [ 32 ] employed online pseudo-inverse update method (OPIUM) to classify the MNIST dataset, achieving an accuracy of 0.9590. However, the author noted that these results do not represent cutting-edge methods but rather serve as an instructive baseline and a means of validating the dataset. This makes it feasible to compare the performance of the proposed ALC against OPIUM , as surpassing this baseline would demonstrate an improvement over existing methods. On the other hand, in a comparative study by Cortez et al., three classifiers— SVM , multiple regression (MR) , and ANN —were evaluated on the Wine dataset. The SVM model demonstrated superior performance, achieving accuracies of 0.8900 for red wine and 0.8600 for white wine, outperforming the other methods with an average accuracy of 0.8790 [ 33 ] . Hence, the findings of Cortez et al. serve as a foundation for further advancements in ML applications, providing a basis for evaluating the proposed ALC . Another study utilized a recursive recurrent neural network (RRNN) on Breast Cancer Wisconsin dataset. The results demonstrated that the proposed model achieved an accuracy of 0.9950 [ 34 ] . Despite its outstanding performance, the computational demands of RRNN require substantial resources, which may limit their applicability in resource-constrained environments. Moreover, the study [ 35 ] presents a new classification model called CS3W-IFLMC. This model incorporates intuitionistic fuzzy (IF) and cost-sensitive three-way decisions (CS3WD) approaches, contributing to improved classification accuracy and reduced costs associated with incorrect decisions. The proposed model has been evaluated using 12 benchmark datasets, demonstrating superior performance compared to large margin distribution machine (LDM) , F SVM , and SVM . However, the study remains limited in scope, as it focuses solely on binary classification tasks and does not extend to multi-class classification problems [ 35 ] . Furthermore, in another study, the researchers examined gender classification (male or female) based on voice data using multi-layer perceptron (MLP) . The findings showed that the MLP model outperformed several other methods, including LR , classification and regression tree (CART) , random forest (RF) , and SVM . The MLP achieved a classification accuracy of 0.9675. This study concluded that the proposed model demonstrates strong discriminative power between genders, which enhances its applicability in auditory data classification tasks [ 36 ] . The reviewed literature, highlights significant advancements in classification models, primarily focusing on improving performance and addressing computational challenges. However, several limitations and research gaps remain. One major issue is the reliance on computationally intensive methods, which can hinder applicability in resource-constrained environments. The absence of practical hyperparameter tuning or reduction mechanisms may also contribute to overfitting and computational inefficiencies. These limitations underscore the need for a new classifier to address such challenges. Hence, the proposed ALC should emphasize simplicity in design to ensure faster training time with lower cost. 3 Detoxification in Liver and Motivation The liver, as illustrated in Figure 1 , is the largest internal organ in the human body and is vital in numerous complex physiological processes. It is located in the right upper quadrant of the abdominal cavity and consists of two primary lobes, the right and left, surrounded by a thin membrane known as the hepatic capsule [ 37 ] . Internally, the liver is composed of microscopic units called hepatic lobules. These hexagonal structures contain hepatic cells organized around a central vein. The lobules are permeated by a network of hepatic sinusoids, which are small channels through which blood flows, facilitating the exchange of oxygen and nutrients between the blood and hepatic cells [ 38 ] . Furthermore, the liver receives blood from two sources, each contributing different functions. The oxygenated blood enters via the hepatic artery from the aorta, meeting the liver’s energy demands. While, the portal vein delivers nutrient-rich and toxin-rich blood from the gastrointestinal tract and spleen [ 39 ] . The blood from both sources mixes in the hepatic sinusoids, allowing the hepatic cells to perform metabolic and regulatory functions efficiently [ 40 ] . However, detoxification is one of the most important liver’s functions, which removes toxins from the bloodstream [ 41 ] . Detoxification occurs in two phases. In the phase I, hepatic enzymes known as cytochrome P450 chemically modify toxins through oxidation and reduction reactions, altering their structures to make them more reactive [ 42 ] . In the phase II, the modified compounds are conjugated with water-soluble molecules such as sulfates or glucuronic acid, making them easier to excrete [ 43 ] . Finally, the toxins are either excreted via bile into the digestive tract or removed from the bloodstream by the kidneys [ 44 ] . The complex biochemical system of the liver has inspired us to develop a new ML classifier known as ALC , modeled after the liver’s detoxification mechanisms. The design of the proposed ALC was guided by an in-depth understanding of the liver’s two primary detoxification phases—Cytochrome P450 enzymes and Conjugation pathways—where toxins are transformed into excretable compounds. The proposed ALC classify feature vectors effectively with minimum training time by simulating these phases using simple ML and optimization methods. This innovation marks a significant step forward, demonstrating how biological systems can inspire advanced computational models. It particularly encourages researchers in computer science to explore biological processes for developing intelligent ML models. Figure 1: Structural and functional organization of the liver: hepatic lobule and blood flow pathways, concept inspired by [ 45 ] . 4 Materials and Methods This section presents the standard datasets employed for evaluating the proposed ALC in the conducted experiments. Additionally, the architecture of the proposed ALC is provided, including mathematical equations, algorithms, and flowcharts. Furthermore, the section elaborates on the FOX , which serves as the learning algorithm for the proposed ALC , highlighting its improvements. 4.1 Materials The following datasets are widely used by ML researchers to evaluate their work, making these benchmark datasets suitable for this paper. The MNIST dataset comprises 70,000 grayscale images of handwritten digits (0–9), each of size 28\times 28 pixels. It is widely used for multi-class classification tasks due to its diversity and large size [ 46 ] . To utilize the MNIST dataset with the proposed ALC , each image was preprocessed by flattening it to a vector of 784 dimensions. Each pixel was normalized, with its value transformed to have zero mean and unit variance to ensure consistent scaling. This was then followed by the use of linear discriminant analysis (LDA) to project or reduce the data into a low-dimensional space. Hence, LDA reduces each image to a nine-dimensional feature vector to effectively capture the most discriminative features while also reducing computational requirements [ 47 ] . Additionally, the Iris dataset, a small-scale collection containing 150 instances across three classes with four features per instance, was included in the proposed ALC evaluation [ 48 , 49 , 50 ] . The Breast Cancer Wisconsin dataset, a binary dataset containing 569 samples with 30 features each, was employed to assess the proposed ALC ’s performance on high-dimensional data [ 51 , 34 ] . Furthermore, the Wine dataset, consisting of 178 samples across three classes with 13 features per instance, was selected for its multi-class nature [ 49 , 52 ] . Finally, the Voice Gender dataset was employed to ensure feature diversity. This dataset comprises 3,168 samples, each defined by 21 acoustic features, aimed at distinguishing gender (male or female) by leveraging unique vocal characteristics [ 36 ] . These datasets collectively provided a diverse range of classification challenges, enabling a comprehensive evaluation of the proposed ALC ’s performance. 4.2 Methods This section begins with a detailed introduction to the architecture of the proposed ALC . Moreover, it delves into the improvements made to the FOX as a learning algorithm, highlighting its key modifications. 4.2.1 Artificial Liver Classifier As explained earlier in Section 3 , the detoxification process involves the liver’s ability to process toxins. Oxygenated blood enters the liver via the hepatic artery, while nutrient-rich blood flows through the portal vein. These sources mix within the hepatic sinusoids, enabling hepatic cells to perform essential functions, including a detoxification function that comprises two phases. In order to model the detoxification process in the liver, a biologically inspired computational model was chosen to be implemented, where every mathematical operation is merely treated as a simplistic representation of various known mechanisms regarding hepatic detoxification [ 41 ] . The major biochemical steps taken by hepatocytes in the elimination process are considered to include detoxification in two phases: oxidation (Phase I), which is carried out by specialized enzymes and cofactors, and conjugation (Phase II), which is also supported by specific enzymes and cofactors [ 43 , 42 ] . In this formulation, these steps are coordinated by being transformed into operations in matrices. A set of molecular input toxins is first linearly overlaid by a cofactor matrix C to model the oxidation action of cytochrome P450, followed by being passed through a nonlinear activation grid to model metabolite selection at a threshold. The second transformation is modeled in the form of conjugation through the interaction of vitamins, and this is subsequently normalized through the use of softmax to represent the classification of detoxified products. Although these operations are not intended to accurately reproduce the actual biochemical kinetics, they are carefully selected so that the structural and functional analogies are preserved—allowing the multi-staged, enzyme-driven, and spatially distributed nature of detoxification to be reproduced within a mathematically consistent and learnable system. Phase I: toxins are chemically modified to become more reactive. This phase is mathematically simulated by the following equation: A_{ji}=\frac{1}{n}\sum_{k=1}^{n}(X_{jk}\cdot C_{ki})+\frac{1}{fp}\sum_{k=1}^{f}\sum_{l=1}^{p}C_{kl} (1) where A_{ji} is the matrix of reactive toxins, X is the input toxins matrix and n is the number of inputs. The C is initialized randomly within the range [-1,1] and has dimensions (f,p) , where f corresponds to the number of features in the input feature vector, and p is the number of lobules. The term \frac{1}{fp}\sum_{k=1}^{f}\sum_{l=1}^{p}C_{kl} represents the mean of all elements in the cofactor matrix C that used to balance the reaction. A human liver has a very large number of microscopic functional unit called lobules which are estimated to be of around 100,000 [ 53 ] . In our model the parameter p is an abstraction of a range of choice in lobular diversity, and the columns of the cofactor matrix C implement the various simulated lobular processing units. This structure allows introducing a spatial heterogeneity and an enzymatic variation, which can be witnessed in hepatic tissue, as part of the model. Although the biological premise of p can be that of a number of lobules, direct insertion of a figure like p=100,000 in computation would be inefficient and also inconvenient because it has a high dimensionality and costs more computations. Thus, we introduce a practical range f\leq p<100,000 . This will ensure there is diversity, and that every input feature interacts with a number of simulated lobules ensuring the model is computationally straightforward. The parameter p in this range may be chosen by empirical methods of hyperparameter tuning, a compromise between the richness of the representation, and efficiency. It follows that the range is not arbitrary, but rather biological based on biological modeling under constrains. However, the reactive toxins ( A ) must be activated to enhance their reactivity before progressing to phase II. This activation involves eliminating all negative values, effectively transforming them to zero while retaining only the positive values. This process is mathematically expressed by the following equation: A^{\prime}=\mathrm{max}(0,A) (2) where A^{\prime} is the activated toxins matrix. However, Equation 2 uses ReLU activation to imitate the biological selectivity that occurs in Phase I detoxification in which only reactive (positive) products pass to the next stage. This selection eliminates the non-reactive outputs keeps the computational efficiency and provides the non-linearity necessary in the downstream processing. Phase II: involves the conjugation of modified compounds from phase I with water-soluble molecules to make them excretable. This phase reduces the toxicity of compounds and facilitates their elimination from the body. this phase can be mathematically modeled using Equation 1 , but with key differences. Instead of toxins, the matrix A^{\prime} is used as input, representing the modified compounds (activated toxins) generated in phase I. Additionally, a matrix referred to as the vitamin matrix V is employed in place of the cofactor matrix C . This matrix is initialized randomly within the range [-1,1] and has dimensions (p,n) . B_{ji}=\frac{1}{n}\sum_{k=1}^{n}(A_{jk}\cdot V_{ki})+\frac{1}{pn}\sum_{k=1}^{p}\sum_{l=1}^{n}V_{kl} (3) where B_{ji} represents the conjugated compounds and \frac{1}{pn}\sum_{k=1}^{p}\sum_{l=1}^{n}V_{kl} represents the mean of all elements in the vitamin matrix V . Lastly, when the reactions in Phase I and Phase II are finished, detoxification is then complete. The outcome is some less dangerous and water-soluble wastes that can be removed by means of bile, urine, stool, etc. The softmax activation function is used as a model of the elimination process: not only does it allow formulating a probabilistic output for each of the classes, but also captures the selective and competitive characteristic of biological excretion [ 54 , 55 , 56 ] . Many detoxified compounds simultaneously compete to be eliminated in the liver depending on issues such as solvency, the availability of transporters as well as priorities at the cellular level. Softmax reflects this behavior by placing higher probabilities on those compounds that are most dominant, or easily excreted, and thereby simulates the preferential clearance mechanism of the body. B^{\prime}_{i}=\frac{e^{B_{i}}}{\sum_{j=1}^{n}e^{B_{j}}} (4) where B^{\prime}_{i} represents the normalized probability for output class i . The Algorithm 1 and Figure 2 describes the architecture of the proposed ALC . First, the cofactor and vitamin matrices are initialized randomly, where these matrices are defined based on the dimensions corresponding to the number of features ( f ), number of lobules ( p ), and number of output classes ( n ). Next, the IFOX, as presented in Algorithm 2 , is configured, specifying the number of detoxification cycles (maximum number of training epochs) and detoxification power (maximum number of fox agents). The IFOX then optimizes the cofactor and vitamin matrices by minimizing the reaction error (i.e., loss). Finally, the optimized cofactor and vitamin matrices, resulting from this process, are subsequently used together with the toxin inputs (feature vectors) to predict the output classes. Algorithm 1 Artificial Liver Classifier (ALC) 1: Input: toxins, number of features, number of lobules p , number of outputs, detoxification cycles, and detoxification power. 2: Output: predicted classes. 3: Initialize cofactor matrix C and vitamin matrix V randomly. 4: Initialize the IFOX training algorithm. \triangleright See Algorithm 2 5: Optimize C and V using IFOX over defined cycles. 6: Compute reactive toxins. \triangleright using Equation 1 7: Activate reactive toxins. \triangleright Phase I, using Equation 2 8: Perform conjugation to make toxins less harmful. \triangleright Phase II, using Equation 3 9: Normalize outputs to obtain predicted classes. \triangleright Elimination, using Equation 4 10: return predicted classes \hat{y} . Furthermore, the flowchart visualized the proposed ALC is presented in Figure 3 . Additionally, the source code for the implementation of the proposed ALC can be accessed at the following repository: https://github.com/mwdx93/alc , which includes the main ALC implementation, training scripts, and example datasets. Figure 2: Architecture illustrating Phase I and Phase II reactions simulated by the proposed ALC , designed to mimic liver detoxification pathways. Figure 3: Flowchart of the proposed ALC . 4.2.2 Training Algorithm The FOX , developed by Mohammed and Rashid in 2022, mimics the hunting behavior of red foxes by incorporating physics-based principles. These include prey detection based on sound and distance, agent’s jumping during the attack governed by gravity, and direction, as well as additional computations such as timing and walking [ 57 , 18 ] . These features make FOX a competitive optimization algorithm, outperformed several methods such as particle swarm optimization (PSO) and fitness dependent optimizer (FDO) . The FOX is works as follows: Initially, the ground is covered with snow, requiring the fox agent to search randomly for its prey. During this random search, the fox agent uses the Doppler effect to detect and gradually approach the source of the sound. This process takes time and enables the fox agent to estimate the prey’s location by calculating the distance. Once the prey’s position is determined, the fox agent computes the required jump to catch it. Additionally, the search process is facilitated through controlled random walks, ensuring the fox agent progresses toward the prey while maintaining an element of randomness. The FOX balances exploitation and exploration phases statically, with a 50% probability for each [ 58 ] . Thus, the FOX operates as follows: 1. Computing the distance D_{i} of sound travel using the best position and random time: D_{i}=\frac{BestPosition}{T_{i}}\times T_{i} (5) Where T_{i} is a random time in [0,1] and i is the fox agent. 2. Determining the distance between the fox agent and its prey: DF_{i}=0.5\times D_{i} (6) 3. Computing the jump J_{i} by multiplying half of the gravity acceleration constant with half squared mean of the time: J_{i}=0.5\times 9.81\times 0.5\times(\sum_{0}^{n}T_{i})^{2} (7) 4. Updating the fox agent’s position based on a directional equation, either northward c_{1}=0.18 or in the opposite direction c_{2}=0.82 based on the the jump probability p in [0,1] . X_{i+1}=DF_{i}\times J_{i}\times\begin{cases}c_{1},&\text{if }p>0.18\\ c_{2},&\text{otherwise}\end{cases} (8) 5. The following equation used for exploration: X_{i+1}=BestPosition\times rand(1,dim)\times Mint\times a (9) where dim is the problem dimension, Mint is the minimum time iteratively updated based on T_{i} , a is an adjustment parameter computed as: 2\times(it-(\frac{1}{Max_{it}})) , and it is the current iteration. However, the FOX has some limitations in its design. These limitations were acknowledged by the author of FOX [ 57 ] , while others have been identified through further analysis. For instance, one notable drawback is its static approach to balancing exploration and exploitation. This paper aims to address these limitations by proposing a new variation of the FOX called IFOX to make it integrable with the proposed ALC as a training algorithm to optimize the cofactor and vitamin matrices. For reference, the implementation of the FOX can be accessed at https://github.com/hardi-mohammed/fox . Algorithm 2 IFOX: new variation of FOX optimization algorithm 1: Input: Maximum number of epochs epochs , maximum number of fox agents max_{fa} 2: Output: BestX and BestFitness 3: Initialize the fox agents population X_{fa}\quad(fa=1,2,3,...,max_{fa}) 4: Initialize BestX,BestFitness 5: while it0.90 ). The advocated ALC had no significant differences with XGB since it utilized tree-based models, which tend to have short processing times. 6.1 Computational Complexity and Ablation Analysis The complexity of the proposed ALC is mostly influenced by matrix manipulation and optimization procedure. Suppose that there are n input samples, f features, p lobules, o output classes, and the number of iterations of the optimization (i.e., detoxification cycles) = I. The initial large step is the product of the input toxin matrix X\in\mathbb{R}^{n\times f} by the cofactor matrix C\in\mathbb{R}^{f\times p} in Phase I and takes \mathcal{O}(nfp) time. This is then summed with an element-wise ReLU activation of the resultant matrix whose cost is \mathcal{O}(np) . During Phase II, a similar model of conjugation is treated as the second matrix multiplication involving the activated toxin matrix and the vitamin matrix V \in\mathbb{R}^{npo} , which would lead to time complexity of \mathcal{O}(npo) . This last elimination step runs the softmax on each of the n output vectors, and costs \mathcal{O}(no) . The training is based on IFOX that successively optimizes the cofactor and vitamin matrices. Suppose every iteration uses the entire dataset, training will hence have time complexity \mathcal{O}(I\cdot n\cdot(fp+po)) . So, this term dominates the overall time complexity of the ALC when training. Moreover, in the space complexity, the model will need \mathcal{O}(nf) storage of the input data, \mathcal{O}(fp) memory to hold the cofactor matrix C , \mathcal{O}(po) memory to hold the vitamin matrix V , and \mathcal{O}(np+no) intermediate activation and outputs. Thus the overall space complexity is \mathcal{O}(nf+fp+po+np+no) . The parameter matrices and batch level intermediate results consume the most memory. Hence, the ALC has a scalable architecture whose complexity scales linearly with size of input and size of optimization steps and quadratically with size of internal representation (lobules). The ablation study results were summarized in Table 10 , where the significance of each component of ALC was revealed. The complete model (Phase I + Phase II) represented the optimal result, reaching 99.12 percent accuracy and demonstrating small overfitting. Withdrawing Phase II or replacing Phase I output freedom with a constant value resulted in significant accuracy declines (95.20% and 91.45%, respectively), and this fact shows that both steps are needed. The replacement of the cofactor matrix C by random numbers or an identity vitamin matrix also lowered performance indicating the need to learn both matrices. These findings demonstrate that all its components play a significant role in the work of the proposed ALC as a whole. Table 10: Ablation study results showing the contribution of Phase I, Phase II, and the respective matrices in the proposed ALC on the Breast Cancer Wilcoxon dataset. Model Variant Accuracy Loss F1-Score Overfitting Time (sec.) Full ALC (Phase I + Phase II) 99.12% 0.0261 0.9932 -0.0029% 3.62 Phase I only 95.20% 0.0745 0.9517 0.0121% 2.58 Phase II only 91.45% 0.1123 0.9140 0.0450% 2.89 Random cofactor matrix 88.36% 0.1341 0.8823 0.0663% 2.51 Identity vitamin matrix 93.62% 0.0897 0.9312 0.0387% 2.73 6.2 Failure Case Analysis Although the proposed ALC can deliver good results irrespective of the data encountered, a few limitations can be associated with it, based on an application during certain situations. ALC does not utilize any mini-batch training mechanism, e.g., stochastic gradient descent [ 69 ] , which is normally applied to large-scale learning to minimize computing costs. This consequence can cause longer runtimes in full-batch training working with mass data. There is also slower convergence in the model in that it uses the stochastic IFOX that does not directly optimize training error when applied to cofactor and vitamin matrices. It could influence either the stability or efficiency of convergence. From a model behavior perspective, ALC might fail to perform well on datasets with poor nonlinear structure, noisy or sparse features, or extreme class skew, where the biological metaphor might not find any useful patterns. In addition to that, errors can be propagated and replicated by the sequential dependency between Phase I and Phase II. These constraints point to the directions of further research, such as utilizing mini-batch techniques, improving the IFOX, implementing hybrid optimization schemes, or reorganizing the bio-chemical paradigm to be less rigid and more flexible. 7 Conclusions In conclusion, this paper suggests a novel supervised learning classifier, termed the artificial liver classifier (ALC), inspired by the human liver’s detoxification function. The ALC is easy to implement, fast, and capable of reducing overfitting by simulating the detoxification function through straightforward mathematical operations. Furthermore, it introduces an improvement to the FOX optimization algorithm, referred to as IFOX, which is integrated with the ALC as training algorithm to optimize parameters effectively. Furthermore, the ALC was evaluated on five benchmark machine learning datasets: Iris Flower, Breast Cancer Wisconsin, Wine, Voice Gender, and MNIST. The empirical results demonstrated its superior performance compared to support vector machines, multilayer perceptron, logistic regression, XGBoost and other established classifiers. Despite these superiority, the ALC has limitations, such as longer training times on large datasets and slower convergence rates, which could be addressed in future work using methods like mini-batch training or parallel processing. Finally, this paper underscores the potential of biologically inspired models and encourages researchers to simulate natural functions to develop more efficient and powerful machine learning models.