diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/biplots.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/biplots.png deleted file mode 100644 index 86211f6..0000000 Binary files a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/biplots.png and /dev/null differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/cg_biplot.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/cg_biplot.png deleted file mode 100644 index 4b7db39..0000000 Binary files a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/cg_biplot.png and /dev/null differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/final_scatter.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/final_scatter.png deleted file mode 100644 index 9ef75b9..0000000 Binary files a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/final_scatter.png and /dev/null differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/first_scatter.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/first_scatter.png deleted file mode 100644 index f522490..0000000 Binary files a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/first_scatter.png and /dev/null differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/inertia3d.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/inertia3d.png new file mode 100644 index 0000000..6151b22 Binary files /dev/null and b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/inertia3d.png differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/inertia_biplot.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/inertia_biplot.png deleted file mode 100644 index eeaf49c..0000000 Binary files a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/inertia_biplot.png and /dev/null differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/kmeans.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/kmeans.png new file mode 100644 index 0000000..7588f5a Binary files /dev/null and b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/kmeans.png differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/pca.png b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/pca.png new file mode 100644 index 0000000..938bf34 Binary files /dev/null and b/_posts/2022-04-03-machine-learning-directed-study-report-2/Figures/pca.png differ diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/citations.bib b/_posts/2022-04-03-machine-learning-directed-study-report-2/citations.bib index 56e90d0..172ecd1 100644 --- a/_posts/2022-04-03-machine-learning-directed-study-report-2/citations.bib +++ b/_posts/2022-04-03-machine-learning-directed-study-report-2/citations.bib @@ -1,11 +1,29 @@ @misc{eberlyPolyhedralMassProperties2002, - title = {Polyhedral {{Mass Properties}} ({{Revisited}})}, - author = {Eberly, David}, - year = {2002}, - month = dec, + title = {Polyhedral {{Mass Properties}} ({{Revisited}})}, + author = {Eberly, David}, + year = {2002}, + month = dec, copyright = {CC BY 4.0}, - url = "https://www.geometrictools.com/Documentation/PolyhedralMassProperties.pdf" + url = {https://www.geometrictools.com/Documentation/PolyhedralMassProperties.pdf} +} + + +@inproceedings{DebriSat2019, + title={Analysis of the DebriSat Fragments and Comparison to the NASA Standard Satellite Breakup Model}, + author={Murray, James and Cowardin, Heather and Liou, J-C and Sorge, Marlon and Fitz-Coy, Norman and Huynh, Tom}, + booktitle={International Orbital Debris Conference (IOC)}, + number={JSC-E-DAA-TN73918}, + year={2019}, + url={https://ntrs.nasa.gov/citations/20190034081} +} + + +@online{interfluo6UCubeSatModel, + title = {{{6U CubeSat}} Model | {{3D CAD Model Library}} | {{GrabCAD}}}, + author = {{Interfluo}}, + url = {https://grabcad.com/library/6u-cubesat-model-1}, + urldate = {2022-02-15}, } diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.Rmd b/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.Rmd index 022bc8a..0e52a94 100644 --- a/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.Rmd +++ b/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.Rmd @@ -21,150 +21,135 @@ draft: false ## Gathering Data -To get started on the project before any scans of the actual debris are -made available, I opted to find 3D models online and process them as if -they were data collected by my team. GrabCAD is an excellent source of -high-quality 3D models, and all of the models have, at worst, a -non-commercial license making them suitable for this study. The current -dataset uses three separate satellite assemblies found on GrabCAD, below -is an example of one of the satellites that was used. +To get started on the project before any scans of the actual debris are made available, I opted to +find 3D models online and process them as if they were data collected by my team. GrabCAD is an +excellent source of high-quality 3D models, and all the models have, at worst, a non-commercial +license making them suitable for this study. The current dataset uses three separate satellite +assemblies found on GrabCAD, below is an example of one of the satellites that was used. -![Example CubeSat Used for Analysis](Figures/assembly.jpg) +![Example CubeSat Used for Analysis, @interfluo6UCubeSatModel](Figures/assembly.jpg) ## Data Preparation -The models were processed in Blender, which quickly converted the -assemblies to `stl` files, giving 108 unique parts to be processed. -Since the expected final size of the dataset is expected to be in the -magnitude of the thousands, an algorithm capable of getting the required -properties of each part is the only feasible solution. From the analysis -performed in [Report -1](https://gitlab.com/orbital-debris-research/directed-study/report-1/-/blob/main/README.md), -we know that the essential debris property is the moments of inertia -which helped narrow down potential algorithms. Unfortunately, this is -one of the more complicated things to calculate from a mesh, but thanks -to a paper from [@eberlyPolyhedralMassProperties2002] titled [Polyhedral -Mass -Properties](https://www.geometrictools.com/Documentation/PolyhedralMassProperties.pdf), -his algorithm was able to be implemented in the Julia programming -language. The current implementation of the algorithm calculates a -moment of inertia tensor, volume, and center of gravity in a few -milliseconds per part. +The models were processed in Blender, which quickly converted the assemblies to `stl` files, giving +108 unique parts to be processed. Since the expected final size of the dataset is expected to be in +the magnitude of the thousands, an algorithm capable of getting the required properties of each part +is the only feasible solution. From the analysis performed in +[Report 1](https://gitlab.com/orbital-debris-research/directed-study/report-1/-/blob/main/README.md), +we know that the essential debris property is the moments of inertia which helped narrow down +potential algorithms. Unfortunately, this is one of the more complicated things to calculate from a +mesh, but thanks to a paper from [@eberlyPolyhedralMassProperties2002] titled +[Polyhedral Mass Properties](https://www.geometrictools.com/Documentation/PolyhedralMassProperties.pdf), +his algorithm was implemented in the Julia programming language. The current implementation of the +algorithm calculates a moment of inertia tensor, volume, center of gravity, characteristic length, +and surface body dimensions in a few milliseconds per part. The library can be found +[here.](https://gitlab.com/MisterBiggs/stl-process) The characteristic length is a value that is +heavily used by the NASA DebriSat project [@DebriSat2019] that is doing very similar work to this +project. The characteristic length takes the maximum orthogonal dimension of a body, sums the +dimensions then divides by 3 to produce a single scalar value that can be used to get an idea of +thesize of a 3D object. -![Current Process](Figures/current_process.svg) +![Current mesh processing pipeline](Figures/current_process.svg) -The algorithm's speed is critical not only for the eventually large -number of debris pieces that have to be processed, but many of the data -science algorithms we plan on performing on the compiled data need the -data to be normalized. I have decided that it makes the most sense to -normalize the dataset based on volume. I chose volume for a few reasons, -namely because it was easy to implement an efficient algorithm to -calculate volume, and currently, volume seems to be the least essential -property for the data analysis. Unfortunately, scaling a model to have a -specific volume is an iterative process, but can be done very -efficiently using derivative-free numerical root-finding algorithms. The -current implementation can scale and process all the properties using -only 30% more time than getting the properties without first scaling. +The algorithm's speed is critical not only for the eventual large number of debris pieces that have +to be processed, but many of the data science algorithms we plan on performing on the compiled data +need the data to be normalized. For the current dataset and properties, it makes the most sense to +normalize the dataset based on volume. Volume was chosen for multiple reasons, namely because it was +easy to implement an efficient algorithm to calculate volume, and currently, volume produces the +least amount of variation out of the current set of properties calculated. Unfortunately, scaling a +model to a specific volume is an iterative process, but can be done very efficiently using +derivative-free numerical root-finding algorithms. The current implementation can scale and process +all the properties using only 30% more time than getting the properties without first scaling. -``` {.txt} - Row │ variable mean min median max - │ Symbol Float64 Float64 Float64 Float64 -─────┼──────────────────────────────────────────────────────────── - 1 │ volume 0.00977609 1.05875e-10 2.0558e-5 0.893002 - 2 │ cx -0.836477 -3.13272 -0.00135877 0.0866989 - 3 │ cy -1.52983 -5.07001 -0.101678 0.177574 - 4 │ cz 0.162855 -6.83716 0.00115068 7.60925 - 5 │ Ix 0.00425039 -5.2943e-7 9.10038e-9 0.445278 - 6 │ Iy 0.0108781 1.05468e-17 1.13704e-8 1.14249 - 7 │ Iz 0.0111086 1.05596e-17 2.1906e-8 1.15363 +```txt + Row │ variable mean min median max +─────┼─────────────────────────────────────────────────────────────────── + 1 │ surface_area 25.2002 5.60865 13.3338 159.406 + 2 │ characteristic_length 79.5481 0.158521 1.55816 1582.23 + 3 │ sbx 1.40222 0.0417367 0.967078 10.0663 + 4 │ sby 3.3367 0.0125824 2.68461 9.68361 + 5 │ sbz 3.91184 0.29006 1.8185 14.7434 + 6 │ Ix 1.58725 0.0311782 0.23401 11.1335 + 7 │ Iy 3.74345 0.178598 1.01592 24.6735 + 8 │ Iz 5.20207 0.178686 1.742 32.0083 ``` -Above is a summary of the current 108 part dataset without scaling. The -max values are well above the median, and given the dataset's small -size, there are still significant outliers in the dataset. For now, any -significant outliers will be removed, with more explanation below, but -hopefully, this will not become as necessary or shrink the dataset as -much as the dataset grows. As mentioned before, a raw and a normalized -dataset were prepared, and the data can be found below: +Above is a summary of the current 108 part with scaling. Since all the volumes are the same it is +left out of the dataset, the center of gravity is also left out of the dataset since it currently is +just an artifact of the `stl` file format. There are many ways to determine the 'center' of a 3D +mesh, but since only one is being implemented at the moment comparisons to other properties doesn't +make sense. The other notable part of the data is the model is rotated so that the magnitudes of +`Iz`, `Iy`, and `Ix` are in descending order. This makes sure that the rotation of a model doesn't +matter for characterization. The dataset is available for download here: -- [dataset.csv](https://gitlab.com/orbital-debris-research/directed-study/report-2/-/blob/main/dataset.csv) -- [scaled_dataset.csv](https://gitlab.com/orbital-debris-research/directed-study/report-2/-/blob/main/scaled_dataset.csv) +- [scaled_dataset.csv](https://gitlab.com/orbital-debris-research/directed-study/report-3/-/blob/main/scaled_dataset.csv) ## Characterization -The first step toward characterization is to perform a principal -component analysis to determine the essential properties. In the past, -moments of inertia have been the most important for capturing the -variation in the data. However, since this dataset is significantly -different from the previous one, it is essential to ensure inertia is -still the most important. We begin by using the `pca` function in Matlab -on our scaled dataset. +The first step toward characterization is to perform a principal component analysis to determine +what properties of the data capture the most variation. `PCA` also requires that the data is scaled, +so as discussed above the dataset that is scaled by `volume` will be used. `PCA` is implemented +manually instead of the Matlab built-in function as shown below: -``` {.matlab} -[coeff,score,latent] = pca(scaled_data); +```matlab +% covaraince matrix of data points +S=cov(scaled_data); + +% eigenvalues of S +eig_vals = eig(S); + +% sorting eigenvalues from largest to smallest +[lambda, sort_index] = sort(eig_vals,'descend'); + + +lambda_ratio = cumsum(lambda) ./ sum(lambda) ``` -We can then put the `coeff` and `score` returned by the `pca` function -into a biplot to visualize what properties are the most important -easily. Unfortunately, we exist in a 3D world, so the centers of gravity -and moments of inertia have to be analyzed individually. +Then plotting `lambda_ratio`, which is the `cumsum`/`sum` produces the following plot: -![3D BiPlots for PCA](Figures/biplots.png) +![PCA Plot](Figures/pca.png) -The components of all six properties are represented in each of the -biplots by the blue lines, and the red dots represent the scores of each -property for each part. The data variation is captured pretty well for -the current dataset by both the inertia and the center of gravity. I -will continue using inertia since it performed slightly better here and -was the best when it was performed on just a single satellite. As the -dataset grows and the model ingestion pipeline becomes more robust, more -time will be spent analyzing the properties. +The current dataset can be described incredibly well just by looking at `Iz`, which again the models +are rotated so that `Iz` is the largest moment of inertia. Then including `Iy` and `Iz` means that a +3D plot of the principle moments of inertia almost capture all the variation in the data. -Now that it has been determined that inertia will be used, k-means -clustering can be performed on the raw, unscaled dataset. +The next step for characterization is to get only the inertia's from the dataset. Since the current +dataset is so small, the scaled dataset will be used for rest of the characterization process. Once +more parts are added to the database it will make sense to start looking at the raw dataset. Now we +can proceed to cluster the data using the k-means method of clustering. To properly use k-means a +value of k, which is the number of clusters, needs to be determined. This can be done by creating an +elbow plot using the following code: -``` {.matlab} -[IDX, C] = kmeans(inertia,3); - -histcounts(IDX) % Get the size of each cluster - 89 10 8 +```matlab +for ii=1:20 + [idx,~,sumd] = kmeans(inertia,ii); + J(ii)=norm(sumd); +end ``` -![Scatter of all Data](Figures/first_scatter.png) +Which produces the following plot: -This data has four distinct groups, with much overlap in the larger -groups. Therefore, to get a better view, only the smallest magnitude -group will be kept since it seems to have the most variation and k-means -will be performed again to understand the data better. +![Elbow method to determine the required number of clusters.](Figures/kmeans.png) -``` {.matlab} -inertia = inertia(IDX == 1,:); -[IDX, C] = kmeans(inertia,3); +As can be seen in the above elbow plot, at 6 clusters there is an "elbow" which is where there is a +large drop in the sum distance to the centroid of each cluster which means that it is the optimal +number of clusters. The inertia's can then be plotted using 6 k-means clusters produces the +following plot: -histcounts(IDX) % Get the size of each cluster - 76 6 7 -``` +![Moments of Inertia plotted with 6 clusters.](Figures/inertia3d.png) -![Scatter of Smallest Group](Figures/final_scatter.png) - -This brings the dataset down to 89 parts from the original 108 and still -leaves some small clusters. This highlights the need to grow the dataset -by around 10x so that, hopefully, there will not be so many small, -highly localized clusters. +From this plot it is immediately clear that there are clusters of outliers. These are due to the +different shapes and the extreme values are slender rods or flat plates while the clusters closer to +the center more closely resemble a sphere. As the dataset grows it should become more apparent what +kind of clusters actually make up a satellite, and eventually space debris in general. ## Next Steps -The current dataset needs to be grown in both the amount of data and the -variety of data. The most glaring issue with the current dataset is the -lack of any debris since the parts are straight from satellite -assemblies. Getting accurate properties from the current scans we have -is an entire research project in itself, so hopefully, getting pieces -that are easier to scan can help bring the project back on track. The -other and harder-to-fix issue is finding/deriving more data properties. -Properties such as cross-sectional or aerodynamic drag would be very -insightful but are likely to be difficult to implement in code and -significantly more resource intensive than the current properties the -code can derive. Characteristic length is being used heavily by NASA -Debrisat and seems straightforward to implement so that will be the next -goal for the mesh processing code. Before the next report, I would like -to see this dataset grow closer to one thousand pieces. +The current dataset needs to be grown in both the amount of data and the variety of data. The most +glaring issue with the current dataset is the lack of any debris since the parts are straight from +satellite assemblies. Getting accurate properties from the current scans we have is an entire +research project in itself, so hopefully, getting pieces that are easier to scan can help bring the +project back on track. The other and harder-to-fix issue is finding/deriving more data properties. +Properties such as cross-sectional or aerodynamic drag would be very insightful but are likely to be +difficult to implement in code and significantly more resource intensive than the current properties +the code can derive. diff --git a/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.html b/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.html index 0b8f95d..b15f760 100644 --- a/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.html +++ b/_posts/2022-04-03-machine-learning-directed-study-report-2/machine-learning-directed-study-report-2.html @@ -132,6 +132,8 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */ + + @@ -1511,64 +1513,75 @@ code span.wa { color: #5e5e5e; font-style: italic; } /* Warning */

Gathering Data

-

To get started on the project before any scans of the actual debris are made available, I opted to find 3D models online and process them as if they were data collected by my team. GrabCAD is an excellent source of high-quality 3D models, and all of the models have, at worst, a non-commercial license making them suitable for this study. The current dataset uses three separate satellite assemblies found on GrabCAD, below is an example of one of the satellites that was used.

+

To get started on the project before any scans of the actual debris are made available, I opted to find 3D models online and process them as if they were data collected by my team. GrabCAD is an excellent source of high-quality 3D models, and all the models have, at worst, a non-commercial license making them suitable for this study. The current dataset uses three separate satellite assemblies found on GrabCAD, below is an example of one of the satellites that was used.

-Example CubeSat Used for Analysis +Example CubeSat Used for Analysis, Interfluo (n.d.)

Data Preparation

-

The models were processed in Blender, which quickly converted the assemblies to stl files, giving 108 unique parts to be processed. Since the expected final size of the dataset is expected to be in the magnitude of the thousands, an algorithm capable of getting the required properties of each part is the only feasible solution. From the analysis performed in Report 1, we know that the essential debris property is the moments of inertia which helped narrow down potential algorithms. Unfortunately, this is one of the more complicated things to calculate from a mesh, but thanks to a paper from (Eberly 2002) titled Polyhedral Mass Properties, his algorithm was able to be implemented in the Julia programming language. The current implementation of the algorithm calculates a moment of inertia tensor, volume, and center of gravity in a few milliseconds per part.

+

The models were processed in Blender, which quickly converted the assemblies to stl files, giving 108 unique parts to be processed. Since the expected final size of the dataset is expected to be in the magnitude of the thousands, an algorithm capable of getting the required properties of each part is the only feasible solution. From the analysis performed in Report 1, we know that the essential debris property is the moments of inertia which helped narrow down potential algorithms. Unfortunately, this is one of the more complicated things to calculate from a mesh, but thanks to a paper from (Eberly 2002) titled Polyhedral Mass Properties, his algorithm was implemented in the Julia programming language. The current implementation of the algorithm calculates a moment of inertia tensor, volume, center of gravity, characteristic length, and surface body dimensions in a few milliseconds per part. The library can be found here. The characteristic length is a value that is heavily used by the NASA DebriSat project (Murray et al. 2019) that is doing very similar work to this project. The characteristic length takes the maximum orthogonal dimension of a body, sums the dimensions then divides by 3 to produce a single scalar value that can be used to get an idea of thesize of a 3D object.

-Current Process +Current mesh processing pipeline
-

The algorithm’s speed is critical not only for the eventually large number of debris pieces that have to be processed, but many of the data science algorithms we plan on performing on the compiled data need the data to be normalized. I have decided that it makes the most sense to normalize the dataset based on volume. I chose volume for a few reasons, namely because it was easy to implement an efficient algorithm to calculate volume, and currently, volume seems to be the least essential property for the data analysis. Unfortunately, scaling a model to have a specific volume is an iterative process, but can be done very efficiently using derivative-free numerical root-finding algorithms. The current implementation can scale and process all the properties using only 30% more time than getting the properties without first scaling.

-
 Row │ variable  mean         min           median       max
-     │ Symbol    Float64      Float64       Float64      Float64
-─────┼────────────────────────────────────────────────────────────
-   1 │ volume     0.00977609   1.05875e-10   2.0558e-5   0.893002
-   2 │ cx        -0.836477    -3.13272      -0.00135877  0.0866989
-   3 │ cy        -1.52983     -5.07001      -0.101678    0.177574
-   4 │ cz         0.162855    -6.83716       0.00115068  7.60925
-   5 │ Ix         0.00425039  -5.2943e-7     9.10038e-9  0.445278
-   6 │ Iy         0.0108781    1.05468e-17   1.13704e-8  1.14249
-   7 │ Iz         0.0111086    1.05596e-17   2.1906e-8   1.15363
-

Above is a summary of the current 108 part dataset without scaling. The max values are well above the median, and given the dataset’s small size, there are still significant outliers in the dataset. For now, any significant outliers will be removed, with more explanation below, but hopefully, this will not become as necessary or shrink the dataset as much as the dataset grows. As mentioned before, a raw and a normalized dataset were prepared, and the data can be found below:

+

The algorithm’s speed is critical not only for the eventual large number of debris pieces that have to be processed, but many of the data science algorithms we plan on performing on the compiled data need the data to be normalized. For the current dataset and properties, it makes the most sense to normalize the dataset based on volume. Volume was chosen for multiple reasons, namely because it was easy to implement an efficient algorithm to calculate volume, and currently, volume produces the least amount of variation out of the current set of properties calculated. Unfortunately, scaling a model to a specific volume is an iterative process, but can be done very efficiently using derivative-free numerical root-finding algorithms. The current implementation can scale and process all the properties using only 30% more time than getting the properties without first scaling.

+
 Row │ variable               mean      min        median     max
+─────┼───────────────────────────────────────────────────────────────────
+   1 │ surface_area           25.2002   5.60865     13.3338     159.406
+   2 │ characteristic_length  79.5481   0.158521    1.55816     1582.23
+   3 │ sbx                     1.40222  0.0417367   0.967078    10.0663
+   4 │ sby                     3.3367   0.0125824   2.68461     9.68361
+   5 │ sbz                     3.91184  0.29006     1.8185      14.7434
+   6 │ Ix                      1.58725  0.0311782   0.23401     11.1335
+   7 │ Iy                      3.74345  0.178598    1.01592     24.6735
+   8 │ Iz                      5.20207  0.178686    1.742       32.0083
+

Above is a summary of the current 108 part with scaling. Since all the volumes are the same it is left out of the dataset, the center of gravity is also left out of the dataset since it currently is just an artifact of the stl file format. There are many ways to determine the ‘center’ of a 3D mesh, but since only one is being implemented at the moment comparisons to other properties doesn’t make sense. The other notable part of the data is the model is rotated so that the magnitudes of Iz, Iy, and Ix are in descending order. This makes sure that the rotation of a model doesn’t matter for characterization. The dataset is available for download here:

Characterization

-

The first step toward characterization is to perform a principal component analysis to determine the essential properties. In the past, moments of inertia have been the most important for capturing the variation in the data. However, since this dataset is significantly different from the previous one, it is essential to ensure inertia is still the most important. We begin by using the pca function in Matlab on our scaled dataset.

-
[coeff,score,latent] = pca(scaled_data);
-

We can then put the coeff and score returned by the pca function into a biplot to visualize what properties are the most important easily. Unfortunately, we exist in a 3D world, so the centers of gravity and moments of inertia have to be analyzed individually.

+

The first step toward characterization is to perform a principal component analysis to determine what properties of the data capture the most variation. PCA also requires that the data is scaled, so as discussed above the dataset that is scaled by volume will be used. PCA is implemented manually instead of the Matlab built-in function as shown below:

+
% covaraince matrix of data points
+S=cov(scaled_data);
+
+% eigenvalues of S
+eig_vals = eig(S);
+
+% sorting eigenvalues from largest to smallest 
+[lambda, sort_index] = sort(eig_vals,'descend');
+
+
+lambda_ratio = cumsum(lambda) ./ sum(lambda)
+

Then plotting lambda_ratio, which is the cumsum/sum produces the following plot:

-3D BiPlots for PCA +PCA Plot
-

The components of all six properties are represented in each of the biplots by the blue lines, and the red dots represent the scores of each property for each part. The data variation is captured pretty well for the current dataset by both the inertia and the center of gravity. I will continue using inertia since it performed slightly better here and was the best when it was performed on just a single satellite. As the dataset grows and the model ingestion pipeline becomes more robust, more time will be spent analyzing the properties.

-

Now that it has been determined that inertia will be used, k-means clustering can be performed on the raw, unscaled dataset.

-
[IDX, C] = kmeans(inertia,3);
-
-histcounts(IDX) % Get the size of each cluster
-    89    10     8
+

The current dataset can be described incredibly well just by looking at Iz, which again the models are rotated so that Iz is the largest moment of inertia. Then including Iy and Iz means that a 3D plot of the principle moments of inertia almost capture all the variation in the data.

+

The next step for characterization is to get only the inertia’s from the dataset. Since the current dataset is so small, the scaled dataset will be used for rest of the characterization process. Once more parts are added to the database it will make sense to start looking at the raw dataset. Now we can proceed to cluster the data using the k-means method of clustering. To properly use k-means a value of k, which is the number of clusters, needs to be determined. This can be done by creating an elbow plot using the following code:

+
for ii=1:20
+    [idx,~,sumd] = kmeans(inertia,ii);
+    J(ii)=norm(sumd);
+end
+

Which produces the following plot:

-Scatter of all Data +Elbow method to determine the required number of clusters.
-

This data has four distinct groups, with much overlap in the larger groups. Therefore, to get a better view, only the smallest magnitude group will be kept since it seems to have the most variation and k-means will be performed again to understand the data better.

-
inertia = inertia(IDX == 1,:);
-[IDX, C] = kmeans(inertia,3);
-
-histcounts(IDX) % Get the size of each cluster
-    76     6     7
+

As can be seen in the above elbow plot, at 6 clusters there is an “elbow” which is where there is a large drop in the sum distance to the centroid of each cluster which means that it is the optimal number of clusters. The inertia’s can then be plotted using 6 k-means clusters produces the following plot:

-Scatter of Smallest Group +Moments of Inertia plotted with 6 clusters.
-

This brings the dataset down to 89 parts from the original 108 and still leaves some small clusters. This highlights the need to grow the dataset by around 10x so that, hopefully, there will not be so many small, highly localized clusters.

+

From this plot it is immediately clear that there are clusters of outliers. These are due to the different shapes and the extreme values are slender rods or flat plates while the clusters closer to the center more closely resemble a sphere. As the dataset grows it should become more apparent what kind of clusters actually make up a satellite, and eventually space debris in general.

Next Steps

-

The current dataset needs to be grown in both the amount of data and the variety of data. The most glaring issue with the current dataset is the lack of any debris since the parts are straight from satellite assemblies. Getting accurate properties from the current scans we have is an entire research project in itself, so hopefully, getting pieces that are easier to scan can help bring the project back on track. The other and harder-to-fix issue is finding/deriving more data properties. Properties such as cross-sectional or aerodynamic drag would be very insightful but are likely to be difficult to implement in code and significantly more resource intensive than the current properties the code can derive. Characteristic length is being used heavily by NASA Debrisat and seems straightforward to implement so that will be the next goal for the mesh processing code. Before the next report, I would like to see this dataset grow closer to one thousand pieces.

-
+

The current dataset needs to be grown in both the amount of data and the variety of data. The most glaring issue with the current dataset is the lack of any debris since the parts are straight from satellite assemblies. Getting accurate properties from the current scans we have is an entire research project in itself, so hopefully, getting pieces that are easier to scan can help bring the project back on track. The other and harder-to-fix issue is finding/deriving more data properties. Properties such as cross-sectional or aerodynamic drag would be very insightful but are likely to be difficult to implement in code and significantly more resource intensive than the current properties the code can derive.

+
Eberly, David. 2002. “Polyhedral Mass Properties (Revisited).” https://www.geometrictools.com/Documentation/PolyhedralMassProperties.pdf.
+
+Interfluo. n.d. 6u CubeSat Model | 3d CAD Model Library | GrabCAD.” Accessed February 15, 2022. https://grabcad.com/library/6u-cubesat-model-1. +
+
+Murray, James, Heather Cowardin, J-C Liou, Marlon Sorge, Norman Fitz-Coy, and Tom Huynh. 2019. “Analysis of the DebriSat Fragments and Comparison to the NASA Standard Satellite Breakup Model.” In International Orbital Debris Conference (IOC). JSC-E-DAA-TN73918. https://ntrs.nasa.gov/citations/20190034081. +