Next Article in Journal
A Method of Whole-Network Adjustment for Clock Offset Based on Satellite-Ground and Inter-Satellite Link Observations
Previous Article in Journal
LiDAR-Based Hatch Localization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automatic Laboratory Martian Rock and Mineral Classification Using Highly-Discriminative Representation Derived from Spectral Signatures

1
College of Geodesy and Geomatics, Shandong University of Science and Technology, Qingdao 266590, China
2
School of Land Science and Technology, China University of Geosciences, No. 29 Xueyuan Road, Haidian District, Beijing 100083, China
3
Subcenter of International Cooperation and Research on Lunar and Planetary Exploration, Center of Space Exploration, Ministry of Education of The People’s Republic of China, No. 29 Xueyuan Road, Haidian District, Beijing 100083, China
4
Lunar and Planetary Remote Sensing Exploration Research Center, China University of Geosciences, No. 29 Xueyuan Road, Haidian District, Beijing 100083, China
5
Xi’an Institute of Optics and Precision Mechanics, Chinese Academy of Sciences, Xi’an 710119, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2022, 14(20), 5070; https://doi.org/10.3390/rs14205070
Submission received: 26 August 2022 / Revised: 9 October 2022 / Accepted: 10 October 2022 / Published: 11 October 2022

Abstract

:
The optical properties of rocks and minerals provide a reliable way to measure their chemical and mineralogical composition due to the specific reflection behaviors, which is also the key insight behind most automatic identification and classification approaches. However, the inter-category spectral similarity poses a great challenge to the automatic identification and classification tasks because of the diversity of rocks and minerals. Therefore, this paper develops a recognition and classification approach of rocks and minerals using the highly discriminative representation derived from their raw spectral signatures. More specifically, a transformer-based classification approach integrated with category-aware contrastive learning is constructed and trained in an end-to-end manner, which would force instances of the same category to remain close-by while pushing instances of a dissimilar category far apart in the high-dimensional feature space, in order to produce the highly discriminative feature representation of the rocks and minerals. From both qualitative and quantitative views, experiments are conducted on the laboratory sample dataset with 30 types of rocks and minerals shared from the National Mineral Rock and Fossil Specimens Resource Center, and the spectral information of the laboratory rocks and minerals is captured using a multi-spectral sensor, with a duplicated payload of the counterpart onboard the Zhurong rover. Quantitative results demonstrate that the developed approach can effectively distinguish 30 types of rocks and minerals, with a high overall accuracy of 96.92%. Furthermore, the developed approach is remarkably superior to other existing methods, with average differences of 4.75% in the overall accuracy. Furthermore, we also visualized the derived highly discriminative features of different types of rocks and minerals by projecting them onto a two-dimensional map, where the same categories tend to be modeled by nearby locations and the dissimilar categories by distant locations with high probability. It can be observed that, compared with those in the raw spectral feature space, the clusters are formed better in the derived highly discriminative feature space, which further confirms the promising representation capability.

1. Introduction

Rocks and minerals are one of the major planetary surface features. Since minerals are stable under the known ranges of temperature and pressure, a rock, made of specific minerals, can be used to identify and deduce the climate or weathering when the rocks were being formed and deposited, based on individual mineral stability ranges and the presence or absence of equilibrium between them [1]. Obviously, the characterization of the chemical and mineralogical composition of rocks and minerals, as well as their alteration over time, are highly complementary to the investigation of the climatic and geologic history of the planetary bodies [2,3,4,5]. With the development of deep space exploration, spectroscopic systems (e.g., Raman, near-infrared spectroscopy), as one of most important scientific payloads onboard the orbiters, landers, and rovers, provide a powerful tool for the investigation and characterization of the chemical and mineralogical nature of planetary surfaces [6,7,8,9], since the reflection behavior of rocks and minerals is primarily determined by their compositions and physical properties [4].
Accurate determination of the presence of rocks and minerals from spectroscopic data is a fundamental task of planetary exploration and science [10]. Viviano et al. [11] corrected spectral reflectance at key wavelengths in a compact reconnaissance imaging spectrometer for Mars (CRISM) to produce the revised spectral parameters, which revealed an increasingly diverse suite of minerals present on the Martian surface. Jain and Chauhan [12] adopted a spectral reflectance-based mineral detection method to reveal the presence of minerals from CRISM data, which hinted of the aqueous history of the Noachian period on Mars. Fox et al. [13] detected Fe 3 + - Mg 2 + smectite deposits in Marathon Valley using five CRISM observations. Núñez et al. [14] obtained the spectral information of gully sediments from CRISM data and used them to identify a variety of mineralogies for constraining the gully-forming processes. Xue et al. [15] identified the category of minerals and mapped their distributions from CRISM near-infrared spectral data in the Martian Gale and Nili Fossae regions. Amador et al. [16] used factor analysis and target transformation methods to produce the global distribution of minerals associated with serpentinization from CRISM spectral data. Lin et al. [17] jointly identified the hydrated mineral deposits and determined their abundances with a large endmember library using CRISM near-infrared data. These aforementioned identification methods generally use simple mathematical functions to judge whether specific spectral features are absent or not for achieving the mineralogical analysis. While these existing classification methods are effective for the manual analysis, the spectral artifacts and noises might affect their performance. Thus, automatic identification and classification of rocks and minerals based on their spectral information has been an active issue to date.
Automatic rock and mineral classification based on their spectral signatures is greatly challenging due to the inter-category spectral similarity [18] and lots of machine learning-based methods, generally consisting of feature representation and recognition systems, have been proposed using spectral information, such as Tsallis entropy [19], fractal dimension [20], Sato’s maximum Lyapunov exponent [21], color histogram-based features [22], etc. To further enhance the descriptive capability of the feature representation, several feature selection and optimization strategies, including information gain ranking [23], principal component analysis [24], genetic optimization [24], and K-means [25] have also been developed to autonomously learn the high-level feature representation. Following this, some recognition and classification systems of rocks and samples [18,22,25,26,27,28,29] have then focused on fast and reliable identification without human intervention.
Recently, deep learning technology has achieved great successes and has attempted to deal with the classification and recognition issues because of its inspirational performance in the field of computer vision. As a state-of-the-art deep learning model, the transformer provides a strong representation capability to model and encode heterogeneous interactions [30], and its tremendous success in the language domain has led researchers to investigate its adaptation to computer vision [31]. Hence, this work concentrates on using it to generate the highly discriminative representation of rocks and minerals from their raw spectral signatures. Pascual [32] explored the superior capability of convolutional neural network for classifying different types of rock images, especially in the natural scenes. Saranathan and Parente [33] developed a generative adversarial network-based feature representation learning method to map mineral signatures of interest across the CRISM image database. To deal with the problem of limited samples, Li et al. [18] adopted the idea of transfer learning to fine-tune the super-parameters of the pre-trained convolutional neural network.
To date, some institutes and organizations have been also devoted to establishing the laboratory spectral database of rocks and minerals (e.g., the Berlin Emissivity Database, United States Geological Survey (USGS) spectral library version 7) to study their spectral behaviors [5,34,35,36,37,38]. In this way, the reflectance spectra of terrestrial rocks and minerals, covering at the range of visible to near-infrared wavelengths, are explored and analyzed in laboratory conditions, which is beneficial to further supporting the research of planetary origin and geological evolution [4,27,39,40]. Similarly, this work captures the spectral information of the laboratory rocks and minerals using the multi-spectral sensor, which duplicates the payload of its counterpart onboard the Zhurong rover [41], and focuses on investigating the highly discriminative feature representations from the raw spectral information for the classification task.
Although there have been numerous presented studies related to detection and classification [2,25,29,42,43,44,45], automatic rock and mineral classification remains greatly challenging due to the following aspects. First, according to the literature statistics, the majority of existing classification approaches tended to only use a few types of rocks and minerals, where the number of the category in these work is generally less than 10, to verify their own robustness and effectiveness [25,29,43]. As a matter of fact, the increasing number of categories might result in the severe inter-category similarity, which will pose a challenge in the task of accurate classification. In this case, a dataset containing as many types of rocks and minerals as possible is very necessary for verifying the generalization of the classification approaches. Second, although lots of feature extraction and selection strategies have been developed for describing the spectral and texture information of rocks and minerals [25,29,43], the inter-category similarity might still affect the descriptive capability and reduce the classification quality [46] as the number of categories increases. Obviously, a highly discriminative feature representation plays a significant role in the classification task to enhance the intra-category similarity and enlarge the inter-category variants.
To address these challenges mentioned above, we develop a rock and mineral classification approach using the highly discriminative representation derived from their original spectral signatures. Moreover, experiments are carried out on the multi-spectral data captured from 30 types of rocks and minerals for both qualitatively and quantitatively evaluating the robustness and reliability of the developed approach. Our main contributions in this work are as follows.
(1)
To efficiently achieve the classification task, we design a transformer-based classification approach for generating the highly discriminative feature representation of both rocks and minerals, where the inter-category representation variant is enlarged and the intra-category representation similarity is aggregated;
(2)
A category-aware contrastive learning is integrated within the developed transformer-based classification approach. In this case, the super-parameters of the whole network are learned and trained in an end-to-end multi-task manner. Consequently, the remarkable distinctions among different types of rock and minerals occur in their high-dimensional feature space;
(3)
We demonstrate the reliability and robustness of the developed approach on a dataset containing rocks and minerals with complicated categories. It is of significance for the investigation of the developed approach’s generalization ability.
The rest of this paper is organized as follows. Section 2 describes the experimental data and the developed classification approach in detail. Section 3 presents the experimental results and analysis for evaluating the developed classification approach both quantitatively and qualitatively. Section 4 discusses the sensitivity of parameters and analyzes the strengths and limitations of the developed classification approach. This paper concludes with a summary of future research considerations in Section 5.

2. Materials and Methods

In this section, we will introduce the proposed method in detail. This section is organized as follows. First, the details of data acquisition are described. Second, we introduce the overview of the proposed method. Subsequently, we present other detailed implementation of the proposed method.

2.1. Data Acquisition

When the number of categories is large, the probability of classification error becomes relatively large. This is because each category is surrounded by a large number of neighboring categories [47], which results in severe inter-category spectral similarity. Consequently, a sample dataset of rocks and minerals with as many categories as possible is acquired from the National Mineral Rock and Fossil Specimens Resource Center. The National Mineral Rock and Fossil Specimens Resource Center is devoted to the digitization and sharing of China’s rock mineral specimens, offering more than 170,000 state-owned specimens with scientific value, including minerals, rocks, and fossils. As a data provider, its goal is to promote the understanding of geo-resources and to provide resources for academia, education, and scientific popularization in the field of geoscience through collecting, organizing, and sharing rock mineral specimen resources.
As for the implemented experiments in this work, we reviewed the relevant literature about the distribution of rocks and minerals on the Martian surface and selected 30 types of rocks and minerals, e.g., hydrous minerals. All the used rocks and minerals are from the National Mineral Rock and Fossil Specimens Resource Center, including muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). Moreover, we also enrich the number of categories of rocks and minerals as much as possible in the sample dataset, although a few rocks and minerals on the list are very uncommon and even unlikely to be found on Mars. By establishing a complicated sample dataset, the generalization of the proposed method can be better evaluated.
Generally, most rocks and minerals can be characterized and classified by their unique physical properties (e.g., hardness, luster, color, cleavage, fracture). For instance, barite can be reliably recognized based on its three directions of right-angle cleavage and the sugary appearance. Gypsum is characterized by its softness and its three directions of unequal cleavage. Biotite vermiculite is almost always much darker in color than muscovite. Talcum has a greasy feel. Psilomelane occurs as botryoidal and stalactitic masses with a smooth shining surface and submetallic luster. Quartz is characterized by its glassy luster, conchoidal fracture, and crystal form. The most obvious physical properties of serpentine are its green color, patterned appearance, and slippery feel. Stibnite typically forms coarse, irregular masses or radiating sprays of needlelike crystals, and its distinguishing characterization is easy fusibility, a bladed habit, perfect cleavage in one direction, lead-gray color, and soft black streaks. Figure 1 illustrates examples of different types of both rocks and minerals. It is obvious that similar mineralogy or appearance characteristics among some types of rocks and minerals make them very challenging to differentiate via direct visual interpretation. For example, both aragonite and calcite with the same formula are tabular, prismatic, or needlelike, often with steep pyramidal or chisel-shaped ends, and can form columnar or spreading aggregates. Basalt consists mainly of plagioclase and pyroxene minerals similar to gabbro, but the former is fine-grained, and the latter is coarse-grained. The yellow color and metallic luster are the most obvious physical properties of chalcopyrite, which shows a similar appearance to pyrite. Chlorite is usually green in color, has a foliated appearance, inelastic cleavage, and an oily to soapy feel, but its variable chemical composition makes it a difficult specimen to. Galena can be easily recognized by its metallic cleavage planes, lead gray and silvery color, and black streaks, which are often associated with sphalerite, calcite, and fluorite. Hematite has an extremely variable appearance, from earthy to submetallic to metallic luster, but it always produces a reddish streak. Smaltite crystallizes in the cubic system with the same hemihedral symmetry as pyrite.
The reflection behavior of rocks and minerals primarily depends on their own mineralogical compositions and physical properties [4]. To capture the reflectance spectra of rocks and minerals in this work, the eight-band multi-spectral camera, which is the alternative payload of its counterpart onboard the Zhurong rover, is used as the multi-spectral sensor [9], and it is able to provide spectral data at the following wavelengths: 480 nm, 525 nm, 650 nm, 700 nm, 800 nm, 900 nm, 950 nm, and 1000 nm. The specifications of the used multispectral camera are listed in Table 1. In our implementation, we only use the multi-spectral camera to capture the eight-band multispectral images of all rock/mineral samples at approximately 12:12 pm, during a period of bright sunshine. Solar elevation angle and the shooting angle of camera is approximately 60 ° and 37 ° , respectively. All rock/mineral samples are placed on the ground, and the vertical height of camera from the ground is 1.8 m. As a result, the size of the captured image corresponding to each rock or mineral is H × W × 8 , where H denotes the image height, W denotes the image width.
Because Spectralon’s optical properties make it ideal as a reference surface in remote sensing and spectroscopy, we used Spectralon as a near-Lambertian reference standard. The images of both the standard reference Spectralon and rocks/minerals are captured concurrently, which guarantees the consistency of observation conditions. After capturing the multi-spectral image of all samples, we compute the reflectance using the following Equation (1) due to the very simple and intuitive computation method [48]:
R = G m G ref · R ref
where G m denotes the average gray values of the query sample, G ref denotes the average gray values of the standard reference spectralon, R ref denotes the reflectance coefficient of the standard reference Spectralon that is generally known and measured in the laboratory, and R denotes the computed reflectance of the query sample.
Figure 2 demonstrates some typical examples of the spectral curves corresponding to rocks and minerals, and shows the changes in the band position and shape of compositions because of the unique spectral signatures due to their own physical characteristics. In the real world, small variations in the composition of rocks and minerals might occur, which often causes shifts in the position and shape of absorption bands in the spectrum. We put the spectral curves of the used (partial) samples together into one subfigure due to the similar spectral characteristics. It can be observed that these shifts in the position and shape of absorption bands might result in the similarity and even the overlap of spectral curves, i.e., severe inter-category similarity, such as in the case of chalcopyrite and fluorite, or with pyrite and saponite.

2.2. The Developed Classification Approach of Rocks and Minerals

It is common knowledge that the reflection behaviors of rocks and minerals depend on their own physical characteristics, which is the key insight behind most existing rock and mineral classification approaches. Despite their unique spectral signatures, the inter-category spectral similarity among different types of rocks and minerals might still reduce the classification quality as the number of categories increases. Therefore, using a transformer encoder as the backbone, we integrate it with contrastive learning and develop a classification method of rocks and minerals based on the highly discriminative representation derived from the original spectral signatures. Figure 3 indicates the pipeline of the developed classification method, which consists of a transformer-based feature encoder module and multi-task loss function for optimization. The former is able to remarkably enhance the descriptive capability of the derived feature representation [31] while the latter is to cause the feature representations of similar categories to aggerate with each other while the feature representations of dissimilar categories separate from each other. In our developed approach, an image patch x R h × w × d (where h is the height, w is the weight, and d is the channels; in this work, d = 8 ) is first operated via the simple linear flatten method, serving as the input of the transformer-based feature encoder module.

2.2.1. Transformer-Based Feature Encoder Module

The vision transformer as a deep learning model shows a remarkable capability to capture rich dependency information between variables [49]. We explore and investigate the adaptation of the vision transformer for basic visual feature extraction in order to generate the highly discriminative feature representation. It is found that, unlike the convolutional neural networks (CNNs) that gradually expand the field of view by repeatedly “convoluting” the information around the kernel layer by layer, the transformer-based method uses the stacked multi-head attention module that allows its strong ability to model the long-range dependencies. Recently, the vision transformer has adopted the attention mechanism and achieved promising results for image classification. Generally, an input image is first converted into a sequence of tokens by dividing it with a certain patch size and then linearly projecting each patch into tokens. Then, when a sequence of tokens is passed into a vision transformer model, attention weights are calculated between every token simultaneously. That is to say, the attention weight α i j of token z j with respect to token z i is learned, which suggests the relevant information to each token. After calculating the α i j value for all i and j pairs, we update each token z i to z i using a weighted sum of all tokens followed by a nonlinear ReLU layer. This is defined in the following Equations (2)–(4):
α i j = softmax ( ( W q z i ) ( W k z j ) d )
z i ¯ = j = 1 h × w α i j W v z j
z i = ReLU ( z l ¯ W r + b 1 ) W o + b 2
where d denotes the dimension of the key vector, W k denotes the key weight matrix, W q denotes the query weight matrix, W v denotes the value weight matrix, W r and W o are the transformation matrices, and b 1 and b 2 are the bias terms.
One set of ( W k , W q , W v ) matrices is called an attention head, and each layer in a vision transformer model has multiple attention heads, a module for attention mechanisms which runs through an attention mechanism several times in parallel. While each attention head attends to the tokens that are relevant to each token, the model can do this for different definitions of “relevance” with multiple attention heads.
As shown in the subfigure about the highly discriminative representation learning in Figure 3, a transformer-based feature encoder module is composed of a sequence of blocks where each block contains the multi-head attention module. Following this, three successive feedforward networks are used to produce the highly discriminative feature representation for the final label predictions. Empirically, the size of three successive fully connected layers is set to h × w × d , 360, and the number of classes, respectively. As a result, the output of the whole network, i.e., the last fully-connected layer, is considered as the feature representation of rock and mineral derived from the developed method.

2.2.2. Multi-Task Loss Function for Optimization

The super-parameters within the whole network are learned for mapping a set of the feature representations of rocks and minerals to a set of categories from massive high-quality labeled training data. General speaking, the problem of learning is cast as a search or optimization problem, which navigates the space of possible sets of super-parameters within the whole network in order to make good or good enough predictions. In the context of an optimization process, the function used to evaluate a candidate solution (i.e., a set of super-parameters) is referred to as the loss function, and the value calculated by the loss function is referred to simply as “loss”. Typically, a deep learning model is learned using the stochastic gradient descent optimization algorithm, and super-parameters are updated using the backpropagation of error algorithm so that the next evaluation reduces the error, which means that we are searching for a candidate solution that has the lowest score. Here, we primarily discuss how to design an effective loss function, which jointly optimizes both cross entropy loss and category-aware contrastive loss. It enables us to guide the developed model to move towards convergence via measuring the difference between the predicted output and the ground truth. As a consequence, a highly discriminative feature representation is generated from the learned model.
Due to its fast convergence, the cross-entropy loss L cls is used to guarantee accurate classification of the categories, as defined in the following Equation (5):
L cls = i = 0 C { y i log ( y ^ i ) + ( 1 y i ) log ( 1 y ^ i ) }
where C denotes the total number of categories, y ^ i denotes the i th true category of the training samples, and y i denotes the the i th predicted category from our developed model.
In addition to the cross-entropy loss, the class separation in the latent feature space would also be an ideal characteristic to discriminate among different types of rocks and minerals. Therefore, we define the category-aware contrastive loss, as defined in Equation (6). The right subfigure in Figure 3 gives an explicit description about the role of category-aware contrastive loss. Intuitively, the goal of the category-aware contrastive loss is to force instances of the same category to remain close-by while pushing ones in the dissimilar category far apart in their latent feature space.
More specifically, we consider the set of categories as K = { 1 , 2 , , C } N + , where N + represents the set of positive integers. For each category i K , a mean feature representation p i is represented and maintained as the specific formed cluster in the latent feature space, which makes up a set of category-specific mean feature representations, namely P = { p 1 , , p C } , for computing the category-aware contrastive loss. During the training procedure, the mean of feature representation for each category makes up a set of category-specific mean feature representations, namely P = { p 1 , , p C } , for computing the category-aware contrastive loss. Since the super-parameters of the whole network is learned in an end-to-end manner, the mean feature representation corresponding to each category would gradually evolve at the training time. Inspired by the contrastive clustering method [50], a queue q i with a fixed length is maintained for the i th category to store its associated feature representation. As a result, a feature representation store F store = { q 1 , , q C } stores the category-specific feature representations in the corresponding queues. After every I p iterations, a set of new category-specific mean feature representation P new is calculated. Following this, the existing set of category-specific mean feature representations, namely P , is updated by weighting P and P new with a momentum constant η , as defined in Equation (6). In our implementation, η is set to 0.99, while I p is set to 2000.
P = η P + ( 1 η ) P new
After obtaining the set of category-specific mean feature representations, let f c denote a feature representation produced by an intermediate layer of the used transformer-based feature encoder module, for an instance of category c . To force instances of the same category to remain close-by while pushing instances of the dissimilar category far apart in the high-dimensional feature space, the category-aware contrastive loss is defined as follows:
L cont ( f c ) = i = 0 C l ( f c , p i )
l ( f c , p i ) = { D ( f c , p i ) , i = c max { 0 ,   Δ D ( f c , p i ) } , otherwise
where D ( · ) denotes any distance function (e.g., Euclidean, cosine), and Δ denotes how close a similar and dissimilar instance can be. In our implementation, the value of Δ is empirically set to 2.0.
Finally, we simultaneously learn the shared super-parameters through the backpropagation algorithm [51] for optimization to provide better generalization of the developed classification approach [52]. The total loss used in this work is defined as a weighted sum of both the category-aware contrastive loss and the cross-entropy loss as the following Equation (9):
Loss total = λ × L cont + L cls
where λ is experimentally set to 0.01, L cont denotes the category-aware contrastive loss, and L cls denotes the cross-entropy loss by measuring the cross entropy between the ground truth and the predicted output of our developed model. By minimizing the total loss, our developed classification approach is progressively trained for optimization until convergence.

3. Experimentation and Analysis

To evaluate the reliability and robustness of the developed classification method, in this section, we performed both qualitative and quantitative analysis on the multi-spectral images of 30 types of rocks and minerals from the National Mineral Rock and Fossil Specimens Resource Center. First, a brief description of evaluation criteria is given. Then, we offer a detailed experimental setting. Finally, we qualitatively and quantitatively analyze the performance of category classification results, where the experiments are conducted using the optimal parameters obtained and discussed in Section 5.

3.1. Evaluation Criteria

To measure the classification quality of rocks, we conduct the evaluation solution using precision (Pr), recall (Re), F 1 score and overall accuracy (OA), as defined in Equations (10)–(13). The recall represents a measure of completeness, the precision denotes a measure of correctness, and the F 1 score , also called balanced F score , is a weighted average of the precision and recall; overall accuracy denotes the sum of the true positives plus true negatives divided by the total number of queried individuals. The equations are as follows:
P r e c i s i o n = T P T P + F P
R e c a l l = T P T P + F N
F 1 score = 2 × p r e c i s i o n × r e c a l l p r e c i s i o n + r e c a l l
O v e r a l l   a c c u r a c y = T P + F N T P + T N + F P + F N
where T P denotes the number of positive objects that are correctly determined as positive ones, T N denotes the number of positive objects that are correctly determined as negative ones, F N denotes the number of negative objects that are incorrectly classified as negative ones, and F P denotes the number of negative objects that are incorrectly determined as positive ones.

3.2. Implementation Details

Computer configuration in the experiment comprised two NVIDIA GeForce RTX 3080Ti GPUs, 128 Gb of memory, Ubuntu 20.04 operating system, Cuda10.0, and Cudnn7.5. Our developed classification approach to generating the highly discriminative features is constructed using Pytorch library [53] and trained in an end-to-end manner. We use Adam for the optimizer with betas = ( 0.9 , 0.999 ) and weight decay = 1 × 10−6. We train the developed approach with a batch size of 64, an initial learning rate of 10 4 , and maintain a more optimal learning rate throughout the training procedure using a cosine annealing scheduler. We use a dropout with p = 0.1   for regularization. The number of heads in the multi-head attention modules is 8. We use a L = 3 layer transformer with a residual layer around each embedding update and layer normalization.
With regards to our laboratory sample dataset, we imaged the 30 rocks and minerals in it. To compare the spectra of rocks and minerals as well as to reduce the spectral noises, the image patches with fixed-size coverage are obtained. For example, in our implementation, the image patch is a group of pixels 9 × 9 × 8 if its size is set to 9 × 9 , which will serve as the input for the developed transformer-based classification approach in Section 3.3. The effect of the size of image patch on the classification performance will be discussed in Section 4.1. In our implementation, we randomly selected some of the image patches as training, and then used the rest as validation and test to classify the rocks and minerals. The ratio of training, validation, and test split is 60%, 10%, and 30%, respectively. We count out the number of image patches in the training set, validation set, and test set; Table 2 lists the detailed statistics.

3.3. Rock Classification Results

The classification performance relies on the descriptive ability of the generated feature representation of rocks and minerals to some extent. In our implementation, we conduct the classification task to distinguish 30 types of rock and mineral samples. Table 3 lists rock classification results generated by the developed method in precision, recall, and F 1 score per class, as well as overall accuracy. From the quantitative perspective, we can observe that the developed method can effectively distinguish 30 types of rock and minerals samples, with a high overall accuracy of 96.92% and an average F 1 score of 97.11%. It is worth noting that some types of rocks and minerals, such as muscovite, talcum, pyrite and so on, even achieve 100% in their F 1 score . Experimental results suggest that the feature representation derived from the developed method in this paper is highly discriminative for carrying out the classification task, as summarized in Table 3. That is to say, the generated feature representation shows the capability to reliably and robustly describe the differences among different types of rocks and minerals from the quantitative perspective.
Inevitably, there are some cases of incorrect classification. From the classification results derived from the trained optimal model, it is observed that the sulfur is easily misclassified into crystal, which results in the low recall. Furthermore, the low precision and low recall which occur between chlorite and saponite is primarily due to the mixed classification. For the visualization comparison and analysis (as shown in Figure 4), there exists largely-overlapping regions between sulfur and crystal, as well as between chlorite and saponite in raw spectral signature signatures, which illustrates the high similarity between them. This is one of most important factors responsible for low precision or recall in the classification results.

3.4. T-SNE Visualization in the Discriminative Feature Space

In this work, the key insight behind the developed method is to make a remarkable distinction among different types of rocks and minerals in their high-dimensional feature space. The T-distributed stochastic neighbor embedding (T-SNE) technique [54] is a dimensionality reduction technique, whose goal is to project high-dimensional data into a two-dimensional map space. In the two-dimensional map space, the same categories tend to be modeled by nearby locations and the dissimilar categories by distant locations with high probability. That is to say, the feature representation is highly discriminative if the clusters belonging to the same categories are formed well. For a more detailed description of the T-SNE technique, please refer to Appendix A. To qualitatively analyze the performance of the highly discriminative feature representation derived from the transformer-based classification method, in this subsection, we visualize the quality of formed clusters in their high-dimensional feature space using T-SNE visualization. Theoretically, the number of formed clusters within the two-dimensional visualization maps should be associated with the number of categories in the rock and mineral dataset. In our implementation, the output of the developed method, i.e., the last fully-connected layer, is considered as the derived feature representation describing both rocks and minerals and serves as the input of the scikit-learn T-SNE package [55] for visualization. For comparison, we project the original spectral signatures and the feature representation derived from the developed method into the two-dimensional map space for visualization. Figure 5 demonstrates a visualization comparison between the original spectral signatures and the feature representation derived from the developed method using the T-SNE technique. As shown in Figure 5a, there occur severe overlapping regions among different types of rocks in the two-dimensional visualization maps. It can be concluded that inter-category spectral similarity among different types of rocks and minerals might appear, which would result in the degradation of the classification performance. Compared with those from the original spectral signatures, as shown in Figure 5b, the clusters are formed well from the derived feature representation for different type of both rocks and minerals, which suggests the highly discriminative representation capability.

4. Discussion

In this section, the parameter sensitivity of the developed classification approach is provided, primarily including the size of image patches, the number of transformer layers, the number of transformer heads, and the integration of category-aware contrastive loss. Additionally, we compare the proposed method with other methods. Afterwards, both the strengths and limitations of the developed rock classification method are briefly analyzed and discussed.

4.1. Effect of the Size of Image Patches on Classification Results

To compare the spectra of rocks and minerals for automatic classification, in our implementation, spectra were extracted from the image patches with fixed-size coverage. In this subsection, we set different sizes of image patches, including 5 × 5 , 7 × 7 , 9 × 9 , and   11 × 11 , to discuss the effect of the size of image patch on the classification results. Table 4 lists the effect of the size of image patches on classification results, which demonstrate the fluctuation of classification results from 95.96% to 96.92%. As mentioned in Section 2.1, small changes in the compositions of rocks and minerals cause shifts in the position and shape of absorption bands in the spectrum. With the increasing size, the image patches with fixed-size coverage alleviate the effect of composition variants, which enhance the classification performance to some extent, although it brings computing burdens. Taking the accuracy and computational cost into consideration, we set the image patch size to 9 × 9 as the optimal parameters in our implementation.

4.2. Effect of the Number of Transformer Layers on Classification Results

In our implementation, we extract the highly discriminative feature representation from image patches encoded by a series of transformer layers. To evaluate the effect of the number of transformer layers, we set it with steps of 1 from 1 to 7. As with deeper convolutional neural networks, the developed method is capable of perfectly fitting training data, and also performed well on test data as the number of transformer layers increased. Figure 6 demonstrates the experimental results. When the number of Transformer layers rises from 1 to 3, the overall accuracy fluctuates by approximately 0.77%. However, the increase in the number of transformer layers also makes the model convergence very difficult due to the gradient vanishing, which might degrade the classification performance when the number of transformer layers increases from 3 to 7.

4.3. Effect of the Number of Transformer Heads on Classification Results

In addition to the number of transformer layers, the developed transformer-based classification method aggregates the inter-channel and intra-channel information through the multi-head self-attention mechanism. Thus, the accuracy might depend on the number of transformer heads for the developed transformer-based classification method. To demonstrate the effect of the number of transformer heads on classification results, we set it to 1, 2, 4, 8, respectively, since the number of multi-spectral bands must be guaranteed to be divisible. In this way, the multi-spectral bands are split across the multiple attention heads so that each can process them independently, while the correlations are extracted and aggregated for each attention head. From the experimental results shown in Figure 7, we can conclude that the accuracy of classification is easily affected by the number of transformer heads, with difference in the overall accuracy of more than 1.01%. This enables the transformer-based feature encoder module to capture richer interpretations of the multi-spectral bands.

4.4. Effect of Category-Aware Contrastive Loss on Classification Results

To generate the highly discriminative feature representation, we combine the cross-entropy loss with the category-aware contrastive loss to optimize a multi-task loss. In this way, we attempt to force instances of the same category to remain close-by while pushing instances of dissimilar category far apart by introducing the category-aware contrastive loss, as shown in Figure 3. Table 5 compares the results between no contrastive loss and the developed method in F 1 score per class, and the overall accuracy. From the comparative results, an improvement of approximately 0.72% can be observed, which suggests that the generated feature representation becomes more discriminative than that without the category-aware contrastive loss. Hence, we can draw a conclusion that the category-aware contrastive loss is beneficial to enhancing the descriptive capability of the generated feature representation.

4.5. Comparisons with Other Methods

To further evaluate the descriptive performance of the developed method, we also compare it with other methods which implement the frequently-used classifiers, such as the decision tree [56], random forest [57], and support vector machine (SVM) [58], based on the raw spectral signatures of rock samples. Furthermore, we compare our results with other neural networks [59], namely ConvNet, in this work. In our implementation, only one simple convolutional neural network is selected and used because the small image patches in this work are the input of the developed method which cannot be conducted on more complex architectures with many pooling operations. Table 6 lists the comparisons of the classification results between different methods. For the experimental results, we can observe that the overall accuracy and average F 1 score derived from the developed method exceeds those of other methods, with average differences of 4.75% and 4.97%, respectively. Moreover, although the developed method achieves a lower F 1 score for crystal than other methods, the developed method remarkably improves the classification performance, especially for identifying hematite, chalcopyrite, chlorite, serpentine, smaltite, saponite, etc., which further confirms the superior discriminative ability of the produced feature representation.

5. Summary and Outlook

To address the challenges due to the inter-category spectral similarity, we present a category recognition approach of both rocks and minerals using the discriminative representation derived from its spectral signatures. The developed method combines a transformer-based recognition approach with category-aware contrastive learning, which is trained in an end-to-end multi-task manner. The advantages of our proposed approach are as follows: (1) Different from convolutional neural network, the transformer shows its strong ability to model long-range dependencies. (2) We defined a category-aware contrastive loss, which would force instances of the same category to remain close-by while pushing instances of the dissimilar category far apart. Therefore, the derived highly discriminative feature representation from the developed approach is beneficial to enhancing the descriptive capability and alleviating the inter-category spectral similarity for the classification task. Furthermore, we establish a rock sample database with 30 types of rocks and then carry out the experimental analysis both quantitatively and qualitatively. Experimental results confirm the robustness and reliability of the developed method. It can be concluded that the developed method can effectively distinguish 30 types of rock samples, with a high overall accuracy of 96.92%. Additionally, the overall accuracy and average F 1 score derived from the developed method exceed those of other common methods, with average differences of 5.78% and 5.93%, respectively. It is well-known that the more rock categories, the more severe the inter-category spectral similarity. The establishment of rock databases with more types of rock samples will enable us to test the generalization of the developed method in our future work. Additionally, for the developed method in this work, the category-aware contrastive loss and cross-entropy loss is aggregated, and the weight is set empirically. In our future research, an adaptive weighting solution is required for the performance stability of the method.

Author Contributions

Methodology, J.Y. (Juntao Yang) and Z.K.; validation, Z.Y., B.X., J.Y. (Jianfeng Yang) and J.T.; visualization, J.X.; formal analysis, J.Y. (Juntao Yang) and Z.K.; supervision, J.Y. (Juntao Yang) and Z.K.; writing—original draft, J.Y. (Juntao Yang) and Z.Y.; writing—review and editing, J.Y. (Juntao Yang) and Z.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research was jointly supported by the National Key Research and Development Program of China (No. 2019YFE0123300), National Natural Science Foundation of China (No. 41872207), Civil Aerospace Technology Advance Research Project of National Defense Science and Engineering (No. D020103), Beijing Science and Technology Project (No. Z191100004319001), the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 871149, and Introduction plan of high-end foreign experts (No. G2021025006L).

Acknowledgments

We also would like to thank the National Mineral Rock and Fossil Specimens Resource Center (http://www.nimrf.net.cn (accessed on 25 August 2022)) for the share and free use of their rock samples. The data that support the findings of this work are available from the corresponding author upon the reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. T-Distributed Stochastic Neighbor Embedding Visualization Technique

The T-distributed stochastic neighbor embedding (T-SNE) technique [54] is a non-linear dimensionality reduction technique for projecting high-dimensional data onto a two-dimensional map space for visualization, where the same categories tend to be modeled by nearby locations and the dissimilar categories by distant locations with high probability. The T-SNE technique consists of two stages, namely the construction of a probability distribution over pairs of high-dimensional data, and the definition of a similar probability distribution over the data in the two-dimensional map space.
Given a set of N   high-dimensional data x 1 , , x N , the probabilities p i j that are proportional to the similarity of data x i and x j are calculated as defined in the following Equation (A1):
p j | i = exp ( | | x i x j | | 2 / 2 σ i 2 ) k i exp ( | | x i x k | | 2 / 2 σ i 2 )
where σ i denotes the bandwidth of the Gaussian kernels set using a predefined perplexity. In our implementation, p i | i is set to 0, and j p j | i = 1 for all i . Define p i j = ( p j | i + p i | j ) 2 N , then p i j = p j i , p i i = 0 , and i , j p i j = 1 .
Following this, a two-dimensional map y 1 , , y N , is learned to represent the similarities as well as possible. The similarities q i j between y i and y j   is defined as follows:
q i j = ( 1 + | | y i y j | | 2 ) 1 k l k ( 1 + | | y k y l | | 2 ) 1
The locations of the point y i in the two-dimensional map is determined by minimizing the Kullback–Leibler (KL) divergence between the distribution P and Q for the visualization.

References

  1. Blake, D.; Bristow, T.; Sarrazin, P.; Zacny, K. In-Situ Mineralogical Analysis of the Venus Surface using X-ray Diffraction. Bull. Am. Astron. Soc. 2021, 53, 018. [Google Scholar] [CrossRef]
  2. Yang, J.; Kang, Z. A Gradient-Region Constrained Level Set Method for Autonomous Rock Detection from Mars Rover Image. In Proceedings of the International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, Enschede, The Netherlands, 10–14 June 2019. [Google Scholar]
  3. Christensen, P.R.; Bandfield, J.; Clark, R.N.; Edgett, K.; Hamilton, V.E.; Hoefen, T.; Kieffer, H.H.; Kuzmin, R.O.; Lane, M.D.; Malin, M.C.; et al. Detection of crystalline hematite mineralization on Mars by the Thermal Emission Spectrometer: Evidence for near-surface water. J. Geophys. Res. Earth Surf. 2000, 105, 9623–9642. [Google Scholar] [CrossRef]
  4. Kodikara, G.R.; McHenry, L.J. Machine learning approaches for classifying lunar soils. Icarus 2020, 345, 113719. [Google Scholar] [CrossRef]
  5. Alemanno, G.; Maturilli, A.; D’Amore, M.; Helbert, J. A new laboratory emissivity and reflectance spectral library for the interpretation of Mars thermal infrared spectral data. Icarus 2021, 368, 114622. [Google Scholar] [CrossRef]
  6. Anderson, R.C.; Jandura, L.; Okon, A.B.; Sunshine, D.; Roumeliotis, C.; Beegle, L.; A Hurowitz, J.; Kennedy, B.P.; Limonadi, D.; McCloskey, S.; et al. Collecting Samples in Gale Crater, Mars; an Overview of the Mars Science Laboratory Sample Acquisition, Sample Processing and Handling System. Space Sci. Rev. 2012, 170, 57–75. [Google Scholar] [CrossRef]
  7. Caudill, C.M.; Pontefract, A.J.; Osinski, G.R.; Tornabene, L.L.; Pilles, E.A.; Battler, M.; Francis, R.; Godin, E.; Galofre, A.G.; Haltigin, T.; et al. CanMars mission Science Team operational results: Implications for operations and the sample selection process for Mars Sample Return (MSR). Planet. Space Sci. 2019, 172, 43–56. [Google Scholar] [CrossRef]
  8. Osinski, G.R.; Battler, M.; Caudill, C.M.; Francis, R.; Haltigin, T.; Hipkin, V.J.; Kerrigan, M.; Pilles, E.A.; Pontefract, A.; Tornabene, L.L.; et al. The CanMars Mars Sample Return analogue mission. Planet. Space Sci. 2019, 166, 110–130. [Google Scholar] [CrossRef]
  9. Wan, W.; Wang, C.; Li, C.; Wei, Y. China’s first mission to Mars. Nat. Astron. 2020, 4, 721. [Google Scholar] [CrossRef]
  10. Bishop, J.L.; Bell, J.F., III; Moersch, J.E. Remote Compositional Analysis: Techniques for Understanding Spectroscopy, Mineralogy, and Geochemistry of Planetary Surfaces; Cambridge U. Press: Cambridge, UK, 2020. [Google Scholar]
  11. Viviano, C.E.; Seelos, F.P.; Murchie, S.L.; Kahn, E.G.; Seelos, K.D.; Taylor, H.W.; Taylor, K.; Ehlmann, B.L.; Wiseman, S.M.; Mustard, J.F.; et al. Revised CRISM spectral parameters and summary products based on the currently detected mineral diversity on Mars. J. Geophys. Res.-Planet 2014, 119, 1403–1431. [Google Scholar] [CrossRef] [Green Version]
  12. Jain, N.; Chauhan, P. Study of phyllosilicates and carbonates from the Capri Chasma region of Valles Marineris on Mars based on Mars Reconnaissance Orbiter-Compact Reconnaissance Imaging Spectrometer for Mars (MRO-CRISM) observations. Icarus 2015, 250, 7–17. [Google Scholar] [CrossRef]
  13. Fox, V.K.; Arvidson, R.E.; Guinness, E.A.; McLennan, S.M.; Catalano, J.G.; Murchie, S.L.; Powell, K.E. Smectite deposits in Marathon Valley, Endeavour Crater, Mars, identified using CRISM hyperspectral reflectance data. Geophys. Res. Lett. 2016, 43, 4885–4892. [Google Scholar] [CrossRef] [Green Version]
  14. Núñez, J.I.; Barnouin, O.S.; Murchie, S.L.; Seelos, F.P.; McGovern, J.A.; Seelos, K.D.; Buczkowski, D.L. New insights into gully formation on Mars: Constraints from composition as seen by MRO/CRISM. Geophys. Res. Lett. 2016, 43, 8893–8902. [Google Scholar] [CrossRef]
  15. Xue, Y.; Yang, Y.; Yu, L. Mineral composition of the Martian Gale and Nili Fossae regions from Mars Reconnaissance Orbiter CRISM images. Planet. Space Sci. 2018, 163, 97–105. [Google Scholar] [CrossRef]
  16. Amador, E.S.; Bandfield, J.L.; Thomas, N.H. A search for minerals associated with serpentinization across Mars using CRISM spectral data. Icarus 2018, 311, 113–134. [Google Scholar] [CrossRef]
  17. Lin, H.; Mustard, J.F.; Zhang, X. A methodology for quantitative analysis of hydrated minerals on Mars with large endmember library using CRISM near-infrared data. Planet. Space Sci. 2018, 165, 124–136. [Google Scholar] [CrossRef]
  18. Li, J.; Zhang, L.; Wu, Z.; Ling, Z.; Cao, X.; Guo, K.; Yan, F. Autonomous Martian rock image classification based on transfer deep learning methods. Earth Sci. Inform. 2020, 13, 951–963. [Google Scholar] [CrossRef]
  19. De Albuquerque, M.P.; Esquef, I.; Mello, A.G. Image thresholding using Tsallis entropy. Pattern Recognit. Lett. 2004, 25, 1059–1065. [Google Scholar] [CrossRef]
  20. Ribas, L.C.; Gonçalves, D.N.; Oruê, J.P.M.; Gonçalves, W.N. Fractal dimension of maximum response filters applied to texture analysis. Pattern Recognit. Lett. 2015, 65, 116–123. [Google Scholar] [CrossRef]
  21. Sato, S.; Sano, M.; Sawada, Y. Practical methods of measuring the generalized dimension and the largest Lyapunov exponent in high dimensional chaotic systems. Prog. Theor. Phys. 1987, 77, 1–5. [Google Scholar] [CrossRef]
  22. Patel, A.K.; Chatterjee, S. Computer vision-based limestone rock-type classification using probabilistic neural network. Geosci. Front. 2016, 7, 53–60. [Google Scholar] [CrossRef]
  23. Shang, C.; Barnes, D. Support vector machine-based classification of rock texture images aided by efficient feature selection. In Proceedings of the 2012 International Joint Conference on Neural Networks (IJCNN), Brisbane, QLD, Australia, 10–15 June 2012. [Google Scholar]
  24. Valentín, M.B.; De Bom, C.R.; de Albuquerque, M.P.; Faria, E.L.; Correia, M.; Surmas, R. On a method for Rock Classification using Textural Features and Genetic Optimization. arXiv 2016, arXiv:1607.01679. [Google Scholar] [CrossRef] [Green Version]
  25. Shu, L.; McIsaac, K.; Osinski, G.R.; Francis, R. Unsupervised feature learning for autonomous rock image classification. Comput. Geosci. 2017, 106, 10–17. [Google Scholar] [CrossRef]
  26. Singh, N.; Singh, T.N.; Tiwary, A.; Sarkar, K.M. Textural identification of basaltic rock mass using image processing and neural network. Comput. Geosci. 2010, 14, 301–310. [Google Scholar] [CrossRef]
  27. Ishikawa, S.T.; Gulick, V.C. An automated mineral classifier using Raman spectra. Comput. Geosci. 2013, 54, 259–268. [Google Scholar] [CrossRef]
  28. Sharif, H.; Ralchenko, M.; Samson, C.; Ellery, A. Autonomous rock classification using Bayesian image analysis for Rover-based planetary exploration. Comput. Geosci. 2015, 83, 153–167. [Google Scholar] [CrossRef]
  29. Díaz, G.F.; Ortiz, J.M.; Silva, J.F.; Lobos, R.A.; Egaña, F. Variogram-Based Descriptors for Comparison and Classification of Rock Texture Images. Math. Geosci. 2020, 52, 451–476. [Google Scholar] [CrossRef]
  30. Parmar, N.; Vaswani, A.; Uszkoreit, J.; Kaiser, L.; Shazeer, N.; Ku, A.; Tran, D. Image transformer. In Proceedings of the International Conference on Machine Learning, PMLR, Stockholm, Sweden, 10–15 July 2018; Volume 80, pp. 4055–4064. [Google Scholar]
  31. Dosovitskiy, A.; Beyer, L.; Kolesnikov, A.; Weissenborn, D.; Zhai, X.; Unterthiner, T.; Dehghani, M.; Minderer, M.; Heigold, G.; Gelly, S. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
  32. Pascual, A.D. Autonomous and Real Time Rock Image Classification using Convolutional Neural Networks. Electronic Thesis and Dissertation Repository. Master’s Thesis, The University of Western Ontario, London, ON, Canada, 2019. Available online: https://ir.lib.uwo.ca/etd/6059 (accessed on 25 July 2022).
  33. Saranathan, A.M.; Parente, M. Adversarial feature learning for improved mineral mapping of CRISM data. Icarus 2021, 355, 114107. [Google Scholar] [CrossRef]
  34. Grove, C.; Hook, S.; Paylor, I. Compilation of Laboratory Reflectance Spectra of 160 Minerals, 0.4 to 2.5 Micrometers. In Jet Propulsion Laboratory; NASA: Washington, DC, USA, 1992. [Google Scholar]
  35. Kruse, F. Artificial Intelligence for Geologic Mapping with Imaging Spectrometers. 1993. Available online: https://ntrs.nasa.gov/citations/19930008790 (accessed on 25 August 2022).
  36. Baldridge, A.M.; Hook, S.J.; Grove, C.I.; Rivera, G. The ASTER spectral library version 2.0. Remote Sens. Environ. 2009, 113, 711–715. [Google Scholar] [CrossRef]
  37. Meerdink, S.K.; Hook, S.J.; Roberts, D.A.; Abbott, E.A. The ECOSTRESS spectral library version 1.0. Remote Sens. Environ. 2019, 230, 111196. [Google Scholar] [CrossRef]
  38. Xie, B.; Wu, L.; Mao, W.; Zhou, S.; Liu, S. An Open Integrated Rock Spectral Library (RockSL) for a Global Sharing and Matching Service. Minerals 2022, 12, 118. [Google Scholar] [CrossRef]
  39. Christensen, P.R.; Bandfield, J.; Smith, M.D.; Hamilton, V.E.; Clark, R.N. Identification of a basaltic component on the Martian surface from Thermal Emission Spectrometer data. J. Geophys. Res. Earth Surf. 2000, 105, 9609–9621. [Google Scholar] [CrossRef] [Green Version]
  40. Michalski, J.R.; Niles, P.B.; Glotch, T.D.; Cuadros, J. Infrared Spectral Evidence for K-Metasomatism of Volcanic Rocks on Mars. Geophys. Res. Lett. 2021, 48, e2021GL093882. [Google Scholar] [CrossRef]
  41. Mallapaty, S. What China’s mars rover will do next. Nature 2021, 593, 323–324. [Google Scholar] [CrossRef]
  42. Li, R.; Di, K.; Howard, A.B.; Matthies, L.; Wang, J.; Agarwal, S. Rock modeling and matching for autonomous long-range Mars rover localization. J. Field Robot. 2007, 24, 187–203. [Google Scholar] [CrossRef]
  43. Baykan, N.A.; Yılmaz, N. Mineral identification using color spaces and artificial neural networks. Comput. Geosci. 2010, 36, 91–97. [Google Scholar] [CrossRef]
  44. Xiao, X.; Cui, H.; Yao, M.; Tian, Y. Autonomous rock detection on mars through region contrast. Adv. Space Res. 2017, 60, 626–635. [Google Scholar] [CrossRef]
  45. Xiao, X.; Cui, H.; Yao, M.; Fu, Y.; Qi, W. Auto rock detection via sparse-based background modeling for mars rover. In Proceedings of the 2018 IEEE Congress on Evolutionary Computation (CEC), Rio de Janeiro, Brazil, 8–13 July 2018. [Google Scholar]
  46. Zhang, J.; Mei, K.; Zheng, Y.; Fan, J. Learning multi-layer coarse-to-fine representations for large-scale image classification. Pattern Recognit. 2019, 91, 175–189. [Google Scholar] [CrossRef]
  47. Fukunaga, K.; Flick, T.E. Classification error for a very large number of classes. IEEE Trans. Pattern Anal. Mach. Intell. 1984, 6, 779–788. [Google Scholar] [CrossRef]
  48. Reid, R.J.; Smith, P.H.; Lemmon, M.; Tanner, R.; Burkland, M.; Wegryn, E.; Weinberg, J.; Marcialis, R.; Britt, D.T.; Thomas, N.; et al. Imager for Mars Pathfinder (IMP) image calibration. J. Geophys. Res.-Planet 1999, 104, 8907–8925. [Google Scholar] [CrossRef]
  49. Lanchantin, J.; Wang, T.; Ordonez, V.; Qi, Y. General Multi-label Image Classification with Transformers. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Virtual, 19–25 June 2021. [Google Scholar]
  50. Joseph, K.; Khan, S.; Khan, F.S.; Balasubramanian, V.N. Towards open world object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, virtual, 19–25 June 2021. [Google Scholar]
  51. Leonard, J.; Kramer, M.A. Improvement of the backpropagation algorithm for training neural networks. Comput. Chem. Eng. 1990, 14, 337–341. [Google Scholar] [CrossRef]
  52. Caruana, R. Multitask learning. Mach. Learn. 1997, 28, 41–75. [Google Scholar] [CrossRef]
  53. Paszke, A.; Gross, S.; Massa, F.; Lerer, A.; Bradbury, J.; Chanan, G.; Killeen, T.; Lin, Z.; Gimelshein, N.; Antiga, L. Pytorch: An imperative style, high-performance deep learning library. Adv. Neural Inf. Process. Syst. 2019, 32, 8026–8037. [Google Scholar]
  54. Van der Maaten, L.; Hinton, G. Visualizing data using t-SNE. J. Mach. Learn. Res. 2008, 9, 2579–2605. [Google Scholar]
  55. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  56. Zhang, J.; Li, J.; Hu, Y.; Zhou, J.Y. The identification method of igneous rock lithology based on data mining technology. Adv. Mater. Res. 2012, 466, 65–69. [Google Scholar] [CrossRef]
  57. Masoumi, F.; Eslamkish, T.; Abkar, A.A.; Honarmand, M.; Harris, J.R. Integration of spectral, thermal, and textural features of ASTER data using Random Forests classification for lithological mapping. J. Afr. Earth Sci. 2017, 129, 445–457. [Google Scholar] [CrossRef]
  58. Chatterjee, S. Vision-based rock-type classification of limestone using multi-class support vector machine. Appl. Intell. 2013, 39, 14–27. [Google Scholar] [CrossRef]
  59. El-Sawy, A.; El-Bakry, H.; Loey, M. CNN for handwritten arabic digits recognition based on LeNet-5. In Proceedings of the International Conference on Advanced Intelligent Systems and Informatics, Cairo, Egypt, 24–26 October 2016; Springer: Cham, Switzerland, 2016; pp. 566–575. [Google Scholar]
Figure 1. Instances of different types of rocks and samples in the laboratory. For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
Figure 1. Instances of different types of rocks and samples in the laboratory. For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
Remotesensing 14 05070 g001
Figure 2. Illustration of spectral curves corresponding to rocks and minerals. For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
Figure 2. Illustration of spectral curves corresponding to rocks and minerals. For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
Remotesensing 14 05070 g002
Figure 3. A pipeline showing the developed rock and mineral classification approach.
Figure 3. A pipeline showing the developed rock and mineral classification approach.
Remotesensing 14 05070 g003
Figure 4. Spectral analysis of some wrong classification examples. The bars are rendered in different colors according to different categories. (a) Crystal–sulfur. (b) chlorite–saponite.
Figure 4. Spectral analysis of some wrong classification examples. The bars are rendered in different colors according to different categories. (a) Crystal–sulfur. (b) chlorite–saponite.
Remotesensing 14 05070 g004
Figure 5. Visualization comparison using the T-SNE technique. (a) Original spectral signatures; (b) highly discriminative features derived from the developed method.
Figure 5. Visualization comparison using the T-SNE technique. (a) Original spectral signatures; (b) highly discriminative features derived from the developed method.
Remotesensing 14 05070 g005
Figure 6. Effect of the number of transformer layers on classification results.
Figure 6. Effect of the number of transformer layers on classification results.
Remotesensing 14 05070 g006
Figure 7. Effect of the number of transformer heads on classification results.
Figure 7. Effect of the number of transformer heads on classification results.
Remotesensing 14 05070 g007
Table 1. Characteristics of the multispectral camera onboard the Zhurong rover.
Table 1. Characteristics of the multispectral camera onboard the Zhurong rover.
ParametersValues
Number of channels9 (panchromatic and multispectral)
Weight1.2 kg
Geometric resolution 2048 × 2048
Radiometric resolution10 bits
Pixel size5.5 μ m
Focal length50 mm
Imaging distance [ 1.5   m ,   )
Table 2. The statistics of image patches in training set, validation set and test set. For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
Table 2. The statistics of image patches in training set, validation set and test set. For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
CategoryMuHeCaGalKaTaPyrChaGTStGab
Training set30115508314940193667348633603894382442726044
Validation set5029185256706125815606496397121008
Test set15062754257520091834174316801947191721363022
CategoryQuChlSeSmTeGyGrCrSuaArBas
Training set43504882313136865186337833114043327239004100
Validation set725814522614864563552674545650683
Test set21752441156618432593168916552022163719502050
CategoryFlPsSaGoBarSulBVPrSumIn Total
Training set38403378528045724050435660384708128,045214,421
Validation set640563880762675726100678521,344
Test set1920168926402286202521783020235565,032
Table 3. Classification results generated by the developed method in precision, recall and F 1 score per class as well as overall accuracy (the unit: %). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
Table 3. Classification results generated by the developed method in precision, recall and F 1 score per class as well as overall accuracy (the unit: %). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr).
CategoryMuHeCaGalKaTaPyrChaGTStGab
Precision100.096.6297.0793.8499.89100.0100.0100.0100.092.5499.93
Recall100.099.9398.9897.95%100.0100.0100.0100.0100.0100.099.70
F1-score100.098.2598.0195.8699.94100.0100.0100.0100.096.1399.81
CategoryQuChlSeSmTeGyGrCrSuaArBas
Precision99.9589.5899.23100.095.22100.0100.081.5399.51100.0100.0
Recall100.082.0999.93100.0100.0100.0100.0100.0100.0100.0100.0
F1-score99.9785.6799.58100.097.55100.0100.089.8299.76100.0100.0
CategoryFlPsSaGoBarSulBVPrOverall accuracy
Precision100.099.1296.35100.0100.099.2993.3488.2896.92%
Recall100.0100.0100.099.65100.058.4085.0398.59
F1-score100.099.5598.1499.82100.073.5488.9993.16
Table 4. Effect of the size of image patches on classification results in F 1 score per class and overall accuracy (the unit: %). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). The best performance is highlighted in BOLD.
Table 4. Effect of the size of image patches on classification results in F 1 score per class and overall accuracy (the unit: %). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). The best performance is highlighted in BOLD.
Patch SizeMuHeCaGalKaTaPyrChaGTStGab
Size = 595.1895.8692.4994.1998.6699.97100.099.8099.4497.4598.33
Size = 799.9497.5792.2395.2199.65100.0100.0100.099.9397.0499.31
Size = 9100.098.2598.0195.8699.94100.0100.0100.0100.096.1399.81
Size = 11100.097.9787.8897.4799.88100.0100.099.9599.7398.1597.77
Patch sizeQuChlSeSmTeGyGrCrSuaArBas
Size = 599.5881.6698.5499.6691.0999.9199.3492.0199.5499.8399.77
Size = 799.5684.4999.56100.096.8199.9799.2789.9799.7099.9799.97
Size = 999.9785.6799.58100.097.55100.0100.089.8299.76100.0100.0
Size = 1199.3386.8896.5599.9396.99100.0100.099.21100.099.9699.94
Patch sizeFlPsSaGoBarSulBVPrOverall accuracy
Size = 5100.098.8897.1799.3299.9867.5985.3393.1395.96
Size = 7100.099.1896.8799.74100.067.2789.5892.5196.48
Size = 9100.099.5598.1499.82100.073.5488.9993.1696.92
Size = 11100.099.9396.36100.0100.068.7789.3387.4696.83
Table 5. Effect of category-aware contrastive loss on classification results in F 1 score per class (%). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). The best performance is highlighted in BOLD.
Table 5. Effect of category-aware contrastive loss on classification results in F 1 score per class (%). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). The best performance is highlighted in BOLD.
MethodsMuHeCaGalKaTaPyrChaGTStGab
No contrastive loss100.097.5791.2195.8798.84100.0100.0100.0100.096.3499.46
Proposed method100.098.2598.0195.8699.94100.0100.0100.0100.096.199.81
MethodsQuChlSeSmTeGyGrCrSuaArBas
No contrastive loss99.9780.7699.45100.095.85100.0100.093.0399.8799.9799.97
Proposed method99.9785.6799.58100.097.55100.0100.089.8299.76100.0100.0
MethodsFlPsSaGoBarSulBVPrAverageOverall accuracy
No contrastive loss100.099.9794.7099.91100.068.7789.1491.4996.4096.25
Proposed method100.099.5598.1499.82100.073.5488.9993.1697.1296.92
Table 6. Comparisons with other methods in F 1 score per class and overall accuracy (%). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). The best performance is highlighted in BOLD fonts.
Table 6. Comparisons with other methods in F 1 score per class and overall accuracy (%). For abbreviation, muscovite (Mu), hematite (He), calcite (Ca), galena (Gal), kaolinite (Ka), talcum (Ta), pyrite (Pyr), chalcopyrite (Cha), gray tiemannite (GT), stibnite (St), gabbro (Gab), quartz (Qu), chlorite (Chl), serpentine (Se), smaltite (Sm), tennantite (Te), gypsum (Gy), graphite (Gr), crystal (Cr), suanite (Sua), aragonite (Ar), basalt (Bas), fluorite (Fl), psilomelane (Ps), saponite (Sa), goethite (Go), barite (Bar), sulfur (Sul), biotite vermiculite (BV), and pyroxenite (Pr). The best performance is highlighted in BOLD fonts.
MethodsMuHeCaGalKaTaPyrChaGTStGab
Decision tree [56]95.9885.8290.0690.8699.2095.2099.9787.3097.6295.0686.29
Random forest [57]97.9888.8395.6091.3999.9198.44100.088.8299.4794.7290.52
SVM [58]99.7088.4497.9995.6898.8698.7899.9788.6299.6399.0996.17
ConvNet [59]99.3391.6693.2694.9697.3999.45100.087.0399.7697.6298.10
Developed method100.098.2598.0195.8699.94100.0100.0100.0100.096.1399.81
MethodsQuChlSeSmTeGyGrCrSuaArBas
Decision tree [56]99.1557.4062.6285.7690.4899.2097.5895.9587.5396.2692.66
Random forest [57]99.3865.1370.3382.9491.69100.099.1698.9293.7796.2796.28
SVM [58]99.7059.3177.7272.9683.12100.097.6697.8493.8499.8298.77
ConvNet [59]100.074.5676.1999.5396.26100.099.8498.3899.3199.5899.72
Developed method99.9785.6799.58100.097.55100.0100.089.8299.76100.0100.0
MethodsFlPsSaGoBarSulBVPrAverageOverall accuracy
Decision tree [56]98.2396.9386.7997.4298.9969.3880.1791.3790.2490.22
Random forest [57]99.8998.3991.6797.6299.3871.5683.9894.0092.5392.41
SVM99.9495.7487.2598.55100.030.7277.1890.7790.7990.79
ConvNet [59]99.0399.5995.2998.5598.1591.8879.3498.3295.0495.24
Developed method100.099.5598.1499.82100.073.5488.9993.1697.1296.92
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Yang, J.; Kang, Z.; Yang, Z.; Xie, J.; Xue, B.; Yang, J.; Tao, J. Automatic Laboratory Martian Rock and Mineral Classification Using Highly-Discriminative Representation Derived from Spectral Signatures. Remote Sens. 2022, 14, 5070. https://doi.org/10.3390/rs14205070

AMA Style

Yang J, Kang Z, Yang Z, Xie J, Xue B, Yang J, Tao J. Automatic Laboratory Martian Rock and Mineral Classification Using Highly-Discriminative Representation Derived from Spectral Signatures. Remote Sensing. 2022; 14(20):5070. https://doi.org/10.3390/rs14205070

Chicago/Turabian Style

Yang, Juntao, Zhizhong Kang, Ze Yang, Juan Xie, Bin Xue, Jianfeng Yang, and Jinyou Tao. 2022. "Automatic Laboratory Martian Rock and Mineral Classification Using Highly-Discriminative Representation Derived from Spectral Signatures" Remote Sensing 14, no. 20: 5070. https://doi.org/10.3390/rs14205070

APA Style

Yang, J., Kang, Z., Yang, Z., Xie, J., Xue, B., Yang, J., & Tao, J. (2022). Automatic Laboratory Martian Rock and Mineral Classification Using Highly-Discriminative Representation Derived from Spectral Signatures. Remote Sensing, 14(20), 5070. https://doi.org/10.3390/rs14205070

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