Grain of rice tracking devices in medications