System for cooking rice comprising: - a rice cooker comprising: ∘ a vessel suitable for receiving a determined quantity of rice to be cooked, and ∘ processing means suitable for executing a sequence of instructions for controlling steps of preparing and cooking rice or simply steps for cooking rice received in the vessel , ∘ a first means for communicating with a measuring cup , - a measuring cup comprising: ∘ a container intended to measure a quantity of rice to be introduced in the vessel of the rice cooker , ∘ a near infrared spectrometer suitable for acquiring at least one analysis spectrum (SA) of the rice placed in the container , ∘ a second communication means suitable for exchanging the at least one analysis spectrum (SA) with the rice cooker via the first communication means , ∘ a power source suitable for powering the near infrared spectrometer and the second communication means , - a predetermined predictive model created using a database comprising reference instruction sequences (SIR) associated with reference analysis spectra (SAR) relating to different types of rice, the processing means being designed to determine a particular instruction sequence (SIP) according to the predetermined predictive model and the at least one analysis spectrum (SA) of the rice produced using the near infrared spectrometer . - a rice cooker comprising: ∘ a vessel suitable for receiving a determined quantity of rice to be cooked, and ∘ processing means suitable for executing a sequence of instructions for controlling steps of preparing and cooking rice or simply steps for cooking rice received in the vessel , ∘ a first means for communicating with a measuring cup , ∘ a vessel suitable for receiving a determined quantity of rice to be cooked, and ∘ processing means suitable for executing a sequence of instructions for controlling steps of preparing and cooking rice or simply steps for cooking rice received in the vessel , ∘ a first means for communicating with a measuring cup , - a measuring cup comprising: ∘ a container intended to measure a quantity of rice to be introduced in the vessel of the rice cooker , ∘ a near infrared spectrometer suitable for acquiring at least one analysis spectrum (SA) of the rice placed in the container , ∘ a second communication means suitable for exchanging the at least one analysis spectrum (SA) with the rice cooker via the first communication means , ∘ a power source suitable for powering the near infrared spectrometer and the second communication means , ∘ a container intended to measure a quantity of rice to be introduced in the vessel of the rice cooker , ∘ a near infrared spectrometer suitable for acquiring at least one analysis spectrum (SA) of the rice placed in the container , ∘ a second communication means suitable for exchanging the at least one analysis spectrum (SA) with the rice cooker via the first communication means , ∘ a power source suitable for powering the near infrared spectrometer and the second communication means , - a predetermined predictive model created using a database comprising reference instruction sequences (SIR) associated with reference analysis spectra (SAR) relating to different types of rice, <EOS>