江三林+吳多龍+蘇成悅+王勇
摘 要: 提出一種應用于大規(guī)模環(huán)境監(jiān)測領域無線傳感器網(wǎng)絡(WSN)中改進的基于壓縮感知(CS)數(shù)據(jù)收集方案。該方案改進聯(lián)合稀疏模型(JSM)進行數(shù)據(jù)分析;并采用分簇路由采集并傳輸數(shù)據(jù),即每簇簇內使用基于CS的數(shù)據(jù)收集方法,簇頭之間采用最短路徑路由到達匯聚節(jié)點。仿真結果表明,該方案不僅縮小了數(shù)據(jù)處理的分布范圍,降低了恢復誤差,而且大大減少了數(shù)據(jù)傳輸次數(shù),維持了整個網(wǎng)絡的能耗平衡。
關鍵詞: 無線傳感器網(wǎng)絡; 壓縮感知; 恢復誤差; 數(shù)據(jù)傳輸
中圖分類號: TN913.2?34 文獻標識碼: A 文章編號: 1004?373X(2014)18?0048?04
Scheme of wireless sensor network data gathering based on compressed sensing
JIANG San?lin1, WU Duo?long1, SU Cheng?yue1, WANG Yong2
(1. Faculty of Physics and Optoelectronic Engineering, Guangdong University of Technology, Guangzhou 510006, China;
2. Faculty of Computer, Guangdong University of Technology, Guangzhou 510006, China)
Abstract: A scheme of an improved data gathering based on compressed sensing (CS) in wireless sensor networks (WSN) for large?scale environmental monitoring is proposed in this paper. The approximate joint sparsity model (JSM) is modified to analyze data. The clustering routing is adopted to perform the data acquisition and transmission, that is to say, CS?based data gathering method is used within each cluster, and the shortest path routing is adopted between the cluster heads to reach the sink node. The simulation results show that the approach not only shrinks the distribution range of data processing and reduces the recovery error, but also greatly lessens the number of data transmission and maintains energy balance of the entire network.
0 引 言
近年來,無線傳感器網(wǎng)絡[1](Wireless Sensor Networks,WSN)引起了廣泛的關注。美國商業(yè)周刊在預測未來技術發(fā)展的報告中,將WSN列為21世紀最具影響力的21項發(fā)明之一[2],麻省理工學院(Massachusetts Institute of Technology,MIT)則將WSN列為改變世界10大關鍵技術之一[3]。WSN是一種全新的信息獲取平臺,其目的是協(xié)作地感知、采集和處理網(wǎng)絡覆蓋區(qū)域中感知對象的信息,并發(fā)送給觀察者[4],已被廣泛用于軍事領域、環(huán)境監(jiān)測、醫(yī)療護理等相關領域。目前,大規(guī)模WSN還存在很大技術壁壘,如網(wǎng)絡能量消耗和網(wǎng)絡中存在少量瓶頸節(jié)點是阻礙WSN數(shù)據(jù)有效采集和傳輸?shù)闹匾蛩亍a槍σ陨厦媾R的問題,壓縮感知(Compressed Sensing,CS)[5?6]作為一種新興的技術理論逐步發(fā)展起來。相繼有眾多學者提出了一系列應用于WSN中基于CS的數(shù)據(jù)收集方法[7?11],如文獻[7]提出在WSN數(shù)據(jù)融合中采用CS技術,以使傳輸和融合能耗達到最?。晃墨I[8]通過調研CS在WSN中的數(shù)據(jù)采集應用,旨在通過聯(lián)合路由和壓縮融合來最小化網(wǎng)絡能量損耗;文獻[9]提出了一種在WSN中基于CS框架監(jiān)視1?D環(huán)境下的信息的新方法,以減少傳感器節(jié)點的能量損耗;文獻[10]提出的樹式路由的壓縮數(shù)據(jù)采集方案能夠有效地減少通信成本和延長網(wǎng)絡的壽命;文獻[11]提出了一種對大規(guī)模無線傳感器網(wǎng)絡能量有效的分簇路由數(shù)據(jù)采集方案。
由此可見,CS應用于WSN中對于傳統(tǒng)機制是一個質的飛躍。本文在以上研究的基礎上,提出一種改進方案,并通過理論分析和仿真實驗驗證了該方案的有效性。
1 壓縮感知理論
CS是一種新的信號描述與處理方法,即采樣的同時實現(xiàn)壓縮目的,突破了傳統(tǒng)的Nyquist采樣定理的局限性。其結構框架如圖1所示。
圖1 壓縮感知框架
1.1 信號的稀疏表示
已知一個實值一維有限長離散時間信號[x∈RN],[x]可看作[N]維列向量,其元素由[xn]表示,其中[n=1,2,…,N]。若將信號[x]在某正交基或緊框架[Ψ=ψ1,ψ2,…,ψN∈RN×N]下進行展開,即:
[x=Ψα=i=1Nαiψi] (1)
式中展開系數(shù)[αi=x,ψi=ψTix]。假設系數(shù)向量[α]是[K]?稀疏的,即其中非零系數(shù)的個數(shù)[K?N],則信號[x]是可壓縮的且能稀疏表示。
1.2 測量矩陣
信號[x]采用一個測量矩陣[Φ∈RM×NM?N]進行非適應線性投影得到測量值[y∈RM×1],表示如下:
[y=Φx=ΦΨα=ΑCSα] (2)
因為[M< 1.3 信號重構 對式(2)的逆問題最直接方法是通過[L0]?范數(shù)求解,即: [α=argminα∈RNα0, s.t. y=ΦΨα] (3) 然而式(3)的數(shù)值計算極不穩(wěn)定而且是NP難問題。但若[ΑCS=ΦΨ]滿足RIP或是[Ψ]與[Φ]不相關,式(3)可等價于[L1]?范數(shù)最優(yōu)化問題,即: [α=argminα∈RNα1, s.t. y=ΦΨα] (4) 由于[L1]?范數(shù)是凸優(yōu)化問題,所以式(4)是一個線性優(yōu)化的問題,可以高概率精確恢復稀疏或可壓縮信號[6]。目前,已有很多算法可以較好地解決式(4)的問題,如BP(Basis Pursuit algorithm)[14], MP(Matching Pursuit algorithm),OMP(Orthogonal Matching Pursuit algorithm)[15]等。 2 系統(tǒng)模型 本文所研究的方案目前適用于大型環(huán)境監(jiān)測領域WSN傳感器節(jié)點所采集的1?D數(shù)據(jù)。 2.1 網(wǎng)絡模型 為了簡化問題的描述,研究限定于以下假設: (1) 在某監(jiān)控區(qū)域有一個匯聚節(jié)點和[N]可感知溫度、濕度等環(huán)境物理量的傳感器節(jié)點,網(wǎng)絡節(jié)點固定且均分為[J2≤J?N]個簇,如圖2所示。 圖2 分簇路由拓撲結構 (2) 簇頭位于簇的中心位置,簇內節(jié)點采用CS數(shù)據(jù)收集方法,如圖3(a)所示。 (3) 簇頭之間按照最短路徑的路由策略進行測量值的收集,如圖3(b)所示。 圖3 數(shù)據(jù)收集過程 2.2 數(shù)據(jù)分析 WSN節(jié)點采集的數(shù)據(jù)一般都具有較高時空相關性,每個傳感器節(jié)點采集的數(shù)據(jù)種類也較多,如Intel Berkeley Research實驗室[16]部署的54個傳感器節(jié)點,可采集濕度、溫度、光照和電壓值數(shù)據(jù)信息。圖2為該網(wǎng)絡部分節(jié)點采集的溫度信號。 因此,不能一味地用CS直接套用于WSN。本文借助聯(lián)合稀疏模型(Joint Sparsity Model,JSM),對數(shù)據(jù)做深入研究。在傳統(tǒng)的JSM模型中,把每個信號分成不同的兩個部分來進行分析和應用,一部分是共用的成分,另一部分則是獨有的成分。而本文采用以各簇簇頭為共用部分,從而減少對共用成分的單獨分析,并且縮小了數(shù)據(jù)處理的分布范圍,提高數(shù)據(jù)壓縮性。 圖4 環(huán)境溫度信號 簇頭[μμ=1,2,…,J]收集到的一維離散信號[Xμ=xμ1,xμ2,...,xμnT],[xμ0]為簇頭的感知數(shù)據(jù)。因此,把向量[Xμ]中的每個[xμii=1,2,…,n]做[xμi-xμ0]處理,[xμi=xμi-xμ0]就等價于向量[Xμ]擴展為矩陣[Xμ=[xμ0,xμ1,xμ2,…,xμn]T]左乘一個矩陣,即: [Xμ′=BXμ] (5) 式中: [B=εμ0…0-11…0????-10…1] (6) 式中:[εμ]代表簇頭[μ]地理位置的小量信息,不僅可保持處理數(shù)據(jù)維度的一致性,而且能將該簇對應于匯聚節(jié)點保存的偽隨機序列喚醒,以有效恢復數(shù)據(jù)。 2.3 數(shù)據(jù)編碼 2.3.1 數(shù)據(jù)壓縮編碼 本文利用偽隨機序列產(chǎn)生CS的隨機投影,即稀疏投影矩陣,該矩陣能夠避免高斯隨機矩陣在資源有限的WSN節(jié)點實現(xiàn)難的特點。稀疏投影矩陣[Φ]中各元素表示如式(7)所示: [?ij=s1, p=12s0, p=1-1s-1, p=12s] (7) 式中:[p]表示概率;[s]表示投影稀疏程度,當[s=1]時,投影沒有任何稀疏度。 根據(jù)壓縮感知原理可知,[y=Φx]有: [y1y2?ym=?11?12…?1n?21?22…?2n?????m1?m2…?mnx1x2?xn=] [ ?11?21??m1x1+?12?22??m2x2+…+?1n?2n??mnxn] (8) 當投影[yii=1,2,…,m]中某項為零時,成員節(jié)點不用傳輸任何數(shù)據(jù),故能減少節(jié)點的數(shù)據(jù)傳輸量。 2.3.2 數(shù)據(jù)傳輸編碼 簇頭之間傳輸數(shù)據(jù)包格式如圖5所示。 圖5 簇頭數(shù)據(jù)包格式 根據(jù)實際應用需求,數(shù)據(jù)包選用相應的編碼長度。而本文數(shù)據(jù)域[Yμ]選用32 b,該位存儲著隨機投影值;頭部域[xμ0]采用16 b,[εμ]采用2 b。 2.4 數(shù)據(jù)恢復 匯聚節(jié)點收集到網(wǎng)內中各個簇頭數(shù)據(jù)包后,進而進行解碼恢復各簇數(shù)據(jù)信息。 3 仿真與分析 本文仿真實驗基于Matlab R2010a仿真器進行,選擇的實驗參數(shù)如表1所示。
表1 實驗參數(shù)列表
在表1中,稀疏變換為離散余弦變換(Discrete Cosine Transformation,DCT),其具有較強的“能量集中”特性;測量矩陣為偽隨機序列;重構算法采用[L1]?范數(shù)最優(yōu)化內點法,使用[L1]?magic工具箱中的[L1]eq_pd()函數(shù)算法,具有較高的恢復精度。
下面從以下兩方面對改進算法進行性能描述:
(1) 歸一化重構誤差
[cs_err=normx-xnormx] (9)
式中:[x]為原信號;[x]為恢復信號,且定義壓縮比[r]為觀測個數(shù)[m]和感知數(shù)據(jù)個數(shù)[n]之比,即[r=mn]。對于不同的[r],分別測試其恢復誤差,測試10次,結果取其平均值,如圖6所示。從圖6可知,在相同壓縮比情況下,本文的方法明顯降低了歸一化恢復誤差;歸一化恢復誤差隨著壓縮比增加而減少,當壓縮比接近1,即觀測數(shù)據(jù)和感知數(shù)據(jù)個數(shù)接近時,恢復誤差均趨向零。
圖6 恢復誤差與壓縮比的關系
(2) 數(shù)據(jù)傳輸次數(shù)
每簇數(shù)據(jù)所需的傳輸次數(shù)為[T0=aμ×NJ]。其中[aμ]測量個數(shù)且[aμ=cklogNJ1k],[c]為較小的常系數(shù),[k]為信號稀疏度,可通過信號的稀疏表示求得;傳統(tǒng)方法的傳輸次數(shù)[T=NJNJ+12]。如圖7所示,可以看出,隨著節(jié)點數(shù)目的增加,不同方案的數(shù)據(jù)傳輸次數(shù)都在增加,但是本文方法(Clustering with CS)的傳輸次數(shù)明顯的少。
圖7 不同方案數(shù)據(jù)傳輸次數(shù)比較
4 結 語
本文主要探討了基于CS的簇路由在WSN數(shù)據(jù)收集中的應用。針對大規(guī)模WSN的特點,本文在現(xiàn)有工作的基礎上,提出了一種改進方案,該方案結合了CS算法,利用WSN分簇路由結構及JSM而設計的。最后通過理論分析和實驗仿真測試得出該改進方案不僅能夠以較低的恢復誤差重構原始數(shù)據(jù),而且也大大減少了數(shù)據(jù)傳輸次數(shù),平衡網(wǎng)絡能耗。
參考文獻
[1] AKYILDIZ I F, SU Wei?lian, SANKARASUBRAMANIAM Y, et al. A survey on sensor networks [J]. IEEE Communication Magazine, 2002, 40(8): 102?114.
[2] HEDETNIEMI S M, HEDETNIEMI S T, LIESTMAN A L. A survey of gossping and broadcasting in communication networks [J]. Networks, 1998, 18(4): 319?349.
[3] HASS Z J, HALPERN J Y, LI Li. Gossip?based ad?hoc routing [J]. IEEE/ACM Transactions on Networking (TON), 2006, 14(3): 479?491.
[4] 李建中,高宏.無線傳感器網(wǎng)絡的研究進展[J].計算機研究與進展,2008,45(1):1?15.
[5] DONOHO D L. Compressed sensing [J]. IEEE Transactions on Information Theory, 2006, 52(4): 1289?1306.
[6] CAND?S E J, ROMBERG J, TAO T. Robust uncertainty principles: exact signal reconstruction from highly incomplete frequency information [J]. IEEE Transactions on Information Theory, 2006, 6(2): 227?254.
[7] LI Li, LI Jian. Research of compressed sensing theory in WSN data fusion [C]// 2011 Fourth International Symposium on Computational Intelligence and Design (ISCID). Hangzhou, China: IEEE, 2011, 2: 125?128.
[8] LIU Xiang, LUO Jun, VASILAKOS A. Compressed data aggregation for energy efficient wireless sensor networks [C]// 2011 8th Annual IEEE Communications Society Conference on Sensor, Mesh and Ad Hoc Communications and Networks. [S.l.]: IEEE, 2011: 46?54.
[9] CHEN Wei, WASSELL I J. Energy efficient signal acquisition via compressive sensing in wireless sensor networks [C]// 2011 6th International Symposium on Wireless and Pervasive Computing. [S.l.]: ISWPC, 2011: 1?6.
[10] LUO Chong, WU Feng, SUN Jun, et al. Compressive data gathering for large?scale wireless sensor networks [C]// MobiCom09 Proceedings of the 15th Annual International Conference on Mobile Computing and Networking. [S.l.]: ACM, 2009: 145?156.
[11] WU Xuan?gou, XIONG Yan, HUANG Wen?chao, et al. An efficient compressive data gathering routing scheme for large?scale wireless sensor networks [J]. Journal of Computers and Electrical Engineering, 2013, 39(6): 1935?1946.
[12] CAND?S E J, TAO T. Decoding by linear programming [J]. IEEE Transactions on Information Theory, 2005, 51(12): 4203?4215.
[13] CAND?S E J, ROMBERG J. Sparsity and incoherence in compressive sampling [J]. Inverse Problem, 2007, 23(3): 969?985.
[14] CHEN Scott Shao?bing, DONOHO D L, SAUNDERS M A. Atomic decomposition by basis pursuit [J]. SIAM Journal on Scientific Computing, 1998, 20(1): 33?61.
[15] TROPP J A, GILBERT A C. Signal recovery from random measurements via orthogonal matching pursuit [J]. IEEE Transactions on Information Theory, 2007, 53(12): 4655?4666.
[16] BODIK P, HONG W, GUESTRIN C, et al. Intel lab data [EB/OL]. (2004?02?28) [2013?11?15]. http://db.lcs.mit.edu/labdata/labdata.html.
[17] 劉貞賢,陳祥光,赫永霞.一種新型的傳感器網(wǎng)絡[J].現(xiàn)代電子技術,2013,36(16):18?20.
[18] 胡風華,李敬兆.無線傳感器網(wǎng)絡的節(jié)點分布均勻性分析[J].現(xiàn)代電子技術,2013,36(5):41?43.
Keywords: wireless sensor network; compressed sensing; recovery error; data transmission
[10] LUO Chong, WU Feng, SUN Jun, et al. Compressive data gathering for large?scale wireless sensor networks [C]// MobiCom09 Proceedings of the 15th Annual International Conference on Mobile Computing and Networking. [S.l.]: ACM, 2009: 145?156.
[11] WU Xuan?gou, XIONG Yan, HUANG Wen?chao, et al. An efficient compressive data gathering routing scheme for large?scale wireless sensor networks [J]. Journal of Computers and Electrical Engineering, 2013, 39(6): 1935?1946.
[12] CAND?S E J, TAO T. Decoding by linear programming [J]. IEEE Transactions on Information Theory, 2005, 51(12): 4203?4215.
[13] CAND?S E J, ROMBERG J. Sparsity and incoherence in compressive sampling [J]. Inverse Problem, 2007, 23(3): 969?985.
[14] CHEN Scott Shao?bing, DONOHO D L, SAUNDERS M A. Atomic decomposition by basis pursuit [J]. SIAM Journal on Scientific Computing, 1998, 20(1): 33?61.
[15] TROPP J A, GILBERT A C. Signal recovery from random measurements via orthogonal matching pursuit [J]. IEEE Transactions on Information Theory, 2007, 53(12): 4655?4666.
[16] BODIK P, HONG W, GUESTRIN C, et al. Intel lab data [EB/OL]. (2004?02?28) [2013?11?15]. http://db.lcs.mit.edu/labdata/labdata.html.
[17] 劉貞賢,陳祥光,赫永霞.一種新型的傳感器網(wǎng)絡[J].現(xiàn)代電子技術,2013,36(16):18?20.
[18] 胡風華,李敬兆.無線傳感器網(wǎng)絡的節(jié)點分布均勻性分析[J].現(xiàn)代電子技術,2013,36(5):41?43.
Keywords: wireless sensor network; compressed sensing; recovery error; data transmission
[10] LUO Chong, WU Feng, SUN Jun, et al. Compressive data gathering for large?scale wireless sensor networks [C]// MobiCom09 Proceedings of the 15th Annual International Conference on Mobile Computing and Networking. [S.l.]: ACM, 2009: 145?156.
[11] WU Xuan?gou, XIONG Yan, HUANG Wen?chao, et al. An efficient compressive data gathering routing scheme for large?scale wireless sensor networks [J]. Journal of Computers and Electrical Engineering, 2013, 39(6): 1935?1946.
[12] CAND?S E J, TAO T. Decoding by linear programming [J]. IEEE Transactions on Information Theory, 2005, 51(12): 4203?4215.
[13] CAND?S E J, ROMBERG J. Sparsity and incoherence in compressive sampling [J]. Inverse Problem, 2007, 23(3): 969?985.
[14] CHEN Scott Shao?bing, DONOHO D L, SAUNDERS M A. Atomic decomposition by basis pursuit [J]. SIAM Journal on Scientific Computing, 1998, 20(1): 33?61.
[15] TROPP J A, GILBERT A C. Signal recovery from random measurements via orthogonal matching pursuit [J]. IEEE Transactions on Information Theory, 2007, 53(12): 4655?4666.
[16] BODIK P, HONG W, GUESTRIN C, et al. Intel lab data [EB/OL]. (2004?02?28) [2013?11?15]. http://db.lcs.mit.edu/labdata/labdata.html.
[17] 劉貞賢,陳祥光,赫永霞.一種新型的傳感器網(wǎng)絡[J].現(xiàn)代電子技術,2013,36(16):18?20.
[18] 胡風華,李敬兆.無線傳感器網(wǎng)絡的節(jié)點分布均勻性分析[J].現(xiàn)代電子技術,2013,36(5):41?43.
Keywords: wireless sensor network; compressed sensing; recovery error; data transmission