We have investigated graphene-based three various refractive index sensors (split ring resonator (SRR), split ring resonator with thin wire (SRRTW), and thin wire (TW) refractive index sensors) for the encoding and sensing-based applications. The sensors are designed to detect the presence of hemoglobin biomolecules with high sensitivity. The results are analyzed in the form of transmittance, and electric field, and detailed sensitivity analysis is also carried out for the proposed graphene-based refractive index sensors for four various concentrations of hemoglobin biomolecules. We have also investigated the sensor's performance in terms of quality factor, Q, and figure of merit (FOM). The encoding of '0' and '1' is attained by varying the graphene chemical potential fulfilling the one-digit coding. An array of these sensors can then be used for encoding-based applications. The detailed analysis of reported sensors is also carried out by checking the effect of varying physical parameters such as substrate thickness, split ring gap, and thin wire width on tunability. These sensors can be applied in biomedical or encoding-based applications. Experiments are performed using XGBoost regressor to determine, whether simulation time and resources can be reduced by using regression analysis to predict the transmittance values of intermediate frequency or not. Experimental results prove that regression analysis using XGBoost Regressor can reduce the simulation time and resources by at least 70 percent.