A gradient-based trapping apparatus includes a processing device for receiving a current portion of a digital image. The method includes forming a BioFET using one or more process steps compatible with or typical to a complementary metal-oxide-semiconductor process. There can be two or more electrodes electrically coupled to the processing means where the two or more electrodes can be used for sensing a patient’s cardiac signals, which include a far-field EGM.