RFID smart data analysis for reading discrimination and direction detection