I am using matlab simulator and doing paper selfish node detection based on average retransmission number.
Some factors determine selfish node in wsn
-If energy is not sufficient to forward income packet
-if buffer size is full
-If distance is long
-Media(transmission)