I have a search for Localization in WSN using Maximum Likelihood Estimation and using RSSI but I do not understand What is the connection between Localization in WSN and MLE i need to anyone can explain it to me using Matlab code, please.
There is no need for Matlab code. Imagine if you have 5 WSN nodes and for each node you have the RSSI signal. You just need to order the nodes by the RSSI magnitude. Say you have the following magnitudes from lowest (Level 1) to highest (Level 5):
- Node 1: Level 3 magnitude.
- Node 2: Level 5 (Max) magnitude.
- Node 3: Level 4 magnitude.
- Node 4: Level 2 magnitude.
- Node 5: Level 1 (Min) magnitude.
This tells you that Node 2, which has the Max magnitude, is the closest to your source, and the neighboring nodes have the second and third most magnitudes. Which again translates to: Node 2 is closest, Node 3 is second closest (Level 4 magnitude) and Node 1 is third closest (Level 3 magnitude).
Next, by using the geometrical topography of your WSN, you can localize your source with a certain precision. The more nodes you have, the more precision you have, as it allows a finer partition of the available space (inside a building, for example).
Because you are using a WSN you will get data from each of the nodes. You can not mix them in one vector and run the MLE on it. You will have to make a vector of measurements for each node, than apply MLE on each of the vectors and use these estimates for the calculation of the position.
Of course there are also other ways to solve this problem.
If you are looking for a Matlab implementation please have a look at the Matlab documentation: https://www.mathworks.com/help/stats/mle.html