Skip to main content


A Biosensing Wearable Device Company Partners with TechBlocks to Deliver on the Promise of Digital Health

wearable device

The Results

100 %

Crash Rate Dropped

Through our engagement, we were able to reduce the number of active bugs on the platform and reduced daily crashes by 100%.


Release Cycle Reduced

We were able to reduce their deployment lifecycle from over 30 days per release to 5 days.


Major Bugs Squashed

We eliminated over 30 major bugs that were causing crashes.

Industry Observations

Stress is nothing new in our busy lifestyles. Whether its stress related to personal relationships or to our workplace, it’s a normal part of our life.

Chronic stress, anxiety and other mood disorders are becoming a grave problem across a large segment of the population.

Doctors, clinicians and patients can monitor for signs of stress and anxiety using Heart Rate Variability (HRV). HRV is the physiological phenomenon of variation in the time interval between heartbeats. It is measured by the variation in the beat-to-beat interval.

Sleep Quality white

Sleep Quality

Stress white


Anxiety white


Longevity white


Pain white


Chronic Disease Progession white

Chronic Disease Progression


Generally speaking, individuals who have a higher HRV tend to be more adaptable to stress, are often in a state of peace and may also be healthier. Individuals with a low heart rate variability are often in fight-or-flight mode.

Studies state that anxiety and other anxiety-related disorders are one of the most common mental illnesses in the United States. According to a study by The National Institute of Mental Health published in 2017, 19.1% of adults (around 40 million adults) in the U.S. have had an anxiety disorder.

Barriers to treatment for physiological disorders can be summed up into three categories: accessibility, acceptability, and availability. Acceptability is often inhibited by stigma related to mental illnesses, lack of efficacy, and receptiveness with healthcare professionals. A study indicated that over 111 million Americans live in “mental health professional shortage” areas and 77% of countries in the U.S. are underserved by mental health professionals.

These mental health disorders are often comorbid with other chronic disorders. Our client, a biosensing wearable device manufacturer, has emerged as the gold standard biomarker for mental health, with its clinical-grade ECG that trains individuals to improve their HRV.


About The Client

Between 2012 and 2017, the wearable device market saw an increase by 552%, making up more than 80% of the overall mobile sensing health and fitness device market. The wearable devices market is promising, with wearable health and fitness devices shipments reaching over 533 million in 2021, supported by the growth of 5G technology.

Lief Therapeutics, a San Francisco-based wearable devices company began development of their clinically validated wearable in 2014. Lief Therapeutics provides a super-thin wearable patch that tracks users’ heart rate and breath statistics. The Lief is one of the smartest and clinically accurate heart rate variability (HRV) wearable device for mental health, and possible, the only device that can intervene in real time to help users control their body’s natural stress response through a series of safe, calming breathing exercises.

The device is designed in such a way that a user can wear it right over the heart and is accompanied by a mobile application that includes a virtual coach to help your body de-stress.

About Client

Put simply, Lief Therapeutics

“Behavioral coaches and wearable smart patch empowers patients to improve their mental health”

without having to visit a physical clinic. As more and more operations shifted to virtual settings because of the onset of the COVID-19 pandemic, Lief helped individuals get access to the mental health services they needed, fully virtual, and covered by most U.S. insurance plans.

Wearable Device

The wearable device works on Bluetooth Low Energy (BLE), which can be linked to a paired smartphone for data synchronization via mobile apps. The application acts as an interface for individuals to interact with the device in order to get results, and visual feedback.

This suggests that the device has immense potential to help its users better understand their stress levels and the overall emotions they are feeling, thereby having a positive impact on their mental health. The team at Lief Therapeutics suggests that they are working with world-class clinicians and physicians at The University of California, San Francisco (UCSF) and Stanford University to help its users record thoughts, sentiments, and overall behaviors to better understand how specific negative thinking patterns affect them.

As of now, Lief Rx has been used by thousands of users across the U.S. to reduce symptoms of chronic mental health disorders surrounding stress and anxiety.

The Challenge

Our client, like most companies in the health wearable space use Bluetooth Low Energy (BLE) technology to link their device with a mobile phone, and like most companies in this space, they faced similar challenges with maintaining a stable connection, providing firmware updates to their device, and interpreting raw sensor data.

One of the major challenges faced by Lief Therapeutics was that the wearable device needed persistent connectivity with the host device, such as a smartphone, which often resulted in high packet drops over BLE. This resulted in unbalanced and poor UX for the companion mobile app.

The inconsistency between phone manufacturers’ implementation of Bluetooth protocols and both sleep and inactivity modes made it extremely difficult to maintain a connection to the wearable device.

The wearable requires a companion app to interpret the sensor data and trigger a therapy routine for the user. If the companion app is put in to sleep mode, or the BLE connection is blocked by the host device, the user would not receive notifications that their stress levels are elevated and would not receive the therapeutic benefits of the product.

Bluetooth Connectivity

As our clients’ product evolved, they needed a way to update the firmware on the wearable device consistency, and without the risk of bricking the device.  When the client came to us, they had quality issues with firmware updates that would:

Disable the device, requiring the device to be returned under warranty

Prevent rollbacks to previous firmware versions, or updates to future versions

Fail to update the firmware entirely

Over The Air (GIF)

At the start of our engagement, the clients’ companion app had a crash rate of over 80%, which caused third-party monitoring tools like Firebase Crashalytics to trigger Velocity Alerts to developers.

Over 10,000 users of their product experienced at least one or more application crashes per day, which would lead to lost data, device pairing issues, and overall poor user experience.

The sensors in the wearable provide complex and real time monitoring of the user’s HRV, pulse, orientation, and other data.

The client needed a way to interpret the biosensors and other data from their wearable to monitor the users stress levels & device status, and provide visual, easy to follow insights to their users. The patterns in the data were unexpected and did not conform to the initial models the client’s team initially developed.

Lief Therapeutics needed a digital health engineering partner that understood the complexities of developing wireless wearable devices, a strong foundation in user experience design, and industry knowledge of health care.

Sensor Data Visualization

The Solution

Through a consultative, phased approach, our business analysts & engineers were able to develop solutions to solve each of the four problems.

Our team met with the Leif team to collect initial feedback, requirements and desired outcomes of the project. Our business analysts, solution experts and engineers spent time with the client’s product in our device lab and through hands on testing.


Through our own testing, our team uncovered additional bugs and deficiencies that were flagged to the client.  Enhancement requests, bugs, and deliverables were grouped together, prioritized and scoped out to maximize the clients’ investment and user experience


Our developers got to work through a CI/CD delivery model, baking in automated and manual quality assurance at every step.  Through this process, additional areas of opportunity were identified to the client for prioritization of newly discovered bugs, code enhancement, or new feature opportunities.

We helped the client with our expertise in providing managed application support services and quality assurance processes – particularly surrounding wearable technologies and BLE. Moreover, our team helped them with modernizing their frameworks to leverage the latest technologies that could eventually help Lief with their challenges.

Our engineering team helped set up quality assurance processes, proposed sustainable high performing strategies, and formulated test cases for complete coverage of the companion app. Besides, we tested the companion app with a higher number of mobile devices on both Android and iOS platforms.

Development Quality Assurance

As features & bug fixes were developed, they would be released through our CI/CD delivery pipeline, ensuring timely fixes to device firmware, companion app, and server-side integration. Our team continuously monitored app store crash reports, user feedback and other signals to identify new potential issues.

TechBlocks helped Lief Therapeutics with its expertise on providing managed application support services and quality assurance processes – particularly surrounding wearable technologies and BLE. Moreover, the team helped them with modernizing their frameworks to leverage the latest technologies that could eventually help Lief with their challenges.

Lief Therapeutics quickly realized that it had chosen a partner that stood by its word, because its results have been nothing short of astonishing.

Deployment Monitoring


App Stability & User Satisfaction

Through our engagement, we were able to reduce the number of active bugs on the platform and reduced daily crashes by 100%. At the end of our first engagement with the client, we eliminated over 30 major bugs that were causing crashes.

The clients’ app is stable, and their users are happy. Our team was able to develop new ways to interpret sensor data and provide the user with a gamified way to manage their stress through meaningful visualizations and interactive activities.

Accurate Sensor Data & Wearable Updates

Sensor data coming from the wearable was inconsistent and difficult to interpret. Our team was able to identify trends in the data stream and develop a new algorithm for breathing sensor interpretation and data visualization.

Through our engagement, we developed proper a proper OTA firmware update deployment system that allows the client to upgrade and downgrade firmware without risk of bricking the device or causing issues for the users.

Connectivity & Interactivity

Through our expertise in developing and maintaining Bluetooth device connections, we were able to provide the client with a stable ecosystem from their wearable device to the companion app, and server-side platforms, allowing for real time updates and notifications from the wearable to the user.

Our synchronization protocols helped prevent client-side data loss, increasing user satisfaction with the platform.

Increased Speed To Market

Users do not want to wait months for application or firmware updates. Through Our CI/CD development process, and use of custom quality engineering automation frameworks, we were able to reduce their deployment lifecycle from over 30 days per release to under 1 week.
Pairing industry knowledge with digital product engineering has been a huge factor in TechBlocks’ ability to significantly reduce the time needed to develop and provide a stable application.

Are You Building A Digital Health Product?

Partner with TechBlocks to build a platform in the cloud that meets or exceeds regulatory requirements, including FDA, HIPAA, HITECH, Health Canada, and ISO 27001