Next Article in Journal
Semilinear Hadamard Fractional Integro-Differential Equations with Nonlocal Conditions and State-Dependent Delay Under Compact Semigroup
Previous Article in Journal
Statistical Inference of the Mixed Exponential–Beta Distribution
Previous Article in Special Issue
Distinguishing Human- and AI-Generated Image Descriptions Using CLIP Similarity and Transformer-Based Classification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Explainable Machine Learning Framework for Adaptive Multi-Mode CORDIC Iteration Optimization and Hardware-Efficient Computation

by
Ratheesh Sudheerbabu
1,
Lekshmi Chandrika Reghunath
1,
Cristian Randieri
2,
Brunella Botte
3 and
Alfredo Milani
3,*
1
Amrita School of Artificial Intelligence, Amrita Vishwa Vidyapeetham, Coimbatore 641112, India
2
Department of Theoretical and Applied Sciences, eCampus University, Via Isimbardi 10, 22060 Novedrate, Italy
3
Department of Computer Science, Link Campus University, 00165 Roma, Italy
*
Author to whom correspondence should be addressed.
Mathematics 2026, 14(17), 3096; https://doi.org/10.3390/math14173096 (registering DOI)
Submission received: 20 July 2026 / Revised: 23 August 2026 / Accepted: 25 August 2026 / Published: 28 August 2026

Abstract

The Coordinate Rotation Digital Computer (CORDIC) algorithm is widely employed in digital signal processing and hardware accelerators because it computes a broad range of elementary functions using iterative shift-and-add operations. Conventional CORDIC implementations, however, execute a fixed number of iterations irrespective of the input characteristics or the precision required, resulting in unnecessary computational overhead and increased execution latency. This work presents an explainable machine learning framework for adaptive iteration optimization in a multi-mode CORDIC architecture supporting circular, hyperbolic, and linear operating modes. A unified prediction framework for calculating the optimal number of iterations is made possible by the developing a generic feature representation to describe the numerical behavior of CORDIC computations across various modes. We systematically evaluated eight regression models, including Linear Regression, Decision Tree, Random Forest, Extra Trees, Support Vector Regression, Multi-Layer Perceptron, and Extreme Gradient Boosting (XGBoost) and LightGBM. Among the models evaluated, the Decision Tree achieved the best performance on an independent test set of 2305 samples from 461 previously unseen input groups, with a MAE of 0.9160 iterations, RMSE of 1.9671, and R 2 of 0.6076. Predictions were within one and two iterations of the reference value for 80.26% and 90.07% of the test samples, respectively. Since prediction accuracy alone does not guarantee that the required numerical tolerance will be satisfied, the predicted iteration count was further evaluated using the actual CORDIC error, followed by a safety-correction procedure. The safety-corrected approach achieved 100% tolerance satisfaction on the independent test set, reducing the mean number of iterations from 20 to 11.739, corresponding to a 41.31% reduction in iterations. Model behavior was further interpreted using feature importance analysis, permutation importance, and feature ablation studies to examine the contribution of individual features to iteration prediction. Statistical robustness is established using bootstrap confidence intervals, the Friedman test, and Holm-corrected Wilcoxon signed-rank tests.

1. Introduction

The effective estimation of elementary mathematical functions has historically been a crucial issue in numerical analysis, scientific computing, and digital hardware design. Many algorithms have been developed for computing transcendental functions with high precision and low computer overhead. The Coordinate Rotation Digital Computer (CORDIC) algorithm is a widely known iterative numerical algorithm for the computation of several elementary functions. It employs only additions, subtractions, binary shifts, and pre-computed lookup tables, therefore avoiding the use of hardware multipliers [1]. The CORDIC approach still remains a preferred choice for implementing mathematical functions in resource-constrained digital systems, where hardware utilization and computational efficiency are the major driving factors, due to its simple arithmetic structure and regular computation pattern.
The CORDIC algorithm was first proposed by Volder [1] for calculating trigonometric functions in real time by repeated vector rotations. Walther further refined the original formulation into a consistent computational framework operating in circular, linear, and hyperbolic coordinate systems and supporting rotation and vectoring modes [2]. This extension greatly increased the mathematical power of the algorithm. It allowed the algorithm to compute the trigonometric, inverse trigonometric, hyperbolic, exponential, logarithmic, multiplication, division, and square root functions through the same iterative computing technique [2]. Due to its adaptability, CORDIC has transformed from a specialized trigonometric algorithm into a general-purpose numerical technique for computing elementary functions.
The mathematical simplicity and hardware efficiency of CORDIC have led to its extensive utilization in various scientific and engineering applications. Digital signal processing, wireless communication systems, computer graphics, robotics, navigation, image processing, digital phase-locked loops, direct digital frequency synthesizers, FPGA-based accelerators, ASIC implementations, and embedded processors all use it as a basic computational kernel [3,4]. In contrast to traditional arithmetic algorithms that depend significantly on multiplication and division, CORDIC executes iterative coordinate transformations through basic shift-add operations, rendering it especially advantageous for applications where silicon area, power consumption, and computational latency are critical design considerations; however, its dependence on fixed iterative execution often results in unnecessary computations, increased latency, and inefficient hardware utilization when high numerical precision is required [5,6,7,8].
For the past sixty years, much research has concentrated on enhancing multiple facets of CORDIC implementation. Numerous architectural improvements, such as high-radix formulations [9], scaling-free algorithms [10], angle recoding techniques, pipelined architectures [11], redundant arithmetic, and reconfigurable hardware implementations, have been suggested to augment computational speed, diminish hardware complexity, and enhance numerical precision [3,4]. Such developments have greatly expanded the scope of CORDIC applications in modern digital systems, and they made it a preferred computational technique for hardware implementation of elementary mathematical functions [3].
The efficacy of the CORDIC algorithm has led to several improvements over the years to boost its performance. The first attempts to increase throughput were mostly focused on pipelined VLSI architectures [12]. Over time, innovations like hybrid architectures and improved pipeline phases made it possible to design more resource-efficient real-time embedded systems [13]. Researchers have also proposed scale-free solutions to remove the typical scaling factor at the end of iterations, thereby improving hardware efficiency by not carrying out unnecessary multiplications [14].
Such advances notwithstanding, a long-standing limitation of many classical CORDIC designs is their dependence on a fixed number of repetitions to reach the desired precision. This static approach sometimes ends up with too many calculations, especially on inputs that naturally do not need such precision, wasting energy and computing power. A first approach is based on variable iterations depending on the target accuracy, leading to a significant improvement in efficiency as compared to fixed-iteration settings. Furthermore, a low-latency CORDIC based on greedy algorithms has been shown to reduce the average number of iterations [15]. In [16], a hybrid model is proposed that combines the classic CORDIC algorithm with the Variable Scaling Factor (VSF) approach. This architecture is implemented in a Cyclone IV FPGA. It reduces the number of iterations efficiently, with an optimal use of hardware. Advanced reconfigurable CORDIC architectures with circular and hyperbolic modes enhance power and latency parameters [17,18]. High radix and hybrid computing approaches reduce the computational cycles. Hardware-level improvements, for example, the use of carry-select adders and canonical signed-digit representations, have been proven to be effective in reducing power consumption and increasing processing speed. In [8], the specialized pre-rotation and comparison procedures were employed, and the iteration count was decreased.
Despite these significant improvements, there still remains a major limitation in most existing CORDIC implementations. In traditional architectures, a fixed number of iterations is usually performed, regardless of the numerical nature of the input or the precision required for a particular computation. This conservative method guarantees convergence but often results in superfluous iterations, because the desired accuracy may be reached before the maximum iteration limit is reached. This leads to additional calculations being performed without any improvement in the numerical result, and hence to longer computation time, increased energy consumption, and suboptimal utilization of computational resources. With the increasing demand for adaptive computation, a major research challenge in modern embedded and real-time systems is the determination of the minimum number of iterations to meet a given error tolerance.
Several solutions have been considered to solve this problem. Computational redundancy has been reduced by adopting analytical error models, adaptive stopping criteria, lookup-table-based techniques, and modified convergence schemes, all while preserving numerical accuracy [3]. Many methodologies improve some aspects of algorithmic efficiency, while some methodologies require additional control logic, are based on mode-dependent mathematical frameworks, or are increasingly difficult to generalize over different CORDIC working modes. Analytical determination of the number of iterations is not possible for general CORDIC implementations due to the nonlinear relation between input parameters, operating mode, numerical accuracy, and convergence behavior.
In a recent study, the feasibility of using machine learning for adaptive iteration prediction in the circular CORDIC algorithm has been demonstrated [19]. The study shows that regression models can efficiently predict near-optimal iteration numbers with computational accuracy maintained. The proposed method was limited to circular CORDIC operations, a small dataset was used for simulations, a limited number of regression models were evaluated and model interpretability, and statistical robustness and hardware-oriented performance were not investigated. Therefore, the application of the method to more general CORDIC designs and to the real hardware implementation is mostly uncharted.
These constraints motivated this work, which presents an explainable machine learning framework for adaptive iteration selection in a multi-mode CORDIC system. Unlike previous techniques, the proposed framework supports circular, hyperbolic, and linear CORDIC operations in a unified prediction model by leveraging an extended feature representation characterizing the numerical properties of CORDIC convergence. Eight regression algorithms are carefully examined by grouped cross-validation and improved hyperparameter setups in an effort to find the most acceptable prediction model. To obtain a reliable estimate of generalization performance, grouped validation is used during model development, while the final models are evaluated on an independent test set containing 2305 samples from 461 previously unseen input groups. The model behavior is further analyzed using feature importance, permutation importance, and feature ablation analyses. Bootstrap confidence intervals, Friedman statistical testing, and Holm-adjusted Wilcoxon signed-rank analysis further corroborate the prediction performance. The predicted iteration counts are further verified using the actual CORDIC error to ensure that the required numerical tolerance is satisfied. A safety-correction mechanism is incorporated to address under-prediction of the required iterations. The framework is then evaluated through independent testing, mode-wise and tolerance-wise analyses, statistical testing, and explainability analysis. The overall architecture of the proposed explainable ML-based adaptive CORDIC framework, including the ML-based iteration prediction, post-processing, safety correction, and CORDIC execution stages, is shown in Figure 1.

Main Contributions

The major contributions of this work are summarized below:
  • We propose an explainable machine learning framework for adaptive iteration optimization of multi-mode CORDIC systems that enables unified iteration prediction for circular, hyperbolic, and linear operating modes.
  • An efficient and mode-agnostic feature representation is proposed to characterize the numerical convergence behavior of CORDIC computations, which is then employed to predict the optimal number of iterations for different operating modes with high accuracy.
  • Eight regression models are considered: Linear Regression, Decision Tree, Random Forest, Extra Trees, Support Vector Regression, Multi-Layer Perceptron, Light GBM, and XGBoost. Grouped validation is used during model development, followed by evaluation on an independent test set containing previously unseen input groups.
  • The predicted iteration count is checked against the actual CORDIC error to determine whether the required tolerance is achieved. A safety-correction step is used when the predicted number of iterations is too low, and the resulting performance is examined for different CORDIC modes and tolerance levels.
  • The robustness of the proposed framework is confirmed by extensive statistical validation with the use of bootstrap confidence intervals, the Friedman test, and Holm-corrected Wilcoxon signed-rank post hoc analysis.
This paper’s remaining sections are structured as follows. Section 2 delineates the mathematical foundation of the multi-mode CORDIC algorithm, encompassing its operational principles, coordinate systems, convergence behavior, and iteration characteristics. The suggested explainable machine learning framework for adaptive multi-mode CORDIC iteration optimization, which includes feature engineering, regression models, and the prediction technique, is explained in Section 3. In Section 4 we present the experimental methodology, including dataset generation, model training, hyperparameter optimization, grouped validation, independent testing, and evaluation metrics. In Section 5, we provide the experimental results, including explainability analysis, statistical validation, and tolerance-aware performance evaluation to demonstrate the effectiveness of the proposed framework. The work is concluded in Section 6, which summarizes the key findings and discusses possible options for future research.

2. Proposed Methodology

2.1. Unified Multi-Mode CORDIC Formulation

The Coordinate Rotation Digital Computer (CORDIC) algorithm is an iterative numerical technique used to compute elementary mathematical functions with only shift-and-add arithmetic. In this work, circular, hyperbolic, and linear CORDIC operations are mathematically modeled in a unified way, yielding a common computational framework for adaptive iteration prediction for multiple operation modes. This unified representation enables the proposed learning framework to estimate the minimum number of iterations to achieve a given numerical accuracy while preserving the mathematical characteristics of each CORDIC mode.
The CORDIC state of the ith iteration is given by
s i = [ x i , y i , z i ] T ,
where x i and y i are the Cartesian coordinates and z i is the residual rotation parameter.
The generalized iterative update is expressed as
x i + 1 = x i m d i y i 2 i , y i + 1 = y i + d i x i 2 i , z i + 1 = z i d i ϕ i ,
where d i { 1 , + 1 } denotes the direction of rotation, m denotes the CORDIC mode, and  ϕ i is the elementary rotation angle. The parameter m is 1, 1 , and 0 for circular, hyperbolic, and linear modes, respectively. This formulation yields a unified mathematical representation with characteristics of each operational mode preserved.

2.2. Circular CORDIC

The trigonometric functions sin ( θ ) and cos ( θ ) are computed in the circular mode by successive elementary rotations. To ensure convergence over the entire angular domain, the input angle is first normalized and then mapped to the principal convergence interval π 2 θ π 2 by quadrant reduction.
The effective rotation angle is therefore confined to
π 2 θ π 2 ,
while the corresponding sign corrections are applied after convergence to recover the trigonometric values over the complete angular range.
The CORDIC gain compensates for the accumulated scaling due to successive rotations
K N = i = 0 N 1 1 1 + 2 2 i ,
which converges to approximately 0.607252935 as N increases.
The algorithm is initialized as
x 0 = K N , y 0 = 0 , z 0 = θ .
The rotation direction is selected according to
d i = + 1 , z i 0 , 1 , z i < 0 .
The iterative updates are
x i + 1 = x i d i y i 2 i , y i + 1 = y i + d i x i 2 i , z i + 1 = z i d i tan 1 ( 2 i ) .
After N iterations, the estimates of cos ( θ ) and sin ( θ ) are obtained from the final values of x N and y N , respectively.

2.3. Hyperbolic CORDIC

The hyperbolic mode evaluates the hyperbolic functions cosh ( v ) and sinh ( v ) through iterative hyperbolic rotations.
The update equations are
x i + 1 = x i + d i y i 2 i , y i + 1 = y i + d i x i 2 i , z i + 1 = z i d i tanh 1 ( 2 i ) .
The associated gain factor is
K H = i = 1 N 1 1 1 2 2 i .
Unlike circular CORDIC, hyperbolic CORDIC requires repeated elementary iterations to satisfy its convergence conditions. For the adopted iteration depth, the fourth elementary iteration is repeated to ensure numerical stability. In addition, the input is verified to remain within the convergence interval before execution.

2.4. Linear CORDIC

Linear mode performs successive linear transformations without geometric rotation and is commonly employed for multiplication, division, and other linear numerical operations. The iterative process progressively reduces the residual coordinate while accumulating the corresponding linear transformation.
The iterative equations are
x i + 1 = x i , y i + 1 = y i d i x i 2 i , z i + 1 = z i + d i 2 i ,
where
d i = + 1 , y i > 0 , 1 , y i 0 .
Unlike the circular and hyperbolic modes, no gain compensation factor is required because the transformation does not introduce rotational scaling. The residual value of y after the final iteration is used as the convergence error.

2.5. Numerical Error Evaluation

The numerical accuracy is evaluated by comparing the CORDIC output with the corresponding analytical solution. For circular mode, the error at iteration i is defined as
E i = max | x i cos θ | , | y i sin θ | .
Similarly, hyperbolic mode compares the iterative estimates with the analytical values of cosh ( v ) and sinh ( v ) , while linear mode evaluates the residual magnitude of the transformed coordinate.
The required iteration count is defined as
N = min i : E i ε ,
where ε denotes the prescribed numerical tolerance. The search is carried out up to the maximum allowed iteration count N max .

2.6. Adaptive Iteration Learning Framework

The convergence data generated from circular, hyperbolic, and linear CORDIC executions are used to construct a supervised learning dataset. Each sample consists of the input characteristics together with the corresponding optimal iteration count N .
The learning problem is formulated as
f ( x ) N ,
where x denotes the feature vector describing the numerical characteristics of the CORDIC input.
In the inference phase, the trained regression model predicts the minimum number of iterations needed to reach the desired numerical accuracy. This enables the elimination of redundant iterations occurring in conventional fixed-iteration CORDIC implementations with specified numerical tolerance. This adaptive strategy allows us to use the computational resources for each input in accordance with the numerical complexity of it, and it thus improves the efficiency of the computation without deteriorating the solution accuracy. In the inference phase, the trained regression model calculates the number of iterations for the input and tolerance. The expected number is converted into an integer number of iterations and then compared with the actual CORDIC error. Because direct forecasts can underestimate the number of iterations needed, a precautionary adjustment strategy is undertaken when appropriate. The resulting iteration count is then used for the adaptive CORDIC process. This approach allows us to minimize the number of unnecessary iterations and to confirm the specified numerical tolerance immediately.

3. Dataset Generation and Feature Engineering

3.1. Simulation-Based Multi-Mode Dataset Generation

In contrast to traditional machine learning research that uses publicly accessible datasets, the suggested framework uses a simulation-driven methodology where the training dataset is produced directly from the multi-mode CORDIC algorithm’s numerical behavior. The goal is to generate a supervised learning dataset that captures the mapping between input features of a CORDIC operation and the minimal number of iterations needed to meet a certain numerical accuracy.
For the dataset construction, three CORDIC computational frameworks for circular, hyperbolic, and linear operating modes were developed considering the mathematical formulation shown in Section 2. Each model was iterated up to a maximum of 20 iterations and the convergence of the numerical solution was checked at each iteration. The complete CORDIC simulation is used during dataset construction to determine the reference iteration count. During inference, the trained regression model estimates the required number of iterations without executing the complete iterative CORDIC sequence.
A systematic sampling of the input space was used to explore a large range of operating conditions for all supported CORDIC modes. We studied the circular mode over the angular range [ 180 , 180 ] , the hyperbolic mode over the convergence interval [ 1.0 , 1.0 ] , and the linear mode over a set of pre-defined input combinations corresponding to linear transformations. Furthermore, a number of numerical tolerance levels were integrated to accommodate for various precision requirements, allowing the resulting dataset to span different convergence conditions encountered in practical applications.
After each iteration, the numerical error for each simulation sample was computed using the analytical reference solution as detailed in Section 2. The optimal number of iterations was then determined as the first iteration satisfying the given error tolerance and used as the target variable for supervised regression. Therefore, each example in the dataset contains the input descriptors and its best iteration number, providing the ground-truth information necessary for adaptive iteration selection.

3.2. Feature Engineering

The quality and representativeness of the input features have a significant impact on the predictive power of a machine learning model. The proposed framework employs a compact feature representation that only uses the quantities known before execution, instead of the large number of intermediate variables produced by the iterative CORDIC computation. The design enables the regression model to estimate the needed iteration number using only information available before the CORDIC iterations begin, without relying on intermediate values generated during the iterative computation.
The final feature vector consists of six predictors selected to describe the main factors affecting the convergence behavior of the CORDIC algorithm across the three operating modes. These predictors are the operating mode, input value, absolute input magnitude, input sign, quadrant information, and logarithmic inverse tolerance as shown in Table 1. The resulting feature representation is compact and uses only quantities available before the CORDIC iterations begin.
The final feature representation deliberately excludes mathematical function values such as sin ( x ) , cos ( x ) , sinh ( x ) , and  cosh ( x ) from the prediction inputs. Since they are the outputs of the CORDIC computation and are used only as analytical reference values during numerical error evaluation, using these values from the predictor set avoids a circular dependency between feature generation and CORDIC execution.

3.3. Dataset Characteristics

The simulation procedure presented in the previous subsection produced a single regression dataset with samples for circular, hyperbolic, and linear CORDIC operations under different numerical precision requirements. Each record includes the engineered feature vector and the corresponding optimal iteration count obtained by iterative numerical simulation. Thus, the dataset describes the relation between the operating mode, the input properties, the convergence tolerance, and the minimum number of iterations needed to obtain the specified numerical accuracy.
Figure 2 summarizes the characteristics of the generated simulation dataset. As shown in Figure 2a, the dataset includes samples from circular, hyperbolic, and linear CORDIC modes, with circular mode contributing the largest number of samples due to its wider operating range. Figure 2b shows that the optimal iteration count is primarily distributed between 8 and 14 iterations, although the required iterations vary with the input conditions and prescribed numerical tolerance. This variability highlights the limitations of fixed-iteration CORDIC implementations and motivates the proposed adaptive iteration prediction framework. The produced dataset consists of 11,505 simulation samples with input parameters, tolerance information, auxiliary simulation variables, and the reference optimal iteration count. For model development, only the six final predictors listed in Table 1 and the optimal iteration count are retained, while the auxiliary simulation variables are used for convergence and validation analysis.
The regression dataset used for training the final model consisted of the engineered predictor variables and the optimal number of iterations, whereas the auxiliary variables generated during simulation were only kept for validation and convergence analysis, see (Table 2).
Figure 3 shows the Pearson correlation among the final predictor features. Some association is observed between input_value and sign_input, as well as between mode and quadrant. In contrast, log_inverse_delta shows negligible linear correlation with the remaining predictors. The correlation analysis was used as an exploratory assessment of feature relationships and was not used as the basis for removing predictors, since nonlinear dependencies may not be captured by pairwise correlation alone.

4. Explainable Machine Learning Framework

4.1. Problem Formulation

The objective of the proposed framework is to predict the minimum number of CORDIC iterations required to satisfy a prescribed numerical tolerance without executing the complete fixed-iteration CORDIC algorithm. Unlike conventional implementations that employ a predetermined number of iterations irrespective of the input characteristics, the proposed approach formulates adaptive iteration estimation as a supervised regression problem.
Let
x = [ x 1 , x 2 , , x d ] T ,
denote the feature vector extracted from the simulation dataset, where d = 6 represents the number of input features described in Section 4. These features characterize the operating mode, input properties, and the required numerical precision using quantities available before the iterative CORDIC execution.
For every input sample, the corresponding target variable is the optimal iteration count,
N N ,
obtained through numerical simulation using the convergence criterion presented in Section 2. The learning objective is therefore to estimate the nonlinear mapping
f : x N ,
where f ( · ) denotes the regression model learned from the simulation dataset.
Given a training dataset
D = ( x i , N i ) i = 1 M ,
where M denotes the total number of simulation samples, the regression model is trained to minimize the discrepancy between the predicted iteration count
N ^ i = f ( x i ) ,
and the corresponding optimal iteration count N i .
During inference, only the engineered feature vector is required as input, enabling the trained regression model to directly estimate the required number of CORDIC iterations without performing iterative convergence analysis. The predicted iteration count is subsequently supplied to the adaptive CORDIC engine, which executes only the estimated number of iterations instead of a fixed maximum iteration depth. Consequently, unnecessary computations are eliminated while preserving the desired numerical accuracy. The continuous regression output is converted to an integer iteration count and checked against the actual CORDIC error. If the predicted iteration count is insufficient to satisfy the prescribed tolerance, a safety-correction procedure increases the iteration count until the tolerance condition is satisfied or the maximum iteration limit is reached. The resulting safe iteration count is then supplied to the adaptive CORDIC engine. Algorithm 1 summarizes the proposed adaptive iteration selection framework.
Algorithm 1: Explainable adaptive multi-mode CORDIC framework.
Input: Input parameters ( m , x , δ )
Output: Adaptive CORDIC output
1.Extract the six pre-execution features;
2.Construct the feature vector x ;
3.Load the trained machine learning model;
4.Predict the optimal iteration count
N ^ = f ( x )
5.Convert N ^ to an integer iteration count using the ceiling operation and constrain it to [ 1 , N max ] ;
6.Evaluate the CORDIC error at the predicted iteration count;
7.If the error exceeds the prescribed tolerance, increase the iteration count until the tolerance is satisfied or N max is reached;
8.Execute the CORDIC operation using the resulting safe iteration count and return the output;

4.2. Regression Models and Hyperparameter Optimization

To address the adaptive iteration prediction problem, we use supervised regression approaches that can learn the nonlinear relationship between the engineering feature vector and the ideal iteration count. To examine the different learning paradigms in a thorough manner, eight regression algorithms were investigated, Linear Regression (LR), Decision Tree (DT), Random Forest (RF), Extra Trees (ET), Support Vector Regression (SVR), Multi-Layer Perceptron (MLP), Light Gradient Boosting Machine (LightGBM), and Extreme Gradient Boosting (XGBoost). These models include linear, tree-based, ensemble, kernel-based, neural network and gradient boosting methods, giving a wide-ranging evaluation of regression methods for adaptive multi-mode CORDIC iteration prediction. Model development was performed using grouped validation to reduce the effect of similar input configurations appearing across training and validation sets. Hyperparameter selection was performed only on the development data, and the final model performance was assessed separately on an independent test set.
The resulting optimal hyperparameter settings are presented in Table 3 and Table 4. For tree-based models, parameters controlling the depth of trees, the splitting of nodes, and the size of the ensemble were tuned to find an appropriate balance between predictive accuracy and model complexity. For kernel and neural network models, the optimization was on the parameters that control the nonlinear learning process, such as the kernel function, regularization coefficient, network architecture and learning rate. Similarly, the gradient boosting models were tuned by selecting the appropriate values for the number of boosting iterations, learning rate, tree depth, and sampling ratios. We then used the optimized configurations found by GridSearchCV for all experimental evaluations reported in this paper.

4.3. Experimental Setup

The suggested adaptive multi-mode CORDIC framework was developed in Python 3.14.7 and operated on the Google Colaboratory cloud computing platform. Numerical computations and data preprocessing were executed with NumPy 2.5.2 and Pandas 3.0.5, while visualization was conducted using Matplotlib 3.11.1. The regression models were executed with the Scikit-learn 1.9.0 and XGBoost 3.4.1 libraries. The software documentation was accessed on 25 February 2026. All experiments used the simulation dataset described in Section 4, with the six-feature representation as the model input and the optimal iteration count as the target variable (Table 5). Model development and hyperparameter selection were performed using the development data, while the final model comparison was carried out on an independent test set that was not used for training or hyperparameter tuning.

4.4. Evaluation Metrics

The regression models’ predictive performance was assessed using standard statistical measures and application-specific metrics related to adaptive CORDIC iteration prediction. Mean Absolute Error (MAE), Root Mean Square Error (RMSE), coefficient of determination ( R 2 ), Mean Absolute Percentage Error (MAPE), Median Absolute Error (MedAE), Maximum Error (MaxError), and Explained Variance Score (EVS) were all included in the evaluation. We also report the percentage of predictions within ± 1 and ± 2 iterations of the optimal solution to evaluate the practical usefulness of the proposed framework. The computational efficiency was measured by the training time, prediction time, and average inference time per sample.
The Mean Absolute Error (MAE) is computed as
MAE = 1 N i = 1 N | y i y ^ i | ,
where y i and y ^ i denote the actual and predicted iteration counts, respectively, and N is the total number of samples.
The Root Mean Square Error (RMSE), which assigns greater weight to larger prediction errors, is given by
RMSE = 1 N i = 1 N ( y i y ^ i ) 2 .
The coefficient of determination is calculated as
R 2 = 1 i = 1 N ( y i y ^ i ) 2 i = 1 N ( y i y ¯ ) 2 ,
where y ¯ is the mean of the observed values.
Since the number of predictor variables influences the coefficient of determination, the Adjusted R 2 is computed as
Adjusted R 2 = 1 ( 1 R 2 ) N 1 N p 1 ,
where p denotes the number of predictor variables.
The Mean Absolute Percentage Error (MAPE) is defined as
MAPE = 100 N i = 1 N y i y ^ i y i .
Accuracy ± k = 1 N i = 1 N 1 | y i y ^ i | k × 100 , k { 1 , 2 } ,
Since a small prediction error does not necessarily mean that the required numerical tolerance will be achieved, the predicted iteration count was further checked against the actual error produced by the CORDIC computation. For each test sample, tolerance satisfaction was determined as
S i = 1 , E N ^ i ε i , 0 , E N ^ i > ε i ,
where N ^ i represents the predicted integer number of iterations, E N ^ i denotes the CORDIC error obtained after N ^ i iterations, and ε i is the required tolerance for the corresponding sample. The overall tolerance satisfaction rate is calculated as
TSR = 1 N i = 1 N S i × 100 .
In addition to the tolerance satisfaction rate, the prediction errors were examined according to their direction to distinguish between under-prediction and over-prediction. The results were also analyzed separately for the three CORDIC modes and for each tolerance level to assess the reliability of the adaptive iteration strategy under different operating conditions.
Median Absolute Error, Maximum Error, and Explained Variance Score were also computed to provide additional information on prediction stability and robustness. Since the proposed framework predicts the optimal CORDIC iteration count, two application-oriented measures, Accuracy ± 1 and Accuracy ± 2, were introduced. These represent the percentage of predictions lying within one and two iterations of the corresponding optimal iteration count, respectively. Finally, the computational cost of each regression model was evaluated using the training time, prediction time, and average inference time per sample.

4.5. Explainability Framework

Understanding the factors that influence the predicted CORDIC iteration count is essential for assessing the reliability of the proposed adaptive framework. To provide a transparent interpretation of the regression models, both model-specific and model-agnostic explainability techniques were employed. These analyses were performed after model training and were used to investigate the contribution of each engineered feature to the predicted iteration count. For the tree-based ensemble models, feature importance scores were obtained directly from the trained models to quantify the relative contribution of each predictor during the learning process. Since impurity-based feature importance may be affected by feature interactions, permutation importance was additionally computed by randomly shuffling each feature and measuring the resulting degradation in prediction accuracy. This approach provides a model-agnostic estimate of feature relevance.
To further interpret individual model predictions, SHapley Additive exPlanations (SHAP) were employed. SHAP assigns a contribution value to every feature for each prediction based on cooperative game theory, enabling both global and local interpretation of the regression model. The global SHAP summary identifies the most influential predictors across the entire dataset, while the local explanations illustrate how individual feature values increase or decrease the predicted iteration count.
Finally, an ablation analysis was conducted to evaluate the importance of each engineered feature. In this analysis, one feature was removed at a time, and the regression models were retrained using the remaining predictors. The resulting variation in prediction performance provides additional evidence regarding the contribution of individual features to adaptive iteration prediction and validates the effectiveness of the proposed feature engineering strategy.

5. Results and Analysis

5.1. Overall Performance Comparison of ML Models

Eight regression models were evaluated for predicting the CORDIC iteration requirement: Linear Regression, Decision Tree, Random Forest, Extra Trees, XGBoost, LightGBM, Support Vector Regression, and Multi-Layer Perceptron. Model development was carried out using grouped cross-validation, while the final performance was assessed on an independent test set that was not used during model training or hyperparameter selection. This separation was used to provide a more realistic assessment of the ability of the models to generalize to previously unseen input configurations.
Table 6 presents the performance obtained on the independent test set. Among the evaluated models, the Decision Tree achieved the lowest MAE of 0.9160 and RMSE of 1.9671, together with an R 2 value of 0.6076. It also predicted the required iteration count within ± 1 iteration for 80.26% of the test samples and within ± 2 iterations for 90.07%. The remaining models produced MAE values between 1.2573 and 1.3974, with R 2 values ranging from 0.4546 to 0.5762. The Decision Tree therefore provided the best overall performance on the independent test set and was selected as the final prediction model for the subsequent reliability, tolerance-aware, and interpretability analyses.
Figure 4 compares the eight regression models on the independent test set using MAE, MSE, and R 2 . The Decision Tree achieved the lowest MAE, indicating the smallest average absolute deviation between the predicted and target CORDIC iteration counts. In terms of MSE, LightGBM and XGBoost provided slightly better regression fit, with LightGBM obtaining the lowest MSE. However, the Decision Tree achieved the highest R2 among the evaluated models. The results therefore show that the models exhibit different strengths depending on the evaluation criterion. Since the Decision Tree produced the lowest MAE and provides a direct and interpretable iteration prediction, it was selected for the subsequent adaptive CORDIC evaluation, feature-importance analysis, and explainability analysis.
The independent-test results also show that the Decision Tree achieved the highest R 2 value among the evaluated models, with an R 2 of 0.6076. LightGBM and XGBoost obtained R 2 values of 0.5762 and 0.5731, respectively. The results indicate that the nonlinear relationship between the input characteristics and the required iteration count is not fully captured by a simple linear model, while the tree-based Decision Tree provides the strongest overall predictive performance on the independent test data.

5.2. Bootstrap Confidence Interval Analysis

To quantify the uncertainty of the final model performance, group-level bootstrap resampling was performed on the independent test set. A total of 5000 bootstrap replications were generated by resampling the 461 independent test groups while retaining all five tolerance-level observations within each group. The resulting 95% confidence interval was obtained using the percentile bootstrap method.
Figure 5 presents the group-level bootstrap distribution of the mean absolute error (MAE) for the final Decision Tree, together with its 95% percentile bootstrap confidence interval. The analysis was performed exclusively on the independent test set, comprising 461 previously unseen input groups with five tolerance-level observations per group. The Decision Tree was not retrained, and the independent test data were not used for model training or hyperparameter selection. Across 5000 group-level bootstrap replications, the observed test-set MAE was 0.9160, with a bootstrap mean MAE of 0.9151 (SD = 0.0776) and a 95% confidence interval of [0.7708, 1.0701]. This analysis provides an uncertainty estimate for the independent-test performance and complements the point estimates reported in Table 6, providing additional evidence regarding the stability of the final model on previously unseen input groups.

5.3. Statistical Significance Analysis

The independent-test results identified the Decision Tree as the best-performing model based on the lowest MAE. To examine whether the observed differences among the eight regression models were statistically significant, a Friedman test was first performed using the paired prediction errors obtained from the independent test set. The Friedman test yielded a statistic of 957.623553 with a p-value of 1.721045 × 10 202 , indicating a statistically significant difference among the evaluated models.
Following the overall Friedman test, pairwise Wilcoxon signed-rank tests were performed to compare the Decision Tree with each of the other regression models. The paired observations corresponded to the prediction errors obtained for the same independent test samples, allowing the models to be compared under identical input conditions. Since seven pairwise comparisons were performed, the resulting p-values were adjusted using the Holm procedure. Statistical significance was considered at the 5% level.
The pairwise results are summarized in Table 7. After Holm correction, the Decision Tree showed a statistically significant difference in prediction error compared with all seven competing models ( p < 0.05 ). The largest rank-biserial effect was observed for the comparison with Extra Trees ( 0.6420 ), followed by Random Forest ( 0.5759 ), XGBoost ( 0.5544 ), and LightGBM ( 0.5530 ). Comparisons with Linear Regression and SVR also showed moderate effects, while the comparison with MLP indicated a large effect according to the magnitude of the rank-biserial coefficient.
These statistical findings are consistent with the independent-test performance, where the Decision Tree obtained the lowest MAE among the eight models. The statistical analysis therefore provides additional evidence supporting the selection of the Decision Tree as the final prediction model. The statistical significance is considered together with the magnitude of the prediction errors and the tolerance-aware evaluation presented in the subsequent sections.

5.4. Feature Importance and Explainability Analysis

To understand which input characteristics influence the predicted CORDIC iteration count, the final Decision Tree model was examined using its feature importance and SHAP-based explanations. Figure 6 presents the feature importance obtained from the final Decision Tree. The results show that log_inverse_delta is the most influential feature, followed by abs_input and mode. Their respective importance values are 0.5815, 0.2476, and 0.1217. The remaining features, namely, input_value, quadrant, and sign_input, have considerably smaller contributions, with importance values of 0.0331, 0.0161, and 0.0001, respectively.
The importance of log_inverse_delta is consistent with the expected behavior of the CORDIC algorithm, since the required number of iterations is strongly related to the desired error tolerance. The influence of abs_input and mode further indicates that the iteration requirement depends not only on the target tolerance but also on the magnitude and operating mode of the input. In contrast, the very small contribution of sign_input suggests that the sign of the input has limited influence on the predicted iteration count within the evaluated dataset.
To obtain a more detailed view of how individual features affect the model predictions, SHAP (SHapley Additive exPlanations) analysis was performed on the final Decision Tree. The resulting SHAP summary plot is shown in Figure 7. The global SHAP analysis produced a similar ranking to the Decision Tree feature importance, with log_inverse_delta contributing the most to the model output. Its mean absolute SHAP value was 1.7637, corresponding to 57.95% of the total SHAP contribution. It was followed by abs_input with 23.14% and mode with 10.15%. The contributions of quadrant, input_value, and sign_input were comparatively smaller.
The SHAP distribution also provides information beyond the overall feature ranking. For log_inverse_delta, the SHAP values span a wide range, indicating that changes in the requested tolerance have a substantial effect on the predicted iteration count. Higher values of this feature correspond to stricter error requirements and are generally associated with positive contributions to the predicted number of iterations. The distributions for abs_input and mode show that the effect of these variables depends on their values and their interaction with the other predictors. The SHAP results therefore support the feature-importance analysis while providing a more detailed view of how the predictors influence individual model outputs.
Overall, both analyses identify log_inverse_delta as the dominant predictor, followed by abs_input and mode. The agreement between the model-based feature importance and the SHAP analysis provides consistent evidence that the predicted iteration count is primarily determined by the required numerical precision, while the input magnitude and CORDIC operating mode provide additional information for adapting the iteration count.

5.5. Feature Ablation Study

A feature ablation analysis was conducted to examine the contribution of the final predictors to the iteration prediction task. Each feature was evaluated by removing it from the final six-feature representation and assessing the resulting model behavior. The analysis was used to identify the predictors that have the greatest influence on the prediction of the optimal CORDIC iteration count and to complement the feature-importance and permutation-importance result.
The feature-importance analysis identifies log_inverse_delta as the dominant predictor of the required CORDIC iteration count. Its contribution is followed by abs_input and mode, while sign_input provides negligible contribution. The ablation results are subsequently used to examine whether the observed feature-importance ranking is reflected in the predictive performance when individual predictors are removed shown in Figure 8.

5.6. Adaptive CORDIC Iteration Efficiency and Tolerance-Aware Evaluation

To evaluate the practical computational benefit of the proposed adaptive iteration strategy, the final Decision Tree predictions were evaluated on the independent test set and compared with a conventional fixed-20-iteration CORDIC implementation. The analysis focuses on the number of iterations executed, the resulting reduction in iterative computation, and the ability of the predicted iteration count to satisfy the prescribed numerical tolerance. Since no FPGA or ASIC implementation is performed in this study, the analysis is reported as an iteration-efficiency evaluation rather than a measured hardware performance evaluation.
Table 8 summarizes the iteration-efficiency and tolerance-aware results obtained on the independent test set. The conventional implementation executes 20 iterations for every input, whereas the machine learning model predicts an average of 9.757 iterations. Because prediction error alone does not guarantee that the required numerical tolerance will be satisfied, a safety-correction mechanism was subsequently applied to the predicted iteration count. The correction mechanism verifies the numerical error associated with the predicted iteration count and incrementally increases the iteration count when the specified tolerance is not satisfied, subject to the maximum allowable limit of N max = 20 . Thus, samples for which the initial prediction is insufficient are corrected using additional iterations, while samples that already satisfy the tolerance remain unchanged. This ensures that all test samples satisfy the prescribed tolerance, resulting in a 100% tolerance-satisfaction rate. The safety-corrected strategy required an average of 11.739 iterations, corresponding to a reduction of 8.261 iterations, or 41.31%, relative to the fixed-20-iteration implementation.

5.7. Comparison with Conventional Non-ML Adaptive CORDIC

The proposed iteration prediction approach was further compared with a conventional tolerance-driven CORDIC implementation using the same independent test set of 2305 samples from 461 unseen input groups. The conventional method selected an average of 9.7124 iterations, corresponding to a reduction of 10.2876 iterations, or 51.44%, compared with the fixed 20-iteration implementation. The selected iteration counts showed 100% agreement with the optimal-iteration targets used during dataset generation, confirming that the conventional baseline is consistent with the target-generation procedure.
Figure 9 illustrates the effect of the prescribed tolerance on the number of CORDIC iterations required by the conventional non-ML adaptive strategy. As the tolerance is relaxed from 10 4 to 10 2 , the mean number of iterations decreases from approximately 12.96 to 7.02, while the fixed-20 implementation remains unchanged. This demonstrates the expected reduction in iterative computation for less stringent accuracy requirements. The tolerance-satisfaction rate remains above 93% for the stricter tolerance levels and increases to approximately 97.8% for the relaxed tolerance levels. The figure therefore provides a tolerance-wise view of the computational savings obtained by replacing the fixed iteration count with a tolerance-driven stopping criterion.
The Decision Tree predicted an average of 9.7575 iterations on the same test samples. The difference between the two adaptive approaches was only 0.0451 iterations on average, corresponding to a negligible difference in iteration reduction. Thus, the proposed model provides an iteration requirement very close to that obtained by the conventional adaptive procedure. While the conventional procedure may achieve a marginally lower iteration count, it requires an explicit adaptive search during operation. In contrast, the proposed Decision Tree provides a direct prediction of the required iteration count from the input features, avoiding such an explicit iteration-by-iteration search during prediction. However, the practical advantage of the ML-based approach should be considered together with the computational cost of model inference and the additional control logic required for integrating the predictor with the CORDIC datapath.The comparison is summarized in Table 9.
The results demonstrate that adaptive iteration selection can substantially reduce unnecessary CORDIC iterations relative to a fixed 20-iteration implementation. The conventional reference and the Decision Tree require nearly the same number of iterations on average, indicating that the learned model closely approximates the iteration requirements determined by the conventional adaptive procedure. From a hardware-efficiency perspective, this reduction in iteration count can potentially decrease computational activity and latency. However, actual reductions in hardware area, power, or energy depend on the target architecture and implementation technology and are not directly quantified in this study.

6. Conclusions

This paper proposed an AI-assisted adaptive CORDIC framework, which can dynamically predict the optimal number of CORDIC iterations based on machine learning, and it addresses the inefficiencies of the conventional fixed-iteration implementations. We generated a comprehensive dataset with 11,505 samples by simulating circular, hyperbolic, and linear CORDIC operations for a host of different numerical precision requirements. Six engineered features detailing the operating mode, input characteristics, and numerical precision requirements were extracted and used for training several regression models including the following: Linear Regression, Decision Tree, Random Forest, Extra Trees, Support Vector Regression, Light GBM, Multi-Layer Perceptron, and XGBoost.
Extensive experimental evaluation showed that Decision Tree achieved the lowest MAE on the independent test set and was therefore selected as the final prediction model. Statistical comparison using the Wilcoxon signed-rank test showed significant differences between the Decision Tree and the other evaluated regression models after Holm correction. Feature-importance, permutation-importance, and SHAP analyses consistently identified log_inverse_delta as the dominant predictor, followed by abs_input and mode. The SHAP analysis further showed that log_inverse_delta accounted for 57.95% of the mean absolute SHAP contribution.
The practical effectiveness of the adaptive strategy was evaluated on the independent test set through comparison with a conventional fixed-20-iteration CORDIC implementation. The conventional non-ML tolerance-driven reference reduced the mean iteration count from 20 to 9.7124, corresponding to a 51.44% reduction. The Decision Tree predicted an average of 9.7575 iterations, corresponding to a 51.21% reduction relative to the fixed-20 implementation. The conventional reference showed 100% agreement with the stored target-generation results, confirming the consistency of the baseline. These results demonstrate that the learned model can closely reproduce the iteration requirements of the conventional adaptive strategy while reducing the number of CORDIC iterations.
Future work will focus on implementing the proposed adaptive strategy on FPGA and ASIC platforms to experimentally validate its effects on latency, power consumption, area utilization, and energy efficiency. In addition, future research will investigate lightweight regression models suitable for embedded implementations, online adaptive learning strategies capable of dynamically updating iteration predictions during operation, and the integration of the proposed framework into advanced digital signal processing, wireless communication, robotics, computer graphics, and edge AI accelerators. The proposed methodology can also be generalized to other iterative numerical algorithms where adaptive computation can improve computational efficiency without compromising numerical precision.

Author Contributions

Conceptualization, R.S., C.R. and A.M.; Methodology, R.S., L.C.R. and A.M.; Software, R.S.; Validation, C.R. and B.B.; Investigation, L.C.R. and B.B.; Data curation, L.C.R. and B.B.; Writing—original draft, R.S. and L.C.R.; Writing—review and editing, C.R., B.B. and A.M.; Supervision, A.M.; Project administration, C.R. and A.M.; Funding acquisition, C.R., B.B. and A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research has been partially funded from “Smart.EDU project”, Grant n.BR28713531 by Ministry of Science and Higher Education of the Republic of Kazakhstan, and Project “Paride”, Grant n.E87G23000120001 funded by Department for Cohesion Policy and South of Republic of Italy, and by AIMLab (AI Multicognitive Laboratory) of Link Campus University.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

SymbolDescription
mCORDIC mode
N Optimal iteration count
N ^ Predicted iteration count
N safe Safety-corrected iteration count
N max Maximum allowed iteration count
ϵ Tolerance limit
δ Required numerical tolerance
iCORDIC iteration index
θ Input angle
xCORDIC input value
x 0 Initial CORDIC x-coordinate
y 0 Initial CORDIC y-coordinate
x i CORDIC x-coordinate after the ith iteration
y i CORDIC y-coordinate after the ith iteration
z i Residual angle or argument after the ith iteration
K N CORDIC gain
log ( 1 / δ ) Logarithmic inverse tolerance feature
X Feature matrix
yTarget optimal iteration count
y ^ Predicted iteration count
Δ N Iteration reduction
CRegularization parameter
R 2 Coefficient of determination
MAE Mean absolute error
RMSE Root mean square error
CI Confidence interval
pStatistical significance probability value
WWilcoxon signed-rank test statistic
χ F 2 Friedman test statistic
rPearson correlation coefficient
ρ Spearman rank correlation coefficient
PI Permutation importance
SHAP Shapley additive explanations
LR Linear regression
DT Decision tree
RF Random forest
ET Extra trees
SVR Support vector regression
MLP Multi-layer perceptron
XGBoost Extreme gradient boosting
LightGBM Light gradient boosting machine
CV Cross-validation
GKF Grouped K-fold cross-validation

References

  1. Volder, J.E. The CORDIC trigonometric computing technique. Comput. Arith. 2015, 1, 245–249. [Google Scholar]
  2. Walther, J.S. A unified algorithm for elementary functions. In Proceedings of the Spring Joint Computer Conference, Atlantic City, NJ, USA, 18–20 May 1971; ACM: New York, NY, USA, 1971; pp. 379–385. [Google Scholar]
  3. Andraka, R. A survey of CORDIC algorithms for FPGA based computers. In Proceedings of the 1998 ACM/SIGDA Sixth International Symposium on Field Programmable Gate Arrays; ACM: New York, NY, USA, 1998; pp. 191–200. [Google Scholar]
  4. Meher, P.K.; Valls, J.; Juang, T.B.; Sridharan, K.; Maharatna, K. 50 years of CORDIC: Algorithms, architectures, and applications. IEEE Trans. Circuits Syst. I Regul. Pap. 2009, 56, 1893–1907. [Google Scholar] [CrossRef] [Scilit]
  5. Węgrzyn, M.; Voytusik, S.; Gavkalova, N. FPGA-based Low Latency Square Root CORDIC Algorithm. J. Telecommun. Inf. Technol. 2025, 99, 21–29. [Google Scholar] [CrossRef] [Scilit]
  6. Changela, A.; Zaveri, M.; Lakhlani, A. ASIC implementation of high performance radix-8 CORDIC algorithm. In Proceedings of the 2018 International Conference on Advances in Computing, Communications and Informatics (ICACCI); IEEE: Piscataway, NJ, USA, 2018; pp. 699–705. [Google Scholar]
  7. Asok, N.; Nikhil, V.; Manoj, C.; Sunder, K.; Reddy, V.; Rajeswari, P. Implementation of low power CORDIC algorithm. J. Eng. Appl. Sci. 2018, 13, 842–847. [Google Scholar]
  8. Li, K.; Fang, H.; Ma, Z.; Yu, F.; Zhang, B.; Xing, Q. A Low-Latency CORDIC Algorithm Based on Pre-Rotation and Its Application on Computation of Arctangent Function. Electronics 2024, 13, 2338. [Google Scholar] [CrossRef] [Scilit]
  9. Chen, H.; Quan, L.; Chen, K.; Liu, W. High-Radix Generalized Hyperbolic CORDIC and Its Hardware Implementation. IEEE Trans. Comput. 2025, 74, 983–995. [Google Scholar] [CrossRef] [Scilit]
  10. Sun, H.; Peng, Y.; Wei, X.; Liu, L. Scaling-Free CORDIC Optimization Based on the Time-Multiplexed Constant Multiplication. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2026, 45, 3333–3345. [Google Scholar] [CrossRef] [Scilit]
  11. Adiono, T.; Ahmadi, N.; Renardy, A.P.; Fadila, A.A.; Shidqi, N. A pipelined CORDIC architecture and its implementation in all-digital FM modulator-demodulator. In Proceedings of the 2015 6th Asia Symposium on Quality Electronic Design (ASQED); IEEE: Piscataway, NJ, USA, 2015; pp. 37–42. [Google Scholar] [CrossRef] [Scilit]
  12. Rai, S.; Dwivedi, C.; Srivastava, R. Pipelined cordic architecture and its implementation on Simulink. In Proceedings of the 2017 3rd International Conference on Computational Intelligence & Communication Technology (CICT); IEEE: Piscataway, NJ, USA, 2017; pp. 1–10. [Google Scholar]
  13. Chakraborty, A.; Banerjee, A. Cordic-based high-speed vlsi architecture of transform model estimation for real-time imaging. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2020, 29, 215–226. [Google Scholar] [CrossRef] [Scilit]
  14. Paramasivam, C.; Chauhan, S.S.; Meena, V.; Sreejagathi, A.; Hasini, B.; Kishore, K.; Vamsikrishna, T.; Anantasai, M.D.; Didi, A. Enhanced Performance of New Scaling-free CORDIC for Memory-based Fast Fourier Transform Architecture. IEEE Access 2025, 13, 19828–19844. [Google Scholar] [CrossRef] [Scilit]
  15. Hou, N.; Wang, M.; Zou, X.; Liu, M. A Low Latency Floating Point CORDIC Algorithm for Sin/Cosine Function. In Proceedings of the 2019 IEEE 4th International Conference on Signal and Image Processing (ICSIP); IEEE: Piscataway, NJ, USA, 2019; pp. 751–755. [Google Scholar]
  16. Xue, Y.; Ma, Z. Design and implementation of an efficient modified CORDIC algorithm. In Proceedings of the 2019 IEEE 4th International Conference on Signal and Image Processing (ICSIP); IEEE: Piscataway, NJ, USA, 2019; pp. 480–484. [Google Scholar]
  17. Feng, Z.; Chang, H.; Zhang, H.; Li, A.; Xing, L. Design and Implementation of High-speed and High-precision CORDIC Algorithm. In Proceedings of the 2024 6th International Conference on Frontier Technologies of Information and Computer (ICFTIC); IEEE: Piscataway, NJ, USA, 2024; pp. 1050–1056. [Google Scholar]
  18. Bai, N.; Qu, R.; Xu, Y.; Wang, Y.; Chen, X.; Li, L. Low-iteration hybrid computing CORDIC architecture. Microelectron. J. 2025, 156, 106481. [Google Scholar] [CrossRef] [Scilit]
  19. Sudheerbabu, R.; Reghunath, L.C.; Franzoni, V.; Milani, A.; Randieri, C. Artificial Intelligence for Iteration Count Prediction in Real-Time CORDIC Processing. Mathematics 2025, 13, 3957. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Overall architecture of the proposed explainable ML-based adaptive CORDIC framework.
Figure 1. Overall architecture of the proposed explainable ML-based adaptive CORDIC framework.
Mathematics 14 03096 g001
Figure 2. Characteristics of the generated simulation dataset. (a) Distribution of samples across the circular, hyperbolic, and linear CORDIC operating modes. (b) Distribution of the optimal iteration count obtained through numerical simulation under different input conditions and convergence tolerances.
Figure 2. Characteristics of the generated simulation dataset. (a) Distribution of samples across the circular, hyperbolic, and linear CORDIC operating modes. (b) Distribution of the optimal iteration count obtained through numerical simulation under different input conditions and convergence tolerances.
Mathematics 14 03096 g002
Figure 3. Pearson correlation matrix of the final predictor features used for adaptive CORDIC iteration prediction.
Figure 3. Pearson correlation matrix of the final predictor features used for adaptive CORDIC iteration prediction.
Mathematics 14 03096 g003
Figure 4. Performance comparison of the eight regression models on the independent test set using mean absolute error (MAE), mean squared error (MSE), and coefficient of determination ( R 2 ). Lower MAE and MSE indicate lower prediction error, whereas higher R 2 indicates better agreement between the predicted and target CORDIC iteration counts.
Figure 4. Performance comparison of the eight regression models on the independent test set using mean absolute error (MAE), mean squared error (MSE), and coefficient of determination ( R 2 ). Lower MAE and MSE indicate lower prediction error, whereas higher R 2 indicates better agreement between the predicted and target CORDIC iteration counts.
Mathematics 14 03096 g004
Figure 5. Group-level bootstrap distribution of the MAE for the final Decision Tree evaluated on the independent test set. The observed MAE was 0.9160, and the 95% percentile bootstrap confidence interval was [0.7708, 1.0701]. The bootstrap analysis used 5000 replications by resampling the 461 independent test groups while retaining all five tolerance-level observations within each group.
Figure 5. Group-level bootstrap distribution of the MAE for the final Decision Tree evaluated on the independent test set. The observed MAE was 0.9160, and the 95% percentile bootstrap confidence interval was [0.7708, 1.0701]. The bootstrap analysis used 5000 replications by resampling the 461 independent test groups while retaining all five tolerance-level observations within each group.
Mathematics 14 03096 g005
Figure 6. Feature importance of the final Decision Tree model for predicting the required CORDIC iteration count.
Figure 6. Feature importance of the final Decision Tree model for predicting the required CORDIC iteration count.
Mathematics 14 03096 g006
Figure 7. SHAP summary plot showing the contribution and direction of the input features to the Decision Tree prediction of the required CORDIC iteration count.
Figure 7. SHAP summary plot showing the contribution and direction of the input features to the Decision Tree prediction of the required CORDIC iteration count.
Mathematics 14 03096 g007
Figure 8. Feature ablation analysis of the Decision Tree model. The bars represent the change in MAE obtained after removing each feature individually from the complete six-feature representation. Positive values indicate an increase in prediction error, whereas negative values indicate a reduction in MAE after feature removal.
Figure 8. Feature ablation analysis of the Decision Tree model. The bars represent the change in MAE obtained after removing each feature individually from the complete six-feature representation. Positive values indicate an increase in prediction error, whereas negative values indicate a reduction in MAE after feature removal.
Mathematics 14 03096 g008
Figure 9. Tolerance-wise iteration efficiency and tolerance satisfaction of the conventional non-ML adaptive CORDIC and fixed 20-iteration baseline on the independent test set.
Figure 9. Tolerance-wise iteration efficiency and tolerance satisfaction of the conventional non-ML adaptive CORDIC and fixed 20-iteration baseline on the independent test set.
Mathematics 14 03096 g009
Table 1. Input features used for adaptive CORDIC iteration prediction.
Table 1. Input features used for adaptive CORDIC iteration prediction.
FeatureDescription
ModeIndicates the CORDIC operating mode (Circular, Hyperbolic, or Linear).
Input ValueOriginal numerical input supplied to the CORDIC algorithm.
Absolute InputAbsolute magnitude of the input value, independent of its sign.
Sign InputSign of the original input value, indicating its positive or negative direction.
QuadrantIdentifies the input region or quadrant, providing additional geometric information for convergence.
log ( 1 / δ ) Logarithmic inverse of the prescribed error tolerance, representing the required numerical precision.
Table 2. Representative samples from the generated simulation dataset.
Table 2. Representative samples from the generated simulation dataset.
ModeInput ValueAbs. InputQuadrant δ log ( 1 / δ ) Mode-Dependent
Descriptor 1
Mode-Dependent
Descriptor 2
Optimal
Iteration
Residual
Error
0−3.1415933.14159310.00014.00000−1.224647 × 10−16−1.0000140.000048
0−3.1415933.14159310.00053.30103−1.224647 × 10−16−1.0000120.000196
0−3.1415933.14159310.00103.00000−1.224647 × 10−16−1.000080.000780
0−3.1415933.14159310.00502.30103−1.224647 × 10−16−1.000080.000780
0−3.1415933.14159310.01002.00000−1.224647 × 10−16−1.000080.000780
Table 3. Optimal hyperparameters selected for the classical regression models using GridSearchCV.
Table 3. Optimal hyperparameters selected for the classical regression models using GridSearchCV.
ModelHyperparameters
Decision Treecriterion = squared_error
max_depth = None
min_samples_split = 2
min_samples_leaf = 1
max_features = None
random_state = 42
Random Forestn_estimators = 300
criterion = squared_error
max_depth = 20
min_samples_split = 2
min_samples_leaf = 1
max_features = sqrt
bootstrap = True
Extra Treesn_estimators = 300
criterion = squared_error
max_depth = None
min_samples_split = 2
min_samples_leaf = 1
max_features = sqrt
bootstrap = False
SVRkernel = RBF
C = 100
γ = scale
ε = 0.1
Table 4. Hyperparameter settings of the selected regression models.
Table 4. Hyperparameter settings of the selected regression models.
ModelHyperparameters
MLPhidden_layer_sizes = (128, 64)
activation = ReLU
solver = Adam
α = 10 4
learning_rate = adaptive
max_iter = 1000
early_stopping = True
XGBoostn_estimators = 300
learning_rate = 0.05
max_depth = 6
min_child_weight = 2
subsample = 0.8
colsample_bytree = 0.8
LightGBMn_estimators = 300
learning_rate = 0.05
num_leaves = 31
max_depth = −1
min_child_samples = 20
subsample = 0.8
colsample_bytree = 0.8
Table 5. Experimental setup used in this study.
Table 5. Experimental setup used in this study.
ParameterSpecification
Programming LanguagePython 3.x
Execution PlatformGoogle Colaboratory
LibrariesNumPy, Pandas, Scikit-learn,
XGBoost, LightGBM, Matplotlib
Learning TaskSupervised Regression
Target VariableOptimal Iteration Count
Table 6. Performance of the regression models on the independent test set.
Table 6. Performance of the regression models on the independent test set.
ModelMAE ↓RMSE ↓ R 2 Accuracy ± 1 (%) ↑Accuracy ± 2 (%) ↑
Decision Tree0.91601.96710.607680.2690.07
SVR1.25732.18490.515878.4889.33
LightGBM1.26802.04410.576276.4090.11
Random Forest1.27592.08190.560473.6788.68
XGBoost1.28052.05160.573176.7590.11
Extra Trees1.28262.10440.550869.6788.24
MLP1.33112.09910.553175.8889.11
Linear Regression1.39742.31890.454675.3189.80
Note: ↓ indicates that lower values are better, whereas ↑ indicates that higher values are better. Bold represents the best performance-highest accuracy or lowest error.
Table 7. Wilcoxon signed-rank comparison of the Decision Tree with the other regression models on the independent test set.
Table 7. Wilcoxon signed-rank comparison of the Decision Tree with the other regression models on the independent test set.
Compared ModelStatisticHolm-pRank-Biserial Effect
Linear Regression363,352.5< 0.001 0.4527
Random Forest114,106.0< 0.001 0.5759
Extra Trees81,495.0< 0.001 0.6420
XGBoost199,980.0< 0.001 0.5544
LightGBM200,793.0< 0.001 0.5530
SVR294,886.0< 0.001 0.4514
MLP278,654.5< 0.001 0.5116
Table 8. Iteration-efficiency and tolerance-aware performance of the fixed and adaptive CORDIC strategies on the independent test set.
Table 8. Iteration-efficiency and tolerance-aware performance of the fixed and adaptive CORDIC strategies on the independent test set.
MetricValue
Fixed CORDIC Iterations20.000
ML Adaptive Mean Iterations9.757
Safety-Corrected Mean Iterations11.739
Iteration Reduction8.261
Iteration Reduction (%)41.31
Fixed-20 Tolerance Satisfaction (%)95.14
Adaptive Tolerance Satisfaction (%)100.00
Independent Test Samples2305
Independent Test Groups461
Group Overlap0
Table 9. Overall comparison of fixed, conventional non-ML, and Decision Tree-based adaptive CORDIC iteration requirements on the independent test set.
Table 9. Overall comparison of fixed, conventional non-ML, and Decision Tree-based adaptive CORDIC iteration requirements on the independent test set.
ApproachMean IterationsIterations SavedReduction (%)
Fixed CORDIC20.0000
Conventional Non-ML9.712410.287651.44
Decision Tree9.757510.242551.21
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sudheerbabu, R.; Reghunath, L.C.; Randieri, C.; Botte, B.; Milani, A. An Explainable Machine Learning Framework for Adaptive Multi-Mode CORDIC Iteration Optimization and Hardware-Efficient Computation. Mathematics 2026, 14, 3096. https://doi.org/10.3390/math14173096

AMA Style

Sudheerbabu R, Reghunath LC, Randieri C, Botte B, Milani A. An Explainable Machine Learning Framework for Adaptive Multi-Mode CORDIC Iteration Optimization and Hardware-Efficient Computation. Mathematics. 2026; 14(17):3096. https://doi.org/10.3390/math14173096

Chicago/Turabian Style

Sudheerbabu, Ratheesh, Lekshmi Chandrika Reghunath, Cristian Randieri, Brunella Botte, and Alfredo Milani. 2026. "An Explainable Machine Learning Framework for Adaptive Multi-Mode CORDIC Iteration Optimization and Hardware-Efficient Computation" Mathematics 14, no. 17: 3096. https://doi.org/10.3390/math14173096

APA Style

Sudheerbabu, R., Reghunath, L. C., Randieri, C., Botte, B., & Milani, A. (2026). An Explainable Machine Learning Framework for Adaptive Multi-Mode CORDIC Iteration Optimization and Hardware-Efficient Computation. Mathematics, 14(17), 3096. https://doi.org/10.3390/math14173096

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop