QR-FOLDA: A Fast Orthogonal Linear Discriminant Analysis Based on QR Decomposition
Abstract
1. Introduction
- (1)
- Unlike existing OLDA methods that construct orthogonal components sequentially during the optimization process, the proposed approach establishes a theoretical relationship between LDA solutions and leverages this relationship to obtain the OLDA solution indirectly. This represents a substantial departure from the conventional OLDA solution paradigm.
- (2)
- A theoretical result (Theorem 1) is established and rigorously proven that an LDA solution remains valid under any linear transformation. This result enables the proposed method to orthogonalize the LDA solution via QR decomposition, thereby obtaining the OLDA solution without iterative construction.
- (3)
- Experimental results demonstrate that QR-FOLDA consistently outperforms existing OLDA algorithms by delivering lower computational costs and higher classification accuracy. These results not only confirm the method’s theoretical soundness but also establish it as a practically robust solution for real-world dimensionality reduction tasks.
2. Related Works
2.1. OLDA
2.2. Maximum Margin Criterion (MMC)
2.3. RFLD
2.4. FOLDA
2.5. NFOLDA
- Compute the economic QR factorization of X as , where is column orthogonal and .
- Compute , where Q1 is a column orthogonal matrix, and are of full row rank, and .
- Compute , where is orthogonal.
- Obtain , where m indicates the number of dimensions after reduction.
3. Methodology
3.1. Proposed Method (QR Decomposition-Based FOLDA)
| Algorithm 1. Proposed Method (QR-FOLDA) |
| Input: dataset , label of dataset Y, penalty factors δ(=10−6), dimension after mapping (m). |
| Begin |
| Calculate and ; |
| Calculate and according to and ; If ; End if |
| V is solved by the generalized eigenvalue problem of classical LDA; Generate a random invertible matrix Q; Apply a QR decomposition to VQ, yielding . |
| End |
| Output: the orthogonal projection matrix . |
3.2. Computational Complexity Analysis
4. Experimental Results
4.1. Experimental Environment
4.2. Experimental Data
4.3. Experimental Results and Analysis
4.3.1. Classification Performance
4.3.2. Time Consumption Analysis
4.3.3. Parameter Analysis
5. Conclusions and Further Study
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| OLDA | Orthogonal Linear Discriminant Analysis |
| LDA | Linear Discriminant Analysis |
| QR-FOLDA | QR Decomposition-based Fast OLDA |
| RFLD | Regularized Fisher’s Linear Discriminant |
| FOLDA | Fast OLDA |
| NFOLDA | New and Fast OLDA |
| MMC | Maximum Margin Criterion |
| Symbols | |
| projection matrix | |
| interclass scatter matrix | |
| M | block-diagonal matrix |
| I | identity matrix |
| c | number of classes |
| l-th class center | |
| n | total number of samples |
| d | number of dimensions |
| X | data matrix |
| intraclass scatter matrix | |
| U, R, V | process matrix |
| Q | invertible m × m matrix |
| number of l-th class samples | |
| center of samples | |
| m | number of dimensions after reduction |
| δ | regularization parameter |
References
- Tian, Z.; Li, J.; Liu, L.; Wu, H.; Hu, X.; Xie, M.; Zhu, Y.; Chen, X.; Ou-Yang, W. Machine learning-assisted self-powered intelligent sensing systems based on triboelectricity. Nano Energy 2023, 113, 108559. [Google Scholar] [CrossRef] [Scilit]
- Saikh, T.; Rasool, T.; Verma, P. Machine intelligence and medical cyber-physical system architectures for smart healthcare: Taxonomy, challenges, opportunities, and possible solutions. Artif. Intell. Med. 2023, 146, 102692. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Divya, S.; Panda, S.; Hajra, S.; Jeyaraj, R.; Paul, A.; Park, S.H.; Kim, H.J.; Oh, T.H. Smart data processing for energy harvesting systems using artificial intelligence. Nano Energy 2023, 106, 108084. [Google Scholar] [CrossRef] [Scilit]
- Salerno, S.; Li, Y. High-dimensional survival analysis: Methods and applications. Annu. Rev. Stat. Its Appl. 2023, 10, 25–49. [Google Scholar] [CrossRef] [Scilit]
- Fei, L.; Li, T.; Ding, W. Dempster–Shafer theory-based information fusion for natural disaster emergency management: A systematic literature review. Inf. Fusion 2024, 112, 102585. [Google Scholar] [CrossRef] [Scilit]
- Zhu, Y.; Li, W.; Li, T. A hybrid artificial immune optimization for high-dimensional feature selection. Knowl.-Based Syst. 2023, 260, 110111. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Cui, J.; Zhang, X.; Han, Y.; Cao, L. Dimensionality reduction and classification of hyperspectral remote sensing image feature extraction. Remote Sens. 2022, 14, 4579. [Google Scholar] [CrossRef] [Scilit]
- Soleimani-Babakamali, M.H.; Soleimani-Babakamali, R.; Sarlo, R.; Farghally, M.F.; Lourentzou, I. On the effectiveness of dimensionality reduction for unsupervised structural health monitoring anomaly detection. Mech. Syst. Signal Process. 2023, 187, 109910. [Google Scholar] [CrossRef] [Scilit]
- Buchaiah, S.; Shakya, P. Bearing fault diagnosis and prognosis using data fusion based feature extraction and feature selection. Measurement 2022, 188, 110506. [Google Scholar] [CrossRef] [Scilit]
- Moslemi, A.; Jamshidi, M. Unsupervised feature selection using sparse manifold learning: Auto-encoder approach. Inf. Process. Manag. 2025, 62, 103923. [Google Scholar] [CrossRef] [Scilit]
- Assadi, H.N.; Kyanfar, F.; Saberi-Movahed, F.; Salemi, A. Bilinear Self-Representation for Unsupervised Feature Selection with Structure Learning. Neurocomputing 2025, 625, 129557. [Google Scholar] [CrossRef] [Scilit]
- Moslemi, A.; Shaygani, A. Subspace learning via Hessian regularized latent representation learning with l2,0-norm constraint: Unsupervised feature selection. Int. J. Mach. Learn. Cybern. 2024, 15, 5361–5380. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Li, Y.; Tan, X.; Zhang, Y. Local discriminant preservation projection embedded ensemble learning based dimensionality reduction of speech data of Parkinson’s disease. Biomed. Signal Process. Control 2021, 63, 102165. [Google Scholar] [CrossRef] [Scilit]
- Han, X.; Chen, B.; Cao, W.; Chen, H.; Li, H. Modular exponentiation masked template attack method based on linear discriminant analysis. Acta Electron. Sin. 2023, 51, 3024–3032. [Google Scholar]
- Yu, D.; Xiang, B. Discovering topics and trends in the field of artificial intelligence: Using LDA topic modeling. Expert Syst. Appl. 2023, 225, 120114. [Google Scholar] [CrossRef] [Scilit]
- Mei, H.; Peng, J.; Wang, T.; Zhou, T.; Zhao, H.; Zhang, T.; Yang, Z. Overcoming the limits of cross-sensitivity: Pattern recognition methods for chemiresistive gas sensor array. Nano-Micro Lett. 2024, 16, 269. [Google Scholar] [CrossRef] [Scilit]
- Yu, D.; Fang, A.; Xu, Z. Topic research in fuzzy domain: Based on LDA topic modelling. Inf. Sci. 2023, 648, 119600. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Xu, H.; Peng, X.; Wang, J.; He, C. Reliable composite fault diagnosis of hydraulic systems based on linear discriminant analysis and multi-output hybrid kernel extreme learning machine. Reliab. Eng. Syst. Saf. 2023, 234, 109178. [Google Scholar] [CrossRef] [Scilit]
- Li, S.; Zhang, H.; Ma, R.; Zhou, J.; Wen, J.; Zhang, B. Linear discriminant analysis with generalized kernel constraint for robust image classification. Pattern Recognit. 2023, 136, 109196. [Google Scholar] [CrossRef] [Scilit]
- Xue, K.; Yang, J.; Yao, F. Optimal linear discriminant analysis for high-dimensional functional data. J. Am. Stat. Assoc. 2024, 119, 1055–1064. [Google Scholar] [CrossRef] [Scilit]
- Wang, K.; Cao, Z.; Wang, D.; Sun, Q.; Yuan, X.; Wang, Y.; Liu, C. Mani-fold-constrained trace ratio optimization for non-stationary process performance monitoring. J. Process Control. 2023, 129, 103058. [Google Scholar] [CrossRef] [Scilit]
- Ke, H.; Chen, D.; Yao, Q.; Tang, Y.; Wu, J.; Monaghan, J.; Sowman, P.; McAlpine, D. Deep factor learning for accurate brain neuroimaging data analysis on discrimination for structural MRI and functional MRI. IEEE/ACM Trans. Comput. Biol. Bioinform. 2023, 21, 582–595. [Google Scholar] [CrossRef] [Scilit]
- Nanni, L.; Lumini, A. Orthogonal linear discriminant analysis and feature selection for micro-array data classification. Expert Syst. Appl. 2010, 37, 7132–7137. [Google Scholar] [CrossRef] [Scilit]
- Xiang, C.; Fan, X.A.; Lee, T.H. Face recognition using recursive fisher linear discriminant. IEEE Trans. Image Process. 2006, 15, 2097–2105. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Ye, Q.; Ye, N.; Yin, T. Fast orthogonal linear discriminant analysis with application to image classification. Neurocomputing 2015, 158, 216–224. [Google Scholar] [CrossRef] [Scilit]
- Li, H.; Jiang, T.; Zhang, K. Efficient and robust feature extraction by maximum margin criterion. IEEE Trans. Neural Netw. Learn. Syst. 2006, 17, 157–165. [Google Scholar] [CrossRef] [Scilit]
- Chu, D.; Goh, S.T. A New and Fast Orthogonal Linear Discriminant Analysis on Undersampled Problems. SIAM J. Sci. Comput. 2010, 32, 2274–2297. [Google Scholar] [CrossRef] [Scilit]
- Koklu, M.; Özkan, I.A. Multiclass classification of dry beans using computer vision and machine learning techniques. Comput. Electron. Agric. 2020, 174, 105507. [Google Scholar] [CrossRef] [Scilit]
- UCI Machine Learning Repository. MEU-Mobile KSD. Available online: https://archive.ics.uci.edu/dataset/399/meu+mobile+ksd (accessed on 13 May 2016).
- Pulakurthi, P.R.; Dianat, S.A.; Rabbani, M.; You, S.; Rao, R.M. Unsupervised domain adaptation using feature aligned maximum classifier discrepancy. In Proceedings of the Applications of Machine Learning 2022, San Diego, CA, USA, 21–26 August 2022. [Google Scholar]
- UCI Machine Learning Repository. Person Classification Gait Data. Available online: https://archive.ics.uci.edu/dataset/561/person+classification+gait+data (accessed on 1 March 2020).
- Cilia, N.D.; Gregorio, G.D.; Stefano, C.D.; Fontanella, F.; Marcelli, A.; Parziale, A. Diagnosing Alzheimer’s disease from on-line handwriting: A novel dataset and performance benchmarking. Eng. Appl. Artif. Intell. 2022, 111, 104822. [Google Scholar] [CrossRef] [Scilit]
- Fanty, M.A.; Cole, R.A. Spoken Letter Recognition. In Proceedings of the Workshop on Speech and Natural Language, Hidden Valley, PA, USA, 24–27 June 1990. [Google Scholar]
- Gul, S.; Rahim, F.; Isin, S.; Yilmaz, F.; Ozturk, N.; Turkay, M.; Kavakli, I.H. Structure-based design and classifications of small molecules regulating the circadian rhythm period. Sci. Rep. 2021, 11, 18510. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- UCI Machine Learning Repository. Gene Expression Cancer RNA-Seq. Available online: https://archive.ics.uci.edu/dataset/401/gene+expression+cancer+rna+seq (accessed on 8 June 2016).
- Naseri, N.; Eftekhari, M.; Saberi-Movahed, F.; Radjabalipour, M.; Belanche, L.A. A similarity measure based on subspace distance for spectral clustering. Neurocomputing 2025, 620, 129187. [Google Scholar] [CrossRef] [Scilit]
- Respondek, J.S. Fast Matrix Multiplication with Applications; Studies in Big Data; Springer Nature: Cham, Switzerland, 2025; Volume 166. [Google Scholar]


| Dataset | Sample Size | Number of Features | Classes | Application Domain | Type of Data |
|---|---|---|---|---|---|
| Dry Bean | 13,611 | 16 | 7 | Image Recognition | Legume Images |
| MEU-Mobile KSD | 2856 | 71 | 56 | Identity Recognition | Pressure Sensor Data |
| USPS | 9298 | 256 | 10 | Handwriting Recognition | Handwriting Recognition |
| MNIST | 70,000 | 256 | 10 | Handwriting Recognition | Handwriting Recognition |
| Person Classification Gait Data | 48 | 321 | 16 | Behavior Analysis/Identity Recognition | Gait Images |
| DARWIN | 174 | 451 | 2 | Medicine and Healthcare | Medicine and Healthcare |
| ISOLET | 7797 | 617 | 26 | Speech Recognition | Audio Recordings |
| Toxicity | 171 | 1203 | 2 | Toxic Substance Identification | Text |
| Gene expression cancer RNA-Seq | 801 | 20,531 | 5 | Tumor Gene Expression | Tumor Gene Expression |
| Dataset | LDA | MMC | RFLD | FOLDA | NFOLDA | QR-FOLDA |
|---|---|---|---|---|---|---|
| Dry Bean | (1, 1, 6) | (1, 1, 6) | (1, 1, 15) | (1, 1, 15) | (1, 1, 15) | (1, 1, 15) |
| MEU-Mobile KSD | (1, 1, 55) | (1, 1, 55) | (1, 1, 70) | (1, 1, 70) | (1, 1, 70) | (1, 1, 70) |
| USPS | (1, 1, 9) | (1, 1, 9) | (5, 5, 255) | (5, 5, 255) | (5, 5, 255) | (5, 5, 255) |
| MNIST | (1, 1, 9) | (1, 1, 9) | (5, 5, 255) | (5, 5, 255) | (5, 5, 255) | (5, 5, 255) |
| Person Classification Gait Data | (1, 1, 15) | (1, 1, 15) | (5, 5, 320) | (5, 5, 320) | (5, 5, 320) | (5, 5, 320) |
| DARWIN | (1, 1, 1) | (1, 1, 1) | (5, 5, 450) | (5, 5, 450) | (5, 5, 450) | (5, 5, 450) |
| ISOLET | (5, 5, 25) | (5, 5, 25) | (5, 5, 616) | (5, 5, 616) | (5, 5, 616) | (5, 5, 616) |
| Toxicity | (1, 1, 1) | (1, 1, 1) | (5, 10, 1195) | (5, 10, 1195) | (5, 10, 1195) | (5, 10, 1195) |
| Gene expression cancer RNA-Seq | (1, 1, 4) | (1, 1, 4) | (5, 300, 20,405) | (5, 300, 20,405) | (5, 300, 20,405) | (5, 300, 20,405) |
| Dataset | LDA | MMC | RFLD | FOLDA | NFOLDA | QR-FOLDA |
|---|---|---|---|---|---|---|
| Dry Bean | 91.11 ± 0.31 | 91.52 ± 0.98 | 92.48 ± 0.38 | 92.26 ± 0.33 | 92.46 ± 0.32 | 92.50 ± 0.41 |
| MEU-Mobile KSD | 72.13 ± 1.77 | 74.80 ± 1.71 | 63.79 ± 2.60 | 62.91 ± 2.64 | 77.25 ± 2.00 | 76.26 ± 1.31 |
| USPS | 79.25 ± 1.82 | 71.50 ± 2.81 | 91.89 ± 0.70 | 84.91 ± 1.26 | 88.78 ± 1.09 | 91.67 ± 1.01 |
| MNIST | 67.73 ± 2.50 | 48.20 ± 3.95 | 84.72 ± 1.71 | 83.10 ± 1.05 | 85.07 ± 1.91 | 88.65 ± 1.01 |
| Person Classification Gait Data | 64.00 ± 13.77 | 47.33 ± 13.50 | 59.33 ± 16.16 | 69.33 ± 22.04 | 70.67 ± 16.69 | 78.67 ± 16.87 |
| DARWIN | 49.25 ± 7.20 | 53.58 ± 7.66 | 86.04 ± 2.98 | 82.64 ± 4.05 | 79.06 ± 6.13 | 86.98 ± 2.25 |
| ISOLET | 96.01 ± 0.56 | 93.35 ± 0.53 | 93.62 ± 0.64 | 95.32 ± 0.50 | 93.12 ± 0.71 | 95.62 ± 0.58 |
| Toxicity | 61.35 ± 5.16 | 67.69 ± 8.96 | 59.62 ± 3.85 | 70.57 ± 5.37 | 64.81 ± 7.91 | 63.65 ± 5.08 |
| Gene expression cancer RNA-Seq | 99.58 ± 0.51 | 99.17 ± 0.72 | 99.06 ± 0.66 | 99.17 ± 0.74 | 98.38 ± 0.61 | 99.83 ± 0.37 |
| Datasets | LDA | MMC | RFLD | FOLDA | NFOLDA | QR-FOLDA |
|---|---|---|---|---|---|---|
| ISOLET | 0.206 | 0.326 | 19.111 | 10.478 | 3.591 | 0.345 |
| MEU-Mobile KSD | 0.006 | 0.007 | 0.784 | 0.534 | 0.112 | 0.008 |
| Dataset | LDA | MMC | RFLD | FOLDA | NFOLDA | QR-FOLDA |
|---|---|---|---|---|---|---|
| Dry Bean | 5, 0.004 | 6, 0.005 | 14, 0.099 | 15, 0.052 | 6, 0.011 | 15, 0.006 |
| MEU-Mobile KSD | 48, 0.006 | 54, 0.007 | 63, 0.172 | 69, 0.682 | 52, 0.013 | 70, 0.009 |
| USPS | 9, 0.023 | 9, 0.029 | 151, 2.377 | 143, 0.604 | 10, 0.134 | 229, 0.062 |
| MNIST | 8, 0.027 | 9, 0.033 | 155, 2.912 | 191, 0.647 | 10, 0.129 | 252, 0.055 |
| Person Classification Gait Data | 13, 0.026 | 12, 0.023 | 17, 1.679 | 32, 0.115 | 15, 0.109 | 207, 0.049 |
| DARWIN | 1, 0.037 | 1, 0.049 | 47, 2.014 | 80, 0.671 | 5, 0.161 | 251, 0.084 |
| ISOLET | 13, 0.204 | 2, 0.165 | 14, 5.017 | 7, 8.551 | 5, 2.277 | 16, 0.219 |
| Toxicity | 1, 0.008 | 1, 0.010 | 136, 2.228 | 297, 0.992 | 35, 0.348 | 168, 0.012 |
| gene expression cancer RNA-Seq | 4, 8.889 | 4, 8.943 | 793, 178.177 | 775, 19.989 | 305, 12.76 | 806, 9.578 |
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Liu, Y.; Yi, Q.; Deng, Y.; Rao, Y.; Wang, B.; Zhang, M. QR-FOLDA: A Fast Orthogonal Linear Discriminant Analysis Based on QR Decomposition. Mathematics 2026, 14, 933. https://doi.org/10.3390/math14060933
Liu Y, Yi Q, Deng Y, Rao Y, Wang B, Zhang M. QR-FOLDA: A Fast Orthogonal Linear Discriminant Analysis Based on QR Decomposition. Mathematics. 2026; 14(6):933. https://doi.org/10.3390/math14060933
Chicago/Turabian StyleLiu, Yuchuan, Qiuxu Yi, Yulin Deng, Yu Rao, Bocheng Wang, and Mi Zhang. 2026. "QR-FOLDA: A Fast Orthogonal Linear Discriminant Analysis Based on QR Decomposition" Mathematics 14, no. 6: 933. https://doi.org/10.3390/math14060933
APA StyleLiu, Y., Yi, Q., Deng, Y., Rao, Y., Wang, B., & Zhang, M. (2026). QR-FOLDA: A Fast Orthogonal Linear Discriminant Analysis Based on QR Decomposition. Mathematics, 14(6), 933. https://doi.org/10.3390/math14060933

