Development of an Analyzing System for Soil Parameters Based on NIR Spectroscopy
ZHENG Li-hua, LI Min-zan*, SUN Hong
Key Laboratory of Modern Precision Agriculture System Integration Research, Ministry of Education, China Agricultural University, Beijing 100083, China
摘要: 应用面向对象的软件开发理念开发了基于近红外光谱的土壤参数快速分析系统。系统设计了SOIL类,SOIL类的实例化对象即为具有某种特定类型、特定物理性质以及光谱特性的土壤样本。系统主要包括文件操作、光谱预处理、样品分析、建模和验证以及样品测定等子功能。系统首先接收土壤标定样本集的目标参数及光谱数据文件,并对其进行各种预处理,将处理结果显示在终端,并将建立的模型保存在模型数据库。系统通过预测土壤参数界面读取模型数据库中保存的各种模型及其参数,并将读入的待测样本光谱信息代入选定的模型,从而实现土壤参数分析功能。系统采取Visual C++ 6.0和Matlab 7.0协同完成功能开发,并采用Access XP来建立和管理模型数据库。
关键词:光谱分析;土壤参数;土壤类;预测模型;分析系统
Abstract:A rapid estimation system for soil parameters based on spectral analysis was developed by using object-oriented (OO) technology. A class of SOIL was designed. The instance of the SOIL class is the object of the soil samples with the particular type, specific physical properties and spectral characteristics. Through extracting the effective information from the modeling spectral data of soil object, a map model was established between the soil parameters and its spectral data, while it was possible to save the mapping model parameters in the database of the model. When forecasting the content of any soil parameter, the corresponding prediction model of this parameter can be selected with the same soil type and the similar soil physical properties of objects. And after the object of target soil samples was carried into the prediction model and processed by the system, the accurate forecasting content of the target soil samples could be obtained. The system includes modules such as file operations, spectra pretreatment, sample analysis, calibrating and validating, and samples content forecasting. The system was designed to run out of equipment. The parameters and spectral data files (*. xls) of the known soil samples can be input into the system. Due to various data pretreatment being selected according to the concrete conditions, the results of predicting content will appear in the terminal and the forecasting model can be stored in the model database. The system reads the predicting models and their parameters are saved in the model database from the module interface, and then the data of the tested samples are transferred into the selected model. Finally the content of soil parameters can be predicted by the developed system. The system was programmed with Visual C++6.0 and Matlab 7.0. And the Access XP was used to create and manage the model database.
Key words:Spectral analysis;Soil parameter;Soil class;Forecasting model;Analysis system
郑立华,李民赞*,孙 红 . 基于近红外光谱的土壤参数快速分析系统[J]. 光谱学与光谱分析, 2009, 29(10): 2633-2636.
ZHENG Li-hua, LI Min-zan*, SUN Hong . Development of an Analyzing System for Soil Parameters Based on NIR Spectroscopy . SPECTROSCOPY AND SPECTRAL ANALYSIS, 2009, 29(10): 2633-2636.
[1] LU Wan-zhen, YUAN Hong-fu, XU Guang-tong, et al(陆婉珍,袁洪福,徐广通,等). Modern Near Infrared Spectroscopy(现代近红外光谱分析技术). Beijing: China Petrochemical Press(北京:中国石化出版社), 2007. [2] HE Zhi-hui, LIAN Wen-liu, WU Ming-jian, et al(何智慧, 练文柳, 吴名剑, 等). Chinese Journal of Analytical Chemistry(分析化学), 2006, 34(5): 702. [3] GE Zhe-xue, CHEN Zhong-sheng(葛哲学, 陈仲生). Time-frequency Analysis Technology and Applications in Matlab(Matlab时频分析技术及其应用). Beijing: Posts & Telecom Press(北京:人民邮电出版社),2006. [4] Lü Wan-jun(吕万军), I-Ming Chou, Robert C Burruss, et al. Geochmica(地球化学), 2005, 34(2): 187. [5] CHEN Feng, HE Zhong-hu, CUI Dang-qun, et al(陈 锋, 何中虎, 崔党群, 等). Journal of Triticeae Crops(麦类作物学报), 2003, 23(3): 1. [6] Thermo Nicolet Corporation. TQ Analyst User’s Guide. Madison: Thermo Nicolet Corporation,2003. 303. [7] YANG Jing(杨 晶). Rapid Determining the Production of Gasoline-Run Process by Near Infrared Spectroscopy(近红外光谱法快速测定生产过程汽油馏程). http: //www.docin.com/p-729028.html, 2008-08-07. [8] LI Min-zan(李民赞). Spectral Analysis Technology and Applications(光谱分析技术及其应用). Beijing: Science Press(北京:科学出版社), 2006. [9] BAO Shi-dan(鲍士旦). Agricultural Soil Analysis(土壤农化分析). Beijing: China Agriculture Press(北京:中国农业出版社),2000. [10] Dabid Simon, ZHOU Yu-ping(Dabid Simon, 周瑜萍). Visual C++ 6 Programming Collection (Visual C++ 6编程宝典). Beijing: Publishing House of Electronics Industry(北京:电子工业出版社),2005. [11] SUN Xin, YU An-ping(孙 鑫, 余安萍). VC++ Detailed Explanation in-depth(VC++深入详解). Beijing: Publishing House of Electronics Industry(北京:电子工业出版社),2007. [12] Feisi Science and technology R & D Center(飞思科技产品研发中心). MATLAB7 Base and increase(MATLAB7基础与提高). Beijing: Publishing House of Electronics Industry (北京:电子工业出版社),2006. [13] CHEN Yang, CHEN Rong-juan, GUO Ying-hui(陈 杨, 陈荣娟, 郭颖辉). MATLAB6.X Graphical Programming and Image Processing(MATLAB6.X图形编程与图像处理). Xi’an: Xi’an Electronic Science and Technology University Press(西安:西安电子科技大学出版社),2002. [14] DONG Wei-guo(董维国). Easy MATLAB7.X Mixed Programming(深入浅出MATLAB7.X混合编程). Beijing: China Machine Press(北京:机械工业出版社),2006. [15] ZHANG Hai-fan(张海藩). Introduction to Software Engineering(软件工程导论). Beijing: Tsinghua University Press(北京:清华大学出版社),1998.