Text this: Quality-Aware Signal Processing Mechanism of PPG Signal for Long-Term Heart Rate Monitoring