A smart pill box comprises: a main smart pill box (10) comprising a plurality of compartments, wherein an identification module and a communication module are arranged in each of the compartments, and an output terminal of the identification module is connected to an input terminal of the communication module; a plurality of refill packs (20) inserted in respective compartments and storing various types of pills. An identification code is arranged on each of the refill packs (20) and indicates pill information of each of the refill packs (20). The identification module is used to read the identification code.