Journal of Medical Internet Research - International Scientific Journal for Medical Research, Information and Communication on the Internet #Preprint #PeerReviewMe: Warning: This is a unreviewed preprint. Readers are warned that the document has not been peer-reviewed by expert/patient reviewers or an academic editor, may contain misleading claims, and is likely to undergo changes before final publication, if accepted, or may have been rejected/withdrawn. Readers with interest and expertise are encouraged to sign up as peer-reviewer, if the paper is within an open peer-review period. Please cite this preprint only for review purposes or for grant applications and CVs (if you are the author). Background: Adverse drug events (ADEs) are crucial for pharmacovigilance and drug safety surveillance, but main ADE reporting systems such as FAERS face challenges such as underreporting. Therefore, it becomes an important complement to extract ADEs from electronic health record (EHR) notes via natural language processing (NLP). As NLP develops, many up-to-date machine learning techniques are introduced into this area, e.g., deep learning and multi-task learning (MTL). However, few studies focus on employing such techniques to extract ADEs. Objective: We aim to design a deep learning model for extracting ADEs and their related information such as medications and indications. Moreover, since ADE-related information extraction includes two steps, i.e., named entity recognition (NER) and relation extraction (RE), our second objective is to further improve the deep learning model using multi-task learning between the two steps. Methods: We employed the dataset from the MADE1.0 challenge to train and test our models. This dataset consists of 1,089 EHR notes of cancer patients. It includes 9 entity types such as Medication, Indication and ADE, and 7 relation types between these entity types. To extract information from the dataset, we proposed a deep learning model that uses a bi-directional (Bi) long-short-term-memory (LSTM) conditional random field (CRF) network to recognize entities and a BiLSTM-Attention network to extract relations. To further improve the deep learning model, we employed three typical MTL methods, namely hard parameter sharing, parameter regularization and task relation learning, to build three MTL models called HardMTL, RegMTL and LearnMTL respectively. Results: Since ADE-related information extraction is a two-step task, the result of the second step (i.e., relation extraction) is used to compare all the models. We used micro-averaged precision, recall and F1 as evaluation metrics. Our deep learning model achieved the state-of-the-art result (F1=65.9%), which is significantly higher than the result (F1=61.7%) of the best system in the MADE1.0 challenge. HardMTL further improved the F1 by 0.8%, boosting the F1 score to 66.7%, while either RegMTL or LearnMTL failed to boost the performance. Conclusions: Deep learning models are able to significantly improve the performance of ADE-related information extraction. MTL may be effective for NER and RE, but it depends on methods, data and other factors. Our work can facilitate the research on ADE detection, NLP and machine learning.