Abstract. In this paper, we conduct research on the design and simulation of the novel wireless sensor network spectrum allocation algorithm. Cognitive radio technology is able to perceive the general surrounding environment spectrum, spectrum hole detection, the use of artificial intelligence from the environment, learning, and real-time change working parameters of the system, and make use of the "secondary" of the spectrum, thus improve the spectrum utilization. How to effectively implement frequency spectrum resource management has become the key to realize the reliable communication. Through the improvement, the distribution of the weight before sent to the fusion center is completed, and according to the set threshold values, for each of the cognitive users respectively, then the verdict to the fusion center, this is the fusion center receives each user of the verdict. In the experiment part, we simulate the propose method and verify the robustness and feasibility of our method.