Our proposed algorithm can exactly meet the NASA's mission needs, including rover guidance, sample selection, and other scientific missions. We can handle different scenarios such as anomaly detection and supervised material identification. In Phase II, we also plan to embed our tools into JMARS, which allows users to use some postprocessing tools to analyze some database and further extract the composition of some rocks at different locations of MARS. We expect to produce real-time tools containing the above mentioned algorithms for spectroscopy (LIBS and APXS) data processing. The tools can be useful for military surveillance and reconnaissance, and civilian applications (vegetation monitoring). Other applications include explosive detection, toxic industrious materials identification, environmental monitoring, soil quality monitoring, goal content assessment, and wood treatment processing control. The market size is estimated to be 20 million dollars over the next decade.