Here is the design of a clinical trial:

Official Title: Efficacy and Safety of Electroacupuncture on Treating Depression Related Insomnia: Study Protocol for a Multicenter Randomized Controlled Trial

Included conditions:
- Insomnia Due to Mental Disorder

Study Armgroups:
- {'label': 'Electroacupuncture group', 'type': 'ACTIVE_COMPARATOR', 'description': 'electroacupuncture+standard care', 'interventionNames': ['Device: Electroacupuncture(EA)']}
- {'label': 'Control A group', 'type': 'PLACEBO_COMPARATOR', 'description': 'placebo acupuncture+standard care', 'interventionNames': ['Device: Placebo acupuncture']}
- {'label': 'Control B group', 'type': 'OTHER', 'description': 'standard care', 'interventionNames': ['Other: Standard care']}

Interventions:
- {'type': 'DEVICE', 'name': 'Electroacupuncture(EA)', 'description': 'Participants in EA group will receive electroacupuncture treatment. Acupuncture will be applied at Baihui (GV20), Shenting (GV24), Yintang (GV29), bilateral Anmian (EX-HN22), Shenmen (HT7), SanYinjiao (SP6) and Neiguan (PC6). After needle insertion, rotating or lifting-thrusting manipulation will be applied for "Deqi" sensation. The EA apparatus (CMNS6-1, Jianjian Medical Device CO., LTD, China) will be connected to the needles at GV20 and GV29 for 30 minutes and deliver a continuous wave. The frequency will be set at about 30 Hz and the amplitude will be less than 20V. Participants can regularly take the antidepressants or sedative-hypnotics as before during the intervention. Besides, the investigators will strengthen health education about insomnia and depression for the patients.', 'armGroupLabels': ['Electroacupuncture group']}
- {'type': 'DEVICE', 'name': 'Placebo acupuncture', 'description': "Participants in the control A group will receive placebo acupuncture treatment with streitberger needles at the same acupoints as the electroacupuncture group. When the tip of the blunt needles touches to the skin, the patient will get a pricking sensation but there is no real needle inserted into the skin. The electroacupuncture apparatus will be set beside the patients, with no connection to the needles. Inform the patients when removing the needles after 30 minutes. Use the dry cotton ball to press the acupoints so that patients can feel the withdrawal of the 'needles'. Same health education and regular administration of antidepressants or sedative-hypnotics will be given to the participants during the intervention.", 'armGroupLabels': ['Control A group']}
- {'type': 'OTHER', 'name': 'Standard care', 'description': 'Participants in the control B group will keep their standard medical care for the first 8 weeks. Participants will take their regular antidepressants and the sedative-hypnotics during the whole intervention period. Same health education will be conducted as well for the participants. And after waiting for two months, these patients will be treated with the same electroacupuncture treatment as the EA group.', 'armGroupLabels': ['Control B group']}

Primary Outcomes:
- {'measure': 'Pittsburgh Sleep Quality Index (PSQI)', 'description': "The Pittsburgh Sleep Quality Index (PSQI) is a widely-used questionnaire to assess one's sleep disorders over one month. It is comprised of 19 self-rated items and 5 other-rated items. The scores include the following indicators: subjective sleep quality, sleep latency, sleep duration, habitual sleep efficiency, sleep disturbances, use of medication, and daytime dysfunction. Each indicator is rated from 0 to 3. The accumulated scores of the seven indicators constitute the total score of PSQI (0-21). The higher score indicates the worse sleep quality and severer sleep disorders. The investigators set the PSQI score at 8th week post-treatment as the primary outcome, compared with PSQI scores at other time points, to evaluate the effectiveness of acupuncture for depression related insomnia.", 'timeFrame': '8 week post-treatment'}

Please estimate the sample size based on the assumption: 
The study aims for a power of 90% to detect a superior effect of 1.5 of PSQI at a significance level (α) of 0.025 and a β-value of 0.1. A 10% dropout rate is also assumed.
Sample size calculation
        The sample calculation is based on changes in the primary outcome of this trial, the PSQI score. In our previous trial, we also used PSQI score as the primary outcome to evaluate and compare the effects between acupuncture, superficial acupuncture at sham points and sham acupuncture on treating depression related insomnia.18 According to the preliminary results, the PSQI score of the acupuncture group at the end of the 8 weeksâ intervention was 9.83Â±3.11 and that of the sham acupuncture group was 13.93Â±3.22. We assumed 0.2 of the PSQI difference is the superior effect.
        H0: A-B<= but H1: A-B>
        We used the following formula to calculate the sample size in this trial:
        N=[(ZÎ±+ZÎ²Ï)Î´âÎ]2Ã2,
        where Î´Â is the difference between group,Â Î is the assumed superior effect threshold and N is the estimated sample size of each group. ÏÂ is the [(S12+S22)/2]0.5.
        According to the previous study,25 the minimal clinically important differenceof PSQI is about 1.14â1.75. Since there will be a comparison between the treatment group and the control A group as well as a comparison between the treatment group and the control B group, a sample size of 27 in each group will have a power of 90% to detect the superior effect of 1.5 of PSQI at an Î±-value of 0.025 and a Î²-value of 0.1. Assuming a 10% dropout rate, a sample size of 30 for each group is needed. For a better power and quality control among centres, we decided the recruiting sample size to 30 for each group in each healthcare centre. As a result, the total number of participants needed to be randomised is 270.