In this paper, we introduce a novel metric, β-number, designed to measure the "p-th order d-dimensional oscillation degree" of a set. For a given set K in the Euclidean space Rn, β-number is computed by identifying an optimal d-dimensional plane L that minimizes the average p-th order distance of all points in K to L. This metric serves as a versatile tool in data science, functioning both as a dimensionality reduction technique to find the optimal p-th order d-dimensional subspace and as a measure to characterize data oscillation for classification. We conduct a thorough exploration of β-number through theoretical analysis and numerical experiments. Initially, we establish the upper and lower bounds of β-number for any set K, along with its scaling law. We then elucidate the relationships between β-number and its related parameters. A key finding of this study is that in discrete settings, when p=2, the d-dimensional plane determined by β-number coincides with that obtained via Principal Component Analysis (PCA), positioning β-number as a generalization of PCA. Furthermore, we propose two algorithms for calculating β-number in both continuous and discrete settings. We validate our theoretical results through a series of numerical experiments in low-dimensional cases. Finally, we demonstrate the potential of β-number in practical data analysis through a dimensionality reduction task and an image classification task.
Algorithm 2 Computation of two forms of β -number for a bounded set K with Hausdorff dimension k
Figure 1: Comparison of subspaces between PCA and β -number. In each figure, the dimensionality-reduced subspace of β -number is represented in red, while that of PCA is represented in green, with the centroid of K located at the intersection of these two subspaces. The corresponding β -number value and PCAd(K) value are displayed at the bottom of each figure.
Figure 2: ( a ) Illustration of the 3D point set K , with points of different categories represented in different colors. ( b ) Illustration of two dimensionality reduction planes, where the green represents the PCA reduced plane L1 , and the red represents the β -number reduced plane L2 . ( c ) Illustration of the projected point set K1 on L1 . ( d ) Illustration of the projected point set K2 on L2 . ( e ) Illustration of the SVM classification decision boundary for K1 . ( f ) Illustration of the SVM classification decision boundary for K2 .
Figure 3: ( a ) Schematic of the PneumoniaMNIST dataset. The first row presents normal images, with their β1,2(K) values from left to right being: 0.3002, 0.3200, 0.3402, 0.3608, and 0.3827; the second row presents pneumonia images, with their β1,2(K) values from left to right being: 0.1784, 0.2024, 0.2211, 0.2408, and 0.2603. ( b ) The fitted plane of a typical normal image’s grayscale surface when p=1 . The corresponding value of β1,2(K) is 0.3608. ( c ) The fitted plane of a typical pneumonia image’s grayscale surface when p=1 . The corresponding value of β1,2(K) is 0.2408.
Figure 4: Boxplot of β -number derived from 5,856 PneumoniaMNIST samples, plotted against the image category. The x-axis represents the class (pneumonia and normal), and the y-axis represents the corresponding β -number (for both p=1 and p=2 cases).
Accuracy
Classifier
HOG
HOG + β -number
SVM [ 8 ]
0.93515
0.94198
Random Forest [ 5 ]
0.90529
0.91724
Logistic Regression [ 9 ]
0.94198
0.94625
Decision Tree [ 26 ]
0.83788
0.86007
Naive Bayes [ 22 ]
0.87457
0.87799
Table 1: Classification Accuracy with Different Classifiers and Feature Sets
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
Figure A1 : Illustration of 2D region triangulation. The black lines represent the contours of the region, and the blue lines represent the subdivision lines of the region. ( a ) Triangulation of a regular-shaped region, such as a unit circle. ( b ) Triangulation of an irregular-shaped region, such as an arbitrary hand-drawn area.
Figure A2 : Illustration of tetrahedral decompositions for regular regions of 3D shapes. ( a ) Tetrahedral decomposition of the unit sphere. ( b ) Tetrahedral decomposition of a cube with edge length of 2.
Figure A3 : Illustration of tetrahedral decompositions for an irregular volume of 3D shape. ( a ) Set of voxels in the 3D image. ( b ) Direct region decomposition of the voxel set. ( c ) Tetrahedral decomposition of two adjacent planes in the xoz plane, based on the y -axis fusion.
Figure B1 : Illustration of the computation results for the set K in R2 . In each figure, black lines represent the boundaries of the region, blue lines represent the subdivision lines, and red lines represent the optimal subspaces L . At the bottom of each figure, the corresponding β -number value is presented. (a),(d) For a planar line segment, the L∞ version of β -number value is 0.5726, and the L2 version of β -number is 0.3502. (b),(e) For a unit circle, the L∞ version of β -number is 0.9749, and the L2 version of β -number is 0.4993. (c),(f) For a planar region, the L∞ version of β -number is 0.7512, and the L2 version of β -number is 0.3522.
Figure B2 : The schematic diagram of the calculation results for K1 , K2 , and K3 . The three elliptical regions are represented by different colors. When p=2 , the optimal lines for the three sets coincide with the major axis of the ellipse and are represented by a red line.
Figure B3 : Illustration of the computation results for the set K in R3 . In each figure, red lines represent the optimal subspaces L . At the bottom of each figure, the corresponding β -number value is shown. The first column, second column, and third column represent the experimental results for the sets of one-dimensional curve segments, two-dimensional surfaces, and three-dimensional solids, respectively. The first row, second row, and third row calculate β -number in the L∞ form, Lp form ( p=2,d=1 ), and Lp form ( p=2,d=2 ), respectively.
Figure B4 : Experiment examples of multiple line segments and planes in R3 . Blue ones represents the partitioned segments and regions, while red ones denotes the optimal lines and planes. ( a ) The optimal dimensionality reduction line for three spatial curve segments. ( b ) The optimal dimensionality reduction plane for two planes.
Figure B5 : Illustration of the computation results for finite discrete point sets. In each figure, data points are represented in blue, while the optimal subspace L is represented in red. The corresponding β -number value is displayed at the bottom of each figure. The first row corresponds to finite discrete point sets in R2 , while the second row corresponds to finite discrete point sets in R3 .
Figure B6 : Illustration of the computation results for the MNIST dataset. In each figure, red line represents the optimal fitting line L when p=1 . At the bottom of each diagram, the corresponding β -number is displayed, which characterizes the morphological features of the image.
Figure B7 : Boxplot of β -number derived from 10,000 MNIST samples, plotted against the image labels. The x-axis represents the digit labels (ranging from 0 to 9), and the y-axis represents the corresponding β -number (for both p=1 and p=2 cases).
Figure B8 : The corresponding images of the minimum and maximum β1,1 values for digits ”0” and ”1”. In each figure, red line represents the optimal fitting line L when p=1 , and the β -number displayed at the bottom characterizes the morphological features of the image.