Automatic Cardiac Signals Analysis And Application Of Biometrics In Wearables Security