253 research outputs found

    Hidet: Task-Mapping Programming Paradigm for Deep Learning Tensor Programs

    Full text link
    As deep learning models nowadays are widely adopted by both cloud services and edge devices, reducing the latency of deep learning model inferences becomes crucial to provide efficient model serving. However, it is challenging to develop efficient tensor programs for deep learning operators due to the high complexity of modern accelerators and the rapidly growing number of operators. Deep learning compilers, such as Apache TVM, adopt declarative scheduling primitives to lower the bar of developing tensor programs. However, we show that this approach is insufficient to cover state-of-the-art tensor program optimizations. In this paper, we propose to embed the scheduling process into tensor programs and use dedicated mappings, called task mappings, to define the computation assignment and ordering. This new approach greatly enriches the expressible optimizations by allowing developers to manipulate tensor programs at a much finer granularity. We call the proposed method the task-mapping programming paradigm. In addition, we propose a new post-scheduling fusion optimization that allows developers to focus on scheduling every single operator and automates the fusion after scheduling. It greatly reduces the engineering efforts for operator fusion. Our proposed paradigm also constructs an efficient hardware-centric schedule space, which is agnostic to the program input size and greatly reduces the tuning time. With the proposed paradigm, we implement a deep learning compiler Hidet. Extensive experiments on modern convolution and transformer models show that Hidet outperforms state-of-the-art DNN inference framework, ONNX Runtime, and compiler, TVM equipped with scheduler AutoTVM and Ansor, by up to 1.48x (1.22x on average). It also reduces the tuning time by 20x and 11x compared with AutoTVM and Ansor, respectively. We open-sourced hidet at https://www.github.com/hidet-org/hidet.Comment: 15 pages, 22 figures, 1 tabl

    Premature Atrial and Ventricular Contraction Detection using Photoplethysmographic Data from a Smartwatch

    Get PDF
    We developed an algorithm to detect premature atrial contraction (PAC) and premature ventricular contraction (PVC) using photoplethysmographic (PPG) data acquired from a smartwatch. Our PAC/PVC detection algorithm is composed of a sequence of algorithms that are combined to discriminate various arrhythmias. A novel vector resemblance method is used to enhance the PAC/PVC detection results of the Poincare plot method. The new PAC/PVC detection algorithm with our automated motion and noise artifact detection approach yielded a sensitivity of 86% for atrial fibrillation (AF) subjects while the overall sensitivity was 67% when normal sinus rhythm (NSR) subjects were also included. The specificity, positive predictive value (PPV), negative predictive value (NPV) and accuracy values for the combined data consisting of both NSR and AF subjects were 97%, 81%, 94% and 92%, respectively, for PAC/PVC detection combined with our automated motion and noise artifact detection approach. Moreover, when AF detection was compared with and without PAC/PVC, the sensitivity and specificity increased from 94.55% to 98.18% and from 95.75% to 97.90%, respectively. For additional independent testing data, we used two datasets: a smartwatch PPG dataset that was collected in our ongoing clinical study, and a pulse oximetry PPG dataset from the Medical Information Mart for Intensive Care III database. The PAC/PVC classification results of the independent testing on these two other datasets are all above 92% for sensitivity, specificity, PPV, NPV, and accuracy. The proposed combined approach to detect PAC and PVC can ultimately lead to better accuracy in AF detection. This is one of the first studies involving detection of PAC and PVC using PPG recordings from a smartwatch. The proposed method can potentially be of clinical importance as this enhanced capability can lead to fewer false positive detections of AF, especially for those NSR subjects with frequent episodes of PAC/PVC

    Atrial Fibrillation Detection from Wrist Photoplethysmography Signals Using Smartwatches

    Get PDF
    Detection of atrial fibrillation (AF) from a wrist watch photoplethysmogram (PPG) signal is important because the wrist watch form factor enables long term continuous monitoring of arrhythmia in an easy and non-invasive manner. We have developed a novel method not only to detect AF from a smart wrist watch PPG signal, but also to determine whether the recorded PPG signal is corrupted by motion artifacts or not. We detect motion and noise artifacts based on the accelerometer signal and variable frequency complex demodulation based time-frequency analysis of the PPG signal. After that, we use the root mean square of successive differences and sample entropy, calculated from the beat-to-beat intervals of the PPG signal, to distinguish AF from normal rhythm. We then use a premature atrial contraction detection algorithm to have more accurate AF identification and to reduce false alarms. Two separate datasets have been used in this study to test the efficacy of the proposed method, which shows a combined sensitivity, specificity and accuracy of 98.18%, 97.43% and 97.54% across the datasets

    An Unobtrusive and Lightweight Ear-worn System for Continuous Epileptic Seizure Detection

    Full text link
    Epilepsy is one of the most common neurological diseases globally, affecting around 50 million people worldwide. Fortunately, up to 70 percent of people with epilepsy could live seizure-free if properly diagnosed and treated, and a reliable technique to monitor the onset of seizures could improve the quality of life of patients who are constantly facing the fear of random seizure attacks. The scalp-based EEG test, despite being the gold standard for diagnosing epilepsy, is costly, necessitates hospitalization, demands skilled professionals for operation, and is discomforting for users. In this paper, we propose EarSD, a novel lightweight, unobtrusive, and socially acceptable ear-worn system to detect epileptic seizure onsets by measuring the physiological signals from behind the user's ears. EarSD includes an integrated custom-built sensing, computing, and communication PCB to collect and amplify the signals of interest, remove the noises caused by motion artifacts and environmental impacts, and stream the data wirelessly to the computer or mobile phone nearby, where data are uploaded to the host computer for further processing. We conducted both in-lab and in-hospital experiments with epileptic seizure patients who were hospitalized for seizure studies. The preliminary results confirm that EarSD can detect seizures with up to 95.3 percent accuracy by just using classical machine learning algorithms

    The relationship between sexual sensation seeking and problematic Internet pornography use: A moderated mediation model examining roles of online sexual activities and the third-person effect

    Get PDF
    Background and aims Internet pornography consumption is prevalent among college students and problematic for some, yet little is known regarding the psychological constructs underlying problematic Internet pornography use (PIPU). Drawing on the Interaction of Person-Affect-Cognition-Execution model, this study tested a model that sexual sensation seeking (SSS) would impact PIPU through online sexual activities (OSAs) and that this relationship would be influenced by the third-person effect (TPE; a social cognitive bias relating to perceived impacts on others as compared to oneself) in a gender-sensitive manner. Methods A total of 808 Chinese college students (age range: 17–22 years, 57.7% male) were recruited and surveyed. Results Men scored higher than women on OSAs and PIPU and on each scale’s component factors. The relationship between SSS and PIPU was mediated by OSAs, and the TPE moderated this relationship: the predictive path (SSS to PIPU) was significant only in participants with high TPE. The moderated mediation model was not invariant across gender groups, with data suggesting that it accounted for a greater proportion of the variance in men as compared with women. Discussion and conclusions The findings suggest that SSS may operate through participation in OSAs to lead to PIPU, and this relationship is particularly relevant for college-aged males scoring high on the TPE. These findings have implications for individuals who might be particularly vulnerable to developing PIPU and for guiding educational efforts and targeting interventions in college-aged students. The extent to which these findings extend to other age groups and cultures warrants further examination

    A real-time ppg peak detection method for accurate determination of heart rate during sinus rhythm and cardiac arrhythmia

    Get PDF
    Objective: We have developed a peak detection algorithm for accurate determination of heart rate, using photoplethysmographic (PPG) signals from a smartwatch, even in the presence of various cardiac rhythms, including normal sinus rhythm (NSR), premature atrial contraction (PAC), premature ventricle contraction (PVC), and atrial fibrillation (AF). Given the clinical need for accurate heart rate estimation in patients with AF, we developed a novel approach that reduces heart rate estimation errors when compared to peak detection algorithms designed for NSR. Methods: Our peak detection method is composed of a sequential series of algorithms that are combined to discriminate the various arrhythmias described above. Moreover, a novel Poincaré plot scheme is used to discriminate between basal heart rate AF and rapid ventricular response (RVR) AF, and to differentiate PAC/PVC from NSR and AF. Training of the algorithm was performed only with Samsung Simband smartwatch data, whereas independent testing data which had more samples than did the training data were obtained from Samsung’s Gear S3 and Galaxy Watch 3. Results: The new PPG peak detection algorithm provides significantly lower average heart rate and interbeat interval beat-to-beat estimation errors—30% and 66% lower—and mean heart rate and mean interbeat interval estimation errors—60% and 77% lower—when compared to the best of the seven other traditional peak detection algorithms that are known to be accurate for NSR. Our new PPG peak detection algorithm was the overall best performers for other arrhythmias. Conclusion: The proposed method for PPG peak detection automatically detects and discriminates between various arrhythmias among different waveforms of PPG data, delivers significantly lower heart rate estimation errors for participants with AF, and reduces the number of false negative peaks. Significance: By enabling accurate determination of heart rate despite the presence of AF with rapid ventricular response or PAC/PVCs, we enable clinicians to make more accurate recommendations for heart rate control from PPG data

    Accuracy and Usability of a Novel Algorithm for Detection of Irregular Pulse Using a Smartwatch Among Older Adults: Observational Study

    Get PDF
    BACKGROUND: Atrial fibrillation (AF) is often paroxysmal and minimally symptomatic, hindering its diagnosis. Smartwatches may enhance AF care by facilitating long-term, noninvasive monitoring. OBJECTIVE: This study aimed to examine the accuracy and usability of arrhythmia discrimination using a smartwatch. METHODS: A total of 40 adults presenting to a cardiology clinic wore a smartwatch and Holter monitor and performed scripted movements to simulate activities of daily living (ADLs). Participants\u27 clinical and sociodemographic characteristics were abstracted from medical records. Participants completed a questionnaire assessing different domains of the device\u27s usability. Pulse recordings were analyzed blindly using a real-time realizable algorithm and compared with gold-standard Holter monitoring. RESULTS: The average age of participants was 71 (SD 8) years; most participants had AF risk factors and 23% (9/39) were in AF. About half of the participants owned smartphones, but none owned smartwatches. Participants wore the smartwatch for 42 (SD 14) min while generating motion noise to simulate ADLs. The algorithm determined 53 of the 314 30-second noise-free pulse segments as consistent with AF. Compared with the gold standard, the algorithm demonstrated excellent sensitivity (98.2%), specificity (98.1%), and accuracy (98.1%) for identifying irregular pulse. Two-thirds of participants considered the smartwatch highly usable. Younger age and prior cardioversion were associated with greater overall comfort and comfort with data privacy with using a smartwatch for rhythm monitoring, respectively. CONCLUSIONS: A real-time realizable algorithm analyzing smartwatch pulse recordings demonstrated high accuracy for identifying pulse irregularities among older participants. Despite advanced age, lack of smartwatch familiarity, and high burden of comorbidities, participants found the smartwatch to be highly acceptable
    • …
    corecore