View full-text article in PMC Sensors (Basel). 2021 Mar 30;21(7):2396. doi: 10.3390/s21072396 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1. Flowchart of lag1 ACF algorithm for noise identification. Done=False, d=0 While Not Done Zi=1M∑j=1MX(i−1)·M+j (i=1,2,3,…,N) Z¯=1N∑i=1NZi N=int(NXM) r1=∑k=1N−1(Zk−Z¯)(Zk+1−Z¯)∑k=1N(Zk−Z¯)2 σ=r11+r1 If d≥dmin &(σ<0.25|d≥dmax) p=round(2σ)−2d Done=True Else Z1=Z2−Z1,…,ZN−1=ZN−ZN−1 N=N−1, d=d+1 End if End While