Monday, May 11, 2026
banner
Top Selling Multipurpose WP Theme

This publish is cowritten with Dr. Mikkel Hansen from Qbtech.

The evaluation and analysis of consideration deficit hyperactive dysfunction (ADHD) has historically relied on scientific observations and behavioral evaluations. Whereas these strategies are priceless, the method will be advanced and time-intensive. Qbtech, based in 2002 in Stockholm, Sweden, enhances ADHD analysis by integrating goal measurements with scientific experience, serving to clinicians make extra knowledgeable diagnostic selections. With over a million exams accomplished throughout 14 nations, the corporate’s FDA-cleared and CE-marked merchandise—QbTest (clinic-based) and QbCheck (distant)— have established themselves as widely-adopted instruments for goal ADHD testing. Now, Qbtech goals at extending their capabilities with QbMobile, a smartphone-native evaluation that makes use of Amazon Net Companies (AWS) to carry clinical-grade ADHD testing on to sufferers’ gadgets.

On this publish, we discover how Qbtech streamlined their machine studying (ML) workflow utilizing Amazon SageMaker AI, a totally managed service to construct, practice and deploy ML fashions, and AWS Glue, a serverless service that makes knowledge integration less complicated, sooner, and less expensive. Qbtech developed and deployed a mannequin that effectively processes knowledge from smartphone cameras, movement sensors, and check outcomes. This new resolution lowered their characteristic engineering time from weeks to hours, whereas sustaining the excessive scientific requirements required by healthcare suppliers.

The problem: Democratizing entry to goal ADHD evaluation

ADHD impacts tens of millions worldwide, but conventional analysis typically entails prolonged wait occasions and a number of clinic visits. Whereas Qbtech’s current options superior in-clinic and distant webcam-based testing, the corporate recognized a chance to develop entry by way of smartphone know-how. Qbtech wanted to remodel uncooked digital camera feeds and movement sensor knowledge from numerous smartphone {hardware} into clinically validated ADHD assessments that would present the identical goal diagnostic worth as their established scientific instruments. This required processing advanced multimodal knowledge streams, extracting significant options, and coaching fashions that would keep accuracy throughout hundreds of system variations—all whereas assembly stringent healthcare regulatory necessities.

Constructing the bogus intelligence (AI) mannequin: From uncooked knowledge to scientific insights

Qbtech’s strategy to cell ADHD evaluation makes use of machine studying strategies to course of and analyze a number of knowledge streams concurrently. The staff chosen Binary LightGBM as their main algorithm for the ADHD evaluation mannequin.

Determine 1: Finish-to-end knowledge processing and have engineering pipeline for QbMobile ADHD evaluation mannequin

The ultimate mannequin makes use of 24 enter options derived from face monitoring, head motion measurements, error patterns throughout exams, patterns in how customers deal with their telephones, and demography data. This scale was essential to seize the nuanced patterns in consideration, hyperactivity, and impulsivity that characterize ADHD throughout numerous affected person populations. The staff utilized three key frameworks: LightGBM as their main machine studying algorithm, Scikit-learn (sklearn) as their machine studying instrument library for knowledge processing and mannequin growth, and SHAP (SHapley Additive exPlanations) as their methodology to evaluate characteristic significance. These instruments have been chosen for his or her flexibility in dealing with multimodal knowledge and strong deployment capabilities. The staff used roughly 2,000 samples, with every pattern containing about 50MB of knowledge. Inside this dataset, there was a category imbalance with the minority class representing round 20% of the samples. The info was rigorously break up into practice and check units utilizing stratification primarily based on each analysis and demographic options, guaranteeing equal illustration throughout intersectional teams. Further consideration was given to grouping since some check takers accomplished a number of exams. The staff carried out a five-fold cross-validation technique utilizing the identical stratification and group approaches. This complete dataset, derived from Qbtech’s decade-plus scientific testing expertise, supplied the inspiration for coaching fashions that would generalize throughout totally different demographics and system sorts.

Coaching efficiency and analysis

Whereas the precise mannequin coaching requires solely about one minute of computation time, the resource-intensive part was the transformation of uncooked samples into structured options. This preprocessing stage is the place SageMaker AI managed processing jobs supplied substantial acceleration, decreasing the processing time for characteristic extraction and enabling environment friendly iteration all through the event lifecycle. To assist guarantee scientific validity, Qbtech employed rigorous analysis metrics together with sensitivity (85.7%), specificity (74.9%), and PR-AUC (73.2%). The staff carried out nested cross-validation with Optuna for hyperparameter tuning throughout every analysis fold, optimizing for the sum of sensitivity and specificity reasonably than PR-AUC to attain extra balanced errors. These metrics and optimization methods have been rigorously chosen to align with scientific diagnostic standards and regulatory necessities for medical gadgets. The staff famous that within the medical sector, there isn’t a absolute floor reality in diagnosing ADHD—the gold commonplace is when a number of medical doctors agree on a analysis. The actual worth of Qbtech’s resolution is offering constant, goal knowledge that brings confidence to clinicians’ diagnostic selections.

Scaling characteristic engineering with Amazon SageMaker AI

A key enchancment in Qbtech’s growth course of got here from implementing parallel processing capabilities on cloud infrastructure. By implementing asynchronous processing that allows every check to run in parallel reasonably than sequentially, the staff may carry out downloading, JSON parsing, and have transformation in parallel throughout a number of processes. The characteristic engineering pipeline begins by changing uncooked knowledge into time collection for every knowledge supply, then producing numerous options from these time collection. As an illustration, face place knowledge is processed to compute statistics comparable to minimal, most, and imply motion inside 30-second home windows. To realize the discount in processing time from 2 days to half-hour, Qbtech carried out a parallel processing strategy utilizing Python’s multiprocessing capabilities on Amazon Sagemaker AI:

from multiprocessing import Pool, cpu_count
def uuids_to_dataset(df_uuid):
    """Course of all recordsdata right into a dataset"""
    with Pool(cpu_count()) as p:
        r = checklist(p.imap(uuid_to_features, df_uuid["uuid"].to_list()))
    
    df = pd.concat(r)
    df = df.sort_values(by="uuid").reset_index(drop=True)
    return df

This operate creates a pool of staff equal to the variety of central processing unit (CPU) cores obtainable on the compute occasion—for instance, on an ml.m5.8xlarge occasion with 32 cores, this implies 32 recordsdata will be processed concurrently. Every employee calls uuid_to_features, which handles retrieving the JSON check file from Amazon S3, parsing the 50MB of accelerometer and face monitoring knowledge, and performing the precise characteristic computation to extract the scientific indicators. The outcomes from all staff are then mixed right into a single dataset utilizing pandas’ concat operate.

This parallel processing strategy enabled a 96% discount in computation time, permitting the staff to iterate quickly throughout mannequin growth whereas sustaining the reliability wanted for healthcare purposes. Qbtech reported no {hardware} failures or interruptions throughout their growth course of, permitting them to concentrate on mannequin enchancment reasonably than infrastructure administration.

Knowledge pipeline: From smartphone to scientific choice

The info pipeline begins with uncooked smartphone sensor knowledge in numerous codecs. The uncooked ADHD check knowledge is available in JSON format, containing accelerometer readings, face monitoring knowledge, and exams outcomes. AWS Glue jobs deal with the preliminary extraction and transformation of this heterogeneous knowledge right into a standardized format appropriate for evaluation. These transformations assist keep knowledge high quality and consistency throughout totally different system sorts and working methods, a essential requirement for preserving evaluation accuracy. Glue jobs remodel codecs from uncooked recordsdata into a regular one, changing legacy codecs to new codecs and making the file construction extra pleasant for evaluation (e.g., calculating common values from arrays).

Characteristic extraction and choice

The characteristic engineering course of extracts significant scientific indicators from uncooked sensor knowledge. Qbtech extracts roughly 200 options from the uncooked knowledge, with solely 24 making it to the ultimate mannequin. This discount from uncooked options to mannequin inputs was achieved by way of a scientific handbook choice course of, the place histograms per label have been analyzed to verify for separation between courses. The staff carried out an iterative strategy, including essentially the most promising options incrementally whereas monitoring enhancements in cross-validation efficiency. SHAP evaluation was used to confirm that options interacted with the analysis in clinically significant methods—for instance, confirming that increased values in motion options corresponded to elevated chance of ADHD. The staff additionally eradicated options with excessive correlation as one other method to make sure the chosen options have been independently contributing to the analysis. This methodical characteristic choice course of displays the area data encoded into the mannequin growth. A key problem was decreasing very long time collection into tabular options whereas nonetheless capturing the important alerts. The staff developed strategies to extract clinically related patterns from face monitoring and movement sensor knowledge, specializing in indicators that correlate with ADHD signs.

Finish-to-end latency

For a scientific instrument to be sensible, outcomes have to be obtainable shortly. Qbtech’s pipeline delivers leads to beneath a minute from knowledge assortment to mannequin inference. This speedy turnaround helps real-time scientific decision-making and improves the affected person expertise.

Quantifiable influence: Growth effectivity features

The first enchancment got here in time-to-result for characteristic engineering, dropping from two days to simply half-hour by way of parallel processing. This 96% discount in wall time enabled the staff to finish 20 growth iterations way more effectively, considerably accelerating the mannequin growth cycle.

Scientific influence: Comparative scientific efficiency

The scientific validation of QbMobile in opposition to Qbtech’s established merchandise reveals promising outcomes. Efficiency metrics point out that the smartphone-based evaluation maintains the excessive scientific requirements of Qbtech’s current options. The shift to cell evaluation has modified the care supply mannequin. For suppliers which can be solely remote-based, QbMobile permits for a 100% distant diagnostic course of. It permits sufferers who would in any other case not be capable of take part in an in-clinic evaluation on account of logistical challenges to obtain correct analysis. This transition reduces obstacles to analysis and permits extra frequent monitoring of therapy effectiveness.

Deployment and steady enchancment

The manufacturing deployment makes use of AWS companies for reliability and scale. Qbtech packages the skilled mannequin, along with Python code, right into a Docker picture. The Docker picture is then deployed to AWS ECR by way of GitHub releases that set off a GitHub Motion. Lastly, the SageMaker AI endpoint is deployed by Terraform along with the remainder of their backend infrastructure. To take care of constant efficiency throughout gadgets, Qbtech conducts common validation checks throughout growth, inspecting whether or not system fashions have an effect on evaluation efficiency in any unintended methods.

Safety and monitoring for healthcare compliance

Qbtech’s deployment on AWS incorporates complete safety and monitoring measures important for healthcare purposes. All knowledge is encrypted at relaxation, and the system maintains affected person privateness by maintaining knowledge nameless —no particular person will be recognized with knowledge saved at Qbtech. The system enforces multi-factor authentication and repeatedly screens service availability, efficiency metrics, and potential safety threats. All system entry is logged and monitored, with automated flagging of suspicious exercise. This strategy helps meet healthcare safety necessities whereas sustaining the reliability wanted for scientific workflows.

Trying Ahead: Scaling for world influence

Qbtech’s infrastructure technique anticipates QbMobile’s rising adoption worldwide. The staff plans to make use of the elastic scaling capabilities of SageMaker AI to deal with any efficiency bottlenecks that emerge with elevated utilization. For mannequin enhancement, Qbtech is implementing annual replace cycles that transcend easy retraining. As their dataset expands, they’ll incorporate new options that seize further behavioral patterns, repeatedly enhancing diagnostic accuracy and robustness.

Future analysis instructions

Constructing on their present work, Qbtech is exploring further knowledge streams and sensor inputs to additional improve evaluation accuracy and develop diagnostic capabilities. They’re additionally in dialogue with regulatory authorities on learn how to implement a steady enchancment plan in mannequin efficiency, which may probably embrace utilizing totally different fashions like neural networks. The insights from over 1 million accomplished exams present a singular basis for characteristic calibration and threshold definitions. This data-driven strategy permits cell assessments to profit from the corporate’s in depth scientific expertise.

Trying past ADHD, the platform reveals promise for broader purposes. Qbtech believes that QbMobile permits researchers to entry knowledge sorts they haven’t had earlier than or had difficulties acquiring. By analysis collaborations, they intention to discover the total potential of QbMobile, Machine Studying, and extra options to influence ADHD and probably different situations sooner or later.

Conclusion

Qbtech’s implementation of QbMobile on AWS demonstrates significant progress in the direction of accessible, goal ADHD evaluation. By leveraging the parallel processing capabilities of Amazon SageMaker AI, and the info transformation capabilities of AWS Glue, they’ve lowered characteristic engineering time by 96% whereas constructing a clinically validated AI mannequin that runs on smartphones worldwide.

The influence extends past technical metrics: sufferers can now entry clinical-grade ADHD assessments from their gadgets, decreasing wait occasions and enhancing entry to care. For healthcare suppliers, the standardized, goal knowledge permits extra assured diagnoses and higher therapy monitoring.

As psychological well being challenges proceed to develop globally, Qbtech’s use of cloud-based AI reveals how trendy infrastructure can develop entry to specialised healthcare companies. Their strategy gives insights for different healthcare organizations trying to make use of AI and cloud computing to enhance affected person outcomes at scale.

To study extra about constructing healthcare AI options on AWS, discover Amazon SageMaker AI and AWS Glue documentation, or contact AWS healthcare specialists to debate your particular use case.


In regards to the authors

Antonio Martellotta is a Senior Options Architect at AWS. He advices Non-public Fairness companies and their portfolio corporations on digital worth creation leveraging cloud and AI. His predominant areas of experience are knowledge technique, knowledge analytics, and Generative AI. He holds a bachelor’s diploma in Biomedical Engineering and a triple grasp diploma in Good Programs Integrations.

Dr. Mikkel Hansen is a Danish-trained medical physician and seasoned healthcare government. Since October 2020, he has served as Medical Director and CMO at Qbtech, spearheading the mixing of goal, data-driven applied sciences—comparable to QbTest and QbCheck—into ADHD analysis and administration. Dr. Hansen is dedicated to enhancing diagnostic confidence and effectivity in ADHD care worldwide. Past scientific digital well being innovation, Dr. Hansen engages immediately with authorities—together with the U.S. DEA, NICE, FDA, and EMA—serving to to form coverage round protected ADHD analysis and stimulant use.

banner
Top Selling Multipurpose WP Theme

Converter

Top Selling Multipurpose WP Theme

Newsletter

Subscribe my Newsletter for new blog posts, tips & new photos. Let's stay updated!

banner
Top Selling Multipurpose WP Theme

Leave a Comment

banner
Top Selling Multipurpose WP Theme

Latest

Best selling

22000,00 $
16000,00 $
6500,00 $
5999,00 $

Top rated

6500,00 $
22000,00 $
900000,00 $

Products

Knowledge Unleashed
Knowledge Unleashed

Welcome to Ivugangingo!

At Ivugangingo, we're passionate about delivering insightful content that empowers and informs our readers across a spectrum of crucial topics. Whether you're delving into the world of insurance, navigating the complexities of cryptocurrency, or seeking wellness tips in health and fitness, we've got you covered.